Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkFunctionalityComponentContainer.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 QMITK_FUNCTIONALITYCOMPONENTCONTAINER_H
18 #define QMITK_FUNCTIONALITYCOMPONENTCONTAINER_H
19 
21 #include "QmitkBaseFunctionalityComponent.h"
22 
23 #include "ui_QmitkFunctionalityComponentContainerControls.h"
24 #include <mitkDataNode.h>
25 #include <qlabel.h>
26 #include <qlayout.h>
27 #include <qobject.h>
28 #include <qpushbutton.h>
29 #include <qstackedwidget.h>
30 #include <qstring.h>
31 #include <qwidget.h>
32 
33 #include <QmitkStdMultiWidget.h>
34 
52 class MITKQTWIDGETSEXT_EXPORT QmitkFunctionalityComponentContainer : public QmitkBaseFunctionalityComponent
53 {
54  Q_OBJECT
55 
56 public:
58  QmitkFunctionalityComponentContainer(QObject *parent = 0,
59  const char *parentName = 0,
60  bool updateSelector = true,
61  bool showSelector = true);
62 
65 
69  virtual void CreateConnections();
70 
74  virtual void CreateQtPartControl(QWidget *parent, mitk::DataStorage::Pointer dataStorage);
75 
77  void CreateNavigationButtons();
78 
80  void SetWizardText(const QString &text);
81 
83  Ui::QmitkFunctionalityComponentContainerGUI *GetFunctionalityComponentContainerGUI();
84 
86  virtual void SetDataStorage(mitk::DataStorage::Pointer dataStorage);
87 
90 
92  virtual void SetComponentName(QString name);
93 
95  virtual QString GetComponentName();
96 
98  QWidget *GetGUI();
99 
100  virtual QmitkDataStorageComboBox *GetTreeNodeSelector();
101 
103  virtual void SetSelectorVisibility(bool visibility);
104 
105  QmitkStdMultiWidget *GetMultiWidget();
106 
109  virtual QGroupBox *GetContentContainer();
110 
113  virtual QGroupBox *GetMainCheckBoxContainer();
114 
116  virtual void SetShowTreeNodeSelector(bool show);
117 
119  virtual QGroupBox *GetImageContent();
120 
122  virtual mitk::Image *GetParentMitkImage();
123 
125  QPushButton *GetNextButton();
126 
128  QPushButton *GetBackButton();
129 
131  virtual void AddComponent(QmitkFunctionalityComponentContainer *componentContainer);
132 
134  virtual void AddComponent(QmitkFunctionalityComponentContainer *componentContainer, QString label, int stackPage);
135 
136  virtual void TreeChanged(const itk::EventObject &treeChangedEvent);
137 
138  virtual void Activated();
139 
140  virtual void Deactivated();
141 
144 
147 
149  void ImageSelected(const mitk::DataNode *item);
150 
151 public slots:
152 
155  virtual void SetContentContainerVisibility(bool);
156 
157  virtual void TreeChanged();
158 
159  virtual void DataStorageChanged(mitk::DataStorage::Pointer ds);
160 
161 protected:
163  virtual void UpdateDataTreeComboBoxes();
164 
165  unsigned long m_ObserverTag;
166  QWidget *m_GUI;
167  bool m_Active;
170 
171 private:
173  Ui::QmitkFunctionalityComponentContainerGUI *m_FunctionalityComponentContainerGUI;
174 
175  QObject *m_Parent;
176  QString m_ComponentName;
177  QSpacerItem *m_Spacer;
178  QmitkStdMultiWidget *m_MulitWidget;
179  QPushButton *m_BackButton;
180  QPushButton *m_NextButton;
181  int m_MaximumWidgedStackSize;
182 };
183 
184 #endif
Displays all or a subset (defined by a predicate) of nodes of the Data Storage.
#define MITKQTWIDGETSEXT_EXPORT
static mitk::DataStorage::Pointer GetDataStorage()
bool m_ShowSelector
Attribute to decide whether the selector shall be shown or not.
bool m_UpdateSelector
Attribute to decide whether the selector shall be updated when a parent-Selector is updatet or not...
Image class for storing images.
Definition: mitkImage.h:76
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66