33 #ifndef CXBASEWIDGET_H_ 34 #define CXBASEWIDGET_H_ 36 #include "cxResourceWidgetsExport.h" 38 #include <QToolButton> 42 #include <boost/shared_ptr.hpp> 44 #include "boost/function.hpp" 62 class cxResourceWidgets_EXPORT
CXFrame :
public QFrame
66 CXFrame(QWidget* parent) : QFrame(parent) {}
114 BaseWidget(QWidget* parent, QString objectName, QString windowTitle);
117 QWidget* createMethodWidget(QWidget* inputWidget, QWidget* outputWidget, QString methodname,
118 bool inputChecked =
false,
bool outputVisible =
true);
120 QGroupBox* createGroupbox(QWidget* widget, QString boxname);
121 static QFrame* createHorizontalLine();
122 QGroupBox* wrapInGroupBox(QWidget* base, QString name);
123 CXFrame* wrapInFrame(QWidget* base);
129 QAction*
createAction2(QObject* parent, QIcon iconName, QString text, QString tip, QLayout* layout=NULL, QToolButton* button =
new QToolButton())
133 QAction* action =
new QAction(iconName, text, parent);
134 action->setStatusTip(tip);
135 action->setWhatsThis(tip);
136 action->setToolTip(tip);
139 button->setDefaultAction(action);
140 layout->addWidget(button);
150 QAction*
createAction(QObject* parent, QIcon iconName, QString text, QString tip, T slot, QLayout* layout=NULL, QToolButton* button =
new QToolButton())
152 QAction* action = createAction2(parent, iconName, text, tip, layout, button);
153 connect(action, SIGNAL(triggered()),
this, slot);
159 void adjustSizeSlot();
162 virtual void showEvent(QShowEvent* event);
166 QString mWindowTitle;
boost::shared_ptr< class TrackingService > TrackingServicePtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Namespace for all CustusX production code.