36 using std::make_unique;
38 using std::unique_ptr;
102 if (fileName.empty() ==
true)
throw ExceptionBase(
"Could not save file. No filename known");
104 Tools::getPathName(fileName),
105 Tools::getFileName(fileName)
114 class OnTriggerSave:
public virtual Action
117 void performAction()
override {
119 triggerEditorTabController->view->saveFile(
120 triggerEditorTabController->popUps->getFileDialogScreenController()->getPathName(),
121 triggerEditorTabController->popUps->getFileDialogScreenController()->getFileName()
124 triggerEditorTabController->showInfoPopUp(
"Warning",
string(exception.what()));
126 triggerEditorTabController->popUps->getFileDialogScreenController()->close();
128 OnTriggerSave(
TriggerEditorTabController* triggerEditorTabController): triggerEditorTabController(triggerEditorTabController) {
135 vector<string> extensions = {
139 fileName.empty() ==
false?Tools::getPathName(fileName):
string(),
142 Tools::getFileName(fileName),
144 new OnTriggerSave(
this)
149 showInfoPopUp(
"Warning",
"This command is not supported yet");
167 if (node->
getId() ==
"selectbox_outliner") {
187 int tooltipLeft, tooltipTop;
207 xml+=
"<selectbox-parent-option image=\"resources/engine/images/folder.png\" text=\"" + GUIParser::escape(
"Prototype") +
"\" value=\"" + GUIParser::escape(
"prototype") +
"\">\n";
209 if (prototype !=
nullptr) {
214 xml+=
"</selectbox-parent-option>\n";
219 string(
"<dropdown-option text=\"Property\" value=\"property\" />\n") +
220 string(
"<dropdown-option text=\"BV\" value=\"boundingvolume\" />\n")
const string & getFileName()
const string & getToolTip()
GUI screen node that represents a screen that can be rendered via GUI system.
GUINode * getNodeById(const string &nodeId)
Get GUI node by id.
Mutable utf8 aware string class.
std::exception Exception
Exception base class.