⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menu.c

📁 一个开源著名的TDE编辑器源代码
💻 C
📖 第 1 页 / 共 2 页
字号:
   Item( "Expand Tabs",         BlockExpandTabs     )   Item( "Compress Tab",        BlockCompressTabs   )   Item( "Indent Tabs",         BlockIndentTabs     )   Item( "Trim Trail",          BlockTrimTrailing   )   Item( "E-mail '>'",          BlockEmailReply     )   SepLabel( "Box only" )   SubM( "Border",              5                   )   SubM( "Fill",                6                   )   Item( "Number",              NumberBlock         )   Item( "Sum",                 SumBlock            )EndBegin( toggle_opts )   Item( "Indent",              ToggleIndent        )   Item( "Word wrap",           ToggleWordWrap      )   Item( "Trim trailing",       ToggleTrailing      )   Separator   Item( "EOL display",         ToggleEol           )   Item( "Ruler",               ToggleRuler         )   Item( "Line numbers",        ToggleLineNumbers   )   Item( "Cursor cross",        ToggleCursorCross   )   Separator   Item( "Cursor direction",    ChangeCurDir        )   Item( "Graphic chars",       ToggleGraphicChars  )   Item( "Drawing",             ToggleDraw          )   Separator   Item( "Read only",           ToggleReadOnly      )   Item( "Line ending",         ToggleCRLF          )   Item( "Control Z",           ToggleZ             )   Item( "Cur. directory",      ToggleCWD           )   Separator   Item( "Syntax highlight",    ToggleSyntax        )   Item( "Break point",         SetBreakPoint       )   /*   Item( "Group undo",          ToggleUndoGroup     )   Item( "Undo movement",       ToggleUndoMove      )   */EndBegin( other_opts )   Item( "Date Stamp",          DateTimeStamp       )   Item( "Stamp Format",        StampFormat         )   Item( "Character set",       CharacterSet        )   Item( "Popup Ruler",         PopupRuler          )   SepLabel( "Line" )   Item( "Add",                 AddLine             )   Item( "Split",               SplitLine           )   Item( "Join",                JoinLine            )   Item( "Duplicate",           DuplicateLine       )   Item( "Delete",              DeleteLine          )   Item( "Delete end",          DelEndOfLine        )   Item( "Delete begin",        DelBegOfLine        )   Item( "Erase begin",         EraseBegOfLine      )   Item( "Retrieve",            RetrieveLine        )   SepLabel( "Macro" )   Item( "Record/Stop",         RecordMacro         )   Item( "Pseudo-macro",        PseudoMacro         )   Item( "Repeat",              Repeat              )   SubM( "File",                3                   )   Separator   Item( "Shell",               Shell               )   Item( "Execute",             Execute             )#if 1 //!defined( __UNIX__ )   Item( "User Screen",         UserScreen          )#endifEndBegin( word_opts )   Item( "Format Paragraph",    FormatParagraph     )   Item( "Format forward",      FormatText          )   Item( "Margins",             SetMargins          )   SepLabel( "Justify" )   Item( "Left",                LeftJustify         )   Item( "Right",               RightJustify        )   Item( "Center",              CenterJustify       )   SepLabel( "Block Justify" )   Item( "Left",                BlockLeftJustify    )   Item( "Right",               BlockRightJustify   )   Item( "Center",              BlockCenterJustify  )   Separator   SubM( "Tabs",                1                   )   SubM( "Indentation",         2                   )EndBegin( move_opts )   Item( "Top of File",         TopOfFile           )   Item( "End of File",         EndOfFile           )   Item( "Top line",            TopOfScreen         )   Item( "Center line",         CenterWindow        )   Item( "Bottom line",         BotOfScreen         )   Item( "Line to top",         TopLine             )   Item( "Line to center",      CenterLine          )   Item( "Line to bottom",      BottomLine          )   Item( "Window left",         ScreenLeft          )   Item( "Window right",        ScreenRight         )   Item( "Half window up",      HalfScreenUp        )   Item( "Half window down",    HalfScreenDown      )   Item( "Half window left",    HalfScreenLeft      )   Item( "Half window right",   HalfScreenRight     )   Separator   Item( "Goto Position",       JumpToPosition      )   Item( "Next Dirty Line",     NextDirtyLine       )   Item( "Prev Dirty Line",     PrevDirtyLine       )   Item( "Next Browse",         NextBrowse          )   Item( "Prev Browse",         PrevBrowse          )   Separator   Item( "Cursor sync",         ToggleSync          )EndBegin( window_opts )   Item( "Split horizontal",    SplitHorizontal     )   Item( "Split vertical",      SplitVertical       )   Item( "Split half horiz.",   SplitHalfHorizontal )   Item( "Split half vert.",    SplitHalfVertical   )   Item( "Make horizontal",     MakeHorizontal      )   Item( "Make vertical",       MakeVertical        )   Item( "Make half horiz.",    MakeHalfHorizontal  )   Item( "Make half vert.",     MakeHalfVertical    )   Item( "Balance horiz.",      BalanceHorizontal   )   Item( "Balance vert.",       BalanceVertical     )   Item( "Size",                SizeWindow          )   Item( "Zoom",                ZoomWindow          )   Item( "Close",               CloseWindow         )   Separator   Item( "Next",                NextWindow          )   Item( "Previous",            PreviousWindow      )   Item( "Next Hidden",         NextHiddenWindow    )   Item( "Prev Hidden",         PrevHiddenWindow    )   Item( "Goto",                GotoWindow          )   Separator   Item( "Title",               TitleWindow         )   Item( "Redraw Screen",       RedrawScreen        )EndBegin( help_opts )   Item( "Context Help",        ContextHelp         )   Item( "Help Screen",         Help                )   Separator   Item( "About",               About               )End/* * here's the main headings in the pull-down menu.  in TDESTR.H the number *  of headings is defined as MAJOR or 10. */#define Menu( name, menu ) { "\000" name, Popout( menu ) },MENU menu = {   Menu( "File",      file_opts )   Menu( "Search",  search_opts )   Menu( "Block",    block_opts )   Menu( "Toggles", toggle_opts )   Menu( "Other",    other_opts )   Menu( "Word",      word_opts )   Menu( "Move",      move_opts )   Menu( "Window",  window_opts )     { "\0User",    { NULL, 0, 0, 0, 0, 0 } },   Menu( "Help",      help_opts )};int  menu_cnt = MAJOR;int  user_idx = MAJOR - 2;/* * popup menu for selecting the new window in the make window functions. */Begin( make_window )   SepLabel( " Make window with..." )   Separator   Item( "Next file",           EditNextFile        )   Item( "Next hidden window",  NextHiddenWindow    )   Item( "Previous hidden",     PrevHiddenWindow    )   Item( "Select window",       GotoWindow          )   Item( "Load file",           EditFile            )   Item( "Select file",         DirList             )   Item( "Scratch window",      ScratchWindow       )   Item( "Grep",                DefineGrep          )   Item( "Next grep",           RepeatGrep          )EndMENU_STR make_window_menu = Popout( make_window );char *key_word[MAX_KEYS] = {   "Esc",   "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-", "=", "Backspace",   "Tab", "Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "[", "]", "Enter",   "Ctrl+", "A", "S", "D", "F", "G", "H", "J", "K", "L", ";", "'", "`",   "Shift+", "\\", "Z", "X", "C", "V", "B", "N", "M", ",", ".", "/",   "", /* RightShift remapped as Control+Break */   "Grey*", "Alt+", "Space", "", /* CapsLock */   "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10",   "GreyEnter", "Grey/", /* remapped NumLock & ScrollLock */   "Home", "Up", "PgUp", "Grey-", "Left", "Center", "Right", "Grey+",   "End", "Down", "PgDn", "Insert", "Delete",   "PrtSc", "" /* fake F11 */,  "Left\\", "F11", "F12",};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -