MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkToolSelectionWidget.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef QmitkToolSelectionWidget_h
14#define QmitkToolSelectionWidget_h
15
16#include "ui_QmitkToolSelectionWidgetControls.h"
17#include "MitkIGTUIExports.h"
18
19#include <QStringList>
20
21
29class MITKIGTUI_EXPORT QmitkToolSelectionWidget : public QWidget
30{
31 Q_OBJECT // this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
32public:
33
34
38 QmitkToolSelectionWidget( QWidget* parent );
39
44
48 int GetCurrentSelectedIndex();
49
53 void SetToolNames( const QStringList& toolNames );
54
58 void AddToolName( const QString& toolName);
59
60
64 void ChangeToolName( int index, const QString& toolName );
65
69 void RemoveToolName( const QString& toolName );
70
74 void RemoveToolName( int index );
75
79 void ClearToolNames();
80
84 void SetCheckboxtText( const QString& text);
85
89 bool IsSelectedToolActivated();
90
91signals:
95 void SignalUseTool(int index, bool use);
100
101public slots:
105 void EnableWidget();
109 void DisableWidget();
110
111
112 protected slots:
116 void CheckBoxToggled(bool checked);
117
118
119protected:
123 void CreateConnections();
124 void CreateQtPartControl( QWidget *parent );
125 Ui::QmitkToolSelectionWidgetControls* m_Controls;
126
127};
128#endif
QmitkToolSelectionWidget.
void SignalSelectedToolChanged(int index)
This signal is emitted when a different tool is selected in the combo box.
void SignalUseTool(int index, bool use)
This signal is emitted when the checkbox is toggled. It provides the current selected tool id and whe...
Ui::QmitkToolSelectionWidgetControls * m_Controls
gui widgets