X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fsamplingbar.h;h=446d98ed495fcf23e017f44c1ab98c3d7cf5706c;hb=d2caed8d652ded997255a881bbe246ee68235448;hp=170379e0ce37c4b957f7ad75f239a96cd9abc282;hpb=51e77110d4316fd0106f8306f5e1f0523c5bf7d7;p=pulseview.git diff --git a/pv/samplingbar.h b/pv/samplingbar.h index 170379e..446d98e 100644 --- a/pv/samplingbar.h +++ b/pv/samplingbar.h @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef SAMPLINGBAR_H -#define SAMPLINGBAR_H +#ifndef PULSEVIEW_PV_SAMPLINGBAR_H +#define PULSEVIEW_PV_SAMPLINGBAR_H #include @@ -37,7 +37,8 @@ class SamplingBar : public QToolBar Q_OBJECT private: - static const uint64_t RecordLengths[11]; + static const uint64_t RecordLengths[20]; + static const uint64_t DefaultRecordLength; public: SamplingBar(QWidget *parent); @@ -46,6 +47,8 @@ public: uint64_t get_record_length() const; uint64_t get_sample_rate() const; + void set_sampling(bool sampling); + signals: void run_stop(); @@ -55,9 +58,11 @@ private: private slots: void on_device_selected(); + void configure(); private: QComboBox _device_selector; + QToolButton _configure_button; QComboBox _record_length_selector; @@ -66,9 +71,11 @@ private: QDoubleSpinBox _sample_rate_value; QAction *_sample_rate_value_action; + QIcon _icon_green; + QIcon _icon_grey; QToolButton _run_stop_button; }; } // namespace pv -#endif // SAMPLINGBAR_H +#endif // PULSEVIEW_PV_SAMPLINGBAR_H