API Documentation
Loading...
Searching...
No Matches
ShowPropertySettings.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/PopupInfo.h>
4#include <NDEVR/TranslatedString.h>
5#include <NDEVR/UUID.h>
6#include <functional>
7
8namespace NDEVR
9{
20 /**--------------------------------------------------------------------------------------------------
21 \brief Stores settings for setting up and displaying a DesignObjectDialog such as whether the dialog
22 is part of a larger workflow or used for Model creation.
23 **/
25 {
35 bool force_popup = false;
36 bool is_viewport_selection = false;
37 bool delete_model_on_cancel = false;
38 bool is_creation_dialog = false;
39 std::function<void()> finished_function;
40 std::function<void()> cancel_function;
41 };
42}
#define NDEVR_API
Definition DLLInfo.h:50
The core String class for the NDEVR API.
Definition String.h:69
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
Definition TranslatedString.h:13
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
Definition ACIColor.h:37
DesignDialogStyle
Definition ShowPropertySettings.h:11
Class which is used to pass arguments and requests for creating a popup dialog or widget....
Definition PopupInfo.h:15
Stores settings for setting up and displaying a DesignObjectDialog such as whether the dialog is part...
Definition ShowPropertySettings.h:25
UUID id
Definition ShowPropertySettings.h:29
ShowPropertiesSettings(UUID id, DesignDialogStyle style, const PopupInfo &origin=PopupInfo())
PopupInfo popup_origin
Definition ShowPropertySettings.h:30
ShowPropertiesSettings(UUID id, const PopupInfo &origin=PopupInfo())
void setupForStyle(DesignDialogStyle style)
TranslatedString finish_button_title
Definition ShowPropertySettings.h:31
std::function< void()> cancel_function
Definition ShowPropertySettings.h:40
TranslatedString cancel_button_title
Definition ShowPropertySettings.h:33
String cancel_button_icon
Definition ShowPropertySettings.h:34
std::function< void()> finished_function
Definition ShowPropertySettings.h:39
String finish_button_icon
Definition ShowPropertySettings.h:32