5
#include <kxmlguiclient.h>
7
#include <kparts/partmanager.h>
12
namespace MainWindowUtils{
14
QString beautifyToolTip(const QString& text);
20
class Core : public KDevCore
26
static Core *getInstance();
29
* Setup shourtcut tips. For every KAction with a shortcut,
30
* appends the shortcut string, in parenthesis, to the
31
* actions's tooltip. If tooltip already has any text in
32
* parens, it's removed and shortcut is added instead.
35
* Pointer to KXMLGUIClient object, which contain an collection
36
* of actions (KActionCollection). If the parameter is null,
37
* function is applied to the all available KXMLGUIClient objects.
39
static void setupShourtcutTips(KXMLGUIClient * client = 0);
43
virtual void running(KDevPlugin *which, bool runs);
44
virtual void fillContextMenu(QPopupMenu *popup, const Context *context);
45
virtual void openProject(const QString& projectFileName);
47
void doEmitProjectOpened() { emit projectOpened(); }
48
void doEmitProjectClosed() { emit projectClosed(); }
49
void doEmitLanguageChanged() { emit languageChanged(); }
50
void doEmitCoreInitialized() { emit coreInitialized(); }
51
void doEmitProjectConfigWidget(KDialogBase *base) { emit projectConfigWidget(base); }
52
void doEmitConfigWidget(KDialogBase *base) { emit configWidget(base); }
53
void doEmitStopButtonPressed(KDevPlugin* which = 0) { emit stopButtonClicked( which ); }
59
void activeProcessChanged(KDevPlugin* which, bool runs);
66
static Core *s_instance;