diff options
author | Mavridis Philippe <[email protected]> | 2021-06-26 16:06:40 +0300 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2021-06-26 16:35:30 +0300 |
commit | 2bc11f9dc783f26bf99f44515e92e49e8d2348fc (patch) | |
tree | cf09be0be2bd1caea1d7faed0c0afdb7ccc3a45f /client/config/deKoratorconfig.cc | |
parent | 9ef5a045dd516e8223b7aa97a46ac94bbd5839ae (diff) | |
download | twin-style-dekorator-2bc11f9dc783f26bf99f44515e92e49e8d2348fc.tar.gz twin-style-dekorator-2bc11f9dc783f26bf99f44515e92e49e8d2348fc.zip |
Conversion Qt3→TQt
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'client/config/deKoratorconfig.cc')
-rw-r--r-- | client/config/deKoratorconfig.cc | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/client/config/deKoratorconfig.cc b/client/config/deKoratorconfig.cc index b3b686f..cae4fa9 100644 --- a/client/config/deKoratorconfig.cc +++ b/client/config/deKoratorconfig.cc @@ -34,14 +34,14 @@ #include <kconfig.h> #include <klocale.h> #include <kglobal.h> -#include <qbuttongroup.h> -#include <qgroupbox.h> -#include <qradiobutton.h> -#include <qwhatsthis.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qspinbox.h> -#include <qcheckbox.h> +#include <tqbuttongroup.h> +#include <tqgroupbox.h> +#include <tqradiobutton.h> +#include <tqwhatsthis.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqspinbox.h> +#include <tqcheckbox.h> #include <kcolorbutton.h> #include <klistview.h> @@ -56,8 +56,8 @@ // ------------- // Constructor -DeKoratorConfig::DeKoratorConfig( KConfig* config, QWidget* parent ) - : QObject( parent ), config_( 0 ), dialog_( 0 ) +DeKoratorConfig::DeKoratorConfig( KConfig* config, TQWidget* parent ) + : TQObject( parent ), config_( 0 ), dialog_( 0 ) { // create the configuration object config_ = new KConfig( "kwindeKoratorrc" ); @@ -102,19 +102,19 @@ DeKoratorConfig::DeKoratorConfig( KConfig* config, QWidget* parent ) connect( dialog_->colorizeInActFramesChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) ); connect( dialog_->colorizeInActButtonsChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) ); connect( dialog_->useAnimChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) ); - connect( dialog_->animateEfeectsCombo, SIGNAL( activated( const QString& ) ), SIGNAL( changed() ) ); + connect( dialog_->animateEfeectsCombo, SIGNAL( activated( const TQString& ) ), SIGNAL( changed() ) ); connect( dialog_->stepsSpinBox, SIGNAL( valueChanged( int ) ), SIGNAL( changed() ) ); connect( dialog_->intervalSpinBox, SIGNAL( valueChanged( int ) ), SIGNAL( changed() ) ); connect( dialog_->KeepAnimateChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) ); - connect( dialog_->hoverTypeCombo, SIGNAL( activated( const QString& ) ), SIGNAL( changed() ) ); + connect( dialog_->hoverTypeCombo, SIGNAL( activated( const TQString& ) ), SIGNAL( changed() ) ); connect( dialog_->effectsAmount_SpinBox, SIGNAL( valueChanged( int ) ), SIGNAL( changed() ) ); connect( dialog_->activeHighlightClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) ); connect( dialog_->inActiveHighlightClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) ); - connect( dialog_->decoColorizeComboBox, SIGNAL( activated( const QString& ) ), SIGNAL( changed() ) ); - connect( dialog_->buttonsColorizeComboBox, SIGNAL( activated( const QString& ) ), SIGNAL( changed() ) ); - // connect( dialog_->buttonsHoverColorizeComboBox, SIGNAL( activated( const QString& ) ), SIGNAL( changed() ) ); + connect( dialog_->decoColorizeComboBox, SIGNAL( activated( const TQString& ) ), SIGNAL( changed() ) ); + connect( dialog_->buttonsColorizeComboBox, SIGNAL( activated( const TQString& ) ), SIGNAL( changed() ) ); + // connect( dialog_->buttonsHoverColorizeComboBox, SIGNAL( activated( const TQString& ) ), SIGNAL( changed() ) ); // buttons connect( dialog_->useCusBtnClrChkBox, SIGNAL( clicked() ), SIGNAL( changed() ) ); @@ -137,17 +137,17 @@ DeKoratorConfig::DeKoratorConfig( KConfig* config, QWidget* parent ) connect( dialog_->shadeDownClrBtn, SIGNAL( clicked( ) ), SIGNAL( changed() ) ); // path's - connect( dialog_->framesPathKurl, SIGNAL( textChanged( const QString& ) ), SIGNAL( changed() ) ); + connect( dialog_->framesPathKurl, SIGNAL( textChanged( const TQString& ) ), SIGNAL( changed() ) ); dialog_->framesPathKurl->setMode( 2 ); - connect( dialog_->buttonsPathKurl, SIGNAL( textChanged( const QString& ) ), SIGNAL( changed() ) ); + connect( dialog_->buttonsPathKurl, SIGNAL( textChanged( const TQString& ) ), SIGNAL( changed() ) ); dialog_->buttonsPathKurl->setMode( 2 ); connect( dialog_->useMasks_Chkbox, SIGNAL( clicked() ), SIGNAL( changed() ) ); - connect( dialog_->masksPathKurl, SIGNAL( textChanged( const QString& ) ), SIGNAL( changed() ) ); + connect( dialog_->masksPathKurl, SIGNAL( textChanged( const TQString& ) ), SIGNAL( changed() ) ); dialog_->masksPathKurl->setMode( 2 ); // themes - connect( dialog_->themesKlstView, SIGNAL( selectionChanged( QListViewItem * ) ), - SLOT( themeSelected( QListViewItem * ) ) ); + connect( dialog_->themesKlstView, SIGNAL( selectionChanged( TQListViewItem * ) ), + SLOT( themeSelected( TQListViewItem * ) ) ); connect( dialog_->installthemeBtn, SIGNAL( clicked( ) ), SLOT( installNewTheme() ) ); connect( dialog_->removeThemBtn, SIGNAL( clicked( ) ), SLOT( removeSelectedTheme() ) ); connect( dialog_->applyThemeBtn, SIGNAL( clicked( ) ), SLOT( setTheme() ) ); @@ -186,14 +186,14 @@ void DeKoratorConfig::load( KConfig* ) // misc config_->setGroup( "MISC" ); - QString value = config_->readEntry( "TitleAlignment", "AlignHCenter" ); - QRadioButton *button = ( QRadioButton* ) dialog_->titlealign->child( value ); + TQString value = config_->readEntry( "TitleAlignment", "AlignHCenter" ); + TQRadioButton *button = ( TQRadioButton* ) dialog_->titlealign->child( value ); if ( button ) button->setChecked( TRUE ); dialog_->useMenuImageChkBox->setChecked( config_->readBoolEntry( "UseMenuImage", FALSE ) ); dialog_->ignoreAppIcnCol->setChecked( config_->readBoolEntry( "IgnoreAppIconCol", FALSE ) ); dialog_->dblClkCloseChkBox->setChecked( config_->readBoolEntry( "DblClkClose", FALSE ) ); dialog_->showBtmBorderChkBox->setChecked( config_->readBoolEntry( "ShowBtmBorder", FALSE ) ); - QColor color = QColor( 150, 150, 150 ); + TQColor color = TQColor( 150, 150, 150 ); dialog_->useShdtextChkBox->setChecked( config_->readBoolEntry( "UseShdtext", FALSE ) ); dialog_->activeShdtextXSpinBox->setValue( config_->readNumEntry( "ActiveShdtextX", 0 ) ); dialog_->activeShdtextYSpinBox->setValue( config_->readNumEntry( "ActiveShdtextY", 0 ) ); @@ -267,8 +267,8 @@ void DeKoratorConfig::save( KConfig* ) // misc config_->setGroup( "MISC" ); - QRadioButton *button = ( QRadioButton* ) dialog_->titlealign->selected(); - if ( button ) config_->writeEntry( "TitleAlignment", QString( button->name() ) ); + TQRadioButton *button = ( TQRadioButton* ) dialog_->titlealign->selected(); + if ( button ) config_->writeEntry( "TitleAlignment", TQString( button->name() ) ); config_->writeEntry( "UseMenuImage", dialog_->useMenuImageChkBox->isChecked() ); config_->writeEntry( "IgnoreAppIconCol", dialog_->ignoreAppIcnCol->isChecked() ); config_->writeEntry( "DblClkClose", dialog_->dblClkCloseChkBox->isChecked() ); @@ -346,8 +346,8 @@ void DeKoratorConfig::defaults() { // misc - QRadioButton * button = - ( QRadioButton* ) dialog_->titlealign->child( "AlignHCenter" ); + TQRadioButton * button = + ( TQRadioButton* ) dialog_->titlealign->child( "AlignHCenter" ); if ( button ) button->setChecked( TRUE ); dialog_->useMenuImageChkBox->setChecked( FALSE ); dialog_->ignoreAppIcnCol->setChecked( FALSE ); @@ -356,10 +356,10 @@ void DeKoratorConfig::defaults() dialog_->useShdtextChkBox->setChecked( FALSE ); dialog_->activeShdtextXSpinBox->setValue( 0 ); dialog_->activeShdtextYSpinBox->setValue( 0 ); - dialog_->activeShdColBtn->setColor( QColor( 150, 150, 150 ) ); + dialog_->activeShdColBtn->setColor( TQColor( 150, 150, 150 ) ); dialog_->inActiveShdtextXSpinBox->setValue( 0 ); dialog_->inActiveShdtextYSpinBox->setValue( 0 ); - dialog_->inActiveShdColBtn->setColor( QColor( 150, 150, 150 ) ); + dialog_->inActiveShdColBtn->setColor( TQColor( 150, 150, 150 ) ); dialog_->btnShiftXSpinBox->setValue( 0 ); dialog_->btnShiftYSpinBox->setValue( 0 ); @@ -377,8 +377,8 @@ void DeKoratorConfig::defaults() dialog_->hoverTypeCombo->setCurrentText( "To Gray" ); dialog_->effectsAmount_SpinBox->setValue( 5 ); - dialog_->activeHighlightClrBtn->setColor( QColor( 150, 150, 150 ) ); - dialog_->inActiveHighlightClrBtn->setColor( QColor( 150, 150, 150 ) ); + dialog_->activeHighlightClrBtn->setColor( TQColor( 150, 150, 150 ) ); + dialog_->inActiveHighlightClrBtn->setColor( TQColor( 150, 150, 150 ) ); dialog_->decoColorizeComboBox->setCurrentText( "Liquid Method" ); dialog_->buttonsColorizeComboBox->setCurrentText( "Liquid Method" ); // dialog_->buttonsHoverColorizeComboBox->setCurrentText( "Liquid Method" ); @@ -387,20 +387,20 @@ void DeKoratorConfig::defaults() dialog_->useCusBtnClrChkBox->setChecked( FALSE ); dialog_->cusColActBtnChkBox->setChecked( FALSE ); dialog_->cusColInActBtnChkBox->setChecked( FALSE ); - dialog_->closeClrBtn->setColor( QColor( 150, 150, 150 ) ); - dialog_->minClrBtn->setColor( QColor( 150, 150, 150 ) ); - dialog_->maxClrBtn->setColor( QColor( 150, 150, 150 ) ); - dialog_->restoreClrBtn->setColor( QColor( 150, 150, 150 ) ); - dialog_->helpClrBtn->setColor( QColor( 150, 150, 150 ) ); - dialog_->menuClrBtn->setColor( QColor( 150, 150, 150 ) ); - dialog_->stickyClrBtn->setColor( QColor( 150, 150, 150 ) ); - dialog_->stickyDownClrBtn->setColor( QColor( 150, 150, 150 ) ); - dialog_->aboveClrBtn->setColor( QColor( 150, 150, 150 ) ); - dialog_->aboveDownClrBtn->setColor( QColor( 150, 150, 150 ) ); - dialog_->belowClrBtn->setColor( QColor( 150, 150, 150 ) ); - dialog_->belowDownClrBtn->setColor( QColor( 150, 150, 150 ) ); - dialog_->shadeClrBtn->setColor( QColor( 150, 150, 150 ) ); - dialog_->shadeDownClrBtn->setColor( QColor( 150, 150, 150 ) ); + dialog_->closeClrBtn->setColor( TQColor( 150, 150, 150 ) ); + dialog_->minClrBtn->setColor( TQColor( 150, 150, 150 ) ); + dialog_->maxClrBtn->setColor( TQColor( 150, 150, 150 ) ); + dialog_->restoreClrBtn->setColor( TQColor( 150, 150, 150 ) ); + dialog_->helpClrBtn->setColor( TQColor( 150, 150, 150 ) ); + dialog_->menuClrBtn->setColor( TQColor( 150, 150, 150 ) ); + dialog_->stickyClrBtn->setColor( TQColor( 150, 150, 150 ) ); + dialog_->stickyDownClrBtn->setColor( TQColor( 150, 150, 150 ) ); + dialog_->aboveClrBtn->setColor( TQColor( 150, 150, 150 ) ); + dialog_->aboveDownClrBtn->setColor( TQColor( 150, 150, 150 ) ); + dialog_->belowClrBtn->setColor( TQColor( 150, 150, 150 ) ); + dialog_->belowDownClrBtn->setColor( TQColor( 150, 150, 150 ) ); + dialog_->shadeClrBtn->setColor( TQColor( 150, 150, 150 ) ); + dialog_->shadeDownClrBtn->setColor( TQColor( 150, 150, 150 ) ); // path's dialog_->framesPathKurl->setURL( "" ); @@ -414,7 +414,7 @@ void DeKoratorConfig::defaults() // ---------- // -void DeKoratorConfig::themeSelected( QListViewItem *item ) +void DeKoratorConfig::themeSelected( TQListViewItem *item ) { themes_->themeSelected( item, dialog_->previewLabael, dialog_->removeThemBtn ); } @@ -455,7 +455,7 @@ void DeKoratorConfig::setTheme() extern "C" { - QObject * allocate_config( KConfig * config, QWidget * parent ) + TQObject * allocate_config( KConfig * config, TQWidget * parent ) { return ( new DeKoratorConfig( config, parent ) ); } |