MSIZE1  : dialog {
	label = "MARINE TIE RODS V1.1" ;
        : row {
       	: boxed_radio_column {			
        label = "Carbon Steel Grade";		
          key = "matr";
//        : radio_button {			
//     	    key = "rb1" ;			
//     	  label = "Gr.355 / 510" ;			
//          value = 1 ;
//   	}					
        : radio_button {			
     	    key = "rb2" ;			
     	  label = "Gr.500 / 660" ;			
        }					
        : radio_button {			
     	    key = "rb3" ;			
     	  label = "Gr.700 / 900" ;			
        }					
        }
        }
	: row {
       	: boxed_row {
	label = "&Thread Size";
   	: popup_list {
   	  key = "selection";   	  
          value = 0 ;
	}
	}
       }
       ok_only ;
       }
        
TROD    : dialog {
	label = "MARINE TIE RODS V1.1" ;
        : boxed_column {
          label = "Basic Information";
     	: errtile
	{
	width = 50;
	height = 2;
	alignment = centered;
	}
        }
	: row {
        : column {
       	: boxed_radio_column {			
          label = "Type of Wall";		
            key = "typewall" ;
        : radio_button {
     	    key = "t1" ;
     	  label = "Sheet Pile" ;
        }
        : radio_button {
     	    key = "t5" ;
     	  label = "HZ Pile (King Pile)" ;
        }
     	: radio_button {
     	    key = "t2" ;
     	  label = "Circular Pile (Embeded)" ;
        }
        : radio_button {
     	    key = "t4" ;
     	  label = "Concrete Capping Beam (Embeded)" ;
        }
        : radio_button {
     	    key = "t3" ;
     	  label = "Diaphragm Wall (Embeded)" ;
        }
        : radio_button {
     	    key = "t6" ;
     	  label = "Concrete Block (Not Embeded)" ;
        }
        }
        : boxed_radio_column {
            key = "xvtpe" ;
          label = "View Type" ;
        : radio_button {
     	    key = "xvf" ;
     	  label = "Elevation" ;
     	}
     	  value = 1;
        : radio_button {
     	    key = "xvt" ;
     	  label = "Plan" ;
        }
        }
        }
        : column {
        : boxed_radio_column {
        fixed_width   = true;
          label = "Accessories" ;
            key = "utility";
        : radio_button {
     	    key = "ac1" ;
     	  label = "Ball Cage (+/- 10 deg.)" ;
     	}
        : radio_button {
     	    key = "ac2" ;
     	  label = "Captive Nut (+/- 5 deg.)" ;
        }  
        : radio_button {
            key = "ac3";
          label = "Starter bar with hinge coupler nut";
        }
        : radio_button {
     	    key = "ac5" ;
     	  label = "Anchor Plate" ;
        }
        : radio_button {
     	    key = "ac6" ;
     	  label = "T-Plate (+/- 90 deg.)" ;
        }
        : radio_button {
     	    key = "ac7" ;
     	  label = "Swivel Plate (+/- 7 deg.)" ;
        }
//        : radio_button {
//     	    key = "ac8" ;
//     	  label = "Swivel Angle Seating" ;
//        }
//        : radio_button {
//     	    key = "ac9" ;
//     	  label = "Swivel Shim Plate (+/- 7 deg.)" ;
//        }
        }
        }
        }
        : row {
        : boxed_column {
          label = "Preview and Insertion Points";
        : image {
        alignment = centered ;
	key   = "sld" ;
	width  = 35.0 ;
	height = 10.0  ;
	aspect_ratio = 1.5;
	is_enabled  = false;
	is_tab_stop = false;
	}
        }
        : column {
        : boxed_radio_column {
          label = "Plate Design Criteria" ;
            key = "pldesign";
        : radio_button {
     	    key = "at1" ;
     	  label = "Auto" ;
        }
        : radio_button {
     	    key = "at0" ;
     	  label = "Manual" ;
        }
        }
        : boxed_radio_column {
            key = "cstrength" ;
          label = "Concrete Strength" ;
        : radio_button {
     	    key = "str1" ;
     	  label = "35 MPa" ;
	}
        : radio_button {
     	    key = "str2" ;
     	  label = "45 MPa" ;
	}
        : radio_button {
     	    key = "str3" ;
     	  label = "50 MPa" ;
	}
	}
	}
	}
	: boxed_row {
		label	= "Noted:";
        : text_part {
           key          = "tpart";
            alignment   = centered;
            label	= "Plate height generated from insertion points.";
            is_cancel   = true;
        }
        }
        spacer_1;
        : row {
        : boxed_column {
             key = "pledit" ;
           label = "Plate Dimensions" ;
        : edit_box {
             key = "plthk" ;
           label = "Plate Thickness (mm)" ;
           allow_accept = true ;
           edit_width = 3 ;
        }
        : edit_box {
          key = "plwdt" ;
        label = "Plate width / height" ;
        allow_accept = true ;
        edit_width = 3 ;
        }
        }
        }
      : row {
         alignment   = centered;
         fixed_width = true;
      : button {
         label      = "OK";
         key        = "dl_accept";
         width      = 10;
         is_default = true;
      }
      : button {
         label     = "Cancel";
         key       = "dl_cancel";
         width     = 10;
         is_cancel = true;
      }
      : button {
         label = "About";
         key   = "dl_about";
         width = 10;
      }
      }
      }
      
about : dialog {
   label = "About Marine Tierod";
   : boxed_row {
      : paragraph {
         : text_part {
            alignment   = centered;
            label       = "Marine Tierod";
         }
         : text_part {
            alignment   = centered;
            label       = "Version 1.1";
         }
         : text_part {
            alignment   = centered;
            label       = "(c) Copyright Dextra 2017";
         }
         : text_part {
            alignment   = centered;
            label       = "All Rights Reserved";
            is_cancel = true;
         }
         spacer_1;
         : text_part {
            alignment   = centered;
            label       = "Visit our web site at";
            is_cancel = true;
         }
         : text_part {
            alignment   = centered;
            label       = "http://www.dextragroup.com";
            is_cancel = true;
         }
         spacer_1;
         : text_part {
            alignment   = centered;
            label       = "Address comments to cadbim@dextragroup.com";
            is_cancel = true;
         }
//         spacer_1;
//         : button {
//           label = "Check Version!";
//           key   = "dl_check";
//           width = 10;
//      }
      }
   }
   ok_only;
}

barend : dialog {
        : row {
        : image {
        alignment = centered ;
	key   = "sldl" ;
	height = 10.0  ;
	aspect_ratio = 1;
	is_enabled  = false;
	is_tab_stop = false;
        }
        : image {
        alignment = centered ;
	key   = "sldr" ;
	height = 10.0  ;
	aspect_ratio = 1;
	is_enabled  = false;
	is_tab_stop = false;
        }        
        }
	label = "Bar and End Accessories";
	: row {
	: column {
	: boxed_radio_column {
	label = "First End";
	  key = "end1" ;
	: radio_button {
	  key = "bs1";
	label = "Swivel nut for Plate";
	}
//	: radio_button {
//	  key = "bs2";
//	label = "Swivel nut for Angle Seating";
//	}
	: radio_button {
	  key = "bs3";
	label = "Swivel nut for Captive Nut";
	}
	: radio_button {
	  key = "bs4";
	label = "Ball nut for Ball Cage";
	}
	: radio_button {
	  key = "bs5";
	label = "Hinge Coupler";
	}
	: radio_button {
	  key = "bs6";
	label = "Hinge Turnbuckle";
	}
	: radio_button {
	  key = "bs7";
	label = "Pad-Eye for T-Plate";
	}
	}
	}
	: column {
	: boxed_radio_column {
	label = "Second End";
	  key = "end2" ;
	: radio_button {
	  key = "be1";
	label = "Swivel nut for Plate";
	}
//	: radio_button {
//	  key = "be2";
//	label = "Swivel nut for Angle Seating";
//	}
	: radio_button {
	  key = "be3";
	label = "Swivel nut for Captive Nut";
	}
	: radio_button {
	  key = "be4";
	label = "Ball nut for Ball Cage";
	}
	: radio_button {
	  key = "be5";
	label = "Hinge Coupler";
	}
	: radio_button {
	  key = "be6";
	label = "Hinge Turnbuckle";
	}
	: radio_button {
	  key = "be7";
	label = "Pad-Eye for T-Plate";
	}
	}
	}
	}
	: boxed_radio_row {
            key = "bview" ;
          label = "View Type" ;
        : radio_button {
     	    key = "bvf" ;
     	  label = "Elevation" ;
          value = 1;
     	}
        : radio_button {
     	    key = "bvt" ;
     	  label = "Plan" ;
        }
        }
	ok_cancel;
	}
	
cpnut   : dialog {
	label = "Captive Nut" ;
	: boxed_radio_column {
	label = "Please choose the length";
	: radio_button {
	  key = "cnl1" ;
	label = "500 mm" ;
	}
	: radio_button {
	  key = "cnl2" ;
	label = "600 mm" ;
	}
	: radio_button {
	  key = "cnl3" ;
	label = "700 mm" ;
	}
	}
        ok_only ;
	}
	
connect : dialog {
          label = "Connectors Preview" ;
        : column {
        : image {
        alignment = centered ;
	 key   = "conimg" ;
	height = 10.0 ;
	 width = 35.0 ;
	aspect_ratio = 1;
	is_enabled  = false;
	is_tab_stop = false;
        }
        : column {
        label = "Connectors";
        : radio_button {
	  key = "cnb";
	label = "Coupler";
	}
        : radio_button {
	  key = "cnt";
	label = "Turnbuckle";
	}
        : radio_button {
	  key = "hcb";
	label = "Hinge Coupler";
	}
        : radio_button {
	  key = "hct";
	label = "Hinge Turnbuckle";
	}
	spacer;
	}
        : column {
          key = "cviews";
        label = "Views";
        : radio_button {
	  key = "cvf";
	label = "Elevation";
	}
        : radio_button {
	  key = "cvt";
	label = "Plan";
	}
        }
        }
        ok_cancel;
        }
        
lbhole    : list_box {
    	   width = 20;
    	   height = 10;
    	   fixed_width = true;
    	   alignment = centered;
    	   color = 0;
    	   }

c_hole  : dialog {
	   label = "Hole in Concrete";
	   spacer;
	 : row {
  	 : lbhole {
  	     key = "chole";
  	   label = "Select Hole Diameter" ;
  	   }
  	   }
  	   ok_only;
  	   }