CFEL - ASG Software Suite
2.5.0
CASS
|
widget to control the min and max values More...
#include <minmax_control.h>
Signals | |
void | controls_changed () |
signal is emitted when one of the controls have changed More... | |
Private Slots | |
void | on_changed () |
react on when one of the inputs changed More... | |
Private Attributes | |
QToolButton * | _log |
select manual input More... | |
QToolButton * | _auto |
select manual input More... | |
QLineEdit * | _mininput |
the minimum value input More... | |
QLineEdit * | _maxinput |
the maximum value input More... | |
widget to control the min and max values
Definition at line 32 of file minmax_control.h.
constructor
title | the title of the widget |
parent | the parent of this |
Definition at line 35 of file minmax_control.cpp.
References _auto, _log, _maxinput, _mininput, QSettings::beginGroup(), QSettings::endGroup(), QWidget::layout(), on_changed(), QWidget::setLayout(), QLineEdit::setValidator(), and QSettings::value().
bool MinMaxControl::autoscale | ( | ) | const |
return whether the plot should be autoscaled
Definition at line 136 of file minmax_control.cpp.
References _auto.
Referenced by on_changed(), jocassview::OneDViewer::replot(), and jocassview::TwoDViewer::replot().
|
signal |
signal is emitted when one of the controls have changed
Referenced by on_changed().
bool MinMaxControl::log | ( | ) | const |
return wether log is enabled
Definition at line 141 of file minmax_control.cpp.
References _log.
Referenced by on_changed(), jocassview::OneDViewer::replot(), and jocassview::TwoDViewer::replot().
double MinMaxControl::max | ( | ) | const |
retieve the maximum value
Definition at line 151 of file minmax_control.cpp.
References _maxinput.
Referenced by on_changed(), jocassview::OneDViewer::replot(), and jocassview::TwoDViewer::replot().
double MinMaxControl::min | ( | ) | const |
retrieve the minimum value
Definition at line 146 of file minmax_control.cpp.
References _mininput.
Referenced by on_changed(), jocassview::OneDViewer::replot(), and jocassview::TwoDViewer::replot().
|
privateslot |
react on when one of the inputs changed
details
Definition at line 107 of file minmax_control.cpp.
References _maxinput, _mininput, autoscale(), QSettings::beginGroup(), controls_changed(), QSettings::endGroup(), log(), max(), min(), and QSettings::setValue().
Referenced by MinMaxControl().
|
private |
select manual input
Definition at line 83 of file minmax_control.h.
Referenced by autoscale(), and MinMaxControl().
|
private |
select manual input
Definition at line 80 of file minmax_control.h.
Referenced by log(), and MinMaxControl().
|
private |
the maximum value input
Definition at line 89 of file minmax_control.h.
Referenced by max(), MinMaxControl(), and on_changed().
|
private |
the minimum value input
Definition at line 86 of file minmax_control.h.
Referenced by min(), MinMaxControl(), and on_changed().