Replace TRUE/FALSE with boolean values true/false

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/17/head
Michele Calgaro 12 months ago
parent 29aac93d75
commit 3233d6a066
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -209,7 +209,7 @@ void KbfxConfigApp::btn_DefaultClicked()
{
ConfigInit().readFontrc ( ConfigInit().m_SpinxThemeBasePath,
ConfigInit().m_SpinxThemeName,
FALSE );
false );
emit KbfxConfigDlgFontsChanged();
break;
}
@ -236,7 +236,7 @@ void KbfxConfigApp::btn_DefaultClicked()
{
ConfigInit().readThemerc ( ConfigInit().m_SpinxThemeBasePath,
ConfigInit().m_SpinxThemeName,
FALSE );
false );
emit KbfxConfigDlgLayoutChanged();
break;
}

@ -87,42 +87,42 @@ bool KbfxConfigDlgAbout::eventFilter ( TQObject *obj, TQEvent *ev )
KbfxTeamInfo->setText ( KbfxMemberTextNookie );
KbfxUnmarkAllPixmaps();
KbfxPixmapLabelNookie->setFrameShape ( TQFrame::WinPanel );
return TRUE;
return true;
}
else if ( obj == KbfxPixmapLabelSiraj )
{
KbfxTeamInfo->setText ( KbfxMemberTextSiraj );
KbfxUnmarkAllPixmaps();
KbfxPixmapLabelSiraj->setFrameShape ( TQFrame::WinPanel );
return TRUE;
return true;
}
else if ( obj == KbfxPixmapLabelNathanael )
{
KbfxTeamInfo->setText ( KbfxMemberTextNathanael );
KbfxUnmarkAllPixmaps();
KbfxPixmapLabelNathanael->setFrameShape ( TQFrame::WinPanel );
return TRUE;
return true;
}
else if ( obj == KbfxPixmapLabelPhobosK )
{
KbfxTeamInfo->setText ( KbfxMemberTextPhobosK );
KbfxUnmarkAllPixmaps();
KbfxPixmapLabelPhobosK->setFrameShape ( TQFrame::WinPanel );
return TRUE;
return true;
}
else if ( obj == KbfxPixmapLabelJohnny )
{
KbfxTeamInfo->setText ( KbfxMemberTextJohnny );
KbfxUnmarkAllPixmaps();
KbfxPixmapLabelJohnny->setFrameShape ( TQFrame::WinPanel );
return TRUE;
return true;
}
else if ( obj == KbfxPixmapLabelEphracis )
{
KbfxTeamInfo->setText ( KbfxMemberTextEphracis );
KbfxUnmarkAllPixmaps();
KbfxPixmapLabelEphracis->setFrameShape ( TQFrame::WinPanel );
return TRUE;
return true;
}
}
@ -139,13 +139,13 @@ bool KbfxConfigDlgAbout::eventFilter ( TQObject *obj, TQEvent *ev )
{
KbfxTeamInfo->setText("");
return TRUE;
return true;
}
}
*/
return TQWidget::eventFilter ( obj, ev );
// return FALSE;
// return false;
}
void KbfxConfigDlgAbout::KbfxUnmarkAllPixmaps()

@ -125,12 +125,12 @@ void KbfxConfigDlgButton::ChangeForm()
KbfxButtonToggled ( 1 );
if ( ConfigInit().m_fadeTime == 0 )
KbfxFadeButton->setChecked ( FALSE );
KbfxFadeButton->setChecked ( false );
else
KbfxFadeButton->setChecked ( TRUE );
if ( ConfigInit().m_ToolBarResize == TRUE && KbfxResizeKicker->state() == 0 )
KbfxFadeButton->setChecked ( true );
if ( ConfigInit().m_ToolBarResize && KbfxResizeKicker->state() == 0 )
KbfxResizeKicker->toggle();
if ( ConfigInit().m_ToolBarResize == FALSE && KbfxResizeKicker->state() == 2 )
if ( !ConfigInit().m_ToolBarResize && KbfxResizeKicker->state() == 2 )
KbfxResizeKicker->toggle();
KbfxFadeTime->setText ( TQString::number ( ConfigInit().m_fadeTime ) );
@ -142,13 +142,13 @@ void KbfxConfigDlgButton::KbfxResizeKickerToggled ( bool )
if ( KbfxResizeKicker->state() == 2 )
{
KbfxResizeKicker->setText ( tr2i18n ( "Panel Resize is 'ON'" ) );
ConfigInit().m_ToolBarResize = TRUE;
ConfigInit().m_ToolBarResize = true;
}
if ( KbfxResizeKicker->state() == 0 )
{
KbfxResizeKicker->setText ( tr2i18n ( "Panel Resize is 'OFF'" ) );
ConfigInit().m_ToolBarResize = FALSE;
ConfigInit().m_ToolBarResize = false;
}
kdDebug() << "Panel Resize is: "

@ -12,12 +12,12 @@
void KbfxConfigDlgFonts::init()
{
KbfxFormReady = FALSE;
KbfxFormReady = false;
}
void KbfxConfigDlgFonts::ChangeForm()
{
KbfxFormReady = FALSE;
KbfxFormReady = false;
KbfxTheme->setText ( "<p align=left><b>" + ConfigInit().m_SpinxThemeName + "</b></p>" );
KbfxBoldHover->setChecked ( ConfigInit().m_fontHoverBold );
KbfxApplicationColor->setColor ( ConfigInit().m_fontAppNameColor );
@ -35,7 +35,7 @@ void KbfxConfigDlgFonts::ChangeForm()
KbfxFont_plugin->setFont ( ConfigInit().m_pluginNameFont );
KbfxTooltipColor->setColor ( ConfigInit().m_fontTooltipColor );
KbfxFont_tooltip->setFont ( ConfigInit().m_fontTooltipFont );
KbfxFormReady = TRUE;
KbfxFormReady = true;
}
void KbfxConfigDlgFonts::KbfxApplicationColorSelected ( const TQColor &color )
@ -117,7 +117,7 @@ void KbfxConfigDlgFonts::KbfxExportFileAction()
"*.*|" + tr2i18n("All files"),
0,
0,
TRUE);
true);
KbfxExportFontRcDialog.setOperationMode(KFileDialog::Saving);
KbfxExportFontRcDialog.setCaption(tr2i18n("Select Folder to export kbfxfontrc file"));
KbfxExportFontRcDialog.setMode(KFile::Directory);

@ -635,7 +635,7 @@ bool KbfxConfigDlgLayout::KbfxMessage()
tr2i18n ( "Prepare" ) );
if ( messageBoxReturn == KMessageBox::Cancel )
return FALSE;
return false;
return TRUE;
return true;
}

@ -39,7 +39,7 @@ TQStringList KbfxConfigDlgPlugins::KbfxListPlugins ( int panel )
for ( it_available = allPlugins.begin(); it_available != allPlugins.end(); ++it_available )
{
_not_present = TRUE;
_not_present = true;
if ( panel == 0 )
{
for ( it_requested = ConfigInit ().m_pluginsLeft.begin ();
@ -47,7 +47,7 @@ TQStringList KbfxConfigDlgPlugins::KbfxListPlugins ( int panel )
{
if ( ( *it_available ).contains ( *it_requested ) > 0 )
{
_not_present = FALSE;
_not_present = false;
break;
}
}
@ -59,7 +59,7 @@ TQStringList KbfxConfigDlgPlugins::KbfxListPlugins ( int panel )
{
if ( ( *it_available ).contains ( *it_requested ) > 0 )
{
_not_present = FALSE;
_not_present = false;
break;
}
}

@ -14,7 +14,7 @@ KbfxThemeInfo * KbfxConfigDlgThemes::_info_box = 0;
void KbfxConfigDlgThemes::init()
{
KbfxFormReady = FALSE;
KbfxFormReady = false;
img_nopreview = image0;
connect ( this, TQ_SIGNAL ( KbfxThemeDoInstall ( TQString & ) ),
@ -28,14 +28,14 @@ void KbfxConfigDlgThemes::KbfxDudeAnimationButtonToggled(bool)
{
KbfxAnimationButton->setText(tr2i18n("Animation is ON"));
KbfxAnimationButton->setPaletteBackgroundColor(TQColor(0,255,0));
ConfigInit().m_SpinxDudeBlink = TRUE;
ConfigInit().m_SpinxDudeBlink = true;
}
if(KbfxAnimationButton->state() == 0)
{
KbfxAnimationButton->setText(tr2i18n("Animation is OFF"));
KbfxAnimationButton->setPaletteBackgroundColor(TQColor(221,223,228));
ConfigInit().m_SpinxDudeBlink = FALSE;
ConfigInit().m_SpinxDudeBlink = false;
}
kdDebug() << "SpinxDudeBlink State is:"
@ -122,7 +122,7 @@ void KbfxConfigDlgThemes::setKbfxThemePreview()
void KbfxConfigDlgThemes::ChangeForm()
{
KbfxFormReady = FALSE;
KbfxFormReady = false;
KbfxURLRequesterThemesPath->setURL ( ConfigInit().m_UserSpinxThemeBasePath );
KbfxThemeList->clear();
@ -132,7 +132,7 @@ void KbfxConfigDlgThemes::ChangeForm()
<< KbfxThemesData().setThemeList ( ConfigInit().m_UserSpinxThemeBasePath ) [ConfigInit().m_SpinxThemeName]
<< endl;
KbfxThemeList->setSelected ( KbfxThemeList->findItem ( ConfigInit().m_SpinxThemeName ), TRUE );
KbfxThemeList->setSelected ( KbfxThemeList->findItem ( ConfigInit().m_SpinxThemeName ), true );
setKbfxThemePreview();
@ -145,16 +145,16 @@ void KbfxConfigDlgThemes::ChangeForm()
<< ConfigInit().m_SpinxDudeImageDefault
<< endl;
KbfxFormReady = TRUE;
KbfxFormReady = true;
KbfxShowOldThemes->setChecked ( ConfigInit().m_KbfxShowOldThemes );
KbfxWatch->setChecked ( ConfigInit().m_KbfxWatcher );
/*
if(ConfigInit().m_SpinxDudeBlink == TRUE && KbfxAnimationButton->state() == 0)
if(ConfigInit().m_SpinxDudeBlink && KbfxAnimationButton->state() == 0)
KbfxAnimationButton->toggle();
if(ConfigInit().m_SpinxDudeBlink == FALSE && KbfxAnimationButton->state() == 2)
if(!ConfigInit().m_SpinxDudeBlink && KbfxAnimationButton->state() == 2)
KbfxAnimationButton->toggle();
*/
}
@ -163,7 +163,7 @@ void KbfxConfigDlgThemes::KbfxDeleteThemeClicked()
{
int messageBoxReturn;
int messageBoxUserResReturn;
TQString KbfxThemeRcDestination = TDEGlobal::dirs()->saveLocation ( "data", TQString ( "kbfx/themerc/" ), TRUE );
TQString KbfxThemeRcDestination = TDEGlobal::dirs()->saveLocation ( "data", TQString ( "kbfx/themerc/" ), true );
KbfxThemeRcDestination.append( ConfigInit().m_SpinxThemeName );
messageBoxReturn = KMessageBox::warningContinueCancel ( 0,
@ -223,7 +223,7 @@ void KbfxConfigDlgThemes::KbfxInstallThemeClicked()
"*.tar *.tar.bz2 *.tar.gz *.kbfxtheme|" + tr2i18n ( "KBFX theme packages (*.tar, *.tar.bz2, *.tar.gz, *.kbfxtheme)" ),
0,
0,
TRUE );
true );
KbfxInstallDialog.setCaption ( tr2i18n ( "Select KBFX theme package to install" ) );
KbfxInstallDialog.setMode ( KFile::File | KFile::ExistingOnly );
@ -249,12 +249,12 @@ void KbfxConfigDlgThemes::KbfxThemeInstall ( TQString &installUrl )
const TQString KbfxThemeDestination = TDEGlobal::dirs()->saveLocation ( "data",
TQString ( "kbfx/skins/" ),
TRUE );
true );
kdDebug() << "Copying theme: " << KbfxThemeDestination << endl;
const KArchiveDirectory *KbfxThemeArchiveDir = KbfxThemeArchive.directory();
KbfxThemeArchiveDir->copyTo ( KbfxThemeDestination, TRUE );
KbfxThemeArchiveDir->copyTo ( KbfxThemeDestination, true );
ChangeForm();
}
@ -265,7 +265,7 @@ void KbfxConfigDlgThemes::KbfxSelectDudeImageClicked()
"image/jpeg image/png image/x-xpm image/gif ",
0,
0,
TRUE );
true );
KbfxDudeImageDialog.setCaption ( tr2i18n ( "Select personal image" ) );
KbfxDudeImageDialog.setMode ( KFile::File | KFile::ExistingOnly );

@ -22,14 +22,14 @@ void KbfxConfigDlgTooltip::KbfxTooltipAnimationButtonToggled ( bool )
{
KbfxTooltipAnimationButton->setText ( tr2i18n ( "Turn the animation 'OFF'" ) );
KbfxTooltipAnimationPixmapLabel->setPixmap ( img_on );
ConfigInit().m_ToolTipAnimation = TRUE;
ConfigInit().m_ToolTipAnimation = true;
}
if ( KbfxTooltipAnimationButton->state() == 0 )
{
KbfxTooltipAnimationButton->setText ( tr2i18n ( "Turn the animation 'ON'" ) );
KbfxTooltipAnimationPixmapLabel->setPixmap ( img_off );
ConfigInit().m_ToolTipAnimation = FALSE;
ConfigInit().m_ToolTipAnimation = false;
}
kdDebug() << "Tooltip animation state: "
@ -52,14 +52,14 @@ void KbfxConfigDlgTooltip::KbfxTooltipOnButtonToggled ( bool )
{
KbfxTooltipOnButton->setText ( tr2i18n ( "Turn the tooltip 'OFF'" ) );
KbfxTooltipOnPixmapLabel->setPixmap ( img_on );
ConfigInit().m_ToolTip = TRUE;
ConfigInit().m_ToolTip = true;
}
if ( KbfxTooltipOnButton->state() == 0 )
{
KbfxTooltipOnButton->setText ( tr2i18n ( "Turn the tooltip 'ON'" ) );
KbfxTooltipOnPixmapLabel->setPixmap ( img_off );
ConfigInit().m_ToolTip = FALSE;
ConfigInit().m_ToolTip = false;
}
@ -70,16 +70,16 @@ void KbfxConfigDlgTooltip::KbfxTooltipOnButtonToggled ( bool )
void KbfxConfigDlgTooltip::ChangeForm()
{
if ( ConfigInit().m_ToolTip == TRUE && KbfxTooltipOnButton->state() == 0 )
if ( ConfigInit().m_ToolTip && KbfxTooltipOnButton->state() == 0 )
KbfxTooltipOnButton->toggle();
if ( ConfigInit().m_ToolTip == FALSE && KbfxTooltipOnButton->state() == 2 )
if ( !ConfigInit().m_ToolTip && KbfxTooltipOnButton->state() == 2 )
KbfxTooltipOnButton->toggle();
if ( ConfigInit().m_ToolTipAnimation == TRUE && KbfxTooltipAnimationButton->state() == 0 )
if ( ConfigInit().m_ToolTipAnimation && KbfxTooltipAnimationButton->state() == 0 )
KbfxTooltipAnimationButton->toggle();
if ( ConfigInit().m_ToolTipAnimation == FALSE && KbfxTooltipAnimationButton->state() == 2 )
if ( !ConfigInit().m_ToolTipAnimation && KbfxTooltipAnimationButton->state() == 2 )
KbfxTooltipAnimationButton->toggle();
KbfxTooltipTextEdit->setText ( ConfigInit().m_ToolTipText );

@ -26,9 +26,9 @@ KbfxConfig::KbfxConfig()
/* set default configuration values */
/* KBFX internal settings */
KbfxThemeRcDestination = TDEGlobal::dirs()->saveLocation ( "data", TQString ( "kbfx/themerc/" ), TRUE );
KbfxThemeRcDestination = TDEGlobal::dirs()->saveLocation ( "data", TQString ( "kbfx/themerc/" ), true );
KbfxRcPath = TDEGlobal::dirs()->findResource ( "config", "kbfxrc" );
m_KbfxDeleteOldConf = FALSE;
m_KbfxDeleteOldConf = false;
TQString _unspecified = tr2i18n ( "Not Specified" );
TQString path = locate ( "data", "kbfx/skins/default/bg.png" );
path.remove ( "default/bg.png" );
@ -47,19 +47,19 @@ KbfxConfig::KbfxConfig()
m_UserSpinxThemeBasePathDefault = path;
m_KbfxMenuTypeDefault = "spinx";
m_ToolBarResizeDefault = FALSE;
m_KbfxWatcherDefault = TRUE;
m_KbfxShowOldThemesDefault = FALSE;
m_ToolBarResizeDefault = false;
m_KbfxWatcherDefault = true;
m_KbfxShowOldThemesDefault = false;
/* user(dude) image properties */
m_SpinxDudeBlinkDefault = FALSE;
m_SpinxDudeBlinkDefault = false;
KUser *user = new KUser();
m_SpinxDudeImageDefault = locate ( "data", user->homeDir () + "/.face.icon" );
delete user;
/* tooltip properties */
m_ToolTipDefault = FALSE;
m_ToolTipAnimationDefault = TRUE;
m_ToolTipDefault = false;
m_ToolTipAnimationDefault = true;
m_ToolTipTextDefault = "Application menu";
m_ToolTipAvatarDefault = path + "default/butterfly.png";
m_SpinxTooltipDudeboxDefault = path + "default/tooltip_dudebox.png";
@ -87,7 +87,7 @@ KbfxConfig::KbfxConfig()
m_faceIconWDefault = 65;
m_userNamePos_xDefault = 130;
m_userNamePos_yDefault = 32;
m_faceBoxHideTextDefault = FALSE;
m_faceBoxHideTextDefault = false;
/* top bar properties */
m_topBar_xDefault = 0;
@ -118,7 +118,7 @@ KbfxConfig::KbfxConfig()
m_searchBox_wDefault = 240;
m_searchBox_xDefault = 130;
m_searchBox_yDefault = 48;
m_searchBox_staticDefault = TRUE;
m_searchBox_staticDefault = true;
/* item view properties */
m_itemView_hDefault = 380;
@ -133,9 +133,9 @@ KbfxConfig::KbfxConfig()
/* KBFX misc properties */
m_userMenuHeightDefault = 513;
m_userMenuWidthDefault = 504;
m_startHiddenDefault = FALSE;
m_startHiddenDefault = false;
m_fadeTimeDefault = 75;
m_noCommentsDefault = FALSE;
m_noCommentsDefault = false;
m_commentMargineDefault = 66;
m_iconSizeDefault = 32;
@ -155,7 +155,7 @@ KbfxConfig::KbfxConfig()
m_pluginNameColorDefault = TQColor ( 0,0,0 );
m_pluginNameFontDefault = TQFont ( "Arial", 8, TQFont::Normal );
m_lineColorDefault = TQColor ( 255,220,125 );
m_fontHoverBoldDefault = FALSE;
m_fontHoverBoldDefault = false;
/* set default theme info values */
m_InfoVersionDefault = _unspecified;
@ -300,7 +300,7 @@ void KbfxConfig::readThemeInfo ( TQString &themePath, TQString &themeName )
TQFileInfo * info_theme = new TQFileInfo ( themePath + themeName + "/" + m_KbfxThemesVersion );
TDEConfig * infoconfig = 0;
if ( info_theme->exists() == TRUE )
if ( info_theme->exists() )
{
infoconfig = new TDEConfig ( info_theme->absFilePath() );
infoconfig->setGroup ( "ThemeGeneral" );
@ -329,7 +329,7 @@ void KbfxConfig::read()
TDEConfig *conf = confskel->config();
TQString __default = TDEGlobal::iconLoader()->iconPath ( "kbfx", ( int ) TDEIcon::Desktop, FALSE );
TQString __default = TDEGlobal::iconLoader()->iconPath ( "kbfx", ( int ) TDEIcon::Desktop, false );
conf->setGroup ( "KbfxGeneral" );
m_KbfxGeneralVersion = conf->readNumEntry ( "Version", 0 );
@ -396,7 +396,7 @@ void KbfxConfig::read()
if ( m_KbfxGeneralVersion < m_KbfxGeneralVersionDefault )
{
m_KbfxGeneralVersion = m_KbfxGeneralVersionDefault;
m_KbfxDeleteOldConf = TRUE;
m_KbfxDeleteOldConf = true;
}
}
@ -417,13 +417,13 @@ void KbfxConfig::readFontrc ( TQString & themePath, TQString & themeName, bool u
TDEConfig * fontconfig = 0;
/* if theme kbfxfontrc exists, make its configuration as default values - prefer users' configuration */
if ( info_theme->exists() == TRUE || info->exists() == TRUE )
if ( info_theme->exists() || info->exists() )
{
if ( info_theme->exists() == TRUE && m_KbfxGeneralVersion >= m_KbfxGeneralVersionDefault && user_rc )
if ( info_theme->exists() && m_KbfxGeneralVersion >= m_KbfxGeneralVersionDefault && user_rc )
{
_abs_path = info_theme->absFilePath();
}
else if ( info->exists() == TRUE || m_KbfxGeneralVersion < m_KbfxGeneralVersionDefault )
else if ( info->exists() || m_KbfxGeneralVersion < m_KbfxGeneralVersionDefault )
{
_abs_path = info->absFilePath();
}
@ -501,7 +501,7 @@ void KbfxConfig::readThemerc ( TQString &themePath, TQString &themeName, bool us
/* use theme's default dude image if any */
TDEConfigSkeleton *confskel = new TDEConfigSkeleton ( TQString::fromLatin1 ( "kbfxrc" ) );
TDEConfig *conf = confskel->config();
TQString __default = TDEGlobal::iconLoader()->iconPath ( "kbfx", ( int ) TDEIcon::Desktop, FALSE );
TQString __default = TDEGlobal::iconLoader()->iconPath ( "kbfx", ( int ) TDEIcon::Desktop, false );
if ( m_SpinxDudeImageDefault == TQString() || !TDEStandardDirs::exists ( m_SpinxDudeImageDefault ) )
{
@ -532,13 +532,13 @@ void KbfxConfig::readThemerc ( TQString &themePath, TQString &themeName, bool us
TDEConfig *layoutconfig = 0;
/* if theme kbfxlayoutrc exists, make its configuration as default values - prefer users' configuration */
if ( info_theme->exists() == TRUE || info->exists() == TRUE )
if ( info_theme->exists() || info->exists() )
{
if ( info_theme->exists() == TRUE && m_KbfxGeneralVersion >= m_KbfxGeneralVersionDefault && user_rc )
if ( info_theme->exists() && m_KbfxGeneralVersion >= m_KbfxGeneralVersionDefault && user_rc )
{
_abs_path = info_theme->absFilePath();
}
else if ( info->exists() == TRUE || m_KbfxGeneralVersion < m_KbfxGeneralVersionDefault )
else if ( info->exists() || m_KbfxGeneralVersion < m_KbfxGeneralVersionDefault )
{
_abs_path = info->absFilePath();
}
@ -708,7 +708,7 @@ void KbfxConfig::write()
TDEConfig *conf = confskel->config();
conf->setGroup ( "KDE Action Restrictions" );
conf->writeEntry ( "warn_unwritable_config", FALSE );
conf->writeEntry ( "warn_unwritable_config", false );
conf->setGroup ( "KbfxGeneral" );
conf->writeEntry ( "Version", m_KbfxGeneralVersion );

@ -47,8 +47,8 @@ class KbfxConfig
{
public:
void read();
void readFontrc ( TQString &themePath, TQString &themeName, bool user_rc=TRUE );
void readThemerc ( TQString &themePath, TQString &themeName, bool user_rc=TRUE );
void readFontrc ( TQString &themePath, TQString &themeName, bool user_rc=true );
void readThemerc ( TQString &themePath, TQString &themeName, bool user_rc=true );
void readThemeInfo ( TQString &themePath, TQString &themeName );
void setDefault();
void setThemeDefault();

@ -26,7 +26,7 @@ KBFXFontChooser::KBFXFontChooser ( TQWidget *parent, const char *name )
TQHBoxLayout* layout = new TQHBoxLayout ( this, 0, KDialog::spacingHint() );
m_label = new TQLabel ( this, "fontLabel" );
m_label->setSizePolicy ( TQSizePolicy::Expanding, TQSizePolicy::Fixed, TRUE);
m_label->setSizePolicy ( TQSizePolicy::Expanding, TQSizePolicy::Fixed, true);
// m_label->setFrameShape ( TQFrame::StyledPanel );
// m_label->setFrameShadow ( TQFrame::Sunken );
@ -36,7 +36,7 @@ KBFXFontChooser::KBFXFontChooser ( TQWidget *parent, const char *name )
m_label->setMaximumHeight ( m_button -> height() );
m_label->setMinimumHeight ( m_button -> height() );
TQString fontText = i18n ( "Font..." );
// m_button->setSizePolicy ( TQSizePolicy::Minimum, TQSizePolicy::Minimum, TRUE);
// m_button->setSizePolicy ( TQSizePolicy::Minimum, TQSizePolicy::Minimum, true);
m_button->setText ( fontText );
TQIconSet iconSet = SmallIconSet ( TQString::fromLatin1 ( "fonts" ) );
TQPixmap pixmap = iconSet.pixmap ( TQIconSet::Small, TQIconSet::Normal );

@ -41,7 +41,7 @@ void KbfxKioDownload::KbfxKioDownloadStart ( TQString &url )
TDEIO::Job *download_job = TDEIO::file_copy ( KURL ( url ),
KURL ( m_KbfxBrowserTmpFile ),
-1,
TRUE );
true );
connect ( download_job, TQ_SIGNAL ( result ( TDEIO::Job* ) ),
this, TQ_SLOT ( KbfxBrowserResult ( TDEIO::Job * ) ) );
}

@ -28,9 +28,9 @@ KbfxPixmapLabel::KbfxPixmapLabel ( TQWidget *parent, const char *name, WFlags fl
// setFrameShadow(TQLabel::Sunken);
setFrameShape ( TQLabel::LineEditPanel );
setFrameShadow ( TQLabel::Plain );
setScaledContents ( FALSE );
setScaledContents ( false );
setAlignment ( int ( TQLabel::WordBreak | TQLabel::AlignCenter ) );
setMouseTracking ( TRUE );
setMouseTracking ( true );
}
KbfxPixmapLabel::~KbfxPixmapLabel()
@ -42,7 +42,7 @@ void KbfxPixmapLabel::normalize ()
{
setFrameShape ( TQLabel::NoFrame );
setFrameShadow ( TQLabel::Plain );
setScaledContents ( FALSE );
setScaledContents ( false );
setAlignment ( int ( TQLabel::WordBreak | TQLabel::AlignCenter ) );
}

@ -62,9 +62,9 @@ bool
KbfxPlasmaPixmapProvider::PixmapPathCheck ( TQString pixmapPath )
{
if ( TQPixmap ( pixmapPath ).isNull() )
return FALSE;
return false;
return TRUE;
return true;
}
void

@ -25,7 +25,7 @@ KbfxPushButton::KbfxPushButton ( TQWidget *parent, const char *name )
: KPushButton ( parent, name )
{
setText ( "P R E V I E W" );
setToggleButton ( TRUE );
setToggleButton ( true );
setFocusPolicy ( TQWidget::NoFocus );
}

@ -65,12 +65,12 @@ ThemesMap KbfxThemesData::setThemeList ( TQString path )
f = new TQFileInfo ( d, fi->fileName() + "/" + m_KbfxThemesVersion );
if ( m_KbfxShowOldThemes )
{
m_themesMap[fi->fileName() ] = ( fi->dirPath ( TRUE ) ).append ( "/" );
m_themesMap[fi->fileName() ] = ( fi->dirPath ( true ) ).append ( "/" );
}
else
{
if ( f->exists () )
m_themesMap[fi->fileName() ] = ( fi->dirPath ( TRUE ) ).append ( "/" );
m_themesMap[fi->fileName() ] = ( fi->dirPath ( true ) ).append ( "/" );
}
}
++it;

@ -47,7 +47,7 @@ KbfxDataGroup::lookup ( TQString str )
Data::Iterator it;
for ( it = m_data.begin();it!=m_data.end();++it )
{
if ( ( *it )->lookup ( str ) == true )
if ( ( *it )->lookup ( str ) )
{
_matching.prepend ( * ( *it ) );
}

@ -152,7 +152,7 @@ KbfxPlasmaPluginLoader::scanPlugins()
for ( it = pluginMap().begin(); it != pluginMap().end();++it )
{
if ( it.data()->status() == false )
if ( !it.data()->status() )
plugins.append ( it.data()->name() );
}
return plugins;

@ -44,7 +44,7 @@ browseApp ( KServiceGroup::Ptr service, KbfxDataGroupList * glist,
KServiceGroup::List list = service->entries ( true, true, false, true );
if ( service->noDisplay () == true )
if ( service->noDisplay () )
return;
/*
@ -198,7 +198,7 @@ search ( TQString _keyword )
{
if ( s == NULL )
continue;
if ( (*s)->noDisplay () == true )
if ( (*s)->noDisplay () )
continue;
TQString *sPtr = new TQString ();

@ -44,7 +44,7 @@ browseApp ( KServiceGroup::Ptr service, KbfxDataGroupList * glist,
KServiceGroup::List list = service->entries ( true, true, false, true );
/*
if (service->noDisplay () == true)
if (service->noDisplay ())
return;

@ -145,7 +145,7 @@ search ( TQString _keyword )
socket.setSocketPath ( ( const char * ) socketpath.utf8 () );
bool ok = socket.query ( _keyword.ascii (), 5, 0 );
if ( ok == true )
if ( ok )
{
while ( !socket.statusChanged () )
{

@ -24,7 +24,7 @@
#include "kbfxbutton.h"
bool KbfxButton::m_sizeHeight = TRUE;
bool KbfxButton::m_sizeHeight = true;
int KbfxButton::m_size = 0;
KbfxButton::KbfxButton ( TQWidget * parent, const char *name) :
@ -38,7 +38,7 @@ KbfxButton::KbfxButton ( TQWidget * parent, const char *name) :
m_fadeTime = ConfigInit().m_fadeTime;
/* Init normal size first */
m_kicker_auto_adjust = TRUE;
m_kicker_auto_adjust = true;
loadSkins();
m_kicker_auto_adjust = ConfigInit().m_ToolBarResize;
@ -128,7 +128,7 @@ TQCString KbfxButton::findPanel()
void KbfxButton::readjust( bool _how )
{
/* _how = TRUE is for height, _how = FALSE is for width readjust */
/* _how = true is for height, _how = false is for width readjust */
TQCString _panel = findPanel();
int _tmp_size;
if ( _how )
@ -154,7 +154,7 @@ void KbfxButton::readjust( bool _how )
void KbfxButton::enterEvent ( TQEvent * e )
{
e = e;
if ( m_toggle == true )
if ( m_toggle )
{
// m_current_skin = m_pressed_skin; // no fade code
m_fadePix = m_pressed_skin;
@ -239,7 +239,7 @@ void KbfxButton::mousePressEvent ( TQMouseEvent * e )
e->accept();
if ( e->button() == TQt::LeftButton )
{
if ( m_toggle == false )
if ( !m_toggle )
{
// m_current_skin = m_pressed_skin; // no fade code
m_toggle = true;
@ -371,17 +371,17 @@ void KbfxButton::dropEvent ( TQDropEvent * e )
{
_tmp = ( *it );
kdDebug() << "KBFX button dropped file: " << _tmp << endl;
if ( _tmp.contains ( "hover", FALSE ) > 0 )
if ( _tmp.contains ( "hover", false ) > 0 )
{
_hover = _tmp;
_hover_pix = TQImage ( _tmp );
}
if ( _tmp.contains ( "normal", FALSE ) > 0 )
if ( _tmp.contains ( "normal", false ) > 0 )
{
_normal = _tmp;
_normal_pix = TQImage ( _tmp );
}
if ( _tmp.contains ( "pressed", FALSE ) > 0 )
if ( _tmp.contains ( "pressed", false ) > 0 )
{
_pressed = _tmp;
_pressed_pix = TQImage ( _tmp );
@ -409,7 +409,7 @@ void KbfxButton::dropEvent ( TQDropEvent * e )
ConfigInit().writeThemerc ( ConfigInit().m_SpinxThemeName );
/* Init normal size first */
m_kicker_auto_adjust = TRUE;
m_kicker_auto_adjust = true;
loadSkins();
m_kicker_auto_adjust = ConfigInit().m_ToolBarResize;
}

@ -41,7 +41,7 @@ KbfxPlasmaCanvasGroup::~KbfxPlasmaCanvasGroup ()
// delete (*it);
// itemListMap ().remove (*it);
if ( ( *it ) != 0 )
if ( deleteItem ( ( *it ) ) == false )
if ( !deleteItem ( ( *it ) ) )
{
tqDebug ( "Deleting failed" );
}
@ -104,7 +104,7 @@ KbfxPlasmaCanvasGroup::addItem ( KbfxPlasmaCanvasAbstractItem * it )
}
for ( ItemListIter itr ( m_itemList ); *itr; ++itr )
{
if ( ( *itr )->lookup ( it->name() ) == true )
if ( ( *itr )->lookup ( it->name() ) )
{
tqDebug ( "Adding Failed Due to Item already exisits" );
return false;
@ -190,7 +190,7 @@ KbfxPlasmaCanvasGroup::showAll()
{
for ( ItemListIter it ( m_itemList ); *it; ++it )
{
if ( ( *it )->type() == KbfxPlasmaCanvasAbstractItem::SEPARATOR || m_shaded == false )
if ( ( *it )->type() == KbfxPlasmaCanvasAbstractItem::SEPARATOR || !m_shaded )
( *it )->show();
}
@ -201,7 +201,7 @@ KbfxPlasmaCanvasGroup::show()
{
for ( ItemListIter it ( m_itemList ); *it; ++it )
{
if ( ( *it )->type() == KbfxPlasmaCanvasAbstractItem::SEPARATOR || m_shaded == false )
if ( ( *it )->type() == KbfxPlasmaCanvasAbstractItem::SEPARATOR || !m_shaded )
( *it )->show();
}
m_visible = true;
@ -210,7 +210,7 @@ KbfxPlasmaCanvasGroup::show()
void
KbfxPlasmaCanvasGroup::shade ()
{
if ( m_shaded == false )
if ( !m_shaded )
{
emit this->groupShade ( this->groupID() );
@ -223,7 +223,7 @@ KbfxPlasmaCanvasGroup::shade ()
m_shaded = true;
return;
}
else if ( m_shaded == true )
else if ( m_shaded )
{
int _shadeby = 0;
int _firstItemHeight=0;

@ -266,7 +266,7 @@ KbfxPlasmaCanvasItem::drawContent ( TQPainter * pe )
m_height = cp->height();
m_width = cp->width();
//Draw the Background
if ( m_skined == true )
if ( m_skined )
{
pe->drawPixmap ( this->boundingRect (), *cp );
@ -314,9 +314,9 @@ KbfxPlasmaCanvasItem::drawContent ( TQPainter * pe )
if ( this->type() == EXECUTABLE )
{
pe->setPen ( m_fontAppNameColor );
if ( m_noComments == false )
if ( !m_noComments )
{
if ( m_isCurrent && m_boldFonts == true ) { _font->setBold ( true );pe->setFont ( *_font ); }
if ( m_isCurrent && m_boldFonts ) { _font->setBold ( true );pe->setFont ( *_font ); }
pe->drawText ( *rectTop, TQt::AlignLeft| TQt::AlignBottom ,TQString ( m_labelText ), -1, &tmp );
pe->setPen ( m_lineColor );
pe->drawLine ( m_margin, ( int ) y() + rectTop->height(), ( int ) cp->width() - 2, ( int ) y() + rectTop->height() );

@ -28,7 +28,7 @@ KbfxPlasmaCanvasStack::KbfxPlasmaCanvasStack()
m_count = 0;
m_height = 0;
m_width = 0;
m_groupChain.setAutoDelete ( TRUE );
m_groupChain.setAutoDelete ( true );
m_name = "Unset:Faulty plugin";
}
@ -84,7 +84,7 @@ bool
KbfxPlasmaCanvasStack::contains ( TQString name )
{
//FIXME:Depricated Data Structure Needs fixing
if ( m_dict.contains ( name ) == true )
if ( m_dict.contains ( name ) )
return true;
else
return false;

@ -26,7 +26,7 @@ KbfxPlasmaCanvasView::KbfxPlasmaCanvasView ( TQWidget * parent,
TQCanvasView ( parent, name,fl )
{
viewport ()->setMouseTracking ( TRUE );
viewport ()->setMouseTracking ( true );
viewport ()->setAcceptDrops ( true );
this->setVScrollBarMode ( TQScrollView::AlwaysOff );
this->setHScrollBarMode ( TQScrollView::AlwaysOff );
@ -340,7 +340,7 @@ KbfxPlasmaCanvasView::expandAll ()
{
if ( m_currentView != 0 )
{
if ( ConfigInit ().m_startHidden == false )
if ( !ConfigInit().m_startHidden )
m_currentView->unfoldGroupAll ();
scroll ( 0, 0 );
}
@ -500,9 +500,7 @@ KbfxPlasmaCanvasView::search_R ( const TQString name )
if ( appGroup->count () <= 0 )
continue;
if ( visualGroup->addItem ( box ) == false )
{}
visualGroup->addItem( box );
KbfxDataGroup::Data dat = appGroup->getData ();
KbfxDataGroup::Data::Iterator it;
@ -524,9 +522,7 @@ KbfxPlasmaCanvasView::search_R ( const TQString name )
( KbfxPlasmaCanvasItem * ) boxwrapper->
item ( KbfxPlasmaCanvasItem::EXECUTABLE );
box->setSource ( * ( it.data () ) );
if ( visualGroup->addItem ( box ) == true )
{
}
visualGroup->addItem ( box );
}
visualGroup->move ( 0, m_scrollbar_top->height () );

@ -30,7 +30,7 @@ KbfxPlasmaIndexView::KbfxPlasmaIndexView ( TQWidget * parent, const char *name,
m_itemStack = new KbfxPlasmaCanvasStack ();
m_pluginLoaded = "";
m_itemStack->addGroup ( m_itemGroupList );
viewport ()->setMouseTracking ( TRUE );
viewport ()->setMouseTracking ( true );
m_currentPos = TQPoint ( 0, 0 );
m_mousePollTimer = new TQTimer ( this );

@ -23,7 +23,7 @@
#include "kbfxspinx.h"
bool KbfxSpinx::m_horizontal_position = TRUE;
bool KbfxSpinx::m_horizontal_position = true;
KbfxSpinx::KbfxSpinx ( const TQString& configFile, Type type, int actions, TQWidget *parent, const char *name )
: KPanelApplet ( configFile, type, actions, parent, name ),DCOPObject ( "KBFXInterface" )
@ -81,7 +81,7 @@ void KbfxSpinx::createKbfx()
l_path.append(l_user->loginName());
l_path.append("/");
l_watch->addDir(l_path);
l_watch->startScan( TRUE, FALSE);
l_watch->startScan( true, false);
connect ( l_watch, TQ_SIGNAL ( dirty(const TQString&) ),
this, TQ_SLOT ( dirtyReaload(const TQString&) ) );
delete l_user;
@ -220,7 +220,7 @@ void KbfxSpinx::showKmenu()
if ( !m_dcopClient->
call ( "kicker", "kicker", "popupKMenu(TQPoint)", data, replytype, rdata,
FALSE, -1 ) )
false, -1 ) )
{
kdWarning ()
<< "**KBFX-APPLET-FATAL_ERROR:Could not send DCOP command"
@ -261,13 +261,13 @@ int KbfxSpinx::widthForHeight ( int height ) const
if ( width_for_height != height || !m_horizontal_position )
{
if ( m_kicker_auto_adjust )
kbfxBtn->readjust( TRUE ); // Readjust for height
KbfxButton::m_sizeHeight = TRUE;
kbfxBtn->readjust( true ); // Readjust for height
KbfxButton::m_sizeHeight = true;
KbfxButton::m_size = height;
kbfxBtn->loadSkins();
width_for_height = height;
}
m_horizontal_position = TRUE;
m_horizontal_position = true;
return kbfxBtn->width();
}
@ -277,13 +277,13 @@ int KbfxSpinx::heightForWidth ( int width ) const
if ( height_for_width != width || m_horizontal_position)
{
if ( m_kicker_auto_adjust )
kbfxBtn->readjust( FALSE ); // Readjust for width
KbfxButton::m_sizeHeight = FALSE;
kbfxBtn->readjust( false ); // Readjust for width
KbfxButton::m_sizeHeight = false;
KbfxButton::m_size = width;
kbfxBtn->loadSkins();
height_for_width = width;
}
m_horizontal_position = FALSE;
m_horizontal_position = false;
return kbfxBtn->height();
}

@ -61,7 +61,7 @@ KbfxSpinxScrollBar::paintEvent ( TQPaintEvent * pe )
p.drawPixmap ( TQRect ( 0, 0, m_normal.width (), m_normal.height () ),
m_normal );
p.setPen ( TQColor ( 255,255,255 ) );
if ( m_pressed == false )
if ( !m_pressed )
p.setBrush ( TQColor ( 255,255,255 ) );
else
p.setBrush ( TQColor ( 0,0,0 ) );

@ -165,9 +165,9 @@ KbfxToolTip::setStartPos ( int _x_, int _y_ )
if ( _animate )
{
_logo_move_x = 0;
_hide_timer->start ( 10000, TRUE );
_move_timer->start ( _agent_anim->speed (), FALSE );
_update_timer->start ( 2, FALSE );
_hide_timer->start ( 10000, true );
_move_timer->start ( _agent_anim->speed (), false );
_update_timer->start ( 2, false );
}
move ( _x, _y );
@ -283,21 +283,21 @@ KbfxToolTip::paintEvent ( TQPaintEvent * pe )
TQPixmap ( TQImage (ConfigInit ().m_SpinxTooltipLogo ) ) );
}
let->setBold ( TRUE );
let->setBold ( true );
let->setPointSize ( 10 );
p.setFont ( *let );
p.setPen ( TQColor ( 61, 94, 129 ) );
p.drawText ( _dude_box.width () + 15, 30, TQString("KBFX") );
p.setPen ( TQColor ( 0, 0, 0 ) );
let->setBold ( FALSE );
let->setBold ( false );
let->setPointSize ( 8 );
p.setFont ( *let );
p.drawText ( ( _animate ) ? _dude_box.width () + 50 : _dude_box.width () + 4,
_dude_box.height () + 30, TQString ( "Version " ).append ( APPLICATION_VERSION ) );
p.setPen ( ConfigInit ().m_fontTooltipColor );
let->setBold ( TRUE );
let->setBold ( true );
let->setPointSize ( 8 );
p.setFont ( *let );

Loading…
Cancel
Save