77 showInfoPopUp(
"Warning",
"This command is not supported yet");
91 if (node->
getId() ==
"selectbox_outliner") {
93 if (StringTools::startsWith(selection,
"toc_") ==
true) {
95 if (node !=
nullptr) {
113 int tooltipLeft, tooltipTop;
125 xml+=
"<selectbox-parent-option text='Table of Contents' value='toc' >\n";
126 auto levelCounter = 1;
128 if (toc.empty() ==
false) {
129 string lastLevel = toc[0].level;
130 for (
auto i = 0; i < toc.size(); i++) {
131 const auto& tocEntry = toc[i];
133 if (i > 0 && tocEntry.level.size() < lastLevel.size()) {
134 xml+=
"</selectbox-parent-option>\n";
138 if (i == toc.size() - 1 || toc[i + 1].level.size() <= tocEntry.level.size()) {
139 xml+=
"<selectbox-option text='" + GUIParser::escape(tocEntry.title) +
"' value='toc_" + GUIParser::escape(tocEntry.id) +
"' />\n";
141 xml+=
"<selectbox-parent-option text='" + GUIParser::escape(tocEntry.title) +
"' value='toc_" + GUIParser::escape(tocEntry.id) +
"'>\n";
144 lastLevel = tocEntry.level;
147 for (
auto i = 0; i < levelCounter; i++) {
148 xml+=
"</selectbox-parent-option>\n";
GUI node controller base class.
virtual const MutableString & getValue()=0
void scrollToNodeY(GUIParentNode *toNode=nullptr)
Scroll to node Y.
void scrollToNodeX(GUIParentNode *toNode=nullptr)
Scroll to node X.
const string & getToolTip()
GUINodeController * getController()
GUI parent node base class thats supporting child nodes.
GUI screen node that represents a screen that can be rendered via GUI system.
GUINode * getNodeById(const string &nodeId)
Get GUI node by id.
File system singleton class.
const string & getString() const
std::exception Exception
Exception base class.