35 #include <QGridLayout>
36 #include <QPushButton>
44 BaseWidget(parent,
"ToolManagerWidget",
"ToolManager debugger"),
45 mConfigureButton(new QPushButton(
"Configure")),
46 mDeConfigureButton(new QPushButton(
"Deconfigure")),
47 mInitializeButton(new QPushButton(
"Initialize")),
48 mUnInitializeButton(new QPushButton(
"Uninitialize")),
49 mStartTrackingButton(new QPushButton(
"Start Tracking")),
50 mStopTrackingButton(new QPushButton(
"Stop Tracking"))
52 this->setToolTip(
"ToolManager debugging utilities");
54 connect(mConfigureButton, SIGNAL(clicked(
bool)),
this, SLOT(configureClickedSlot(
bool)));
55 connect(mDeConfigureButton, SIGNAL(clicked(
bool)),
this, SLOT(deconfigureClickedSlot(
bool)));
56 connect(mInitializeButton, SIGNAL(clicked(
bool)),
this, SLOT(initializeClickedSlot(
bool)));
57 connect(mUnInitializeButton, SIGNAL(clicked(
bool)),
this, SLOT(uninitializeClickedSlot(
bool)));
58 connect(mStartTrackingButton, SIGNAL(clicked(
bool)),
this, SLOT(startTrackingClickedSlot(
bool)));
59 connect(mStopTrackingButton, SIGNAL(clicked(
bool)),
this, SLOT(stopTrackingClickedSlot(
bool)));
64 QGridLayout* layout =
new QGridLayout(
this);
65 layout->addWidget(mConfigureButton, 0, 0);
66 layout->addWidget(mDeConfigureButton, 0, 1);
67 layout->addWidget(mInitializeButton, 1, 0);
68 layout->addWidget(mUnInitializeButton, 1, 1);
69 layout->addWidget(mStartTrackingButton, 2, 0);
70 layout->addWidget(mStopTrackingButton, 2, 1);
72 this->updateButtonStatusSlot();
79 void ToolManagerWidget::configureClickedSlot(
bool checked)
84 void ToolManagerWidget::deconfigureClickedSlot(
bool checked)
89 void ToolManagerWidget::initializeClickedSlot(
bool checked)
94 void ToolManagerWidget::uninitializeClickedSlot(
bool checked)
99 void ToolManagerWidget::startTrackingClickedSlot(
bool checked)
104 void ToolManagerWidget::stopTrackingClickedSlot(
bool checked)
109 void ToolManagerWidget::updateButtonStatusSlot()
cxLogicManager_EXPORT TrackingServicePtr trackingService()