Settings required for UI::saveCustomConfigModal
More...
#include <MRUIStyle.h>
Public Member Functions | |
| MRVIEWER_API std::string | popupName () const |
| returns accumulated name of the popup | |
Public Attributes | |
| std::string | configName |
| Name of desired config type. | |
| std::string | imGuiIdKey |
| Optional string added at the end of popup name to have unique names. | |
| std::filesystem::path | configDirectory |
| Directory where to save config. | |
| std::string * | inputName { nullptr } |
| String used by input. | |
| bool | warnExisting = true |
| If true - warns user before overriding existing file, otherwise override without warning. | |
| std::function< bool(const std::string &name)> | onSave |
| Callback that is called when save is requested->returns true if file saved successfully (to close modal) | |
Settings required for UI::saveCustomConfigModal
| MRVIEWER_API std::string MR::UI::CustomConfigModalSettings::popupName | ( | ) | const |
returns accumulated name of the popup
| std::filesystem::path MR::UI::CustomConfigModalSettings::configDirectory |
Directory where to save config.
| std::string MR::UI::CustomConfigModalSettings::configName |
Name of desired config type.
| std::string MR::UI::CustomConfigModalSettings::imGuiIdKey |
Optional string added at the end of popup name to have unique names.
| std::string* MR::UI::CustomConfigModalSettings::inputName { nullptr } |
String used by input.
| std::function<bool( const std::string& name )> MR::UI::CustomConfigModalSettings::onSave |
Callback that is called when save is requested->returns true if file saved successfully (to close modal)
| bool MR::UI::CustomConfigModalSettings::warnExisting = true |
If true - warns user before overriding existing file, otherwise override without warning.