axis_limits_dialog.h
Go to the documentation of this file.
1 #ifndef AXIS_LIMITS_DIALOG_H
2 #define AXIS_LIMITS_DIALOG_H
3 
4 #include <QDialog>
5 #include <QRadialGradient>
6 #include "PlotJuggler/plotdata.h"
7 
8 namespace Ui {
9 class AxisLimitsDialog;
10 }
11 
12 class AxisLimitsDialog : public QDialog
13 {
14  Q_OBJECT
15 
16 public:
17  explicit AxisLimitsDialog(QWidget *parent = 0);
19 
20  void setDefaultRange(PlotData::RangeValue range);
21 
22  void enableMin(bool enabled, double value);
23 
24  void enableMax(bool enabled, double value);
25 
26  bool limitsEnabled() const;
27 
28  PlotData::RangeValue rangeY() const { return _limits; }
29 
30 private slots:
31  void on_checkBoxMinY_toggled(bool checked);
32 
33  void on_checkBoxMaxY_toggled(bool checked);
34 
35  void on_pushButtonDone_pressed();
36 
37  void on_pushButtonMinY_pressed();
38 
39  void on_pushButtonMaxY_pressed();
40 
41 
42 private:
43 
44  virtual void closeEvent(QCloseEvent *event) override;
45 
46  Ui::AxisLimitsDialog *ui;
47 
49 
51 
52 };
53 
54 #endif // AXIS_LIMITS_DIALOG_H
PlotData::RangeValue _limits
T value
Ui::AxisLimitsDialog * ui
PlotData::RangeValue _parent_limits
PlotData::RangeValue rangeY() const


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:16