CustusX
2023.01.05-dev+develop.0da12
An IGT application
|
#include <cxOptionsWidget.h>
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 |
Widget for displaying a list of Property instances. A stack of widgets is created if the setOptions() is called with different uids.
Definition at line 31 of file cxOptionsWidget.h.
cx::OptionsWidget::OptionsWidget | ( | ViewServicePtr | viewService, |
PatientModelServicePtr | patientModelService, | ||
QWidget * | parent | ||
) |
Definition at line 20 of file cxOptionsWidget.cpp.
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.
|
slot |
Definition at line 85 of file cxOptionsWidget.cpp.