diff options
Diffstat (limited to 'gui/settings.hpp')
-rw-r--r-- | gui/settings.hpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/gui/settings.hpp b/gui/settings.hpp index 268ccb73..2cb3492c 100644 --- a/gui/settings.hpp +++ b/gui/settings.hpp @@ -17,13 +17,24 @@ class OTR_GUI_EXPORT options_dialog final : public QDialog signals: void closing(); public: - options_dialog(std::unique_ptr<ITrackerDialog>& tracker_dialog, std::function<void(bool)> pause_keybindings); + options_dialog(std::unique_ptr<ITrackerDialog>& tracker_dialog_, + std::unique_ptr<IProtocolDialog>& proto_dialog_, + std::unique_ptr<IFilterDialog>& filter_dialog_, + std::function<void(bool)> pause_keybindings); ~options_dialog() override; inline bool embeddable() noexcept { return false; } void switch_to_tracker_tab(); + void switch_to_proto_tab(); + void switch_to_filter_tab(); + void tracker_module_changed(); + void proto_module_changed(); + void filter_module_changed(); void register_tracker(ITracker* t); void unregister_tracker(); - void tracker_module_changed(); + void register_protocol(IProtocol* p); + void unregister_protocol(); + void register_filter(IFilter* f); + void unregister_filter(); void save(); void reload(); private: @@ -33,7 +44,10 @@ private: main_settings main; std::function<void(bool)> pause_keybindings; Ui::options_dialog ui; - ITrackerDialog* tracker_dialog = nullptr; + + ITrackerDialog* tracker_dialog = nullptr; + IProtocolDialog* proto_dialog = nullptr; + IFilterDialog* filter_dialog = nullptr; private slots: void doOK(); |