X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=samplingbar.h;h=695c5aa064dc543c747e9105f279ec6ea72db49b;hb=8f94be14588c7a7ca0f483b649d7a7b5b5f45ae9;hp=e7738656b168c55fb60b50308e267ee28af57cc3;hpb=274d4f133825cddfc6a42438dd47899db20c7d97;p=pulseview.git diff --git a/samplingbar.h b/samplingbar.h index e773865..695c5aa 100644 --- a/samplingbar.h +++ b/samplingbar.h @@ -1,5 +1,5 @@ /* - * This file is part of the sigrok project. + * This file is part of the PulseView project. * * Copyright (C) 2012 Joel Holdsworth * @@ -34,10 +34,14 @@ class SamplingBar : public QToolBar { Q_OBJECT +private: + static const uint64_t RecordLengths[11]; + public: SamplingBar(QWidget *parent); struct sr_dev_inst* get_selected_device() const; + uint64_t get_record_length() const; uint64_t get_sample_rate() const; signals: @@ -53,6 +57,8 @@ private slots: private: QComboBox _device_selector; + QComboBox _record_length_selector; + QComboBox _sample_rate_list; QAction *_sample_rate_list_action; QDoubleSpinBox _sample_rate_value;