home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / pascal / library / dos / tvision / newed / cmdfile.pas next >
Encoding:
Pascal/Delphi Source File  |  1993-10-31  |  12.8 KB  |  448 lines

  1. { FILE:  cmdfile.pas}
  2.  
  3.  
  4.  
  5. unit CmdFile;
  6.  
  7.  
  8.  
  9.  
  10. { ----------------------------------------------------------- }
  11. {                                                             }
  12. { This unit contains all the command options for the program  }
  13. { and all the status line hints for the program menu options. }
  14. {                                                             }
  15. { For the help commands, always ensure last item in a series  }
  16. { of numbers is labeled "hc????_Items" and it equals last     }
  17. { item in number series.                                      }
  18. {                                                             }
  19. { Don't put anything else in here except key command codes!   }
  20. {                                                             }
  21. { Note that in order for a command to be disabled, it MUST be }
  22. { in the range 100..255!                                      }
  23. {                                                             }
  24. {         Allowable Ranges   Reserved   Can Be Disabled       }
  25. {                                                             }
  26. {              0..99           Yes           Yes              }
  27. {            100..255          No            Yes              }
  28. {            256..999          Yes           No               }
  29. {           1000..65535        No            No               }
  30. {                                                             }
  31. { Al Andersen - 02/29/92.                                     }
  32. {                                                             }
  33. { ----------------------------------------------------------- }
  34.  
  35.  
  36. {$D-}
  37.  
  38.  
  39.  
  40. interface
  41.  
  42.  
  43.  
  44. CONST
  45.  
  46.  
  47.  
  48.   {------------------------------------- }
  49.   {                                      }
  50.   { Menu commands.  Space is provided    }
  51.   { if you want to add an "Extras" menu. }
  52.   { If you use the extra's menu option,  }
  53.   { put your commands here.              }
  54.   {                                      }
  55.   { cm??? range = 100 through 109        }
  56.   { hc??? range = 2000 through 2099      }
  57.   {                                      }
  58.   { ------------------------------------ }
  59.  
  60.  
  61.   cmAbout                =  100;
  62.  
  63.   hcMenus                = 2000;
  64.  
  65.   hcExtra_Menu           = 2001;
  66.   hcAbout                = 2002;
  67.   hcExtra_Menu_Items     = hcExtra_Menu;
  68.  
  69.  
  70.  
  71.   { ------------------------------- }
  72.   {                                 }
  73.   { FILE Menu options.              }
  74.   {                                 }
  75.   { The following commands may be   }
  76.   { found in the NEWEDIT unit:      }
  77.   {                                 }
  78.   { cmSave                          }
  79.   { cmSaveDone                      }
  80.   { cmSaveAs                        }
  81.   {                                 }
  82.   { The following commands may be   }
  83.   { found in the VIEWS unit:        }
  84.   {                                 }
  85.   { cmQuit                          }
  86.   {                                 }
  87.   { cm??? range =  110 through  119 }
  88.   { hc??? range = 2100 through 2199 }
  89.   {                                 }
  90.   { ------------------------------- }
  91.  
  92.  
  93.   cmOpen                 =  110;
  94.   cmNew                  =  111;
  95.   cmChangeDir            =  112;
  96.   cmShellToDos           =  113;
  97.  
  98.   hcFile_Menu            = 2100;
  99.   hcOpen                 = 2101;
  100.   hcNew                  = 2102;
  101.   hcSave                 = 2103;
  102.   hcSaveDone             = 2104;
  103.   hcSaveAs               = 2105;
  104.   hcChangeDir            = 2106;
  105.   hcShellToDos           = 2107;
  106.   hcExit                 = 2108;
  107.   hcFile_Menu_Items      = hcExit;
  108.  
  109.  
  110.  
  111.   { ------------------------------- }
  112.   {                                 }
  113.   { EDIT Menu options.              }
  114.   {                                 }
  115.   { The following commands may be   }
  116.   { found in the VIEWS unit:        }
  117.   {                                 }
  118.   { cmUndo                          }
  119.   { cmCopy                          }
  120.   { cmCut                           }
  121.   { cmPaste                         }
  122.   { cmClear                         }
  123.   {                                 }
  124.   { cm??? range =  120 through  129 }
  125.   { hc??? range = 2200 through 2299 }
  126.   {                                 }
  127.   { ------------------------------- }
  128.  
  129.  
  130.   cmClipboard            =  120;
  131.   cmSpellCheck           =  121;
  132.  
  133.   hcEdit_Menu            = 2200;
  134.   hcUndo                 = 2201;
  135.   hcCopy                 = 2202;
  136.   hcCut                  = 2203;
  137.   hcPaste                = 2204;
  138.   hcClipboard            = 2205;
  139.   hcClear                = 2206;
  140.   hcSpellCheck           = 2207;
  141.   hcEdit_Menu_Items      = hcSpellCheck;
  142.  
  143.  
  144.  
  145.   { ------------------------------- }
  146.   {                                 }
  147.   { SEARCH Menu options.            }
  148.   {                                 }
  149.   { The following commands may be   }
  150.   { found in the NEWEDIT unit:      }
  151.   {                                 }
  152.   { cmFind                          }
  153.   { cmReplace                       }
  154.   { cmSearchAgain                   }
  155.   {                                 }
  156.   { cm??? range =  130 through  139 }
  157.   { hc??? range = 2300 through 2399 }
  158.   {                                 }
  159.   { ------------------------------- }
  160.  
  161.  
  162.   hcSearch_Menu          = 2300;
  163.   hcFind                 = 2301;
  164.   hcReplace              = 2302;
  165.   hcAgain                = 2303;
  166.   hcSearch_Menu_Items    = hcAgain;
  167.  
  168.  
  169.  
  170.   { ------------------------------- }
  171.   {                                 }
  172.   { WINDOWS Menu options.           }
  173.   {                                 }
  174.   { The following commands may be   }
  175.   { found in the VIEWS unit:        }
  176.   {                                 }
  177.   { cmResize                        }
  178.   { cmZoom                          }
  179.   { cmNext                          }
  180.   { cmPrev                          }
  181.   { cmClose                         }
  182.   { cmTile                          }
  183.   { cmCascade                       }
  184.   {                                 }
  185.   { cm??? range =  140 through  149 }
  186.   { hc??? range = 2400 through 2499 }
  187.   {                                 }
  188.   { ------------------------------- }
  189.  
  190.  
  191.   hcWindows_Menu         = 2400;
  192.   hcResize               = 2401;
  193.   hcZoom                 = 2402;
  194.   hcPrev                 = 2403;
  195.   hcNext                 = 2404;
  196.   hcClose                = 2405;
  197.   hcTile                 = 2406;
  198.   hcCascade              = 2407;
  199.   hcWindows_Menu_Items   = hcCascade;
  200.  
  201.  
  202.  
  203.   { ------------------------------- }
  204.   {                                 }
  205.   { DESKTOP Menu options.           }
  206.   {                                 }
  207.   { cm??? range =  150 through  159 }
  208.   { hc??? range = 2500 through 2599 }
  209.   {                                 }
  210.   { ------------------------------- }
  211.  
  212.  
  213.   cmLoadDesktop          =  150;
  214.   cmSaveDesktop          =  151;
  215.   cmToggleVideo          =  152;
  216.  
  217.   hcDesktop_Menu         = 2500;
  218.   hcLoadDesktop          = 2501;
  219.   hcSaveDesktop          = 2502;
  220.   hcToggleVideo          = 2503;
  221.   hcDesktop_Menu_Items   = hcToggleVideo;
  222.  
  223.  
  224.  
  225.   { -------------------------------------------------------------------- }
  226.   {                                                                      }
  227.   { Miscellaneous commands not directly related to menu options go here. }
  228.   {                                                                      }
  229.   { -------------------------------------------------------------------- }
  230.  
  231.  
  232.   hcMisc_Commands        = 2600;
  233.   hckbShift              = 2601;
  234.   hckbCtrl               = 2602;
  235.   hckbAlt                = 2603;
  236.   hcMisc_Items           = hckbAlt;
  237.  
  238.  
  239.  
  240.   { ------------------------------- }
  241.   {                                 }
  242.   { Editor help commands.           }
  243.   {                                 }
  244.   { Editor commands that are not    }
  245.   { available in a menu go here.    }
  246.   {                                 }
  247.   { hc??? range = 2700 through 2799 }
  248.   {                                 }
  249.   { ------------------------------- }
  250.  
  251.  
  252.   { Editor Sub Menu Commands }
  253.  
  254.   hcEditor_Commands      = 2700;
  255.   hcCursor               = 2701;
  256.   hcDeleting             = 2702;
  257.   hcFormatting           = 2703;
  258.   hcMarking              = 2704;
  259.   hcMoving               = 2705;
  260.   hcSaving               = 2706;
  261.   hcSelecting            = 2707;
  262.   hcTabbing              = 2708;
  263.  
  264.   { Editor help commands }
  265.  
  266.   hcBackSpace            = 2709;
  267.   hcCenterText           = 2710;
  268.   hcCharLeft             = 2711;
  269.   hcCharRight            = 2712;
  270.   hcDelChar              = 2713;
  271.   hcDelEnd               = 2714;
  272.   hcDelLine              = 2715;
  273.   hcDelStart             = 2716;
  274.   hcDelWord              = 2717;
  275.   hcEndPage              = 2718;
  276.   hcHideSelect           = 2719;
  277.   hcHomePage             = 2720;
  278.   hcIndentMode           = 2721;
  279.  
  280.   hcInsertLine           = 2722;
  281.   hcInsMode              = 2723;
  282.   hcJumpLine             = 2724;
  283.   hcLineDown             = 2725;
  284.   hcLineEnd              = 2726;
  285.   hcLineStart            = 2727;
  286.   hcLineUp               = 2728;
  287.   hcNewLine              = 2729;
  288.   hcPageDown             = 2730;
  289.   hcPageUp               = 2731;
  290.   hcReformDoc            = 2732;
  291.   hcReformPara           = 2733;
  292.   hcRightMargin          = 2734;
  293.   hcScrollDown           = 2735;
  294.   hcScrollUp             = 2736;
  295.   hcSearchAgain          = 2737;
  296.   hcSelectWord           = 2738;
  297.   hcSetTabs              = 2739;
  298.   hcStartSelect          = 2740;
  299.   hcTabKey               = 2741;
  300.   hcTextEnd              = 2742;
  301.   hcTextStart            = 2743;
  302.   hcWordLeft             = 2744;
  303.   hcWordRight            = 2745;
  304.   hcWordWrap             = 2746;
  305.  
  306.   hcJMarker_Menu         = 2750;
  307.   hcJumpMark1            = 2751;
  308.   hcJumpMark2            = 2752;
  309.   hcJumpMark3            = 2753;
  310.   hcJumpMark4            = 2754;
  311.   hcJumpMark5            = 2755;
  312.   hcJumpMark6            = 2756;
  313.   hcJumpMark7            = 2757;
  314.   hcJumpMark8            = 2758;
  315.   hcJumpMark9            = 2759;
  316.   hcJumpMark0            = 2760;
  317.   hcJMarker_Menu_Items   = 2761;
  318.  
  319.   hcSMarker_Menu         = 2770;
  320.   hcSetMark1             = 2771;
  321.   hcSetMark2             = 2772;
  322.   hcSetMark3             = 2773;
  323.   hcSetMark4             = 2774;
  324.   hcSetMark5             = 2775;
  325.   hcSetMark6             = 2776;
  326.   hcSetMark7             = 2777;
  327.   hcSetMark8             = 2778;
  328.   hcSetMark9             = 2779;
  329.   hcSetMark0             = 2780;
  330.   hcSMarker_Menu_Items   = 2781;
  331.  
  332.   hcEditor_Items         = hcSMarker_Menu_Items;
  333.  
  334.  
  335.  
  336.   { ----------------------------- }
  337.   {                               }
  338.   { Dialog box commands go here.  }
  339.   {                               }
  340.   { hc??? range 2800 through 2899 }
  341.   {                               }
  342.   { ----------------------------- }
  343.  
  344.  
  345.   hcDialogs              = 2800;
  346.  
  347.   { Generic buttons }
  348.  
  349.   hcDCancel              = 2801;
  350.   hcDNo                  = 2802;
  351.   hcDOk                  = 2803;
  352.   hcDYes                 = 2804;
  353.  
  354.   { About dialog }
  355.  
  356.   hcDAbout               = 2805;
  357.  
  358.   { Directory Dialog}
  359.  
  360.   hcDDirName             = 2806;
  361.   hcDDirTree             = 2807;
  362.   hcDChDir               = 2808;
  363.   hcDRevert              = 2809;
  364.  
  365.   { File Dialog }
  366.  
  367.   hcDName                = 2810;
  368.   hcDFiles               = 2811;
  369.  
  370.   { Find Dialog }
  371.  
  372.   hcDFindText            = 2812;
  373.  
  374.   { Jump Line Dialog }
  375.  
  376.   hcDLineNumber          = 2813;
  377.  
  378.   { Reformat Dialog }
  379.  
  380.   hcDReformDoc           = 2814;
  381.  
  382.   { Replace Dialog }
  383.  
  384.   hcDReplaceTExt         = 2815;
  385.  
  386.   { Right Margin Dialog }
  387.  
  388.   hcDRightMargin         = 2816;
  389.  
  390.   { Tab Stop Dialog }
  391.  
  392.   hcDTabStops            = 2817;
  393.  
  394.  
  395.  
  396.   { ----------------------------- }
  397.   {                               }
  398.   { Checkbox help for various     }
  399.   { dialogs goes here.            }
  400.   {                               }
  401.   { hc??? range 2900 through 2999 }
  402.   { ----------------------------- }
  403.  
  404.  
  405.   hcCCaseSensitive       = 2900;
  406.   hcCWholeWords          = 2901;
  407.   hcCPromptReplace       = 2902;
  408.   hcCReplaceAll          = 2903;
  409.   hcCReformCurrent       = 2904;
  410.   hcCReformEntire        = 2905;
  411.  
  412.  
  413.  
  414.   { ----------------------------- }
  415.   {                               }
  416.   { Glossary commands go here.    }
  417.   {                               }
  418.   { hc??? range 2900 through 2999 }
  419.   {                               }
  420.   {                               }
  421.   { ----------------------------- }
  422.  
  423.  
  424.   Glossary               = 3000;
  425.   GCloseIcon             = 3001;
  426.   GDesktop               = 3002;
  427.   GDialogBox             = 3003;
  428.   GHistoryIcon           = 3004;
  429.   GInputLine             = 3005;
  430.   GMemIndicator          = 3006;
  431.   GMenuBar               = 3007;
  432.   GPulldownMenu          = 3008;
  433.   GResizeCorner          = 3009;
  434.   GSelectedText          = 3010;
  435.   GStatusBar             = 3011;
  436.   GTitleBar              = 3012;
  437.   GWindowBorder          = 3013;
  438.   GZoomIcon              = 3014;
  439.   hcGlossary_Items       = GZoomIcon;
  440.  
  441.  
  442.  
  443. implementation
  444.  
  445.  
  446.  
  447. end. { CmdFile }
  448.