]> git.tdb.fi Git - r2c2.git/blobdiff - data/newvehicledialog.ui
Complete rewrite of the engineer UI
[r2c2.git] / data / newvehicledialog.ui
diff --git a/data/newvehicledialog.ui b/data/newvehicledialog.ui
new file mode 100644 (file)
index 0000000..b835c7e
--- /dev/null
@@ -0,0 +1,92 @@
+layout
+{
+       margin
+       {
+               top 2;
+               horizontal 8;
+               bottom 6;
+       };
+};
+
+column
+{
+       row
+       {
+               label "lbl_title"
+               {
+                       text "Add vehicle";
+               };
+
+               split;
+
+               action_button "btn_close" 0
+               {
+                       style "red_cross";
+               };
+       };
+
+       label "lbl_target";
+
+       row
+       {
+               panel ""
+               {
+                       style "group";
+
+                       layout
+                       {
+                               margin
+                               {
+                                       horizontal 0;
+                                       vertical 0;
+                               };
+
+                               row_spacing 0;
+                       };
+
+                       column
+                       {
+                               toggle "tgl_loco_types"
+                               {
+                                       style "pointer_left";
+                                       text "Loco";
+                                       exclusive true;
+                                       value true;
+                               };
+
+                               toggle "tgl_wagon_types"
+                               {
+                                       style "pointer_left";
+                                       text "Wagn";
+                                       exclusive true;
+                               };
+                       };
+               };
+
+               stack
+               {
+                       list "lst_loco_types"
+                       {
+                               view_size 10;
+                       };
+
+                       list "lst_wagon_types"
+                       {
+                               visible false;
+                       };
+               };
+       };
+
+       row
+       {
+               button "btn_add"
+               {
+                       text "Add";
+               };
+       };
+};
+
+draghandle "";
+constraint COPY_HEIGHT "lbl_title";
+constraint LEFT_OF "btn_close";
+expand true false;