diff options
Diffstat (limited to 'krename/krenameimpl.h')
-rw-r--r-- | krename/krenameimpl.h | 181 |
1 files changed, 91 insertions, 90 deletions
diff --git a/krename/krenameimpl.h b/krename/krenameimpl.h index ae62b7b..f6d728e 100644 --- a/krename/krenameimpl.h +++ b/krename/krenameimpl.h @@ -41,35 +41,36 @@ class MyHelpCombo; class MyLabel; class Plugin; class PluginLoader; -class QButtonGroup; -class QCheckBox; -class QGroupBox; -class QFileInfo; -class QFrame; -class QHBoxLayout; -class QLabel; -class QLineEdit; -class QListView; -class QPushButton; -class QRect; -class QWidgetStack; -class QRadioButton; -class QVBoxLayout; -class QVGroupBox; -class QWidget; +class TQButtonGroup; +class TQCheckBox; +class TQGroupBox; +class TQFileInfo; +class TQFrame; +class TQHBoxLayout; +class TQLabel; +class TQLineEdit; +class TQListView; +class TQPushButton; +class TQRect; +class TQWidgetStack; +class TQRadioButton; +class TQVBoxLayout; +class TQVGroupBox; +class TQWidget; #include <kguiitem.h> -KPushButton* createButton( KGuiItem item, QWidget* parent ); +KPushButton* createButton( KGuiItem item, TQWidget* tqparent ); -class KRenameImpl : public QObject, public KRenameDCOP { +class KRenameImpl : public TQObject, public KRenameDCOP { Q_OBJECT + TQ_OBJECT friend class ProfileManager; friend class ProfileDlg; friend class tabs; public: - KRenameImpl( QWidget* p, KMenuBar* m, QPushButton* finish ); + KRenameImpl( TQWidget* p, KMenuBar* m, TQPushButton* finish ); ~KRenameImpl(); void setWizardMode( bool mode ); @@ -81,27 +82,27 @@ class KRenameImpl : public QObject, public KRenameDCOP { void addFileOrDir( const KURL & name ); void setup( bool wizardmode ); - void changeParent( QWidget* p, KMenuBar* m, QPushButton* finish, QRect r ); - static QWidget* launch( QRect rect, const KURL::List & list, KRenameImpl* impl = 0, bool loadprofile = true ); + void changeParent( TQWidget* p, KMenuBar* m, TQPushButton* finish, TQRect r ); + static TQWidget* launch( TQRect rect, const KURL::List & list, KRenameImpl* impl = 0, bool loadprofile = true ); /** DCOP functions we have to implement */ - void addFileOrDir( const QString & name ); - const QString fileNameTemplate() const; + void addFileOrDir( const TQString & name ); + const TQString fileNameTemplate() const; inline int counterStart() const; - void setExtensionTemplate( const QString & t ); - const QString extensionTemplate() const; + void setExtensionTemplate( const TQString & t ); + const TQString extensionTemplate() const; void setUseExtension( bool b ); bool useExtension() const; - QStringList tokens() const; + TQStringList tokens() const; - QString parseString( const QString & token, const QString & string ); - void addDir( const QString & name, const QString & filter, bool recursive, bool hidden, bool dirnames ); + TQString parseString( const TQString & token, const TQString & string ); + void addDir( const TQString & name, const TQString & filter, bool recursive, bool hidden, bool dirnames ); - const QString title( int index ) const; + const TQString title( int index ) const; /** @returns true if the user has specified a profile on the commandline * other wise false is returned @@ -109,11 +110,11 @@ class KRenameImpl : public QObject, public KRenameDCOP { inline bool hasCommandlineProfile() const; public slots: - void setFileNameTemplate( const QString & t ); + void setFileNameTemplate( const TQString & t ); void setCounterStart( int index ); signals: - void pageDone( QWidget* page, const QString & title ); + void pageDone( TQWidget* page, const TQString & title ); void showPage( int page ); void enableFinish( bool b ); @@ -130,7 +131,7 @@ class KRenameImpl : public QObject, public KRenameDCOP { void removeFile(); void removeFile( int index ); void preferences(); - void replace(); + void tqreplace(); void saveConfig(); void start(); void updateCount(); @@ -147,7 +148,7 @@ class KRenameImpl : public QObject, public KRenameDCOP { void loadFilePlugins(); void reloadFilePluginData(); void manageProfiles(); - QString easyOptions( KComboBox* combo, KMyHistoryCombo* custom ); + TQString easyOptions( KComboBox* combo, KMyHistoryCombo* custom ); void slotEasy1(); void slotEasy2(); void slotEasy3(); @@ -173,7 +174,7 @@ class KRenameImpl : public QObject, public KRenameDCOP { void loadConfig(); void fillStructures( BatchRenamer* b, bool preview ); bool setupBatchRenamer( BatchRenamer* b, bool preview ); - void splitFilename( QFileInfo* fi, QString* base, QString* extension ); + void splitFilename( TQFileInfo* fi, TQString* base, TQString* extension ); void setupActions(); void setupPage1(); @@ -186,29 +187,29 @@ class KRenameImpl : public QObject, public KRenameDCOP { void setupPages(); void updateHist(); void parseCommandline(); - void addTitle( QWidget* p, QVBoxLayout* layout, QString title ); + void addTitle( TQWidget* p, TQVBoxLayout* tqlayout, TQString title ); - QValueList<manualchanges> changes; + TQValueList<manualchanges> changes; void refreshColumnMode(); void parseWizardMode(); - void getHelpDialogString( QLineEdit* edit ); + void getHelpDialogString( TQLineEdit* edit ); protected: - QWidget* parent; + TQWidget* tqparent; KMenuBar* menuBar; KPopupMenu* mnuSort; KAction* loadPlugins; - QPushButton* finishButton; + TQPushButton* finishButton; PluginLoader* plugin; - QWidgetStack* fileTab; + TQWidgetStack* fileTab; - QWidget* page_1; - QWidget* page_2; + TQWidget* page_1; + TQWidget* page_2; KJanusWidget* page_3; - QWidget* page_4; + TQWidget* page_4; bool m_wizard; bool m_loadplugins; @@ -241,27 +242,27 @@ class KRenameImpl : public QObject, public KRenameDCOP { KPushButton* buttonEasy4; KComboBox* comboSort; - QLabel* description; - QLabel* description2; - QLabel* description3; - QLabel* description4; + TQLabel* description; + TQLabel* description2; + TQLabel* description3; + TQLabel* description4; - QLabel* labelTemplate; - QLabel* labelHelp; - QLabel* labelCount; - QLabel* labelPoint; + TQLabel* labelTemplate; + TQLabel* labelHelp; + TQLabel* labelCount; + TQLabel* labelPoint; KMyListBox* fileList; KMyListView* preview; - QButtonGroup* groupOptions; + TQButtonGroup* groupOptions; - QRadioButton* optionCopy; - QRadioButton* optionMove; - QRadioButton* optionRename; - QRadioButton* optionLink; + TQRadioButton* optionCopy; + TQRadioButton* optionMove; + TQRadioButton* optionRename; + TQRadioButton* optionLink; - QGroupBox* groupExtension; - QVGroupBox* groupUndo; + TQGroupBox* groupExtension; + TQVGroupBox* groupUndo; KMyHistoryCombo* dirname; KURLRequester* urlrequester; @@ -269,11 +270,11 @@ class KRenameImpl : public QObject, public KRenameDCOP { KMyHistoryCombo* filename; KMyHistoryCombo* extemplate; - QCheckBox* checkName; - QCheckBox* checkExtension; - QCheckBox* checkOverwrite; - QCheckBox* checkPreview; - QCheckBox* checkUndoScript; + TQCheckBox* checkName; + TQCheckBox* checkExtension; + TQCheckBox* checkOverwrite; + TQCheckBox* checkPreview; + TQCheckBox* checkUndoScript; KComboBox* comboExtension; @@ -282,8 +283,8 @@ class KRenameImpl : public QObject, public KRenameDCOP { HelpDialogData* helpDialogData; BatchRenamer* b; - QValueList<int> skip; - QValueList<replacestrings> rep; + TQValueList<int> skip; + TQValueList<replacestrings> rep; // ========== // Easy mode: @@ -306,37 +307,37 @@ class KRenameImpl : public QObject, public KRenameDCOP { // Layout: // =========== - QHBoxLayout* pageLayout; - QVBoxLayout* pageLayout_2; - QVBoxLayout* pageLayout_3; - QVBoxLayout* pageLayout_4; - - QHBoxLayout* tabLayout_0; - QHBoxLayout* tabLayout_1; - QHBoxLayout* tabLayout_2; - QVBoxLayout* tabLayout_3; - QVBoxLayout* groupAdvancedExtensionLayout; - QVBoxLayout* groupOptionsLayout; - QHBoxLayout* groupDirLayout; - QVBoxLayout* groupNumberLayout; - QHBoxLayout* groupExtensionLayout; + TQHBoxLayout* pageLayout; + TQVBoxLayout* pageLayout_2; + TQVBoxLayout* pageLayout_3; + TQVBoxLayout* pageLayout_4; + + TQHBoxLayout* tabLayout_0; + TQHBoxLayout* tabLayout_1; + TQHBoxLayout* tabLayout_2; + TQVBoxLayout* tabLayout_3; + TQVBoxLayout* groupAdvancedExtensionLayout; + TQVBoxLayout* groupOptionsLayout; + TQHBoxLayout* groupDirLayout; + TQVBoxLayout* groupNumberLayout; + TQHBoxLayout* groupExtensionLayout; // page1 - QHBoxLayout* Layout2; - QVBoxLayout* Layout3; - QHBoxLayout* Layout4; - QVBoxLayout* Layout5; + TQHBoxLayout* Layout2; + TQVBoxLayout* Layout3; + TQHBoxLayout* Layout4; + TQVBoxLayout* Layout5; // page4 - QVBoxLayout* Layout10; - QHBoxLayout* Layout15; - QVBoxLayout* Layout16; - QHBoxLayout* Layout22; - QVBoxLayout* Layout23; + TQVBoxLayout* Layout10; + TQHBoxLayout* Layout15; + TQVBoxLayout* Layout16; + TQHBoxLayout* Layout22; + TQVBoxLayout* Layout23; // tab - QHBoxLayout* Layout100; - QHBoxLayout* Layout101; + TQHBoxLayout* Layout100; + TQHBoxLayout* Layout101; }; |