|
NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
Go to the documentation of this file.
13 #include <QPushButton>
28 TabbedWidget(parent,
"ClippingPropertiesWidget",
"Clipping Properties")
30 this->setToolTip(
"Clipping properties");
36 BaseWidget(parent,
"ManageClippersWidget",
"Manage Clippers"),
54 QStringList range =
getClippers()->getClipperNames();
57 this->clippersChanged();
65 QPushButton* newClipperButton =
new QPushButton(
"Create clipper",
this);
66 newClipperButton->setToolTip(
"Create new clipper based on currently selected");
67 newClipperButton->setEnabled(
false);
69 mLayout =
new QVBoxLayout(
this);
70 mLayout->addWidget(newClipperButton);
71 mLayout->addWidget(clipperSelectorBox);
81 void ManageClippersWidget::clippersChanged()
98 if(clipperName.isEmpty())
109 QString clipperName = nameBase;
113 clipperName = nameBase + QString(
" %1").arg(i++);
115 getClippers()->add(clipperName, interactiveClipper);
118 range << clipperName;
126 nameBase.remove(QRegExp(
" [0-9]{1,2}$"));
Helper class for xml files used to store ssc/cx data.
Namespace for all CustusX production code.
void changed()
emit when the underlying data value is changed: The user interface will be updated.
boost::shared_ptr< class VisServices > VisServicesPtr
boost::shared_ptr< class Clippers > ClippersPtr
QDomElement getElement()
return the current element
cxResource_EXPORT ProfilePtr profile()
boost::shared_ptr< class InteractiveClipper > InteractiveClipperPtr
static StringPropertyPtr initialize(const QString &uid, QString name, QString help, QString value, QStringList range, QDomNode root=QDomNode())