summaryrefslogtreecommitdiffhomepage
path: root/api/plugin-api.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2021-12-14 21:32:20 +0100
committerStanislaw Halik <sthalik@misaki.pl>2021-12-14 21:43:03 +0100
commitdfb4b71fd2f8e67cf2b16e4c0a8cdb692e7d3f6a (patch)
tree69cdb19a8574d43b1c53d9b8f5a2112c5c088d19 /api/plugin-api.hpp
parent3fd0b49868793c3d20fed4f568aaadb88ab8655f (diff)
api, gui: add types for embeddable module dialogs
Diffstat (limited to 'api/plugin-api.hpp')
-rw-r--r--api/plugin-api.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/api/plugin-api.hpp b/api/plugin-api.hpp
index c7d5715d..ab43884a 100644
--- a/api/plugin-api.hpp
+++ b/api/plugin-api.hpp
@@ -42,6 +42,7 @@ protected:
BaseDialog();
public:
void closeEvent(QCloseEvent *) override;
+ virtual bool embeddable() noexcept;
signals:
void closing();
private slots:
@@ -215,11 +216,17 @@ 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)