Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkNewSegmentationDialog.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 QmitkNewSegmentationDialog_h_Included
18 #define QmitkNewSegmentationDialog_h_Included
19 
20 #include "mitkColorProperty.h"
22 
23 #include <qdialog.h>
24 
25 #include <QCompleter>
26 
27 class QLabel;
28 class QLineEdit;
29 class Q3ListBox;
30 class QPushButton;
31 
32 #include <mitkCommon.h>
33 
47 {
48  Q_OBJECT
49 
50 public:
51  QmitkNewSegmentationDialog(QWidget *parent = nullptr);
52 
53  virtual ~QmitkNewSegmentationDialog();
54 
55  const QString GetSegmentationName();
56  const char *GetOrganType();
57  mitk::Color GetColor();
58 
59  void SetSuggestionList(QStringList organColorList);
60 
61 signals:
62 
63 public slots:
64 
65  void setPrompt(const QString &prompt);
66  void setSegmentationName(const QString &name);
67 
68 protected slots:
69 
70  void onAcceptClicked();
71  void onNewOrganNameChanged(const QString &);
72  void onColorBtnClicked();
73  void onColorChange(const QString &completedWord);
74 
75 protected:
76  QLabel *lblPrompt;
77  Q3ListBox *lstOrgans;
78  QLineEdit *edtName;
79 
80  QPushButton *btnColor;
81  QPushButton *btnOk;
82 
83  QLineEdit *edtNewOrgan;
84 
85  QString selectedOrgan;
86 
88 
89  QColor m_Color;
90 
91  QCompleter *completer;
92 
94 
95  QStringList organList;
96  QList<QColor> colorList;
97 };
98 
99 #endif
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
Dialog for QmitkInteractiveSegmentation.
#define MITKSEGMENTATIONUI_EXPORT