diff --git a/kde/kate/ollie_kate.h b/kde/kate/ollie_kate.h index f27b36a..044e89d 100644 --- a/kde/kate/ollie_kate.h +++ b/kde/kate/ollie_kate.h @@ -65,14 +65,19 @@ private slots: void onWidgetAdded(QWidget *widget); void onGitTreeContextMenu(const QPoint &pos); +public: + // Context actions, exposed for meta-invocation so sibling plugins (e.g. the + // Deft radial menu) can trigger them by name via QMetaObject::invokeMethod + // when the Ollie plugin is enabled. + Q_INVOKABLE void askAboutFile(); + Q_INVOKABLE void explainSelection(); + Q_INVOKABLE void submitSelectionPrompt(const QString &action); + Q_INVOKABLE void sendVerbatim(); + Q_INVOKABLE void reviewDiff(); + Q_INVOKABLE void startSession(); + private: // Actions - void askAboutFile(); - void explainSelection(); - void submitSelectionPrompt(const QString &action); - void sendVerbatim(); - void reviewDiff(); - void startSession(); void reviewStagedChanges(); void reviewUnstagedChanges(); void askAboutGitSelection();