summaryrefslogtreecommitdiffhomepage
path: root/gui/settings.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/settings.hpp')
-rw-r--r--gui/settings.hpp20
1 files changed, 15 insertions, 5 deletions
diff --git a/gui/settings.hpp b/gui/settings.hpp
index 8ef5aa2d..268ccb73 100644
--- a/gui/settings.hpp
+++ b/gui/settings.hpp
@@ -11,23 +11,33 @@
#include <QDialog>
#include <QWidget>
-class OTR_GUI_EXPORT options_dialog : public QDialog
+class OTR_GUI_EXPORT options_dialog final : public QDialog
{
Q_OBJECT
signals:
void closing();
public:
- explicit options_dialog(std::function<void(bool)> pause_keybindings);
+ options_dialog(std::unique_ptr<ITrackerDialog>& tracker_dialog, std::function<void(bool)> pause_keybindings);
+ ~options_dialog() override;
+ inline bool embeddable() noexcept { return false; }
+ void switch_to_tracker_tab();
+ void register_tracker(ITracker* t);
+ void unregister_tracker();
+ void tracker_module_changed();
+ void save();
+ void reload();
private:
+ void closeEvent(QCloseEvent*) override;
+ static QString kopts_to_string(const key_opts& opts);
+
main_settings main;
std::function<void(bool)> pause_keybindings;
Ui::options_dialog ui;
- void closeEvent(QCloseEvent*) override;
- static QString kopts_to_string(const key_opts& opts);
+ ITrackerDialog* tracker_dialog = nullptr;
+
private slots:
void doOK();
void doCancel();
- void done(int res) override;
void bind_key(key_opts &kopts, QLabel* label);
void set_disable_translation_state(bool value);
};