* 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 <stdint.h>
Q_OBJECT
private:
- static const uint64_t RecordLengths[11];
+ static const uint64_t RecordLengths[20];
+ static const uint64_t DefaultRecordLength;
public:
SamplingBar(QWidget *parent);
struct sr_dev_inst* get_selected_device() const;
uint64_t get_record_length() const;
- uint64_t get_sample_rate() const;
+
+ void set_sampling(bool sampling);
signals:
void run_stop();
private:
void update_device_selector();
void update_sample_rate_selector();
+ void update_sample_rate_selector_value();
+ void commit_sample_rate();
private slots:
void on_device_selected();
+ void on_sample_rate_changed();
+ void configure();
private:
QComboBox _device_selector;
+ QToolButton _configure_button;
QComboBox _record_length_selector;
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