WSF
PreferencesDialog.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2018 Infoscitex, a DCS Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef PREFERENCESDIALOG_HPP
13#define PREFERENCESDIALOG_HPP
14
15#include "BackupPrefWidget.hpp"
16#include "EditorPrefWidget.hpp"
17#include "NewFilePrefWidget.hpp"
18#include "ToolPrefWidget.hpp"
19#include "WkfPreferencesDialog.hpp"
20
21namespace wizard
22{
23class PreferencesDialog : public wkf::PreferencesDialog
24{
25public:
26 PreferencesDialog(wkf::MainWindow* parent, Qt::WindowFlags f = Qt::WindowFlags())
27 : wkf::PreferencesDialog(parent, f)
28 {
29 mStandardWidgets << new BackupPrefWidget(this) << new ToolPrefWidget(this);
30 }
31
32private:
33 void Initialize() override
34 {
35 wkf::PreferencesDialog::Initialize();
36 // Defer construction of editor pref widget/object until Initialize to allow UiResources to be constructed
37 mStandardWidgets << new EditorPrefWidget(this);
38 mStandardWidgets << new NewFilePrefWidget(this);
39 }
40};
41} // namespace wizard
42#endif
Definition BackupPrefWidget.hpp:22
Definition EditorPrefWidget.hpp:26
Definition NewFilePrefWidget.hpp:23
PreferencesDialog(wkf::MainWindow *parent, Qt::WindowFlags f=Qt::WindowFlags())
Definition PreferencesDialog.hpp:26
Definition ToolPrefWidget.hpp:25
Definition Runner.hpp:22
Definition ActionManager.hpp:28
Copyrights Multiple, All Rights Reserved