diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-16 13:04:49 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-16 15:32:04 +0100 |
commit | 69555ddc87fe727d59385e1752d3ba66aa5549ee (patch) | |
tree | dd711aa12ae9a2255cb62674f1109115938aa58e /api/plugin-api.hpp | |
parent | 8a0ce309c485e47a09e2fbc918d9653dc42c7fb2 (diff) |
api, gui, opentrack: allow embedding proto, filter dialogs
Diffstat (limited to 'api/plugin-api.hpp')
-rw-r--r-- | api/plugin-api.hpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/api/plugin-api.hpp b/api/plugin-api.hpp index ab43884a..9cc87f82 100644 --- a/api/plugin-api.hpp +++ b/api/plugin-api.hpp @@ -43,6 +43,9 @@ protected: public: void closeEvent(QCloseEvent *) override; virtual bool embeddable() noexcept; + virtual void set_buttons_visible(bool x); // XXX TODO remove it once all modules are converted + virtual void save(); // XXX HACK should be pure virtual + virtual void reload(); // XXX HACK should be pure virtual -sh 20211214 signals: void closing(); private slots: @@ -216,17 +219,11 @@ struct OTR_API_EXPORT ITrackerDialog : public plugin_api::detail::BaseDialog virtual void register_tracker(ITracker *tracker); // received tracker pointer is about to get deleted virtual void unregister_tracker(); - virtual void set_buttons_visible(bool x); // XXX TODO remove it once all modules are converted - virtual void save(); // XXX HACK should be pure virtual - virtual void reload(); // XXX HACK should be pure virtual -sh 20211214 ITrackerDialog(); ~ITrackerDialog() override; }; -inline void ITrackerDialog::save() {} -inline void ITrackerDialog::reload() {} - // call once with your chosen class names in the plugin #define OPENTRACK_DECLARE_TRACKER(tracker_class, dialog_class, metadata_class) \ OPENTRACK_DECLARE_PLUGIN_INTERNAL(tracker_class, ITracker, metadata_class, dialog_class, ITrackerDialog) |