Changeset View
Changeset View
Standalone View
Standalone View
plugins/switchtobuddy/switchtobuddyplugin.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
45 | */ | 45 | */ | ||
46 | class SwitchToBuddyPlugin : public KDevelop::IPlugin | 46 | class SwitchToBuddyPlugin : public KDevelop::IPlugin | ||
47 | { | 47 | { | ||
48 | Q_OBJECT | 48 | Q_OBJECT | ||
49 | public: | 49 | public: | ||
50 | explicit SwitchToBuddyPlugin( QObject *parent, const QVariantList & = QVariantList()); | 50 | explicit SwitchToBuddyPlugin( QObject *parent, const QVariantList & = QVariantList()); | ||
51 | ~SwitchToBuddyPlugin() override; | 51 | ~SwitchToBuddyPlugin() override; | ||
52 | 52 | | |||
53 | KDevelop::ContextMenuExtension contextMenuExtension(KDevelop::Context* context) override; | 53 | KDevelop::ContextMenuExtension contextMenuExtension(KDevelop::Context* context, QWidget* parent) override; | ||
54 | void createActionsForMainWindow(Sublime::MainWindow* window, QString& xmlFile, KActionCollection& actions) override; | 54 | void createActionsForMainWindow(Sublime::MainWindow* window, QString& xmlFile, KActionCollection& actions) override; | ||
55 | 55 | | |||
56 | private Q_SLOTS: | 56 | private Q_SLOTS: | ||
57 | /** | 57 | /** | ||
58 | * Context menu slot which switches to the QUrl provided | 58 | * Context menu slot which switches to the QUrl provided | ||
59 | * in the data part of the sending QAction. | 59 | * in the data part of the sending QAction. | ||
60 | */ | 60 | */ | ||
61 | void switchToBuddy(const QString& url); | 61 | void switchToBuddy(const QString& url); | ||
Show All 23 Lines |