Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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 (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 
14 #ifndef BERRYQMITKPREFERENCESDIALOG_H_
15 #define BERRYQMITKPREFERENCESDIALOG_H_
16 
18 
19 #include <QDialog>
20 #include <QScopedPointer>
21 
22 
23 class QmitkPreferencesDialogPrivate;
24 
28 class MITK_QT_APP QmitkPreferencesDialog : public QDialog
29 {
30  Q_OBJECT
31 
32 public:
33 
34  QmitkPreferencesDialog(QWidget * parent = nullptr, Qt::WindowFlags f = nullptr);
35  ~QmitkPreferencesDialog() override;
36 
37  void SetSelectedPage(const QString& id);
38 
39 protected slots:
40 
41  void OnImportButtonClicked();
42  void OnExportButtonClicked();
43  void OnDialogAccepted();
44  void OnDialogRejected();
45 
46  void OnKeywordTextChanged(const QString & s);
47  void OnKeywordEditingFinished();
48  void OnPreferencesTreeItemSelectionChanged();
49 
50 protected:
51 
52  //bool eventFilter(QObject *obj, QEvent *event);
53  void UpdateTree();
54 
58  void SavePreferences();
59 
60  QScopedPointer<QmitkPreferencesDialogPrivate> d;
61 
62 };
63 
64 #endif /* BERRYQMITKPREFERENCESDIALOG_H_ */
QScopedPointer< QmitkPreferencesDialogPrivate > d