medit/moo/mooedit/mooedit-enums-in.py

86 lines
3.4 KiB
Python
Raw Normal View History

2010-01-21 23:42:47 -08:00
enums = {}
flags = {}
enums['MooEditConfigSource'] = [
2010-12-19 15:35:46 -08:00
[ 'MOO_EDIT_CONFIG_SOURCE_USER' , '0' , None, 'user' ],
[ 'MOO_EDIT_CONFIG_SOURCE_FILE' , '10', None, 'file'],
[ 'MOO_EDIT_CONFIG_SOURCE_FILENAME', '20', None, 'filename' ],
[ 'MOO_EDIT_CONFIG_SOURCE_LANG' , '30', None, 'lang' ],
[ 'MOO_EDIT_CONFIG_SOURCE_AUTO' , '40', None, 'auto' ],
2010-01-21 23:42:47 -08:00
]
enums['MooActionCheckType'] = [
2010-12-19 15:35:46 -08:00
[ 'MOO_ACTION_CHECK_SENSITIVE', None, None, 'check-sensitive' ],
[ 'MOO_ACTION_CHECK_VISIBLE' , None, None, 'check-visible' ],
[ 'MOO_ACTION_CHECK_ACTIVE' , None, None, 'check-active' ],
2010-01-21 23:42:47 -08:00
]
flags['MooEditStatus'] = [
2010-12-19 15:35:46 -08:00
[ 'MOO_EDIT_STATUS_NORMAL', '0', None, 'normal' ],
[ 'MOO_EDIT_MODIFIED_ON_DISK', '1 << 0', None, 'modified-on-disk' ],
[ 'MOO_EDIT_DELETED', '1 << 1', None, 'delteted' ],
[ 'MOO_EDIT_CHANGED_ON_DISK', 'MOO_EDIT_MODIFIED_ON_DISK | MOO_EDIT_DELETED', None, 'changed-on-disk' ],
[ 'MOO_EDIT_MODIFIED', '1 << 2', None, 'modified' ],
[ 'MOO_EDIT_NEW', '1 << 3', None, 'new' ],
[ 'MOO_EDIT_CLEAN', '1 << 4', "doesn't prompt when it's being closed, even if it's modified", 'clean' ],
2010-01-21 23:42:47 -08:00
]
enums['MooEditState'] = [
2010-12-19 15:35:46 -08:00
[ 'MOO_EDIT_STATE_NORMAL', None, None, 'normal' ],
[ 'MOO_EDIT_STATE_LOADING', None, None, 'loading' ],
[ 'MOO_EDIT_STATE_SAVING', None, None, 'saving' ],
[ 'MOO_EDIT_STATE_PRINTING', None, None, 'printing' ],
2010-01-21 23:42:47 -08:00
]
enums['MooEditSaveResponse'] = [
2010-12-19 15:35:46 -08:00
[ 'MOO_EDIT_SAVE_RESPONSE_CONTINUE', '2', None, 'continue' ],
[ 'MOO_EDIT_SAVE_RESPONSE_CANCEL', '3', None, 'cancel' ],
]
2010-01-21 23:42:47 -08:00
# Keep in sync with line_end_menu_items in mooeditwindow.c
enums['MooLineEndType'] = [
2010-12-19 15:35:46 -08:00
[ 'MOO_LE_NONE', None, None, 'none' ],
[ 'MOO_LE_UNIX', None, None, 'unix' ],
[ 'MOO_LE_WIN32', None, None, 'win32' ],
[ 'MOO_LE_MAC', None, None, 'mac' ],
[ 'MOO_LE_MIX', None, None, 'mix' ],
2010-01-21 23:42:47 -08:00
]
flags['MooFindFlags'] = [
2010-12-19 15:35:46 -08:00
[ 'MOO_FIND_REGEX', '1 << 0', None, 'regex' ],
[ 'MOO_FIND_CASELESS', '1 << 1', None, 'caseless' ],
[ 'MOO_FIND_IN_SELECTED', '1 << 2', None, 'in-selected' ],
[ 'MOO_FIND_BACKWARDS', '1 << 3', None, 'backwards' ],
[ 'MOO_FIND_WHOLE_WORDS', '1 << 4', None, 'whole-words' ],
[ 'MOO_FIND_FROM_CURSOR', '1 << 5', None, 'from-cursor' ],
[ 'MOO_FIND_DONT_PROMPT', '1 << 6', None, 'dont-prompt' ],
[ 'MOO_FIND_REPL_LITERAL', '1 << 7', None, 'repl-literal' ],
2010-01-21 23:42:47 -08:00
]
flags['MooTextSearchFlags'] = [
2010-12-19 15:35:46 -08:00
[ 'MOO_TEXT_SEARCH_CASELESS', '1 << 0', None, 'caseless' ],
[ 'MOO_TEXT_SEARCH_REGEX', '1 << 1', None, 'regex' ],
[ 'MOO_TEXT_SEARCH_WHOLE_WORDS', '1 << 2', None, 'whole-words' ],
[ 'MOO_TEXT_SEARCH_REPL_LITERAL', '1 << 3', None, 'repl-literal' ],
2010-01-21 23:42:47 -08:00
]
enums['MooTextSelectionType'] = [
2010-12-19 15:35:46 -08:00
[ 'MOO_TEXT_SELECT_CHARS', None, None, 'chars' ],
[ 'MOO_TEXT_SELECT_WORDS', None, None, 'words' ],
[ 'MOO_TEXT_SELECT_LINES', None, None, 'lines' ],
2010-01-21 23:42:47 -08:00
]
enums['MooTextCursor'] = [
2010-12-19 15:35:46 -08:00
[ 'MOO_TEXT_CURSOR_NONE', None, None, 'none' ],
[ 'MOO_TEXT_CURSOR_TEXT', None, None, 'text' ],
[ 'MOO_TEXT_CURSOR_ARROW', None, None, 'arrow' ],
[ 'MOO_TEXT_CURSOR_LINK', None, None, 'link' ],
2010-01-21 23:42:47 -08:00
]
flags['MooDrawWhitespaceFlags'] = [
2010-12-19 15:35:46 -08:00
[ 'MOO_DRAW_NO_WHITESPACE', '0', None, None, 'none' ],
[ 'MOO_DRAW_SPACES', '1 << 0', None, None, 'spaces' ],
[ 'MOO_DRAW_TABS', '1 << 1', None, None, 'tabs' ],
[ 'MOO_DRAW_TRAILING_SPACES', '1 << 2', None, None, 'trailing-spaces' ],
]