home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR6 / TABPR205.ZIP / TABPRO.DCL < prev    next >
Text File  |  1993-10-16  |  9KB  |  433 lines

  1. //
  2. // TabPro.DCL - Copyright 1993 by Mountain Software
  3. //
  4. // This file is used by TabPro, the AutoCAD Spreadsheet Interface
  5. //
  6. // THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED
  7. // WARRANTY.  ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR
  8. // PURPOSE AND OF MERCHANTABILITY ARE HEREBY DISCLAIMED.
  9. //
  10. //*===================================================================*
  11.  
  12. dcl_settings : default_dcl_settings { audit_level = 0; }
  13.  
  14. //*----- File -----
  15.  
  16. file_row : row
  17. {
  18. //*----- File
  19.     : button {
  20.         label = "File ";
  21.         fixed_width=true;
  22.         width = 5;
  23.         key = "file";
  24.         mnemonic = "F";
  25.     }
  26.     : edit_box {
  27.         key = "file_box";
  28.         width = 25;
  29.     }
  30. }
  31.  
  32. range_row : row
  33. {
  34. //*----- Range
  35.     : button {
  36.         label = "Range";
  37.         fixed_width=true;
  38.         width = 5;
  39.         key = "range";
  40.         mnemonic = "R";
  41.     }
  42.     : edit_box {
  43.         key = "range_box";
  44.         width = 25;
  45.     }
  46. }
  47.  
  48. //*----- Text Layer
  49.  
  50. layer_row : row
  51. {
  52.     : button {
  53.         label = "Layer...";
  54.         fixed_width=true;
  55.         width = 5;
  56.         key = "layer";
  57.         mnemonic = "L";
  58.     }
  59.     : popup_list {
  60.         key = "layer_list";
  61.         width = 15;
  62.         popup_height = 7;
  63.         alignment = right;
  64.     }
  65. }
  66.  
  67. //*----- Text Style
  68.  
  69. style_row : row
  70. {
  71.     : button {
  72.         label = "Style...";
  73.         fixed_width=true;
  74.         width = 5;
  75.         key = "style";
  76.         mnemonic = "S";
  77.     }
  78.     : popup_list {
  79.         key = "style_list";
  80.         width = 15;
  81.         popup_height = 7;
  82.         alignment = right;
  83.     }
  84. }
  85.  
  86. //*----- Grid
  87.  
  88. grid_row : row
  89. {
  90.     : button {
  91.         label = "Grid... ";
  92.         fixed_width=true;
  93.         width = 5;
  94.         key = "grid";
  95.         mnemonic = "G";
  96.     }
  97.     //*----- Grid Layer
  98.     : popup_list {
  99.         mnemonic = "L";
  100.         key = "grid_layer";
  101.         width = 15;
  102.         popup_height = 7;
  103.         alignment = right;
  104.     }
  105. }
  106.  
  107. //*----- Row Spacing
  108.  
  109. row_scale_edit : edit_box
  110. {
  111.     label = "Row Scale";
  112.     mnemonic = "R";
  113.     key = "row_sf";
  114.     edit_width = 5;
  115. }
  116.  
  117. row_spacing : row
  118. {
  119.     row_scale_edit;
  120.     : slider {
  121.         key = "row_slider";
  122.         width = 12;
  123.         fixed_width = true;
  124.         min_value = 100;
  125.         max_value = 500;
  126.     }
  127. }
  128.  
  129. win_row_spacing : row
  130. {
  131.     : row_scale_edit { edit_width = 18; }
  132. }
  133.  
  134. //*----- Column Spacing
  135.  
  136. col_space_edit : edit_box
  137. {
  138.     label = "Column Offset";
  139.     mnemonic = "C";
  140.     key = "col_of";
  141.     edit_width = 5;
  142. }
  143.  
  144. col_spacing : row
  145. {
  146.     col_space_edit;
  147.     : slider {
  148.         key = "col_slider";
  149.         width = 12;
  150.         fixed_width = true;
  151.         min_value = 0;
  152.         max_value = 400;
  153.     }
  154. }
  155.  
  156. win_col_spacing : row
  157. {
  158.     : col_space_edit { edit_width = 18; }
  159. }
  160.  
  161. //*----- Text Size
  162.  
  163. text_size : edit_box
  164. {
  165.     label = "Height";
  166.     mnemonic = "H";
  167.     key = "text_ht";
  168.     edit_width = 18;
  169. }
  170.  
  171. tabpro : dialog
  172. {
  173.     label = "TabPro (c) Mountain Software";
  174.     : column {
  175.         file_row;
  176.         range_row;
  177.         : boxed_column {
  178.             label = "Text Parameters";
  179.             layer_row;
  180.             style_row;
  181.             grid_row;
  182.             text_size;
  183.             row_spacing;
  184.             col_spacing;
  185.         }
  186.     }
  187.     ok_cancel_help_errtile;
  188. }
  189.  
  190. //  A different dialogue is required for Windows due to a bug in
  191. //  the Windows implementation of the proteus slider widget
  192.  
  193. win_tabpro : dialog
  194. {
  195.     label = "TabPro (c) Mountain Software";
  196.     : column {
  197.         file_row;
  198.         range_row;
  199.         : boxed_column {
  200.             label = "Text Parameters";
  201.             layer_row;
  202.             style_row;
  203.             grid_row;
  204.             text_size;
  205.             win_row_spacing;
  206.             win_col_spacing;
  207.         }
  208.     }
  209.     ok_cancel_help_errtile;
  210. }
  211.  
  212. ok_cancel1 : column {
  213.     : row {
  214.         fixed_width = true;
  215.         alignment = centered;
  216.         : ok_button { key = "accept_1"; }
  217.         : spacer { width = 2; }
  218.         cancel_button;
  219.     }
  220. }
  221.  
  222. Grid : dialog
  223. {
  224.     label = "Table Grid";
  225.     allow_accept=true;
  226.     : boxed_radio_row {
  227.         label = "Border";
  228.         : radio_button {
  229.             key = "border_0";
  230.             label = "None";
  231.             mnemonic = "N";
  232.         }
  233.         : radio_button {
  234.             key = "border_1";
  235.             label = "Thin";
  236.             mnemonic = "T";
  237.         }
  238.         : radio_button {
  239.             key = "border_2";
  240.             label = "Medium";
  241.             mnemonic = "M";
  242.         }
  243.         : radio_button {
  244.             key = "border_3";
  245.             label = "tHick";
  246.             mnemonic = "H";
  247.         }
  248.     }
  249.     spacer;
  250.     : boxed_radio_row {
  251.         label = "Grid Lines";
  252.         mnemonic = "D";
  253.         : radio_button {
  254.             key = "grid_0";
  255.             label = "nOne";
  256.             mnemonic = "O";
  257.         }
  258.         : radio_button {
  259.             key = "grid_1";
  260.             label = "Dotted";
  261.             mnemonic = "D";
  262.         }
  263.         : radio_button {
  264.             key = "grid_2";
  265.             label = "dAshed";
  266.             mnemonic = "A";
  267.         }
  268.         : radio_button {
  269.             key = "grid_3";
  270.             label = "Continuous";
  271.             mnemonic = "C";
  272.         }
  273.     }
  274.     spacer;
  275.     ok_cancel1;
  276. }
  277.  
  278.  
  279. Range : dialog
  280. {
  281.     label = "Named Ranges";
  282.     : list_box {
  283.         key = "range_list";
  284.         width = 35;
  285.         allow_accept=true;
  286.     }
  287.     ok_cancel1;
  288. }
  289.  
  290. //*----- Duplication of the AutoCAD Style Icon Menu
  291.  
  292. icon_box : image_button
  293. {
  294.     height = 4;
  295.     width = 12;
  296.     fixed_height = true;
  297.     fixed_width = true;
  298.     color=graphics_background;
  299.     allow_accept=true;
  300. }
  301.  
  302. icon_dialog : dialog
  303. {
  304.     label = "Icon Menu";
  305.     : row {
  306.         : list_box {
  307.             key = "name_list";
  308.             width = 20;
  309.             allow_accept=true;
  310.         }
  311.         : column {
  312.             : row {
  313.                 : icon_box { key = "01"; }
  314.                 : icon_box { key = "02"; }
  315.                 : icon_box { key = "03"; }
  316.                 : icon_box { key = "04"; }
  317.             }
  318.             : row {
  319.                 : icon_box { key = "05"; }
  320.                 : icon_box { key = "06"; }
  321.                 : icon_box { key = "07"; }
  322.                 : icon_box { key = "08"; }
  323.             }
  324.             : row {
  325.                 : icon_box { key = "09"; }
  326.                 : icon_box { key = "10"; }
  327.                 : icon_box { key = "11"; }
  328.                 : icon_box { key = "12"; }
  329.             }
  330.             : row {
  331.                 : icon_box { key = "13"; }
  332.                 : icon_box { key = "14"; }
  333.                 : icon_box { key = "15"; }
  334.                 : icon_box { key = "16"; }
  335.             }
  336.             : row {
  337.                 : icon_box { key = "17"; }
  338.                 : icon_box { key = "18"; }
  339.                 : icon_box { key = "19"; }
  340.                 : icon_box { key = "20"; }
  341.             }
  342.         }
  343.     }
  344.     : row {
  345.         fixed_width = true;
  346.         alignment = centered;
  347.         : button {
  348.             label = "Previous";
  349.             key = "previous";
  350.             mnemonic = "P";
  351.         }
  352.         : spacer { width = 2; }
  353.         : button {
  354.             label = "Next";
  355.             key = "next";
  356.             mnemonic = "N";
  357.         }
  358.         : spacer { width = 2; }
  359.         ok_button;
  360.         : spacer { width = 2; }
  361.         cancel_button;
  362.         : spacer { width = 2; }
  363.         help_button;
  364.     }
  365.     errtile;
  366. }
  367.  
  368. look_file : dialog {
  369.     label = "";
  370.     key = "filename";
  371.     : list_box {
  372.         key = "look_box";
  373.         tabs = "9 17 25 33 41 49 57 65 73 81";
  374.         width = 74;
  375.         height = 20;
  376.     }
  377.     ok_button;
  378. }
  379.  
  380. style_dialog : dialog
  381. {
  382.     label = "Style Settings";
  383.     : edit_box {
  384.         label = "Style Name";
  385.         mnemonic = "S";
  386.         key = "style_name";
  387.         edit_width = 15;
  388.     }
  389.     : edit_box {
  390.         label = "Font Filename";
  391.         mnemonic = "F";
  392.         key = "font_file";
  393.         edit_width = 15;
  394.     }
  395.     : edit_box {
  396.         label = "Text Height";
  397.         mnemonic = "H";
  398.         key = "height";
  399.         edit_width = 10;
  400.     }
  401.     : edit_box {
  402.         label = "Width Factor";
  403.         mnemonic = "W";
  404.         key = "width_factor";
  405.         edit_width = 10;
  406.     }
  407.     : edit_box {
  408.         label = "Obliqueing Angle";
  409.         mnemonic = "O";
  410.         key = "obl_ang";
  411.         edit_width = 10;
  412.     }
  413.     : boxed_row {
  414.         : toggle {
  415.             label = "Backwards";
  416.             key = "backwards";
  417.             value = "0";
  418.         }
  419.         : toggle {
  420.             label = "Upside Down";
  421.             key = "upside_down";
  422.             value = "0";
  423.         }
  424.         : toggle {
  425.             label = "Vertical";
  426.             key = "vertical";
  427.             value = "0";
  428.         }
  429.     }
  430.     ok_cancel_help_errtile;
  431. }
  432.  
  433.