projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added Enable/Disable All Buttons
[pulseview.git]
/
pv
/
samplingbar.h
diff --git
a/pv/samplingbar.h
b/pv/samplingbar.h
index 446d98ed495fcf23e017f44c1ab98c3d7cf5706c..7034962c2a1a5593630815f632db53cd27ca155b 100644
(file)
--- a/
pv/samplingbar.h
+++ b/
pv/samplingbar.h
@@
-23,11
+23,14
@@
#include <stdint.h>
#include <stdint.h>
+#include <list>
+
#include <QComboBox>
#include <QDoubleSpinBox>
#include <QToolBar>
#include <QToolButton>
#include <QComboBox>
#include <QDoubleSpinBox>
#include <QToolBar>
#include <QToolButton>
+struct st_dev_inst;
class QAction;
namespace pv {
class QAction;
namespace pv {
@@
-43,9
+46,12
@@
private:
public:
SamplingBar(QWidget *parent);
public:
SamplingBar(QWidget *parent);
+ void set_device_list(const std::list<struct sr_dev_inst*> &devices);
+
struct sr_dev_inst* get_selected_device() const;
struct sr_dev_inst* get_selected_device() const;
+ void set_selected_device(struct sr_dev_inst *const sdi);
+
uint64_t get_record_length() const;
uint64_t get_record_length() const;
- uint64_t get_sample_rate() const;
void set_sampling(bool sampling);
void set_sampling(bool sampling);
@@
-53,11
+59,13
@@
signals:
void run_stop();
private:
void run_stop();
private:
- void update_device_selector();
void update_sample_rate_selector();
void update_sample_rate_selector();
+ void update_sample_rate_selector_value();
+ void commit_sample_rate();
private slots:
void on_device_selected();
private slots:
void on_device_selected();
+ void on_sample_rate_changed();
void configure();
private:
void configure();
private: