API Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
SettingsDialog.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: NDEVR
28File: SettingsDialog
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "DLLInfo.h"
34#include <NDEVR/Dictionary.h>
35#include <QWidget>
36namespace Ui
37{
38 class SettingsUI;
39}
40namespace NDEVR
41{
42 class FileChooserDialog;
43 class QTResourceListener;
44 class QTModelManager;
45 class UnitsDialog;
46 class MouseController;
47 class MouseEditorWidget;
48 class ModelFileDialog;
49 class PhysicalCameraViewSettings;
50 class WindowManager;
51 class LanguageEditor;
52 class RibbonSubGroup;
53 class Button;
54 class FileAndFolderSettingsDialog;
55 class KeystrokeWidget;
56 class ModulesDialog;
57 /**--------------------------------------------------------------------------------------------------
58 \brief The main Settings dialog for the application. Submenus can be added by the WindowManager or
59 directly.
60 **/
61 class NDEVR_API SettingsDialog : public QWidget
62 {
63 Q_OBJECT
64 public:
65 SettingsDialog(WindowManager* window_manager, QTModelManager* model_manager, QWidget* parent = nullptr);
67 virtual ~SettingsDialog();
68 void addSettingsMenu(QWidget* menu, std::function<void()> reset_to_defaults, uint04 location = 1);
69 void removeSettingsMenu(QWidget* menu);
70 protected:
73 void setupUITab();
85 bool event(QEvent* event) override;
89 signals:
91 protected:
93 protected:
94 Ui::SettingsUI* ui;
95 ModulesDialog* m_modules_dialog = nullptr;
96 QTResourceListener* m_camera_background_listener = nullptr;
97 QTModelManager* m_model_manager = nullptr;
98 WindowManager* m_window_manager = nullptr;
99 UnitsDialog* m_units_dialog = nullptr;
100 LanguageEditor* m_language_editor = nullptr;
101 KeystrokeWidget* m_keystroke_widget = nullptr;
102 FileAndFolderSettingsDialog* m_file_and_folder_settings = nullptr;
103 MouseEditorWidget* m_mouse_editor = nullptr;
104 ModelFileDialog* m_import_settings_dialog = nullptr;
105 ModelFileDialog* m_export_settings_dialog = nullptr;
106 RibbonSubGroup* m_import_settings_ribbon_group = nullptr;
107 RibbonSubGroup* m_export_settings_ribbon_group = nullptr;
108 Dictionary<QWidget*, std::function<void()>> m_reset_to_default_settings;
109 bool m_shown_to_user = false;
110 };
111}
#define NDEVR_API
Definition DLLInfo.h:50
A hash-based key-value store, useful for quick associative lookups. Key features include:
Definition Dictionary.h:61
Allows the user to adjust default folders or whether or not the software uses project folders or proj...
Definition FileAndFolderSettingsDialog.h:19
Allows the user to assign a keystroke to an action by displaying a button with the current keystroke ...
Definition KeystrokeWidget.h:19
Allows the user to adjust translation values for a given language.
Definition LanguageEditor.h:37
Shows options related to an import or export that utilizes the IOFactory methods to write or read pro...
Definition ModelFileDialog.h:60
Allows the user to see which Modules are available and toggle them on or off, when Modules are toggle...
Definition ModulesDialog.h:12
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
Definition QTModelManager.h:105
Definition QTTools.h:168
Represents a sub-section of "Tab" of a ribbon represting a grouping of buttons or widgets within a ta...
Definition RibbonSubGroup.h:47
The main Settings dialog for the application. Submenus can be added by the WindowManager or directly.
Definition SettingsDialog.h:62
Ui::SettingsUI * ui
Definition SettingsDialog.h:94
bool event(QEvent *event) override
void removeSettingsMenu(QWidget *menu)
SettingsDialog(WindowManager *window_manager, QTModelManager *model_manager, QWidget *parent=nullptr)
Dictionary< QWidget *, std::function< void()> > m_reset_to_default_settings
Definition SettingsDialog.h:108
void updateImportSettingsRibbon()
void addSettingsMenu(QWidget *menu, std::function< void()> reset_to_defaults, uint04 location=1)
void updateExportSettingsRibbon()
A dialog which can be used to set various units for different unit categories, such as selecting the ...
Definition UnitsDialog.h:53
Manages all windows and logic surrounding dialogs and views for displaying and managing any environme...
Definition WindowManager.h:68
Definition ACIColor.h:37
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
Definition FontEditor.h:6