43 return "RemoteGuiExample2";
84 RemoteGuiExample2::RemoteGui_update()
91 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);
168 result.setLabel(text);
172 GroupBox gridGroupBox;
173 gridGroupBox.setLabel(
"Group GridLayout");
174 gridGroupBox.addChild(GridLayout()
179 .add(
Label(
"foooooooooooooooooo"), Pos{2, 1}, Span{1, 2})
180 .add(HSpacer(), Pos{0, 3}, Span{1, 1}));
182 GroupBox collapsedGroup;
183 collapsedGroup.setLabel(
"Group Collapsed");
184 collapsedGroup.setCollapsed(
true);
185 collapsedGroup.addChild(
Label(
"This can only be seen if expanded"));
187 VBoxLayout root = {groupBox, gridGroupBox, collapsedGroup};
193 RemoteGuiExample2::updateTab_Widgets()
209 RemoteGuiExample2::createTab_Events()
215 label.setText(
"Counter: ");
222 line.addChild(label);
223 line.addChild(eventsTab.
spinInt);
225 vLayout.addChild(line);
236 vLayout.addChild(line);
239 vLayout.addChild(VSpacer());
245 RemoteGuiExample2::updateTab_Events()