100 if (fileName.empty() ==
true)
throw ExceptionBase(
"Could not save file. No filename known");
102 Tools::getPathName(fileName),
103 Tools::getFileName(fileName)
112 class OnTriggerSave:
public virtual Action
115 void performAction()
override {
117 triggerEditorTabController->view->saveFile(
118 triggerEditorTabController->popUps->getFileDialogScreenController()->getPathName(),
119 triggerEditorTabController->popUps->getFileDialogScreenController()->getFileName()
122 triggerEditorTabController->showErrorPopUp(
"Warning", (
string(exception.what())));
124 triggerEditorTabController->popUps->getFileDialogScreenController()->close();
126 OnTriggerSave(
TriggerEditorTabController* triggerEditorTabController): triggerEditorTabController(triggerEditorTabController) {
133 vector<string> extensions = {
137 fileName.empty() ==
false?Tools::getPathName(fileName):
string(),
140 Tools::getFileName(fileName),
142 new OnTriggerSave(
this)
148 if (node->
getId() ==
"selectbox_outliner") {
178 xml+=
"<selectbox-parent-option image=\"resources/engine/images/folder.png\" text=\"" + GUIParser::escapeQuotes(
"Prototype") +
"\" value=\"" + GUIParser::escapeQuotes(
"prototype") +
"\">\n";
180 if (prototype !=
nullptr) {
184 xml+=
"</selectbox-parent-option>\n";
189 string(
"<dropdown-option text=\"Property\" value=\"property\" />\n") +
190 string(
"<dropdown-option text=\"BV\" value=\"boundingvolume\" />\n")
const string & getFileName()
GUI screen node that represents a screen that can be rendered via GUI system.
GUINode * getNodeById(const string &nodeId)
Get GUI node by id.
std::exception Exception
Exception base class.