Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
QmitkSearchLabelDialog.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 QmitkSearchLabelDialog_h_Included
14 #define QmitkSearchLabelDialog_h_Included
15 
17 
18 #include <ui_QmitkSearchLabelDialogGUI.h>
19 
20 #include <QCompleter>
21 #include <QDialog>
22 
24 {
25  Q_OBJECT
26 
27 public:
28  QmitkSearchLabelDialog(QWidget *parent = nullptr, Qt::WindowFlags f = nullptr);
29  ~QmitkSearchLabelDialog() override;
30 
31  int GetLabelSetWidgetTableIndex();
32 
33  QString GetLabelSetWidgetTableCompleteWord();
34 
35  void SetLabelSuggestionList(QStringList stringList);
36 
37 signals:
38 
39  void goToLabel(int);
40 
41 public slots:
42 
43 protected slots:
44 
45  void OnLabelCompleterChanged(const QString &completedWord);
46 
47 protected:
48  Ui::QmitkSearchLabelDialogGUI *m_Controls;
49 
50  QCompleter *m_Completer;
51 
52  QStringList m_LabelList;
53 
55 
56  QString m_CompleteWord;
57 };
58 
59 #endif
Ui::QmitkSearchLabelDialogGUI * m_Controls
#define MITKSEGMENTATIONUI_EXPORT