34 #include <QPushButton>
49 TabbedWidget(parent,
"ClippingPropertiesWidget",
"Clipping Properties")
51 this->setToolTip(
"Clipping properties");
57 BaseWidget(parent,
"ManageClippersWidget",
"Manage Clippers"),
75 QStringList range =
getClippers()->getClipperNames();
78 this->clippersChanged();
86 QPushButton* newClipperButton =
new QPushButton(
"Create clipper",
this);
87 newClipperButton->setToolTip(
"Create new clipper based on currently selected");
88 newClipperButton->setEnabled(
false);
90 mLayout =
new QVBoxLayout(
this);
91 mLayout->addWidget(newClipperButton);
92 mLayout->addWidget(clipperSelectorBox);
102 void ManageClippersWidget::clippersChanged()
119 if(clipperName.isEmpty())
130 QString clipperName = nameBase;
134 clipperName = nameBase + QString(
" %1").arg(i++);
136 getClippers()->add(clipperName, interactiveClipper);
139 range << clipperName;
147 nameBase.remove(QRegExp(
" [0-9]{1,2}$"));
cxResource_EXPORT ProfilePtr profile()
boost::shared_ptr< class VisServices > VisServicesPtr
QDomElement getElement()
return the current element
void changed()
emit when the underlying data value is changed: The user interface will be updated.
static StringPropertyPtr initialize(const QString &uid, QString name, QString help, QString value, QStringList range, QDomNode root=QDomNode())
boost::shared_ptr< class InteractiveClipper > InteractiveClipperPtr
boost::shared_ptr< class Clippers > ClippersPtr
Helper class for xml files used to store ssc/cx data.