]> git.tdb.fi Git - r2c2.git/blobdiff - data/newtraindialog.ui
Complete rewrite of the engineer UI
[r2c2.git] / data / newtraindialog.ui
diff --git a/data/newtraindialog.ui b/data/newtraindialog.ui
new file mode 100644 (file)
index 0000000..b7899bc
--- /dev/null
@@ -0,0 +1,94 @@
+layout
+{
+       margin
+       {
+               top 2;
+               horizontal 8;
+               bottom 6;
+       };
+};
+
+column
+{
+       row
+       {
+               label "lbl_title"
+               {
+                       text "New train";
+               };
+
+               split;
+
+               action_button "btn_close" 0
+               {
+                       style "red_cross";
+               };
+       };
+
+       row
+       {
+               label "lbl_protocol"
+               {
+                       text "Protocol";
+               };
+
+               dropdown "drp_protocol";
+       };
+
+       row
+       {
+               label "lbl_address"
+               {
+                       text "Address:";
+               };
+               constraint COPY_WIDTH "lbl_protocol";
+               
+               entry "ent_address"
+               {
+                       edit_size 8 1;
+               };
+       };
+
+       row
+       {
+               label "lbl_name"
+               {
+                       text "Name:";
+               };
+               constraint COPY_WIDTH "lbl_address";
+
+               entry "ent_name"
+               {
+                       edit_size 30 1;
+               };
+       };
+
+       row
+       {
+               label "lbl_loco_type"
+               {
+                       text "Locomotive:";
+               };
+               constraint COPY_WIDTH "lbl_name";
+
+               dropdown "drp_loco_type"
+               {
+               };
+       };
+
+       row
+       {
+               split;
+
+               action_button "btn_ok" 1
+               {
+                       style "green";
+                       text "Ok";
+               };
+       };
+};
+
+draghandle "";
+expand true false;
+constraint COPY_HEIGHT "lbl_title";
+constraint LEFT_OF "btn_close";