OpenCurves  0.9
toolbarwidgets.h
1 //
2 // author Kazys Stepanas
3 //
4 // Copyright (c) CSIRO 2015
5 //
6 #ifndef TOOLBARWIDGETS_H
7 #define TOOLBARWIDGETS_H
8 
9 #include "ocurvesconfig.h"
10 
11 #include <QWidget>
12 
13 class QSpinBox;
14 class QCheckBox;
15 class QLineEdit;
16 
17 namespace Ui
18 {
19  class ToolbarWidgets;
20 }
21 
26 class ToolbarWidgets : public QWidget
27 {
28  Q_OBJECT
29 public:
32  explicit ToolbarWidgets(QWidget *parent = nullptr);
33 
36 
39  QSpinBox *maxSamplesSpin();
40 
43  QLineEdit *timeScaleEdit();
44 
47  QCheckBox *timeColumnCheck();
48 
51  QSpinBox *timeColumnSpin();
52 
55  QCheckBox *relativeTimeCheck();
56 
57 private:
58  Ui::ToolbarWidgets *_ui;
59 };
60 
61 #endif // TOOLBARWIDGETS_H
QCheckBox * timeColumnCheck()
Access the check box for specifying use of a time column.
ToolbarWidgets(QWidget *parent=nullptr)
Constructor.
QSpinBox * timeColumnSpin()
Access the spin box for setting the time column index (1 based) number of samples.
Definition: coloursview.h:16
Widgets added to the toolbar, supporting non-button widgets.
Definition: toolbarwidgets.h:26
~ToolbarWidgets()
Destructor.
QLineEdit * timeScaleEdit()
Access the editor for setting the time scaling.
QCheckBox * relativeTimeCheck()
Access the check box for setting relative time values.
QSpinBox * maxSamplesSpin()
Access the spin box for setting the maximum number of samples.