projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added status icons to Run/Stop button
[pulseview.git]
/
pv
/
samplingbar.h
diff --git
a/pv/samplingbar.h
b/pv/samplingbar.h
index 170379e0ce37c4b957f7ad75f239a96cd9abc282..0bf5c449e754ec23eb956b3d684671868cdac0b8 100644
(file)
--- a/
pv/samplingbar.h
+++ b/
pv/samplingbar.h
@@
-18,8
+18,8
@@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
* 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>
#include <stdint.h>
@@
-46,6
+46,8
@@
public:
uint64_t get_record_length() const;
uint64_t get_sample_rate() const;
uint64_t get_record_length() const;
uint64_t get_sample_rate() const;
+ void set_sampling(bool sampling);
+
signals:
void run_stop();
signals:
void run_stop();
@@
-55,9
+57,11
@@
private:
private slots:
void on_device_selected();
private slots:
void on_device_selected();
+ void configure();
private:
QComboBox _device_selector;
private:
QComboBox _device_selector;
+ QToolButton _configure_button;
QComboBox _record_length_selector;
QComboBox _record_length_selector;
@@
-66,9
+70,11
@@
private:
QDoubleSpinBox _sample_rate_value;
QAction *_sample_rate_value_action;
QDoubleSpinBox _sample_rate_value;
QAction *_sample_rate_value_action;
+ QIcon _icon_green;
+ QIcon _icon_grey;
QToolButton _run_stop_button;
};
} // namespace pv
QToolButton _run_stop_button;
};
} // namespace pv
-#endif // SAMPLINGBAR_H
+#endif //
PULSEVIEW_PV_
SAMPLINGBAR_H