CustusX
15.3.3-beta
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) |
Public Member Functions inherited from cx::OptimizedUpdateWidget | |
OptimizedUpdateWidget (QWidget *parent=NULL) | |
virtual | ~OptimizedUpdateWidget () |
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 147 of file cxDoubleWidgets.h.
cx::ScalarInteractionWidget::ScalarInteractionWidget | ( | QWidget * | parent, |
DoublePropertyBasePtr | dataInterface | ||
) |
Definition at line 45 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 131 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::addToOwnLayout | ( | ) |
Layout all widgets in this, horizontal style.
Definition at line 108 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::build | ( | QGridLayout * | gridLayout = 0 , |
int | row = 0 |
||
) |
Definition at line 155 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::enableDial | ( | ) |
Definition at line 67 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::enableEdit | ( | ) |
Definition at line 93 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::enableInfiniteSlider | ( | ) |
Definition at line 76 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::enableLabel | ( | ) |
Definition at line 53 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::enableSlider | ( | ) |
Definition at line 59 of file cxDoubleWidgets.cpp.
void cx::ScalarInteractionWidget::enableSpinBox | ( | ) |
Definition at line 99 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 209 of file cxDoubleWidgets.cpp.
|
protected |
Definition at line 173 of file cxDoubleWidgets.h.