CFEL - ASG Software Suite  2.5.0
CASS
Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
jocassview::MinMaxControl Class Reference

widget to control the min and max values More...

#include <minmax_control.h>

+ Inheritance diagram for jocassview::MinMaxControl:
+ Collaboration diagram for jocassview::MinMaxControl:

Signals

void controls_changed ()
 signal is emitted when one of the controls have changed More...
 

Public Member Functions

 MinMaxControl (QString title, QToolBar *parent)
 constructor More...
 
bool autoscale () const
 return whether the plot should be autoscaled More...
 
bool log () const
 return wether log is enabled More...
 
double min () const
 retrieve the minimum value More...
 
double max () const
 retieve the maximum value More...
 
- Public Member Functions inherited from QWidget
 ContextMenuPolicy
 
 FocusPolicy
 
 InputMethodHints
 
 LayoutDirection
 
 WindowFlags
 
 WindowModality
 
 QWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
 actionEvent (QActionEvent *event)
 
 actions ()
 
 activateWindow ()
 
 addAction (QAction *action)
 
 addActions (QList< QAction * > actions)
 
 adjustSize ()
 
 ColorRole QWidget::backgroundRole()
 
 changeEvent (QEvent *event)
 
 childAt (int x, int y)
 
 childAt (const QPoint &p)
 
 clearFocus ()
 
 clearMask ()
 
 close ()
 
 closeEvent (QCloseEvent *event)
 
 contentsMargins ()
 
 contentsRect ()
 
 contextMenuEvent (QContextMenuEvent *event)
 
 create (WId window=0, bool initializeWindow=true, bool destroyOldWindow=true)
 
 customContextMenuRequested (const QPoint &pos)
 
 destroy (bool destroyWindow=true, bool destroySubWindows=true)
 
 dragEnterEvent (QDragEnterEvent *event)
 
 dragLeaveEvent (QDragLeaveEvent *event)
 
 dragMoveEvent (QDragMoveEvent *event)
 
 dropEvent (QDropEvent *event)
 
 effectiveWinId ()
 
 ensurePolished ()
 
 enterEvent (QEvent *event)
 
 event (QEvent *event)
 
 find (WId id)
 
 focusInEvent (QFocusEvent *event)
 
 focusNextChild ()
 
 focusNextPrevChild (bool next)
 
 focusOutEvent (QFocusEvent *event)
 
 focusPreviousChild ()
 
 focusProxy ()
 
 focusWidget ()
 
 fontInfo ()
 
 fontMetrics ()
 
 ColorRole QWidget::foregroundRole()
 
 getContentsMargins (int *left, int *top, int *right, int *bottom)
 
 getDC ()
 
 grabGesture (Qt::GestureType gesture, Qt::GestureFlags flags=Qt::GestureFlags()
 
 grabKeyboard ()
 
 grabMouse ()
 
 grabMouse (const QCursor &cursor)
 
 grabShortcut (const QKeySequence &key, Qt::ShortcutContext context=Qt::WindowShortcut)
 
 graphicsEffect ()
 
 graphicsProxyWidget ()
 
 hasEditFocus ()
 
 heightForWidth (int w)
 
 hide ()
 
 hideEvent (QHideEvent *event)
 
 inputContext ()
 
 inputMethodEvent (QInputMethodEvent *event)
 
 inputMethodQuery (Qt::InputMethodQuery query)
 
 insertAction (QAction *before, QAction *action)
 
 insertActions (QAction *before, QList< QAction * > actions)
 
 isAncestorOf (const QWidget *child)
 
 isEnabledTo (QWidget *ancestor)
 
 isHidden ()
 
 isVisibleTo (QWidget *ancestor)
 
 isWindow ()
 
 keyPressEvent (QKeyEvent *event)
 
 keyReleaseEvent (QKeyEvent *event)
 
 keyboardGrabber ()
 
 layout ()
 
 leaveEvent (QEvent *event)
 
 lower ()
 
 HANDLE QWidget::macCGHandle()
 
 macEvent (EventHandlerCallRef caller, EventRef event)
 
 HANDLE QWidget::macQDHandle()
 
 mapFrom (QWidget *parent, const QPoint &pos)
 
 mapFromGlobal (const QPoint &pos)
 
 mapFromParent (const QPoint &pos)
 
 mapTo (QWidget *parent, const QPoint &pos)
 
 mapToGlobal (const QPoint &pos)
 
 mapToParent (const QPoint &pos)
 
 mask ()
 
 metric (PaintDeviceMetric m)
 
 mouseDoubleClickEvent (QMouseEvent *event)
 
 mouseGrabber ()
 
 mouseMoveEvent (QMouseEvent *event)
 
 mousePressEvent (QMouseEvent *event)
 
 mouseReleaseEvent (QMouseEvent *event)
 
 moveEvent (QMoveEvent *event)
 
 nativeParentWidget ()
 
 nextInFocusChain ()
 
 overrideWindowFlags (Qt::WindowFlags flags)
 
 paintEngine ()
 
 paintEvent (QPaintEvent *event)
 
 parentWidget ()
 
 previousInFocusChain ()
 
 qwsEvent (QWSEvent *event)
 
 raise ()
 
 releaseDC (HDC hdc)
 
 releaseKeyboard ()
 
 releaseMouse ()
 
 releaseShortcut (int id)
 
 removeAction (QAction *action)
 
 render (QPaintDevice *target, const QPoint &targetOffset=QPoint()
 
 render (QPainter *painter, const QPoint &targetOffset=QPoint()
 
 repaint ()
 
 repaint (int x, int y, int w, int h)
 
 repaint (const QRect &rect)
 
 repaint (const QRegion &rgn)
 
 resizeEvent (QResizeEvent *event)
 
 restoreGeometry (const QByteArray &geometry)
 
 saveGeometry ()
 
 scroll (int dx, int dy)
 
 scroll (int dx, int dy, const QRect &r)
 
 setAttribute (Qt::WidgetAttribute attribute, bool on=true)
 
 setBackgroundRole (QPalette::ColorRole role)
 
 setContentsMargins (int left, int top, int right, int bottom)
 
 setContentsMargins (const QMargins &margins)
 
 setDisabled (bool disable)
 
 setEditFocus (bool enable)
 
 setFixedHeight (int h)
 
 setFixedSize (const QSize &s)
 
 setFixedSize (int w, int h)
 
 setFixedWidth (int w)
 
 setFocus (Qt::FocusReason reason)
 
 setFocus ()
 
 setFocusProxy (QWidget *w)
 
 setForegroundRole (QPalette::ColorRole role)
 
 setGraphicsEffect (QGraphicsEffect *effect)
 
 setHidden (bool hidden)
 
 setInputContext (QInputContext *context)
 
 setLayout (QLayout *layout)
 
 setMask (const QBitmap &bitmap)
 
 setMask (const QRegion &region)
 
 setParent (QWidget *parent)
 
 setParent (QWidget *parent, Qt::WindowFlags f)
 
 setShortcutAutoRepeat (int id, bool enable=true)
 
 setShortcutEnabled (int id, bool enable=true)
 
 setStyle (QStyle *style)
 
 setTabOrder (QWidget *first, QWidget *second)
 
 setWindowRole (const QString &role)
 
 setWindowState (Qt::WindowStates windowState)
 
 setWindowSurface (QWindowSurface *surface)
 
 setupUi (QWidget *widget)
 
 show ()
 
 showEvent (QShowEvent *event)
 
 showFullScreen ()
 
 showMaximized ()
 
 showMinimized ()
 
 showNormal ()
 
 stackUnder (QWidget *w)
 
 style ()
 
 tabletEvent (QTabletEvent *event)
 
 testAttribute (Qt::WidgetAttribute attribute)
 
 underMouse ()
 
 ungrabGesture (Qt::GestureType gesture)
 
 update ()
 
 update (int x, int y, int w, int h)
 
 update (const QRect &rect)
 
 update (const QRegion &rgn)
 
 updateGeometry ()
 
 updateMicroFocus ()
 
 visibleRegion ()
 
 wheelEvent (QWheelEvent *event)
 
 winEvent (MSG *message, long *result)
 
 winId ()
 
 window ()
 
 windowRole ()
 
 WindowStates QWidget::windowState()
 
 windowSurface ()
 
 WindowType QWidget::windowType()
 
 x11Event (XEvent *event)
 
 x11Info ()
 
 HANDLE QWidget::x11PictureHandle()
 

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...
 

Detailed Description

widget to control the min and max values

Author
Lutz Foucar

Definition at line 32 of file minmax_control.h.

Constructor & Destructor Documentation

MinMaxControl::MinMaxControl ( QString  title,
QToolBar parent 
)

constructor

Parameters
titlethe title of the widget
parentthe 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().

Member Function Documentation

bool MinMaxControl::autoscale ( ) const

return whether the plot should be autoscaled

Returns
true when 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().

void jocassview::MinMaxControl::controls_changed ( )
signal

signal is emitted when one of the controls have changed

Referenced by on_changed().

bool MinMaxControl::log ( ) const

return wether log is enabled

Returns
true when 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

Returns
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

Returns
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().

void MinMaxControl::on_changed ( )
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().

Member Data Documentation

QToolButton* jocassview::MinMaxControl::_auto
private

select manual input

Definition at line 83 of file minmax_control.h.

Referenced by autoscale(), and MinMaxControl().

QToolButton* jocassview::MinMaxControl::_log
private

select manual input

Definition at line 80 of file minmax_control.h.

Referenced by log(), and MinMaxControl().

QLineEdit* jocassview::MinMaxControl::_maxinput
private

the maximum value input

Definition at line 89 of file minmax_control.h.

Referenced by max(), MinMaxControl(), and on_changed().

QLineEdit* jocassview::MinMaxControl::_mininput
private

the minimum value input

Definition at line 86 of file minmax_control.h.

Referenced by min(), MinMaxControl(), and on_changed().


The documentation for this class was generated from the following files: