CustusX
2023.01.05-dev+develop.0da12
An IGT application
|
Composite widget for scalar data manipulation. More...
#include <cxDoubleWidgets.h>
Public Member Functions | |
ScalarInteractionWidget (QWidget *parent, DoublePropertyBasePtr) | |
void | enableLabel () |
void | enableSlider () |
void | enableDial () |
void | enableEdit () |
void | enableSpinBox () |
void | enableInfiniteSlider () |
void | addToOwnLayout () |
void | addToGridLayout (QGridLayout *gridLayout=0, int row=0) |
void | build (QGridLayout *gridLayout=0, int row=0) |
void | showLabel (bool on) |
Public Member Functions inherited from cx::OptimizedUpdateWidget | |
OptimizedUpdateWidget (QWidget *parent=NULL) | |
virtual | ~OptimizedUpdateWidget () |
void | forcePrePaint () |
Protected Member Functions | |
virtual void | prePaintEvent () |
Protected Member Functions inherited from cx::OptimizedUpdateWidget | |
virtual void | paintEvent (QPaintEvent *event) |
Protected Attributes | |
DoublePropertyBasePtr | mData |
Additional Inherited Members | |
Public Slots inherited from cx::OptimizedUpdateWidget | |
virtual void | setModified () |
Composite widget for scalar data manipulation.
Consists of <namelabel, valueedit, slider>. Insert a subclass of DoublePropertyBasePtr in order to connect to data.
Before use: enable the widgets you need, then add either to Own layout, in case you wish to use the widget normally, or add to grid, in case you wish to integrate the elements into a larger grid.
Definition at line 126 of file cxDoubleWidgets.h.
cx::ScalarInteractionWidget::ScalarInteractionWidget | ( | QWidget * | parent, |
DoublePropertyBasePtr | dataInterface | ||
) |
Definition at line 24 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::addToGridLayout | ( | QGridLayout * | gridLayout = 0 , |
int | row = 0 |
||
) |
Layout all widgets into the input grid, including this.
Definition at line 117 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::addToOwnLayout | ( | ) |
Layout all widgets in this, horizontal style.
Definition at line 93 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::build | ( | QGridLayout * | gridLayout = 0 , |
int | row = 0 |
||
) |
Definition at line 141 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::enableDial | ( | ) |
Definition at line 52 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::enableEdit | ( | ) |
Definition at line 78 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::enableInfiniteSlider | ( | ) |
Definition at line 61 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::enableLabel | ( | ) |
Definition at line 32 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::enableSlider | ( | ) |
Definition at line 44 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::enableSpinBox | ( | ) |
Definition at line 84 of file cxDoubleWidgets.cpp.
|
protectedvirtual |
Implement to perform expensive operations that need only be called once per paint. Use setModified() to trigger this method.
Reimplemented from cx::OptimizedUpdateWidget.
Definition at line 195 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::showLabel | ( | bool | on | ) |
Definition at line 38 of file cxDoubleWidgets.cpp.
|
protected |
Definition at line 153 of file cxDoubleWidgets.h.