14 #include <QGridLayout> 15 #include <QPushButton> 23 BaseWidget(parent,
"tool_manager_widget",
"ToolManager debugger"),
24 mConfigureButton(new QPushButton(
"Configure")),
25 mDeConfigureButton(new QPushButton(
"Deconfigure")),
26 mInitializeButton(new QPushButton(
"Initialize")),
27 mUnInitializeButton(new QPushButton(
"Uninitialize")),
28 mStartTrackingButton(new QPushButton(
"Start Tracking")),
29 mStopTrackingButton(new QPushButton(
"Stop Tracking")),
30 mTrackingService(trackingService)
32 this->setToolTip(
"ToolManager debugging utilities");
34 connect(mConfigureButton, SIGNAL(clicked(
bool)),
this, SLOT(configureClickedSlot(
bool)));
35 connect(mDeConfigureButton, SIGNAL(clicked(
bool)),
this, SLOT(deconfigureClickedSlot(
bool)));
36 connect(mInitializeButton, SIGNAL(clicked(
bool)),
this, SLOT(initializeClickedSlot(
bool)));
37 connect(mUnInitializeButton, SIGNAL(clicked(
bool)),
this, SLOT(uninitializeClickedSlot(
bool)));
38 connect(mStartTrackingButton, SIGNAL(clicked(
bool)),
this, SLOT(startTrackingClickedSlot(
bool)));
39 connect(mStopTrackingButton, SIGNAL(clicked(
bool)),
this, SLOT(stopTrackingClickedSlot(
bool)));
44 QGridLayout* layout =
new QGridLayout(
this);
45 layout->addWidget(mConfigureButton, 0, 0);
46 layout->addWidget(mDeConfigureButton, 0, 1);
47 layout->addWidget(mInitializeButton, 1, 0);
48 layout->addWidget(mUnInitializeButton, 1, 1);
49 layout->addWidget(mStartTrackingButton, 2, 0);
50 layout->addWidget(mStopTrackingButton, 2, 1);
52 this->updateButtonStatusSlot();
59 void ToolManagerWidget::configureClickedSlot(
bool checked)
65 void ToolManagerWidget::deconfigureClickedSlot(
bool checked)
71 void ToolManagerWidget::initializeClickedSlot(
bool checked)
77 void ToolManagerWidget::uninitializeClickedSlot(
bool checked)
83 void ToolManagerWidget::startTrackingClickedSlot(
bool checked)
89 void ToolManagerWidget::stopTrackingClickedSlot(
bool checked)
95 void ToolManagerWidget::updateButtonStatusSlot()
boost::shared_ptr< class TrackingService > TrackingServicePtr
Namespace for all CustusX production code.