Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkPreferencesDialog.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 
18 #ifndef BERRYQMITKPREFERENCESDIALOG_H_
19 #define BERRYQMITKPREFERENCESDIALOG_H_
20 
22 
23 #include <QDialog>
24 #include <QScopedPointer>
25 
26 
27 class QmitkPreferencesDialogPrivate;
28 
32 class MITK_QT_APP QmitkPreferencesDialog : public QDialog
33 {
34  Q_OBJECT
35 
36 public:
37 
38  QmitkPreferencesDialog(QWidget * parent = nullptr, Qt::WindowFlags f = 0);
40 
41  void SetSelectedPage(const QString& id);
42 
43 protected slots:
44 
45  void OnImportButtonClicked();
46  void OnExportButtonClicked();
47  void OnDialogAccepted();
48  void OnDialogRejected();
49 
50  void OnKeywordTextChanged(const QString & s);
51  void OnKeywordEditingFinished();
52  void OnPreferencesTreeItemSelectionChanged();
53 
54 protected:
55 
56  //bool eventFilter(QObject *obj, QEvent *event);
57  void UpdateTree();
58 
62  void SavePreferences();
63 
64  QScopedPointer<QmitkPreferencesDialogPrivate> d;
65 
66 };
67 
68 #endif /* BERRYQMITKPREFERENCESDIALOG_H_ */
QScopedPointer< QmitkPreferencesDialogPrivate > d