CustusX  16.5.0-rc9
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::ScalarInteractionWidget Class Reference

Composite widget for scalar data manipulation. More...

#include <cxDoubleWidgets.h>

Inheritance diagram for cx::ScalarInteractionWidget:
cx::OptimizedUpdateWidget cx::SliderGroupWidget cx::SpinBoxAndDialGroupWidget cx::SpinBoxAndSliderGroupWidget cx::SpinBoxGroupWidget cx::SpinBoxInfiniteSliderGroupWidget

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

Detailed Description

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.

Constructor & Destructor Documentation

cx::ScalarInteractionWidget::ScalarInteractionWidget ( QWidget *  parent,
DoublePropertyBasePtr  dataInterface 
)

Definition at line 45 of file cxDoubleWidgets.cpp.

Member Function Documentation

void cx::ScalarInteractionWidget::addToGridLayout ( QGridLayout *  gridLayout = 0,
int  row = 0 
)

Layout all widgets into the input grid, including this.

Definition at line 138 of file cxDoubleWidgets.cpp.

void cx::ScalarInteractionWidget::addToOwnLayout ( )

Layout all widgets in this, horizontal style.

Definition at line 114 of file cxDoubleWidgets.cpp.

void cx::ScalarInteractionWidget::build ( QGridLayout *  gridLayout = 0,
int  row = 0 
)

Definition at line 162 of file cxDoubleWidgets.cpp.

void cx::ScalarInteractionWidget::enableDial ( )

Definition at line 73 of file cxDoubleWidgets.cpp.

void cx::ScalarInteractionWidget::enableEdit ( )

Definition at line 99 of file cxDoubleWidgets.cpp.

void cx::ScalarInteractionWidget::enableInfiniteSlider ( )

Definition at line 82 of file cxDoubleWidgets.cpp.

void cx::ScalarInteractionWidget::enableLabel ( )

Definition at line 53 of file cxDoubleWidgets.cpp.

void cx::ScalarInteractionWidget::enableSlider ( )

Definition at line 65 of file cxDoubleWidgets.cpp.

void cx::ScalarInteractionWidget::enableSpinBox ( )

Definition at line 105 of file cxDoubleWidgets.cpp.

void cx::ScalarInteractionWidget::prePaintEvent ( )
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 216 of file cxDoubleWidgets.cpp.

void cx::ScalarInteractionWidget::showLabel ( bool  on)

Definition at line 59 of file cxDoubleWidgets.cpp.

Member Data Documentation

DoublePropertyBasePtr cx::ScalarInteractionWidget::mData
protected

Definition at line 174 of file cxDoubleWidgets.h.


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