]> sigrok.org Git - pulseview.git/blobdiff - pv/dialogs/settings.hpp
Introduce "default div height" setting
[pulseview.git] / pv / dialogs / settings.hpp
index bc6542d3e4243f5b90eccebcf5df9754b1418c66..b01b5da9626b10672f4dfda1dfa54556b0e52dba 100644 (file)
@@ -20,6 +20,7 @@
 #ifndef PULSEVIEW_PV_SETTINGS_HPP
 #define PULSEVIEW_PV_SETTINGS_HPP
 
+#include <QCheckBox>
 #include <QDialog>
 #include <QListWidget>
 #include <QStackedWidget>
@@ -38,6 +39,7 @@ public:
        Settings(DeviceManager &device_manager, QWidget *parent = nullptr);
 
        void create_pages();
+       QCheckBox *create_checkbox(const QString& key, const char* slot) const;
 
        QWidget *get_view_settings_form(QWidget *parent) const;
        QWidget *get_decoder_settings_form(QWidget *parent) const;
@@ -48,11 +50,13 @@ public:
 
 private Q_SLOTS:
        void on_page_changed(QListWidgetItem *current, QListWidgetItem *previous);
-       void on_view_alwaysZoomToFit_changed(int state);
+       void on_view_zoomToFitDuringAcq_changed(int state);
+       void on_view_zoomToFitAfterAcq_changed(int state);
        void on_view_colouredBG_changed(int state);
        void on_view_stickyScrolling_changed(int state);
        void on_view_showSamplingPoints_changed(int state);
        void on_view_showAnalogMinorGrid_changed(int state);
+       void on_view_defaultDivHeight_changed(int value);
        void on_dec_initialStateConfigurable_changed(int state);
 
 private: