diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /parts/appwizard/appwizarddlg.h | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/appwizard/appwizarddlg.h')
-rw-r--r-- | parts/appwizard/appwizarddlg.h | 138 |
1 files changed, 69 insertions, 69 deletions
diff --git a/parts/appwizard/appwizarddlg.h b/parts/appwizard/appwizarddlg.h index 7ce8c2ff..d69d069c 100644 --- a/parts/appwizard/appwizarddlg.h +++ b/parts/appwizard/appwizarddlg.h @@ -25,11 +25,11 @@ class QHBoxLayout; class KArchiveDirectory; class KArchiveFile; class ProfileSupport; -#include <qptrlist.h> -#include <qdict.h> +#include <tqptrlist.h> +#include <tqdict.h> #include <klineedit.h> -#include <qlabel.h> -#include <qstringlist.h> +#include <tqlabel.h> +#include <tqstringlist.h> #include <klistview.h> #include <kiconview.h> #include "kdevversioncontrol.h" @@ -46,60 +46,60 @@ namespace PropertyLib { struct installFile { - QString source; - QString dest; - QString option; + TQString source; + TQString dest; + TQString option; bool process; bool isXML; }; struct installArchive { - QString source; - QString dest; - QString option; + TQString source; + TQString dest; + TQString option; bool process; }; struct installDir { - QString dir; - QString option; + TQString dir; + TQString option; int perms; }; struct ApplicationInfo { - QString templateName; - QString name; - QString comment; - QString icon; - QString category; - QString defaultDestDir; - QString fileTemplates; - QStringList openFilesAfterGeneration; - QString templateFile; - QMap<QString,QString> subMap; - QMap<QString,QString> subMapXML; - QStringList includes; - - //QMap<autoKey,QVariant> subValues; + TQString templateName; + TQString name; + TQString comment; + TQString icon; + TQString category; + TQString defaultDestDir; + TQString fileTemplates; + TQStringList openFilesAfterGeneration; + TQString templateFile; + TQMap<TQString,TQString> subMap; + TQMap<TQString,TQString> subMapXML; + TQStringList includes; + + //TQMap<autoKey,TQVariant> subValues; PropertyLib::PropertyList *propValues; - QValueList<installFile> fileList; - QValueList<installArchive> archList; - QValueList<installDir> dirList; - QString customUI; - QString message; - QString finishCmd; - QString finishCmdDir; - QString sourceArchive; + TQValueList<installFile> fileList; + TQValueList<installArchive> archList; + TQValueList<installDir> dirList; + TQString customUI; + TQString message; + TQString finishCmd; + TQString finishCmdDir; + TQString sourceArchive; //! item pointer to the listview - QListViewItem *item; + TQListViewItem *item; //! pointer to favourite icon (NULL if there isn't one) - QIconViewItem *favourite; + TQIconViewItem *favourite; ApplicationInfo() : item( 0 ), favourite( 0 ) @@ -108,9 +108,9 @@ struct ApplicationInfo struct AppWizardFileTemplate { - QString suffix; - QString style; - QMultiLineEdit *edit; + TQString suffix; + TQString style; + TQMultiLineEdit *edit; AppWizardFileTemplate() : edit( 0 ) @@ -123,27 +123,27 @@ class AppWizardDialog : public AppWizardDialogBase Q_OBJECT public: - AppWizardDialog( AppWizardPart *part, QWidget *parent=0, const char *name=0 ); + AppWizardDialog( AppWizardPart *part, TQWidget *parent=0, const char *name=0 ); ~AppWizardDialog(); - QString getProjectName() { return appname_edit->text(); } - QString getProjectLocation() { return finalLoc_label->text(); } + TQString getProjectName() { return appname_edit->text(); } + TQString getProjectLocation() { return finalLoc_label->text(); } protected: virtual void accept(); - virtual QDict<KDevLicense> licenses(); + virtual TQDict<KDevLicense> licenses(); void loadLicenses(); protected slots: - virtual void templatesTreeViewClicked(QListViewItem*); + virtual void templatesTreeViewClicked(TQListViewItem*); virtual void textChanged(); virtual void licenseChanged(); - virtual void destButtonClicked(const QString&); + virtual void destButtonClicked(const TQString&); virtual void projectNameChanged(); virtual void projectLocationChanged(); - virtual void favouritesIconViewClicked( QIconViewItem * ); - virtual void templatesContextMenu(QListViewItem*, const QPoint&, int); - virtual void favouritesContextMenu(QIconViewItem* item, const QPoint& point); + virtual void favouritesIconViewClicked( TQIconViewItem * ); + virtual void templatesContextMenu(TQListViewItem*, const TQPoint&, int); + virtual void favouritesContextMenu(TQIconViewItem* item, const TQPoint& point); virtual void addTemplateToFavourites(); virtual void done(int r); virtual void removeFavourite(); @@ -151,42 +151,42 @@ protected slots: private: //methods - ApplicationInfo *templateForItem(QListViewItem *item); - void insertCategoryIntoTreeView(const QString &completeCategoryPath); + ApplicationInfo *templateForItem(TQListViewItem *item); + void insertCategoryIntoTreeView(const TQString &completeCategoryPath); void loadVcs(); void updateNextButtons(); void populateFavourites(); - void addFavourite(QListViewItem* item, QString favouriteName=""); - ApplicationInfo* findFavouriteInfo(QIconViewItem* item); + void addFavourite(TQListViewItem* item, TQString favouriteName=""); + ApplicationInfo* findFavouriteInfo(TQIconViewItem* item); - void unpackArchive( const KArchiveDirectory *dir, const QString &dest, bool process ); + void unpackArchive( const KArchiveDirectory *dir, const TQString &dest, bool process ); bool copyFile( const installFile& file ); - bool copyFile( const QString &source, const QString &dest, bool isXML, bool process ); - QString kdevRoot(const QString &templateName ) const; + bool copyFile( const TQString &source, const TQString &dest, bool isXML, bool process ); + TQString kdevRoot(const TQString &templateName ) const; void openAfterGeneration(); - void setPermissions(const KArchiveFile *source, QString dest); + void setPermissions(const KArchiveFile *source, TQString dest); void setPermissions(const installFile &file); - void checkAndHideItems(QListView *view); - bool checkAndHideItems(QListViewItem *item); + void checkAndHideItems(TQListView *view); + bool checkAndHideItems(TQListViewItem *item); private: //data - QPtrList<ApplicationInfo> m_appsInfo; - QValueList<AppWizardFileTemplate> m_fileTemplates; + TQPtrList<ApplicationInfo> m_appsInfo; + TQValueList<AppWizardFileTemplate> m_fileTemplates; //! Store the category name and the pointer in the treeview - QDict<QListViewItem> m_categoryMap; - QValueList<QListViewItem*> m_categoryItems; + TQDict<TQListViewItem> m_categoryMap; + TQValueList<TQListViewItem*> m_categoryItems; //! A list of currently available version control systems -// QDict<KDevVersionControl> m_availVcs; +// TQDict<KDevVersionControl> m_availVcs; - QHBoxLayout *m_custom_options_layout; + TQHBoxLayout *m_custom_options_layout; PropertyLib::PropertyEditor *m_customOptions; AppWizardPart *m_part; - QWidget *m_lastPage; - QPtrList<KTempFile> m_tempFiles; + TQWidget *m_lastPage; + TQPtrList<KTempFile> m_tempFiles; ApplicationInfo* m_pCurrentAppInfo; bool m_projectLocationWasChanged; VcsForm *m_vcsForm; @@ -194,9 +194,9 @@ private: //data KPopupMenu* m_favouritesMenu; KPopupMenu* m_templatesMenu; - QDict<KDevLicense> m_licenses; - QDict<KDevVCSIntegrator> m_integrators; - QMap<int, VCSDialog*> m_integratorDialogs; + TQDict<KDevLicense> m_licenses; + TQDict<KDevVCSIntegrator> m_integrators; + TQMap<int, VCSDialog*> m_integratorDialogs; ProfileSupport *m_profileSupport; |