Medical Imaging Interaction Toolkit  2023.04.00
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 QmitkPreferencesDialog_h
15 #define QmitkPreferencesDialog_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 OnDialogAccepted();
42  void OnDialogRejected();
43 
44  void OnKeywordTextChanged(const QString & s);
45  void OnKeywordEditingFinished();
46  void OnPreferencesTreeItemSelectionChanged();
47 
48 protected:
49 
50  //bool eventFilter(QObject *obj, QEvent *event);
51  void UpdateTree();
52 
56  void SavePreferences();
57 
58  QScopedPointer<QmitkPreferencesDialogPrivate> d;
59 
60 };
61 
62 #endif
QmitkPreferencesDialog::d
QScopedPointer< QmitkPreferencesDialogPrivate > d
Definition: QmitkPreferencesDialog.h:58
QmitkPreferencesDialog
Definition: QmitkPreferencesDialog.h:28
MITK_QT_APP
#define MITK_QT_APP
Definition: org_mitk_gui_qt_application_Export.h:26
org_mitk_gui_qt_application_Export.h