KDevelop API Documentation

src/projectmanager.h

Go to the documentation of this file.
00001 #ifndef __PROJECTMANAGER_H__ 00002 #define __PROJECTMANAGER_H__ 00003 00004 00005 #include <qstring.h> 00006 #include <qobject.h> 00007 00008 00009 #include <kxmlguiclient.h> 00010 #include <kservice.h> 00011 00012 class KAction; 00013 class KSelectAction; 00014 class KService; 00015 class ProjectInfo; 00016 class ProjectSession; 00017 class KRecentFilesAction; 00018 00019 class ProjectManager : public QObject, public KXMLGUIClient 00020 { 00021 Q_OBJECT 00022 00023 public: 00024 00025 ~ProjectManager(); 00026 00027 static QString projectDirectory( const QString& path, bool absolute ); 00028 00029 static ProjectManager *getInstance(); 00030 00031 void loadSettings(); 00032 void saveSettings(); 00033 void loadDefaultProject(); 00034 00035 bool projectLoaded() const; 00036 00037 KURL projectFile() const; 00038 00039 void createActions( KActionCollection* ac ); 00040 00041 ProjectSession* projectSession() const; 00042 00043 public slots: 00044 bool loadProject( const KURL& url); 00045 bool loadKDevelop2Project( const KURL& url); 00046 bool closeProject(); 00047 00048 private slots: 00049 void slotOpenProject(); 00050 void slotProjectOptions(); 00051 00052 void loadLocalParts(); 00053 void unloadLocalParts(); 00054 00055 void updateActiveLangMenu(); 00056 void switchLanguage(const QString& lang); 00057 00058 private: 00059 ProjectManager(); 00060 00061 void setupActions(); 00062 void getGeneralInfo(); 00063 bool checkNewService(const KService::Ptr &service); 00064 00065 bool loadProjectFile(); 00066 bool saveProjectFile(); 00067 00068 bool loadProjectPart(); 00069 void unloadProjectPart(); 00070 00071 bool loadLanguageSupport(const QString& lang); 00072 void unloadLanguageSupport(); 00073 00074 bool loadCreateFileSupport(); 00075 void unloadCreateFileSupport(); 00076 00077 ProjectInfo *m_info; 00078 00079 KAction *m_closeProjectAction, *m_projectOptionsAction; 00080 KRecentFilesAction *m_openRecentProjectAction; 00081 KSelectAction *m_activeLanguage; 00082 00083 static ProjectManager *s_instance; 00084 00085 ProjectSession* m_pProjectSession; 00086 }; 00087 00088 00089 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:01:53 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003