medit/moo/mooedit/mooedit-accels.h
2008-04-27 22:54:32 -05:00

66 lines
2.2 KiB
C

#ifndef MOO_EDIT_ACCELS_H
#define MOO_EDIT_ACCELS_H
#include <mooutils/mooaccel.h>
#define MOO_EDIT_ACCEL_NEW MOO_ACCEL_NEW
#define MOO_EDIT_ACCEL_OPEN MOO_ACCEL_OPEN
#define MOO_EDIT_ACCEL_SAVE MOO_ACCEL_SAVE
#define MOO_EDIT_ACCEL_SAVE_AS MOO_ACCEL_SAVE_AS
#define MOO_EDIT_ACCEL_CLOSE MOO_ACCEL_CLOSE
#define MOO_EDIT_ACCEL_UNDO MOO_ACCEL_UNDO
#define MOO_EDIT_ACCEL_REDO MOO_ACCEL_REDO
#define MOO_EDIT_ACCEL_CUT MOO_ACCEL_CUT
#define MOO_EDIT_ACCEL_COPY MOO_ACCEL_COPY
#define MOO_EDIT_ACCEL_PASTE MOO_ACCEL_PASTE
#define MOO_EDIT_ACCEL_SELECT_ALL MOO_ACCEL_SELECT_ALL
#define MOO_EDIT_ACCEL_PAGE_SETUP MOO_ACCEL_PAGE_SETUP
#define MOO_EDIT_ACCEL_PRINT MOO_ACCEL_PRINT
#define MOO_EDIT_ACCEL_FIND MOO_ACCEL_CTRL "F"
#define MOO_EDIT_ACCEL_REPLACE MOO_ACCEL_CTRL "R"
#ifndef GDK_WINDOWING_QUARTZ
#define MOO_EDIT_ACCEL_FIND_NEXT "F3"
#define MOO_EDIT_ACCEL_FIND_PREV "<Shift>F3"
#define MOO_EDIT_ACCEL_FIND_CURRENT "F4"
#define MOO_EDIT_ACCEL_FIND_CURRENT_BACK "<Shift>F4"
#define MOO_EDIT_ACCEL_GOTO_LINE "<Ctrl>G"
#define MOO_EDIT_ACCEL_FIND_IN_FILES "<Ctrl><Alt>F"
#define MOO_EDIT_ACCEL_FOCUS_DOC "<Alt>C"
#define MOO_EDIT_ACCEL_SWITCH_TO_TAB "<Alt>"
#else /* GDK_WINDOWING_QUARTZ */
#define MOO_EDIT_ACCEL_FIND_NEXT "<Meta>G"
#define MOO_EDIT_ACCEL_FIND_PREV "<Meta><Shift>G"
#define MOO_EDIT_ACCEL_FIND_CURRENT "F4" /* XXX */
#define MOO_EDIT_ACCEL_FIND_CURRENT_BACK "<Shift>F4" /* XXX */
#define MOO_EDIT_ACCEL_GOTO_LINE "<Meta>L"
#define MOO_EDIT_ACCEL_FIND_IN_FILES "<Ctrl><Meta>F"
#define MOO_EDIT_ACCEL_FOCUS_DOC "<Meta>J"
#define MOO_EDIT_ACCEL_SWITCH_TO_TAB "<Meta>"
#endif /* GDK_WINDOWING_QUARTZ */
#define MOO_EDIT_ACCEL_BOOKMARK MOO_ACCEL_CTRL "B"
#define MOO_EDIT_ACCEL_NEXT_BOOKMARK "<Alt>Down" /* XXX */
#define MOO_EDIT_ACCEL_PREV_BOOKMARK "<Alt>Up" /* XXX */
/* no such shortcut on Mac */
#define MOO_EDIT_ACCEL_RELOAD "F5"
/* XXX Shift-Command-W is Close File on Mac */
#define MOO_EDIT_ACCEL_CLOSE_ALL MOO_ACCEL_CTRL "<Shift>W"
#define MOO_EDIT_ACCEL_PREV_TAB "<Alt>Left"
#define MOO_EDIT_ACCEL_NEXT_TAB "<Alt>Right"
#define MOO_EDIT_ACCEL_STOP "Escape"
#define MOO_EDIT_ACCEL_COMPLETE "<Ctrl>Space"
#endif /* MOO_EDIT_ACCELS_H */