Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
QmitkCmdLineModuleMenuComboBox.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 QmitkCmdLineModuleMenuComboBox_h
14 #define QmitkCmdLineModuleMenuComboBox_h
15 
16 #include <QObject>
17 #include <QList>
18 #include <QHash>
19 #include <ctkMenuComboBox.h>
20 #include <ctkCmdLineModuleManager.h>
21 
30 class QmitkCmdLineModuleMenuComboBox : public ctkMenuComboBox {
31 
32  Q_OBJECT
33 
34 public:
35 
36  QmitkCmdLineModuleMenuComboBox(QWidget* parent = nullptr);
38 
44  void SetManager(ctkCmdLineModuleManager* manager);
45 
49  ctkCmdLineModuleManager* GetManager() const;
50 
51 private slots:
52 
53  void OnModuleRegistered(const ctkCmdLineModuleReference&);
54  void OnModuleUnRegistered(const ctkCmdLineModuleReference&);
55 
56 private:
57 
58  void RebuildMenu();
59  void AddName(QList< QHash<QString, QMenu*>* >& listOfHashMaps, const int& depth, const QString& name, QMenu* menu);
60 
61  ctkCmdLineModuleManager* m_ModuleManager;
62 };
63 
64 #endif
QmitkCmdLineModuleMenuComboBox::SetManager
void SetManager(ctkCmdLineModuleManager *manager)
Inject the module manager, so that this widget can still easily be used via widget promotion in Qt De...
QmitkCmdLineModuleMenuComboBox
Subclass of ctkMenuComboBox to listen to ctkCmdLineModuleManager moduleRegistered and moduleUnregiste...
Definition: QmitkCmdLineModuleMenuComboBox.h:30
menu
The custom viewer plugin implements simple viewer functionality presented in a customized look and feel It was developed to demonstrate extensibility and customizability of the blueberry application framework As an example for the GUI customization capabilities provided by the BlueBerry application the custom viewer plugin was developed It features simple viewer functionality presented in a customized look and feel The custom viewer consists of two i e a viewer perspective and a DICOM perspective As part of the viewer an instance of QmitkDataManagerView allows for data selection Visualization of the selected data is then performed by a simple render window view According data can either be directly loaded from file or be imported as DICOM data DICOM import functionality is accessible from the DICOM perspective incorporating the QmitkDicomExternalDataWidget The customization of Qt Stylesheets is used to give the application a non native look and feel This is further emphasized by a Tab Widget like unification of the perspectives with the according perspective bar In addition to an absence of menu
Definition: CustomViewerExample.dox:312
QmitkCmdLineModuleMenuComboBox::~QmitkCmdLineModuleMenuComboBox
~QmitkCmdLineModuleMenuComboBox() override
QmitkCmdLineModuleMenuComboBox::QmitkCmdLineModuleMenuComboBox
QmitkCmdLineModuleMenuComboBox(QWidget *parent=nullptr)
QmitkCmdLineModuleMenuComboBox::GetManager
ctkCmdLineModuleManager * GetManager() const
Returns the ctkCmdLineModuleManager.