swift
applicationclosedialog.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_GUI_COMPONENTS_APPLICATIONCLOSEDIALOG_H
7 #define SWIFT_GUI_COMPONENTS_APPLICATIONCLOSEDIALOG_H
8 
9 #include <QAbstractButton>
10 #include <QDialog>
11 #include <QScopedPointer>
12 
14 
15 namespace Ui
16 {
17  class CApplicationCloseDialog;
18 }
19 namespace swift::gui::components
20 {
24  class CApplicationCloseDialog : public QDialog
25  {
26  Q_OBJECT
27 
28  public:
30  explicit CApplicationCloseDialog(QWidget *parent = nullptr);
31 
33  virtual ~CApplicationCloseDialog();
34 
35  private:
36  QScopedPointer<Ui::CApplicationCloseDialog> ui;
37  QStringList m_settingsDescriptions;
38  swift::core::context::CSettingsDictionary m_settingsDictionary;
39 
41  void onAccepted();
42 
44  void onRejected();
45 
47  void buttonClicked(QAbstractButton *button);
48 
50  void initSettingsView();
51  };
52 } // namespace swift::gui::components
53 #endif // SWIFT_GUI_COMPONENTS_APPLICATIONCLOSEDIALOG_H
CApplicationCloseDialog(QWidget *parent=nullptr)
Constructor.
High level reusable GUI components.
Definition: aboutdialog.cpp:13