• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Generic Shell
 

KDevelop Generic Shell

  • src
projectmanager.h
1 #ifndef __PROJECTMANAGER_H__
2 #define __PROJECTMANAGER_H__
3 
4 
5 #include <tqstring.h>
6 #include <tqobject.h>
7 #include <tqdict.h>
8 
9 
10 #include <kxmlguiclient.h>
11 #include <kservice.h>
12 #include <kurl.h>
13 
14 class TDEAction;
15 class TDESelectAction;
16 class KService;
17 class ProjectInfo;
18 class ProjectSession;
19 class TDERecentFilesAction;
20 class KDevPlugin;
21 
22 
23 class ProjectInfo
24 {
25 public:
26  KURL m_projectURL;
27  TQDomDocument m_document;
28  TQString m_profileName;
29  TQString m_projectName;
30  TQString m_projectPlugin, m_language, m_activeLanguage, m_vcsPlugin;
31  TQStringList m_ignoreParts, m_keywords;
32 
33  TQString sessionFile() const;
34 };
35 
40 class ProjectManager : public TQObject, public KXMLGUIClient
41 {
42  Q_OBJECT
43 
44 
45 public:
46 
47  ~ProjectManager();
48 
49  static TQString projectDirectory( const TQString& path, bool absolute );
50 
51  static ProjectManager *getInstance();
52 
53  void loadSettings();
54  void saveSettings();
55  void loadDefaultProject();
56 
57  bool projectLoaded() const;
58 
59  KURL projectFile() const;
60  TQString projectName() const;
61 
62  void createActions( TDEActionCollection* ac );
63 
64  ProjectSession* projectSession() const;
65 
66 public slots:
67  bool loadProject( const KURL& url);
68  bool loadKDevelop2Project( const KURL& url);
69  bool closeProject( bool exiting = false );
70 
71 private slots:
72  void slotOpenProject();
73  void slotProjectOptions();
74 
75  void slotLoadProject();
76 
77  void loadLocalParts();
78 
79 private:
80  ProjectManager();
81 
82  void setupActions();
83  void getGeneralInfo();
84 
85  bool loadProjectFile();
86  bool saveProjectFile();
87 
88  bool loadProjectPart();
89  void unloadProjectPart();
90 
91  bool loadLanguageSupport(const TQString& lang);
92  void unloadLanguageSupport();
93 
94 // TQString profileByAttributes(const TQString &language, const TQStringList &keywords);
95 
96  ProjectInfo *m_info;
97 
98  TDEAction *m_closeProjectAction, *m_projectOptionsAction;
99  TDERecentFilesAction *m_openRecentProjectAction;
100 
101  static ProjectManager *s_instance;
102 
103  ProjectSession* m_pProjectSession;
104 
105  KDevPlugin *m_vcsPlugin;
106  TQString m_vcsName;
107 
108  TQString m_oldProfileName;
109 };
110 
111 
112 #endif
ProjectManager
Project manager.
Definition: projectmanager.h:40
ProjectSession
This class stores and restores the last situation before the certain project was closed.
Definition: projectsession.h:35

KDevelop Generic Shell

Skip menu "KDevelop Generic Shell"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDevelop Generic Shell

Skip menu "KDevelop Generic Shell"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Generic Shell by doxygen 1.8.13
This website is maintained by Timothy Pearson.