CustusX  2020.11.07-dev+develop.4ce4a
An IGT application
cx::OptionsWidget Class Reference

#include <cxOptionsWidget.h>

Inheritance diagram for cx::OptionsWidget:

Public Slots

void toggleAdvanced ()

Public Member Functions

 OptionsWidget (ViewServicePtr viewService, PatientModelServicePtr patientModelService, QWidget *parent)
void setOptions (QString uid, std::vector< PropertyPtr > options, bool showAdvanced)
void setOptions (QString uid, std::vector< SelectDataStringPropertyBasePtr > options, bool showAdvanced)
QString getCurrentUid ()
void showAdvanced (bool show)
void rebuild ()
bool hasOptions () const
bool hasAdvancedOptions () const

Detailed Description

Widget for displaying a list of Property instances. A stack of widgets is created if the setOptions() is called with different uids.

Nov 20, 2012
Christian Askeland, SINTEF
Janne Beate Bakeng, SINTEF

Definition at line 31 of file cxOptionsWidget.h.

Constructor & Destructor Documentation

cx::OptionsWidget::OptionsWidget ( ViewServicePtr  viewService,
PatientModelServicePtr  patientModelService,
QWidget *  parent 

Definition at line 20 of file cxOptionsWidget.cpp.

Member Function Documentation

QString cx::OptionsWidget::getCurrentUid ( )

Definition at line 49 of file cxOptionsWidget.cpp.

bool cx::OptionsWidget::hasAdvancedOptions ( ) const

Definition at line 74 of file cxOptionsWidget.cpp.

bool cx::OptionsWidget::hasOptions ( ) const

Definition at line 66 of file cxOptionsWidget.cpp.

void cx::OptionsWidget::rebuild ( )

Definition at line 60 of file cxOptionsWidget.cpp.

void cx::OptionsWidget::setOptions ( QString  uid,
std::vector< PropertyPtr options,
bool  showAdvanced 

Set options for a given uid. Setting different uid will change the widget content but store the previous contents, making it easy to swap between uids.

Definition at line 37 of file cxOptionsWidget.cpp.

void cx::OptionsWidget::setOptions ( QString  uid,
std::vector< SelectDataStringPropertyBasePtr options,
bool  showAdvanced 

Definition at line 30 of file cxOptionsWidget.cpp.

void cx::OptionsWidget::showAdvanced ( bool  show)

Definition at line 54 of file cxOptionsWidget.cpp.

void cx::OptionsWidget::toggleAdvanced ( )

Definition at line 85 of file cxOptionsWidget.cpp.

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