From 2bc11f9dc783f26bf99f44515e92e49e8d2348fc Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Sat, 26 Jun 2021 16:06:40 +0300 Subject: =?UTF-8?q?Conversion=20Qt3=E2=86=92TQt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mavridis Philippe --- client/config/Makefile.in | 2 +- client/config/configdialog.ui | 262 +++++++++++++++++++-------------------- client/config/deKoratorconfig.cc | 94 +++++++------- client/config/deKoratorconfig.h | 8 +- client/config/themes.cpp | 132 ++++++++++---------- client/config/themes.h | 28 ++--- client/config/themes.moc.cc | 72 +++++------ 7 files changed, 299 insertions(+), 299 deletions(-) (limited to 'client/config') diff --git a/client/config/Makefile.in b/client/config/Makefile.in index db931cb..ab4cbac 100644 --- a/client/config/Makefile.in +++ b/client/config/Makefile.in @@ -819,6 +819,6 @@ configdialog.cc: $(srcdir)/configdialog.ui configdialog.h configdialog.moc configdialog.h: $(srcdir)/configdialog.ui rm -rf configdialog.h; - $(UIC) $(srcdir)/configdialog.ui | $(PERL) -pi -e "s,public QWizard,public KWizard,g; s,#include ,#include ,g" >> configdialog.h ; + $(UIC) $(srcdir)/configdialog.ui | $(PERL) -pi -e "s,public QWizard,public KWizard,g; s,#include ,#include ,g" >> configdialog.h ; configdialog.moc: configdialog.h $(MOC) configdialog.h -o configdialog.moc diff --git a/client/config/configdialog.ui b/client/config/configdialog.ui index 0fd4ee1..bce071a 100644 --- a/client/config/configdialog.ui +++ b/client/config/configdialog.ui @@ -1,6 +1,6 @@ ConfigDialog - + ConfigDialog @@ -19,11 +19,11 @@ unnamed - + tabWidget2 - + tab @@ -34,7 +34,7 @@ unnamed - + generalbox @@ -51,7 +51,7 @@ unnamed - + titlealign @@ -65,7 +65,7 @@ unnamed - + AlignLeft @@ -79,7 +79,7 @@ - + AlignHCenter @@ -96,7 +96,7 @@ - + AlignRight @@ -112,7 +112,7 @@ - + buttonGroup6 @@ -123,7 +123,7 @@ unnamed - + useShdtextChkBox @@ -134,7 +134,7 @@ Alt+U - + layout15 @@ -142,7 +142,7 @@ unnamed - + buttonGroup7 @@ -156,7 +156,7 @@ unnamed - + layout11 @@ -164,7 +164,7 @@ unnamed - + textLabel1_5 @@ -175,7 +175,7 @@ X : - + activeShdtextXSpinBox @@ -189,7 +189,7 @@ -3 - + textLabel1_5_2 @@ -200,7 +200,7 @@ Y : - + activeShdtextYSpinBox @@ -216,7 +216,7 @@ - + layout10 @@ -224,7 +224,7 @@ unnamed - + textLabel1_6 @@ -250,7 +250,7 @@ - + buttonGroup7_2 @@ -264,7 +264,7 @@ unnamed - + layout11_2 @@ -272,7 +272,7 @@ unnamed - + textLabel1_5_4 @@ -283,7 +283,7 @@ X : - + inActiveShdtextXSpinBox @@ -297,7 +297,7 @@ -3 - + textLabel1_5_2_3 @@ -308,7 +308,7 @@ Y : - + inActiveShdtextYSpinBox @@ -324,7 +324,7 @@ - + layout14 @@ -332,7 +332,7 @@ unnamed - + textLabel1_6_3 @@ -362,7 +362,7 @@ - + buttonGroup9 @@ -373,7 +373,7 @@ unnamed - + layout17 @@ -381,7 +381,7 @@ unnamed - + layout16 @@ -389,7 +389,7 @@ unnamed - + textLabel1_5_3 @@ -397,7 +397,7 @@ X : - + btnShiftXSpinBox @@ -408,7 +408,7 @@ -3 - + textLabel1_5_2_2 @@ -416,7 +416,7 @@ Y : - + btnShiftYSpinBox @@ -450,7 +450,7 @@ - + useMenuImageChkBox @@ -461,7 +461,7 @@ Alt+F - + ignoreAppIcnCol @@ -469,7 +469,7 @@ Ignore app icon colorizing - + dblClkCloseChkBox @@ -480,7 +480,7 @@ Alt+W - + showBtmBorderChkBox @@ -512,7 +512,7 @@ - + TabPage @@ -523,7 +523,7 @@ unnamed - + buttonGroup2 @@ -534,7 +534,7 @@ unnamed - + layout19 @@ -542,7 +542,7 @@ unnamed - + buttonGroup14 @@ -553,7 +553,7 @@ unnamed - + colorizeActFramesChkBox @@ -564,7 +564,7 @@ Alt+F - + colorizeActButtonsChkBox @@ -577,7 +577,7 @@ - + buttonGroup14_2 @@ -588,7 +588,7 @@ unnamed - + colorizeInActFramesChkBox @@ -599,7 +599,7 @@ Alt+F - + colorizeInActButtonsChkBox @@ -616,7 +616,7 @@ - + buttonGroup5 @@ -627,7 +627,7 @@ unnamed - + useAnimChkBox @@ -638,7 +638,7 @@ Alt+U - + layout18 @@ -646,7 +646,7 @@ unnamed - + buttonGroup12 @@ -657,7 +657,7 @@ unnamed - + Intensity @@ -695,7 +695,7 @@ false - + layout37 @@ -703,7 +703,7 @@ unnamed - + textLabel1_8 @@ -714,7 +714,7 @@ Steps : - + stepsSpinBox @@ -728,7 +728,7 @@ 1 - + textLabel2_5 @@ -739,7 +739,7 @@ Interval - + intervalSpinBox @@ -755,7 +755,7 @@ - + KeepAnimateChkBox @@ -765,7 +765,7 @@ - + buttonGroup11 @@ -776,7 +776,7 @@ unnamed - + To Gray @@ -806,7 +806,7 @@ hoverTypeCombo - + layout14 @@ -814,7 +814,7 @@ unnamed - + textLabel1_4 @@ -822,7 +822,7 @@ Amount : - + effectsAmount_SpinBox @@ -839,7 +839,7 @@ - + buttonGroup13 @@ -850,7 +850,7 @@ unnamed - + layout19 @@ -858,7 +858,7 @@ unnamed - + layout17 @@ -866,7 +866,7 @@ unnamed - + textLabel1_3 @@ -884,7 +884,7 @@ - + layout18 @@ -892,7 +892,7 @@ unnamed - + textLabel1_3_2 @@ -916,7 +916,7 @@ - + buttonGroup5_2 @@ -927,7 +927,7 @@ unnamed - + layout38 @@ -935,7 +935,7 @@ unnamed - + textLabel2_4 @@ -943,7 +943,7 @@ Deco's - + Liquid Method @@ -965,7 +965,7 @@ - + layout39 @@ -973,7 +973,7 @@ unnamed - + textLabel3 @@ -981,7 +981,7 @@ Buttons - + Liquid Method @@ -1024,7 +1024,7 @@ - + TabPage @@ -1035,7 +1035,7 @@ unnamed - + useCusBtnClrChkBox @@ -1043,7 +1043,7 @@ Use custom buttons colors - + buttonGroup16 @@ -1057,7 +1057,7 @@ unnamed - + textLabel1_7 @@ -1065,7 +1065,7 @@ Apply custom colors to: - + layout37 @@ -1073,7 +1073,7 @@ unnamed - + cusColActBtnChkBox @@ -1081,7 +1081,7 @@ Active buttons - + cusColInActBtnChkBox @@ -1108,7 +1108,7 @@ - + layout42 @@ -1116,7 +1116,7 @@ unnamed - + layout41 @@ -1124,7 +1124,7 @@ unnamed - + layout38 @@ -1132,7 +1132,7 @@ unnamed - + textLabel9 @@ -1150,7 +1150,7 @@ - + layout25 @@ -1158,7 +1158,7 @@ unnamed - + textLabel1 @@ -1176,7 +1176,7 @@ - + layout28 @@ -1184,7 +1184,7 @@ unnamed - + textLabel4_2 @@ -1202,7 +1202,7 @@ - + layout29 @@ -1210,7 +1210,7 @@ unnamed - + textLabel5 @@ -1228,7 +1228,7 @@ - + layout32 @@ -1236,7 +1236,7 @@ unnamed - + textLabel7 @@ -1254,7 +1254,7 @@ - + layout28_2 @@ -1262,7 +1262,7 @@ unnamed - + textLabel4_2_2 @@ -1280,7 +1280,7 @@ - + layout31_2 @@ -1288,7 +1288,7 @@ unnamed - + textLabel6_2 @@ -1308,7 +1308,7 @@ - + layout36 @@ -1316,7 +1316,7 @@ unnamed - + layout27 @@ -1324,7 +1324,7 @@ unnamed - + textLabel3_2 @@ -1342,7 +1342,7 @@ - + layout26 @@ -1350,7 +1350,7 @@ unnamed - + textLabel2_2 @@ -1368,7 +1368,7 @@ - + layout33_2 @@ -1376,7 +1376,7 @@ unnamed - + textLabel8_2 @@ -1394,7 +1394,7 @@ - + layout31 @@ -1402,7 +1402,7 @@ unnamed - + textLabel6 @@ -1420,7 +1420,7 @@ - + layout33 @@ -1428,7 +1428,7 @@ unnamed - + textLabel8 @@ -1446,7 +1446,7 @@ - + layout29_2 @@ -1454,7 +1454,7 @@ unnamed - + textLabel5_2 @@ -1472,7 +1472,7 @@ - + layout32_2 @@ -1480,7 +1480,7 @@ unnamed - + textLabel7_2 @@ -1523,7 +1523,7 @@ - + TabPage @@ -1534,7 +1534,7 @@ unnamed - + buttonGroup3 @@ -1545,7 +1545,7 @@ unnamed - + textLabel1_2 @@ -1558,7 +1558,7 @@ framesPathKurl - + textLabel2 @@ -1571,7 +1571,7 @@ buttonsPathKurl - + useMasks_Chkbox @@ -1582,7 +1582,7 @@ Alt+U - + textLabel2_3 @@ -1622,7 +1622,7 @@ - + TabPage @@ -1633,7 +1633,7 @@ unnamed - + buttonGroup10 @@ -1644,7 +1644,7 @@ unnamed - + layout12 @@ -1669,7 +1669,7 @@ - + previewLabael @@ -1728,7 +1728,7 @@ true - + layout13 @@ -1736,7 +1736,7 @@ unnamed - + installthemeBtn @@ -1744,7 +1744,7 @@ Install Ne&w Theme - + removeThemBtn @@ -1755,7 +1755,7 @@ Alt+E - + applyThemeBtn @@ -1770,7 +1770,7 @@ - + TabPage @@ -1781,7 +1781,7 @@ unnamed - + textEdit1 @@ -1887,7 +1887,7 @@ Allways start up building your theme from the template-theme. - + tab 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 #include #include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -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 ) ); } diff --git a/client/config/deKoratorconfig.h b/client/config/deKoratorconfig.h index 0505c98..399002f 100644 --- a/client/config/deKoratorconfig.h +++ b/client/config/deKoratorconfig.h @@ -34,18 +34,18 @@ #ifndef EXAMPLECONFIG_H #define EXAMPLECONFIG_H -#include +#include class KConfig; class ConfigDialog; class IconThemesConfig; -class DeKoratorConfig : public QObject +class DeKoratorConfig : public TQObject { Q_OBJECT public: - DeKoratorConfig( KConfig* config, QWidget* parent ); + DeKoratorConfig( KConfig* config, TQWidget* parent ); ~DeKoratorConfig(); signals: @@ -58,7 +58,7 @@ public slots: protected slots: - void themeSelected( QListViewItem *item ); + void themeSelected( TQListViewItem *item ); void selectionChanged( int ); void installNewTheme(); void removeSelectedTheme(); diff --git a/client/config/themes.cpp b/client/config/themes.cpp index f612ad6..4820954 100644 --- a/client/config/themes.cpp +++ b/client/config/themes.cpp @@ -36,10 +36,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -64,9 +64,9 @@ #include #endif -#include -#include -#include +#include +#include +#include #include "themes.h" #include @@ -77,7 +77,7 @@ // ---------- // -IconThemesConfig::IconThemesConfig( QWidget *parent, KListView *themesView /*, QPushButton *removethemeBtn*/ ) +IconThemesConfig::IconThemesConfig( TQWidget *parent, KListView *themesView /*, TQPushButton *removethemeBtn*/ ) { parent_ = parent; themesView_ = themesView; @@ -99,9 +99,9 @@ IconThemesConfig::~IconThemesConfig() // ---------- // -QListViewItem *IconThemesConfig::iconThemeItem( const QString &name ) +TQListViewItem *IconThemesConfig::iconThemeItem( const TQString &name ) { - QListViewItem * item; + TQListViewItem * item; for ( item = themesView_->firstChild(); item ; item = item->nextSibling() ) if ( item->text( 0 ) == name ) return item; @@ -118,38 +118,38 @@ void IconThemesConfig::loadThemes() { themesView_->clear(); m_themeNames.clear(); - QStringList themelist; - QString name; - QString place; - QStringList::Iterator it, itj; - QStringList themesDirs; + TQStringList themelist; + TQString name; + TQString place; + TQStringList::Iterator it, itj; + TQStringList themesDirs; // if no local deKorator folders - if ( ! QDir( QDir::homeDirPath() + "/.kde/share/apps/" ).exists( "deKorator" ) ) + if ( ! TQDir( TQDir::homeDirPath() + "/.kde/share/apps/" ).exists( "deKorator" ) ) { - qWarning( "no dirs, will make them..." ); - KIO::mkdir( QDir::homeDirPath() + "/.kde/share/apps/deKorator/" ); - KIO::mkdir( QDir::homeDirPath() + "/.kde/share/apps/deKorator/themes/" ); + tqWarning( "no dirs, will make them..." ); + KIO::mkdir( TQDir::homeDirPath() + "/.kde/share/apps/deKorator/" ); + KIO::mkdir( TQDir::homeDirPath() + "/.kde/share/apps/deKorator/themes/" ); } else { - qWarning( "exist" ); + tqWarning( "exist" ); } themesDirs = KGlobal::dirs() ->findDirs( "data", "deKorator/themes" ) ; for ( it = themesDirs.begin(); it != themesDirs.end(); ++it ) { - QDir dir = QDir( *it ); + TQDir dir = TQDir( *it ); themelist = dir.entryList( "*-theme" ); for ( itj = themelist.begin(); itj != themelist.end(); ++itj ) { place = *it; - name = ( QString ) * itj; + name = ( TQString ) * itj; - themesView_->insertItem( new QListViewItem( themesView_, name ) ); + themesView_->insertItem( new TQListViewItem( themesView_, name ) ); m_themeNames.insert( name, place ); } @@ -164,7 +164,7 @@ void IconThemesConfig::loadThemes() void IconThemesConfig::installNewTheme() { - KURL themeURL = KURLRequesterDlg::getURL( QString::null, parent_, + KURL themeURL = KURLRequesterDlg::getURL( TQString::null, parent_, i18n( "Drag or Type Theme URL" ) ); kdDebug() << themeURL.prettyURL() << endl; @@ -172,11 +172,11 @@ void IconThemesConfig::installNewTheme() return ; // themeTmpFile contains the name of the downloaded file - QString themeTmpFile; + TQString themeTmpFile; if ( !KIO::NetAccess::download( themeURL, themeTmpFile, parent_ ) ) { - QString sorryText; + TQString sorryText; if ( themeURL.isLocalFile() ) sorryText = i18n( "Unable to find the deKorator theme archive %1." ); else @@ -187,10 +187,10 @@ void IconThemesConfig::installNewTheme() } // - QStringList themesNames = findThemeDirs( themeTmpFile ); + TQStringList themesNames = findThemeDirs( themeTmpFile ); if ( themesNames.isEmpty() ) { - QString invalidArch( i18n( "The file is not a valid deKorator theme archive." ) ); + TQString invalidArch( i18n( "The file is not a valid deKorator theme archive." ) ); KMessageBox::error( parent_, invalidArch ); KIO::NetAccess::removeTempFile( themeTmpFile ); @@ -200,8 +200,8 @@ void IconThemesConfig::installNewTheme() if ( !installThemes( themesNames, themeTmpFile ) ) { //FIXME: make me able to know what is wrong.... - // QStringList instead of bool? - QString somethingWrong = + // TQStringList instead of bool? + TQString somethingWrong = i18n( "A problem occurred during the installation process; " "however, most of the themes in the archive have been installed" ); KMessageBox::error( parent_, somethingWrong ); @@ -211,9 +211,9 @@ void IconThemesConfig::installNewTheme() loadThemes(); - QStringList::Iterator cur = themesNames.at( 0 ); + TQStringList::Iterator cur = themesNames.at( 0 ); - QListViewItem *item = iconThemeItem( *cur ); + TQListViewItem *item = iconThemeItem( *cur ); themesView_->setSelected( item, true ); } @@ -222,14 +222,14 @@ void IconThemesConfig::installNewTheme() // ---------- // -bool IconThemesConfig::installThemes( const QStringList &themes, const QString &archiveName ) +bool IconThemesConfig::installThemes( const TQStringList &themes, const TQString &archiveName ) { bool everythingOk = true; - QString localThemesDir = QDir::homeDirPath() + "/.kde/share/apps/deKorator/themes/"; + TQString localThemesDir = TQDir::homeDirPath() + "/.kde/share/apps/deKorator/themes/"; // KProgressDialog progressDiag( parent_, "themeinstallprogress", i18n( "Installing icon themes" ), - QString::null, + TQString::null, true ); progressDiag.setAutoClose( true ); progressDiag.progressBar() ->setTotalSteps( themes.count() ); @@ -242,7 +242,7 @@ bool IconThemesConfig::installThemes( const QStringList &themes, const QString & const KArchiveDirectory* rootDir = archive.directory(); KArchiveDirectory* currentTheme; - for ( QStringList::ConstIterator it = themes.begin(); it != themes.end(); ++it ) + for ( TQStringList::ConstIterator it = themes.begin(); it != themes.end(); ++it ) { progressDiag.setLabel( i18n( "Installing %1 theme" ) @@ -276,9 +276,9 @@ bool IconThemesConfig::installThemes( const QStringList &themes, const QString & // ---------- // -QStringList IconThemesConfig::findThemeDirs( const QString &archiveName ) +TQStringList IconThemesConfig::findThemeDirs( const TQString &archiveName ) { - QStringList foundThemes; + TQStringList foundThemes; KTar archive( archiveName ); archive.open( IO_ReadOnly ); @@ -288,11 +288,11 @@ QStringList IconThemesConfig::findThemeDirs( const QString &archiveName ) KArchiveDirectory* subDir = 0L; // iterate all the dirs looking for an index.theme or index.desktop file - QStringList entries = themeDir->entries(); - for ( QStringList::Iterator it = entries.begin(); it != entries.end(); ++it ) + TQStringList entries = themeDir->entries(); + for ( TQStringList::Iterator it = entries.begin(); it != entries.end(); ++it ) { - QString name = ( QString ) * it; - QRegExp rxp = QRegExp( "*-theme", TRUE, TRUE ); + TQString name = ( TQString ) * it; + TQRegExp rxp = TQRegExp( "*-theme", TRUE, TRUE ); int i = name.contains( rxp ); if ( !i ) { @@ -306,7 +306,7 @@ QStringList IconThemesConfig::findThemeDirs( const QString &archiveName ) if ( subDir && ( subDir->entry( "deco" ) != NULL && subDir->entry( "buttons" ) != NULL && subDir->entry( "masks" ) != NULL ) ) { foundThemes.append( subDir->name() ); - //qWarning( "found" ); + //tqWarning( "found" ); } } } @@ -323,11 +323,11 @@ QStringList IconThemesConfig::findThemeDirs( const QString &archiveName ) void IconThemesConfig::removeSelectedTheme() { - QListViewItem * selected = themesView_->selectedItem(); + TQListViewItem * selected = themesView_->selectedItem(); if ( !selected ) return ; - QString question = i18n( "Are you sure you want to remove the " + TQString question = i18n( "Are you sure you want to remove the " "%1 theme?
" "
" "This will delete the files installed by this theme.
" ). @@ -336,9 +336,9 @@ void IconThemesConfig::removeSelectedTheme() int r = KMessageBox::warningContinueCancel( parent_, question, i18n( "Confirmation" ), KStdGuiItem::del() ); if ( r != KMessageBox::Continue ) return ; - QString delTheme = selected->text( 0 ); - QString deldirStr = QDir::homeDirPath() + "/.kde/share/apps/deKorator/themes/" + delTheme; - QDir dir = QDir( deldirStr ); + TQString delTheme = selected->text( 0 ); + TQString deldirStr = TQDir::homeDirPath() + "/.kde/share/apps/deKorator/themes/" + delTheme; + TQDir dir = TQDir( deldirStr ); dir.rename( deldirStr, deldirStr + "del" ); KIO::del( KURL( deldirStr + "del" ) ); @@ -351,25 +351,25 @@ void IconThemesConfig::removeSelectedTheme() // ---------- // -void IconThemesConfig::themeSelected( QListViewItem *item, QLabel *previewLabel, QPushButton *btn ) +void IconThemesConfig::themeSelected( TQListViewItem *item, TQLabel *previewLabel, TQPushButton *btn ) { - QPixmap previewPix, topLeftCornerBg, leftButtonsBg, leftTitleBg, midTitleBg, rightTitleBg, rightButtonsBg, topRightCornerBg; - QPainter painter; + TQPixmap previewPix, topLeftCornerBg, leftButtonsBg, leftTitleBg, midTitleBg, rightTitleBg, rightButtonsBg, topRightCornerBg; + TQPainter painter; int w, h, x; - QString dirName( m_themeNames[ item->text( 0 ) ] ); + TQString dirName( m_themeNames[ item->text( 0 ) ] ); if ( dirName.contains( "home" ) ) { - //qWarning("true"); + //tqWarning("true"); btn->setEnabled( true ); } else { btn->setEnabled( false ); - //qWarning("false"); + //tqWarning("false"); } - QString dirNameStr = dirName + item->text( 0 ) + "/deco/" ; + TQString dirNameStr = dirName + item->text( 0 ) + "/deco/" ; topLeftCornerBg.load( dirNameStr + "topLeftCornerBg.png" ); leftButtonsBg.load( dirNameStr + "leftButtonsBg" ); leftTitleBg.load( dirNameStr + "leftTitleBg.png" ); @@ -381,23 +381,23 @@ void IconThemesConfig::themeSelected( QListViewItem *item, QLabel *previewLabel, w = topLeftCornerBg.width() + leftButtonsBg.width() + leftTitleBg.width() + midTitleBg.width() + rightTitleBg.width() + rightButtonsBg.width() + topRightCornerBg.width() + 8; h = midTitleBg.height() + 8; previewPix.resize( w, h ); - //qWarning("%d",w); + //tqWarning("%d",w); painter.begin( &previewPix ); // paint outer rect - painter.fillRect( 0, 0, w, h, QColor( 20, 20, 20 ) ); + painter.fillRect( 0, 0, w, h, TQColor( 20, 20, 20 ) ); - painter.setPen( QColor( 60, 60, 60 ) ); + painter.setPen( TQColor( 60, 60, 60 ) ); painter.drawRect( 0, 0, w , h ); - painter.setPen( QColor( 80, 80, 80 ) ); + painter.setPen( TQColor( 80, 80, 80 ) ); painter.drawRect( 1, 1, w - 2 , h - 2 ); - painter.setPen( QColor( 180, 180, 180 ) ); + painter.setPen( TQColor( 180, 180, 180 ) ); painter.drawLine( w - 1, 1, w - 1, h - 1 ); painter.drawLine( 1, h - 1, w - 2, h - 1 ); - painter.setPen( QColor( 150, 150, 150 ) ); + painter.setPen( TQColor( 150, 150, 150 ) ); painter.drawLine( w - 2, 2, w - 2, h - 2 ); painter.drawLine( 2, h - 2, w - 3, h - 2 ); @@ -424,7 +424,7 @@ void IconThemesConfig::themeSelected( QListViewItem *item, QLabel *previewLabel, x += rightButtonsBg.width(); painter.drawPixmap( x, 4, topRightCornerBg ); - painter.setPen( QColor( 0, 0, 0 ) ); + painter.setPen( TQColor( 0, 0, 0 ) ); painter.drawLine( 4, h - 5, w - 4 , h - 5 ); painter.end(); @@ -440,14 +440,14 @@ void IconThemesConfig::themeSelected( QListViewItem *item, QLabel *previewLabel, void IconThemesConfig::setTheme( KURLRequester *framesPath, KURLRequester *buttonsPath, KURLRequester *masksPath ) { - QListViewItem * selected = themesView_->selectedItem(); + TQListViewItem * selected = themesView_->selectedItem(); if ( !selected ) return ; - QString dirName( m_themeNames[ selected->text( 0 ) ] ); + TQString dirName( m_themeNames[ selected->text( 0 ) ] ); - QString setTheme = selected->text( 0 ); - QString setThemeStr = dirName + setTheme; + TQString setTheme = selected->text( 0 ); + TQString setThemeStr = dirName + setTheme; framesPath->setURL( setThemeStr + "/deco" ); buttonsPath->setURL( setThemeStr + "/buttons" ); diff --git a/client/config/themes.h b/client/config/themes.h index feb2cf5..238bbe1 100644 --- a/client/config/themes.h +++ b/client/config/themes.h @@ -35,39 +35,39 @@ #define ICONTHEMES_H #include -#include +#include #include -class QPushButton; +class TQPushButton; class DeviceManager; -class QCheckBox; -class QStringList; +class TQCheckBox; +class TQStringList; -class IconThemesConfig : public QObject +class IconThemesConfig : public TQObject { Q_OBJECT public: - IconThemesConfig( QWidget *parent, KListView *themesView/*, QPushButton *removethemeBtn*/ ); + IconThemesConfig( TQWidget *parent, KListView *themesView/*, TQPushButton *removethemeBtn*/ ); virtual ~IconThemesConfig(); void loadThemes(); - bool installThemes( const QStringList &themes, const QString &archiveName ); - QStringList findThemeDirs( const QString &archiveName ); - void themeSelected( QListViewItem *item, QLabel *preview, QPushButton *btn ); + bool installThemes( const TQStringList &themes, const TQString &archiveName ); + TQStringList findThemeDirs( const TQString &archiveName ); + void themeSelected( TQListViewItem *item, TQLabel *preview, TQPushButton *btn ); void installNewTheme(); void removeSelectedTheme(); void setTheme( KURLRequester *framesPath, KURLRequester *buttonsPath, KURLRequester *masksPath ); private: - QListViewItem *iconThemeItem( const QString &name ); + TQListViewItem *iconThemeItem( const TQString &name ); KListView *themesView_; - QWidget *parent_; - //QPushButton *removeThemeBtn_; - QListViewItem *m_defaultTheme; - QMap m_themeNames; + TQWidget *parent_; + //TQPushButton *removeThemeBtn_; + TQListViewItem *m_defaultTheme; + TQMap m_themeNames; }; #endif // ICONTHEMES_H diff --git a/client/config/themes.moc.cc b/client/config/themes.moc.cc index 111855b..d64c1a9 100644 --- a/client/config/themes.moc.cc +++ b/client/config/themes.moc.cc @@ -2,20 +2,20 @@ ** IconThemesConfig meta object code from reading C++ file 'themes.h' ** ** Created: Wed Dec 7 20:20:14 2005 -** by: The Qt MOC ($Id: qt/moc_yacc.cpp 3.3.5 edited Sep 2 14:41 $) +** by: The TQt MOC ($Id: qt/moc_yacc.cpp 3.3.5 edited Sep 2 14:41 $) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #undef QT_NO_COMPAT #include "themes.h" -#include -#include +#include +#include #include #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26) #error "This file was generated using the moc from 3.3.5. It" -#error "cannot be used with the include files from this version of Qt." +#error "cannot be used with the include files from this version of TQt." #error "(The moc has changed too much.)" #endif @@ -24,46 +24,46 @@ const char *IconThemesConfig::className() const return "IconThemesConfig"; } -QMetaObject *IconThemesConfig::metaObj = 0; -static QMetaObjectCleanUp cleanUp_IconThemesConfig( "IconThemesConfig", &IconThemesConfig::staticMetaObject ); +TQMetaObject *IconThemesConfig::metaObj = 0; +static TQMetaObjectCleanUp cleanUp_IconThemesConfig( "IconThemesConfig", &IconThemesConfig::staticMetaObject ); #ifndef QT_NO_TRANSLATION -QString IconThemesConfig::tr( const char *s, const char *c ) +TQString IconThemesConfig::tr( const char *s, const char *c ) { - if ( qApp ) - return qApp->translate( "IconThemesConfig", s, c, QApplication::DefaultCodec ); + if ( tqApp ) + return tqApp->translate( "IconThemesConfig", s, c, TQApplication::DefaultCodec ); else - return QString::fromLatin1( s ); + return TQString::fromLatin1( s ); } #ifndef QT_NO_TRANSLATION_UTF8 -QString IconThemesConfig::trUtf8( const char *s, const char *c ) +TQString IconThemesConfig::trUtf8( const char *s, const char *c ) { - if ( qApp ) - return qApp->translate( "IconThemesConfig", s, c, QApplication::UnicodeUTF8 ); + if ( tqApp ) + return tqApp->translate( "IconThemesConfig", s, c, TQApplication::UnicodeUTF8 ); else - return QString::fromUtf8( s ); + return TQString::fromUtf8( s ); } #endif // QT_NO_TRANSLATION_UTF8 #endif // QT_NO_TRANSLATION -QMetaObject* IconThemesConfig::staticMetaObject() +TQMetaObject* IconThemesConfig::staticMetaObject() { if ( metaObj ) return metaObj; - QMetaObject* parentObject = KCModule::staticMetaObject(); - static const QUParameter param_slot_0[] = { - { "item", &static_QUType_ptr, "QListViewItem", QUParameter::In } + TQMetaObject* parentObject = KCModule::staticMetaObject(); + static const TQUParameter param_slot_0[] = { + { "item", &static_QUType_ptr, "TQListViewItem", TQUParameter::In } }; - static const QUMethod slot_0 = {"themeSelected", 1, param_slot_0 }; - static const QUMethod slot_1 = {"installNewTheme", 0, 0 }; - static const QUMethod slot_2 = {"removeSelectedTheme", 0, 0 }; - static const QMetaData slot_tbl[] = { - { "themeSelected(QListViewItem*)", &slot_0, QMetaData::Protected }, - { "installNewTheme()", &slot_1, QMetaData::Protected }, - { "removeSelectedTheme()", &slot_2, QMetaData::Protected } + static const TQUMethod slot_0 = {"themeSelected", 1, param_slot_0 }; + static const TQUMethod slot_1 = {"installNewTheme", 0, 0 }; + static const TQUMethod slot_2 = {"removeSelectedTheme", 0, 0 }; + static const TQMetaData slot_tbl[] = { + { "themeSelected(TQListViewItem*)", &slot_0, TQMetaData::Protected }, + { "installNewTheme()", &slot_1, TQMetaData::Protected }, + { "removeSelectedTheme()", &slot_2, TQMetaData::Protected } }; - metaObj = QMetaObject::new_metaobject( + metaObj = TQMetaObject::new_metaobject( "IconThemesConfig", parentObject, slot_tbl, 3, 0, 0, @@ -76,35 +76,35 @@ QMetaObject* IconThemesConfig::staticMetaObject() return metaObj; } -void* IconThemesConfig::qt_cast( const char* clname ) +void* IconThemesConfig::tqt_cast( const char* clname ) { if ( !qstrcmp( clname, "IconThemesConfig" ) ) return this; - return KCModule::qt_cast( clname ); + return KCModule::tqt_cast( clname ); } -bool IconThemesConfig::qt_invoke( int _id, QUObject* _o ) +bool IconThemesConfig::tqt_invoke( int _id, TQUObject* _o ) { switch ( _id - staticMetaObject()->slotOffset() ) { - case 0: themeSelected((QListViewItem*)static_QUType_ptr.get(_o+1)); break; + case 0: themeSelected((TQListViewItem*)static_QUType_ptr.get(_o+1)); break; case 1: installNewTheme(); break; case 2: removeSelectedTheme(); break; default: - return KCModule::qt_invoke( _id, _o ); + return KCModule::tqt_invoke( _id, _o ); } return TRUE; } -bool IconThemesConfig::qt_emit( int _id, QUObject* _o ) +bool IconThemesConfig::tqt_emit( int _id, TQUObject* _o ) { - return KCModule::qt_emit(_id,_o); + return KCModule::tqt_emit(_id,_o); } #ifndef QT_NO_PROPERTIES -bool IconThemesConfig::qt_property( int id, int f, QVariant* v) +bool IconThemesConfig::tqt_property( int id, int f, TQVariant* v) { - return KCModule::qt_property( id, f, v); + return KCModule::tqt_property( id, f, v); } -bool IconThemesConfig::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; } +bool IconThemesConfig::tqt_static_property( TQObject* , int , int , TQVariant* ){ return FALSE; } #endif // QT_NO_PROPERTIES -- cgit v1.2.1