X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fwidgets%2Fsweeptimingwidget.h;h=5510865eb632f28680883c92f56e5f72682a1378;hb=8dbbc7f0b9ea59d0f0d62225772f8a56eee125f5;hp=c4bfe37850ce29b0abf5115d74c6fdfb63846e7d;hpb=1198b8872516662c257e5dcdec346094ed4f32dd;p=pulseview.git diff --git a/pv/widgets/sweeptimingwidget.h b/pv/widgets/sweeptimingwidget.h index c4bfe37..5510865 100644 --- a/pv/widgets/sweeptimingwidget.h +++ b/pv/widgets/sweeptimingwidget.h @@ -40,7 +40,6 @@ private: enum ValueType { None, - ReadOnly, MinMaxStep, List }; @@ -49,24 +48,25 @@ public: SweepTimingWidget(const char *suffix, QWidget *parent = NULL); void show_none(); - void show_read_only(); void show_min_max_step(uint64_t min, uint64_t max, uint64_t step); void show_list(const uint64_t *vals, size_t count); + void show_125_list(uint64_t min, uint64_t max); uint64_t value() const; void set_value(uint64_t value); -signals: +Q_SIGNALS: void value_changed(); private: - QHBoxLayout _layout; + const char *const suffix_; - QLineEdit _read_only_value; - QDoubleSpinBox _value; - QComboBox _list; + QHBoxLayout layout_; - ValueType _value_type; + QDoubleSpinBox value_; + QComboBox list_; + + ValueType value_type_; }; } // widgets