Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkToolSelectionWidget.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found 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 
29 class 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)
32 public:
33 
34 
38  QmitkToolSelectionWidget( QWidget* parent );
39 
43  ~QmitkToolSelectionWidget() override;
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 
91 signals:
95  void SignalUseTool(int index, bool use);
99  void SignalSelectedToolChanged(int index);
100 
101 public slots:
105  void EnableWidget();
109  void DisableWidget();
110 
111 
112  protected slots:
116  void CheckBoxToggled(bool checked);
117 
118 
119 protected:
123  void CreateConnections();
124  void CreateQtPartControl( QWidget *parent );
125  Ui::QmitkToolSelectionWidgetControls* m_Controls;
126 
127 };
128 #endif
QmitkToolSelectionWidget
QmitkToolSelectionWidget.
Definition: QmitkToolSelectionWidget.h:29
QmitkToolSelectionWidget::m_Controls
Ui::QmitkToolSelectionWidgetControls * m_Controls
gui widgets
Definition: QmitkToolSelectionWidget.h:125