![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GUI/SettingsDialog.h>
Presents a GUI dialog to configure the global settings. More...
Presents a GUI dialog to configure the global settings.
This class inherently handles the settings in the ImFusion::Settings class, as well as ViewInteraction settings. You can configure this to also handle custom settings using the addCustomSettings() functions. By default these will be presented with an auto-generated PropertiesWidget, but you may also register a custom widget with addCustomSettingsWidget().
Classes | |
class | CustomSettingsWidget |
Base class for custom settings widgets. More... | |
Static Public Member Functions | |
template<typename T> | |
static void | addCustomSettings () |
Add a Configurable type T to the settings dialog. | |
static void | addCustomSettings (std::unique_ptr< Properties > p) |
Add a custom settings object to the dialog. | |
template<typename T, typename W> | |
static void | addCustomSettingsWidget () |
Add a custom settings widget W for configurable type T. | |
Public Attributes | |
Signal | signalSettingsChanged |
Emitted when the settings have been changed. | |
|
inlinestatic |
Add a Configurable type T to the settings dialog.
|
static |
Add a custom settings object to the dialog.
\warn p->name() is used as the name of the settings, as such you must take care that the other accesses to the settings are consistent. If you're not sure of this, you probably need the other overload.
|
inlinestatic |
Add a custom settings widget W for configurable type T.
The settings themselves should be separately added through addCustomSettings<T>().