Fraxinus  16.5.0-fx-rc5
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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.

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

Definition at line 52 of file cxOptionsWidget.h.

Constructor & Destructor Documentation

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

Definition at line 41 of file cxOptionsWidget.cpp.

Member Function Documentation

QString cx::OptionsWidget::getCurrentUid ( )

Definition at line 70 of file cxOptionsWidget.cpp.

bool cx::OptionsWidget::hasAdvancedOptions ( ) const

Definition at line 95 of file cxOptionsWidget.cpp.

bool cx::OptionsWidget::hasOptions ( ) const

Definition at line 87 of file cxOptionsWidget.cpp.

void cx::OptionsWidget::rebuild ( )

Definition at line 81 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 58 of file cxOptionsWidget.cpp.

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

Definition at line 51 of file cxOptionsWidget.cpp.

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

Definition at line 75 of file cxOptionsWidget.cpp.

void cx::OptionsWidget::toggleAdvanced ( )
slot

Definition at line 106 of file cxOptionsWidget.cpp.


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