core.h
Go to the documentation of this file.00001 #ifndef _CORE_H_ 00002 #define _CORE_H_ 00003 00004 #include <qregexp.h> 00005 00006 #include <kparts/partmanager.h> 00007 00008 00009 #include "kdevcore.h" 00010 00011 namespace MainWindowUtils{ 00012 00013 QString beautifyToolTip(const QString& text); 00014 } 00015 00016 class Core : public KDevCore 00017 { 00018 Q_OBJECT 00019 00020 public: 00021 00022 static Core *getInstance(); 00023 00024 ~Core(); 00025 00026 virtual void insertNewAction( KAction* action ); 00027 00028 virtual void running(KDevPlugin *which, bool runs); 00029 virtual void fillContextMenu(QPopupMenu *popup, const Context *context); 00030 virtual void openProject(const QString& projectFileName); 00031 virtual QDict< KDevLicense > licenses(); 00032 00033 void loadLicenses(); 00034 00035 void doEmitProjectOpened() { emit projectOpened(); } 00036 void doEmitProjectClosed() { emit projectClosed(); } 00037 void doEmitLanguageChanged() { emit languageChanged(); } 00038 void doEmitCoreInitialized() { emit coreInitialized(); } 00039 void doEmitProjectConfigWidget(KDialogBase *base) { emit projectConfigWidget(base); } 00040 void doEmitConfigWidget(KDialogBase *base) { emit configWidget(base); } 00041 void doEmitStopButtonPressed(KDevPlugin* which = 0) { emit stopButtonClicked( which ); } 00042 00043 bool queryClose(); 00044 00045 signals: 00046 00047 void activeProcessChanged(KDevPlugin* which, bool runs); 00048 00049 protected: 00050 00051 Core(); 00052 00053 private: 00054 static Core *s_instance; 00055 00056 private: 00057 QDict< KDevLicense > m_licenses; 00058 00059 }; 00060 00061 00062 #endif