Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef _QmitkToolSelectionWidget_H_INCLUDED
18 #define _QmitkToolSelectionWidget_H_INCLUDED
19 
20 #include "ui_QmitkToolSelectionWidgetControls.h"
21 #include "MitkIGTUIExports.h"
22 
23 #include <QStringList>
24 
25 
33 class MITKIGTUI_EXPORT QmitkToolSelectionWidget : public QWidget
34 {
35  Q_OBJECT // this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
36 public:
37 
38 
42  QmitkToolSelectionWidget( QWidget* parent );
43 
47  virtual ~QmitkToolSelectionWidget();
48 
52  int GetCurrentSelectedIndex();
53 
57  void SetToolNames( const QStringList& toolNames );
58 
62  void AddToolName( const QString& toolName);
63 
64 
68  void ChangeToolName( int index, const QString& toolName );
69 
73  void RemoveToolName( const QString& toolName );
74 
78  void RemoveToolName( int index );
79 
83  void ClearToolNames();
84 
88  void SetCheckboxtText( const QString& text);
89 
93  bool IsSelectedToolActivated();
94 
95 signals:
99  void SignalUseTool(int index, bool use);
103  void SignalSelectedToolChanged(int index);
104 
105 public slots:
109  void EnableWidget();
113  void DisableWidget();
114 
115 
116  protected slots:
120  void CheckBoxToggled(bool checked);
121 
122 
123 protected:
127  void CreateConnections();
128  void CreateQtPartControl( QWidget *parent );
129  Ui::QmitkToolSelectionWidgetControls* m_Controls;
130 
131 };
132 #endif // _QmitkToolSelectionWidget_H_INCLUDED
133 
QmitkToolSelectionWidget.
Ui::QmitkToolSelectionWidgetControls * m_Controls
gui widgets