diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /buildtools/qmake/trollprojectwidget.h | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip |
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'buildtools/qmake/trollprojectwidget.h')
-rw-r--r-- | buildtools/qmake/trollprojectwidget.h | 55 |
1 files changed, 28 insertions, 27 deletions
diff --git a/buildtools/qmake/trollprojectwidget.h b/buildtools/qmake/trollprojectwidget.h index 7983f4d7..9c5fac62 100644 --- a/buildtools/qmake/trollprojectwidget.h +++ b/buildtools/qmake/trollprojectwidget.h @@ -41,9 +41,10 @@ class TrollProjectPart; class KListView; class ProjectConfigurationDlg; -class TrollProjectWidget : public QVBox +class TrollProjectWidget : public TQVBox { Q_OBJECT + TQ_OBJECT public: TrollProjectWidget( TrollProjectPart *part ); @@ -93,7 +94,7 @@ public: enum TrollProjectView { SubprojectView, DetailsView }; void setLastFocusedView( TrollProjectView view ); enum SaveType { AlwaysSave, NeverSave, Ask }; - QMakeScopeItem* currentSubproject(); + TQMakeScopeItem* currentSubproject(); bool showFilenamesOnly() const; bool showVariablesInTree() const; @@ -131,43 +132,43 @@ private slots: void slotDetailsExecuted( TQListViewItem *item ); void slotDetailsContextMenu( KListView *, TQListViewItem *item, const TQPoint &p ); void slotExcludeFileFromScopeButton(); - void slotAddSubproject( QMakeScopeItem *spitem = 0 ); - void slotRemoveSubproject( QMakeScopeItem *spitem = 0 ); - void slotCreateScope( QMakeScopeItem *spitem = 0 ); - void slotRemoveScope( QMakeScopeItem *spitem = 0 ); - void slotDisableSubproject( QMakeScopeItem* spitem = 0 ); + void slotAddSubproject( TQMakeScopeItem *spitem = 0 ); + void slotRemoveSubproject( TQMakeScopeItem *spitem = 0 ); + void slotCreateScope( TQMakeScopeItem *spitem = 0 ); + void slotRemoveScope( TQMakeScopeItem *spitem = 0 ); + void slotDisableSubproject( TQMakeScopeItem* spitem = 0 ); void slotProjectDirty( const TQString& ); - void createQMakeScopeItems(); + void createTQMakeScopeItems(); private: - void cleanDetailView( QMakeScopeItem *item ); - void runClean( QMakeScopeItem*, const TQString& ); - void buildProjectDetailTree( QMakeScopeItem *item, KListView *listviewControl ); - void removeFile( QMakeScopeItem *spitem, FileItem *fitem ); - void addSubprojectToItem( QMakeScopeItem*, const TQString& ); + void cleanDetailView( TQMakeScopeItem *item ); + void runClean( TQMakeScopeItem*, const TQString& ); + void buildProjectDetailTree( TQMakeScopeItem *item, KListView *listviewControl ); + void removeFile( TQMakeScopeItem *spitem, FileItem *fitem ); + void addSubprojectToItem( TQMakeScopeItem*, const TQString& ); void setupContext(); - // void parseScope(QMakeScopeItem *item,TQString scopeString, Scope *scope); - GroupItem* getInstallRoot( QMakeScopeItem *item ); - GroupItem* getInstallObject( QMakeScopeItem *item, const TQString& objectname ); + // void parseScope(TQMakeScopeItem *item,TQString scopeString, Scope *scope); + GroupItem* getInstallRoot( TQMakeScopeItem *item ); + GroupItem* getInstallObject( TQMakeScopeItem *item, const TQString& objectname ); TQString constructMakeCommandLine( Scope* s = 0 ); - void createMakefileIfMissing( const TQString &dir, QMakeScopeItem *item ); + void createMakefileIfMissing( const TQString &dir, TQMakeScopeItem *item ); - void runQMakeRecursive( QMakeScopeItem* proj); - void buildFile( QMakeScopeItem* spitem, FileItem* fitem); + void runTQMakeRecursive( TQMakeScopeItem* proj); + void buildFile( TQMakeScopeItem* spitem, FileItem* fitem); /*fileName: full base file name like TQFileInfo::baseName ( true )*/ - TQPtrList<QMakeScopeItem> findSubprojectForFile( TQFileInfo fi ); - void findSubprojectForFile( TQPtrList<QMakeScopeItem> &list, QMakeScopeItem * item, TQString absFilePath ); - QMakeScopeItem* findSubprojectForPath( const TQString& ); + TQPtrList<TQMakeScopeItem> findSubprojectForFile( TQFileInfo fi ); + void findSubprojectForFile( TQPtrList<TQMakeScopeItem> &list, TQMakeScopeItem * item, TQString absFilePath ); + TQMakeScopeItem* findSubprojectForPath( const TQString& ); // TQString makeEnvironment(); TrollProjectWidget::SaveType dialogSaveBehaviour() const; - QMakeScopeItem *findSubprojectForScope( QMakeScopeItem *scope ); + TQMakeScopeItem *findSubprojectForScope( TQMakeScopeItem *scope ); - void reloadProjectFromFile( QMakeScopeItem* item ); + void reloadProjectFromFile( TQMakeScopeItem* item ); TQMap<TQString,TQString> qmakeEnvironment() const; TQVBox *overviewContainer; @@ -196,8 +197,8 @@ private: TQToolButton *excludeFileFromScopeButton; DomUtil::PairList m_subclasslist; - QMakeScopeItem *m_shownSubproject; - QMakeScopeItem *m_rootSubproject; + TQMakeScopeItem *m_shownSubproject; + TQMakeScopeItem *m_rootSubproject; Scope* m_rootScope; TrollProjectPart *m_part; ProjectConfigurationDlg* m_configDlg; @@ -215,4 +216,4 @@ private: #endif -// kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on +// kate: space-indent on; indent-width 4; tab-width 4; tqreplace-tabs on |