NDEVR
API Documentation
DeveloperSettingsDialog.h
1#pragma once
2#include <NDEVR/ApplicationOptions.h>
3#include <QWidget>
4namespace Ui
5{
6 class DeveloperSettingsDialog;
7}
8namespace NDEVR
9{
11 class Button;
12 class QTModelManager;
13 class TranslatedString;
16 class DeveloperSettingsDialog : public QWidget
17 {
18 public:
22 DeveloperSettingsDialog(QTModelManager* manager, QWidget* parent = nullptr);
27 QSize sizeHint() const override;
28 protected:
30 void init();
35 void browse(ApplicationOption<String>& option, Button* b, StringView extension);
41 void browse(const TranslatedString& name, Resource<String>& option, Button* b, StringView extension);
42 protected:
46 Ui::DeveloperSettingsDialog* ui = nullptr;
47 };
48}
The default object to store data of any type that should persist through sessions of the application.
A core widget that allows the user to click one of many button types.
Definition Button.h:68
Resource< String > * m_chooser_option
The currently active chooser option being edited.
void init()
Initializes the UI elements and connects signals.
DeveloperSettingsDialog(QTModelManager *manager, QWidget *parent=nullptr)
Constructs the developer settings dialog.
QTModelManager * m_manager
The application model manager.
Ui::DeveloperSettingsDialog * ui
The auto-generated UI form.
QSize sizeHint() const override
Returns the preferred size for this dialog.
void browse(ApplicationOption< String > &option, Button *b, StringView extension)
Opens a file chooser dialog for an ApplicationOption path.
FileChooserDialog * m_chooser_dialog
The file chooser dialog instance.
void browse(const TranslatedString &name, Resource< String > &option, Button *b, StringView extension)
Opens a file chooser dialog for a Resource path.
void resetToDefaults()
Resets all developer settings fields to their default values.
A dialog designed to allow the user to navigate a filesytem and select or create one or more files or...
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
A core part of the engine, stores variables that can be listened to with ResourceListener which will ...
Definition Resource.h:42
The core String View class for the NDEVR API.
Definition StringView.h:58
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
The primary namespace for the NDEVR SDK.
@ name
The display name of the object.