]> git.tdb.fi Git - r2c2.git/blobdiff - data/traindialog.ui
Complete rewrite of the engineer UI
[r2c2.git] / data / traindialog.ui
diff --git a/data/traindialog.ui b/data/traindialog.ui
new file mode 100644 (file)
index 0000000..0b9e70c
--- /dev/null
@@ -0,0 +1,112 @@
+layout
+{
+       margin
+       {
+               top 2;
+               horizontal 8;
+               bottom 6;
+       };
+};
+
+column
+{
+       row
+       {
+               label "lbl_title";
+
+               split;
+
+               button "btn_expand"
+               {
+                       style "arrow_down";
+               };
+
+               action_button "btn_close" 0
+               {
+                       style "red_cross";
+               };
+       };
+
+       row
+       {
+               label "lbl_speed"
+               {
+                       style "digital";
+                       text "  0";
+               };
+
+               hslider "sld_speed"
+               {
+                       range 0 200;
+                       step 5;
+               };
+               expand;
+
+               toggle "tgl_forward"
+               {
+                       style "lever";
+                       text "Fwd";
+                       value true;
+               };
+       };
+
+       panel "pnl_expander"
+       {
+               layout
+               {
+                       margin
+                       {
+                               horizontal 0;
+                               vertical 0;
+                       };
+                       row_spacing 0;
+               };
+
+               style "group";
+               visible false;
+               row
+               {
+                       column
+                       {
+                               toggle "tgl_vehicles"
+                               {
+                                       text "Vehs";
+                                       style "pointer_left";
+                                       exclusive true;
+                                       value true;
+                               };
+
+                               toggle "tgl_control"
+                               {
+                                       text "Ctrl";
+                                       style "pointer_left";
+                                       exclusive true;
+                               };
+
+                               toggle "tgl_router"
+                               {
+                                       text "Rte";
+                                       style "pointer_left";
+                                       exclusive true;
+                               };
+                       };
+
+                       label "lbl_detail_placeholder"
+                       {
+                               visible false;
+                       };
+                       expand;
+               };
+       };
+
+       label "lbl_status"
+       {
+               style "digital";
+       };
+       constraint FAR_BELOW "lbl_speed";
+};
+
+draghandle "";
+expand true false;
+constraint COPY_HEIGHT "lbl_title";
+constraint LEFT_OF "btn_expand";