44 return "RemoteGuiExample2";
84 void RemoteGuiExample2::RemoteGui_update()
91 void RemoteGuiExample2::createTab_Widgets()
99 Label label(
"Line: ");
100 HBoxLayout line{label, widgetsTab.
lineEdit};
101 vLayout.addChild(line);
108 HBoxLayout line{
Label(
"Combo: "), widgetsTab.
combo};
109 vLayout.addChild(line);
116 vLayout.addChild(line);
123 HBoxLayout line{
Label(
"Toggle: "), widgetsTab.
toggle};
124 vLayout.addChild(line);
135 vLayout.addChild(line);
149 vLayout.addChild(line);
155 HBoxLayout line{
Label(
"Button: "), widgetsTab.
button};
156 vLayout.addChild(line);
159 vLayout.addChild(VSpacer());
162 groupBox.
setLabel(
"Group VBoxLayout");
163 groupBox.addChild(vLayout);
165 auto makeButton = [](std::string
const & text)
168 result.setLabel(text);
172 GroupBox gridGroupBox;
173 gridGroupBox.setLabel(
"Group GridLayout");
174 gridGroupBox.addChild(
180 .add(
Label(
"foooooooooooooooooo"), Pos{2, 1}, Span{1, 2})
181 .add(HSpacer(), Pos{0, 3}, Span{1, 1})
184 GroupBox collapsedGroup;
185 collapsedGroup.setLabel(
"Group Collapsed");
186 collapsedGroup.setCollapsed(
true);
187 collapsedGroup.addChild(
Label(
"This can only be seen if expanded"));
189 VBoxLayout root = {groupBox, gridGroupBox, collapsedGroup};
195 void RemoteGuiExample2::updateTab_Widgets()
211 void RemoteGuiExample2::createTab_Events()
217 label.setText(
"Counter: ");
224 line.addChild(label);
225 line.addChild(eventsTab.
spinInt);
227 vLayout.addChild(line);
238 vLayout.addChild(line);
241 vLayout.addChild(VSpacer());
247 void RemoteGuiExample2::updateTab_Events()