leocad/common/lc_commands.h

291 lines
6.4 KiB
C
Raw Normal View History

#pragma once
2013-08-09 06:57:18 +02:00
2014-12-04 02:47:28 +01:00
enum lcCommandId
2013-08-09 06:57:18 +02:00
{
LC_FILE_NEW,
LC_FILE_OPEN,
LC_FILE_MERGE,
LC_FILE_SAVE,
LC_FILE_SAVEAS,
LC_FILE_SAVE_IMAGE,
2017-06-26 03:20:34 +02:00
LC_FILE_IMPORT_LDD,
2017-08-20 22:47:53 +02:00
LC_FILE_IMPORT_INVENTORY,
2013-08-09 06:57:18 +02:00
LC_FILE_EXPORT_3DS,
2017-08-11 03:40:43 +02:00
LC_FILE_EXPORT_COLLADA,
2013-08-09 06:57:18 +02:00
LC_FILE_EXPORT_HTML,
LC_FILE_EXPORT_BRICKLINK,
LC_FILE_EXPORT_CSV,
LC_FILE_EXPORT_POVRAY,
LC_FILE_EXPORT_WAVEFRONT,
2017-09-22 19:08:02 +02:00
LC_FILE_RENDER,
2020-06-01 03:46:36 +02:00
LC_FILE_INSTRUCTIONS,
2013-08-09 06:57:18 +02:00
LC_FILE_PRINT,
LC_FILE_PRINT_PREVIEW,
LC_FILE_PRINT_BOM,
LC_FILE_RECENT_FIRST,
LC_FILE_RECENT1 = LC_FILE_RECENT_FIRST,
LC_FILE_RECENT2,
LC_FILE_RECENT3,
LC_FILE_RECENT4,
LC_FILE_RECENT_LAST = LC_FILE_RECENT4,
LC_FILE_EXIT,
LC_EDIT_UNDO,
LC_EDIT_REDO,
LC_EDIT_CUT,
LC_EDIT_COPY,
LC_EDIT_PASTE,
LC_EDIT_FIND,
LC_EDIT_FIND_NEXT,
LC_EDIT_FIND_PREVIOUS,
LC_EDIT_SELECT_ALL,
LC_EDIT_SELECT_NONE,
LC_EDIT_SELECT_INVERT,
LC_EDIT_SELECT_BY_NAME,
LC_EDIT_SELECT_BY_COLOR,
2017-11-22 02:58:36 +01:00
LC_EDIT_SELECTION_MODE_FIRST,
LC_EDIT_SELECTION_SINGLE = LC_EDIT_SELECT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_TRANSFORM_RELATIVE_TRANSLATION,
LC_EDIT_TRANSFORM_ABSOLUTE_ROTATION,
LC_EDIT_TRANSFORM_RELATIVE_ROTATION,
LC_EDIT_ACTION_FIRST,
LC_EDIT_ACTION_INSERT = LC_EDIT_ACTION_FIRST,
LC_EDIT_ACTION_LIGHT,
LC_EDIT_ACTION_SPOTLIGHT,
LC_EDIT_ACTION_CAMERA,
LC_EDIT_ACTION_SELECT,
LC_EDIT_ACTION_MOVE,
LC_EDIT_ACTION_ROTATE,
LC_EDIT_ACTION_DELETE,
LC_EDIT_ACTION_PAINT,
LC_EDIT_ACTION_COLOR_PICKER,
2013-08-09 06:57:18 +02:00
LC_EDIT_ACTION_ZOOM,
LC_EDIT_ACTION_PAN,
LC_EDIT_ACTION_ROTATE_VIEW,
LC_EDIT_ACTION_ROLL,
LC_EDIT_ACTION_ZOOM_REGION,
LC_EDIT_ACTION_LAST = LC_EDIT_ACTION_ZOOM_REGION,
LC_EDIT_CANCEL,
LC_VIEW_PREFERENCES,
LC_VIEW_ZOOM_IN,
LC_VIEW_ZOOM_OUT,
LC_VIEW_ZOOM_EXTENTS,
2013-12-17 23:23:41 +01:00
LC_VIEW_LOOK_AT,
LC_VIEW_MOVE_FORWARD,
LC_VIEW_MOVE_BACKWARD,
LC_VIEW_MOVE_LEFT,
LC_VIEW_MOVE_RIGHT,
LC_VIEW_MOVE_UP,
LC_VIEW_MOVE_DOWN,
2013-08-09 06:57:18 +02:00
LC_VIEW_VIEWPOINT_FRONT,
LC_VIEW_VIEWPOINT_BACK,
LC_VIEW_VIEWPOINT_TOP,
LC_VIEW_VIEWPOINT_BOTTOM,
LC_VIEW_VIEWPOINT_LEFT,
LC_VIEW_VIEWPOINT_RIGHT,
LC_VIEW_VIEWPOINT_HOME,
LC_VIEW_CAMERA_NONE,
LC_VIEW_CAMERA_FIRST,
LC_VIEW_CAMERA1 = LC_VIEW_CAMERA_FIRST,
LC_VIEW_CAMERA2,
LC_VIEW_CAMERA3,
LC_VIEW_CAMERA4,
LC_VIEW_CAMERA5,
LC_VIEW_CAMERA6,
LC_VIEW_CAMERA7,
LC_VIEW_CAMERA8,
LC_VIEW_CAMERA9,
LC_VIEW_CAMERA10,
LC_VIEW_CAMERA11,
LC_VIEW_CAMERA12,
LC_VIEW_CAMERA13,
LC_VIEW_CAMERA14,
LC_VIEW_CAMERA15,
LC_VIEW_CAMERA16,
LC_VIEW_CAMERA_LAST = LC_VIEW_CAMERA16,
LC_VIEW_CAMERA_RESET,
LC_VIEW_TIME_FIRST,
LC_VIEW_TIME_PREVIOUS,
LC_VIEW_TIME_NEXT,
LC_VIEW_TIME_LAST,
LC_VIEW_TIME_INSERT_BEFORE,
LC_VIEW_TIME_INSERT_AFTER,
2013-08-09 06:57:18 +02:00
LC_VIEW_TIME_DELETE,
LC_VIEW_TIME_ADD_KEYS,
LC_VIEW_SPLIT_HORIZONTAL,
LC_VIEW_SPLIT_VERTICAL,
LC_VIEW_REMOVE_VIEW,
LC_VIEW_RESET_VIEWS,
LC_VIEW_TOOLBAR_STANDARD,
LC_VIEW_TOOLBAR_FIRST = LC_VIEW_TOOLBAR_STANDARD,
LC_VIEW_TOOLBAR_TOOLS,
LC_VIEW_TOOLBAR_TIME,
LC_VIEW_TOOLBAR_PARTS,
LC_VIEW_TOOLBAR_COLORS,
LC_VIEW_TOOLBAR_PROPERTIES,
LC_VIEW_TOOLBAR_TIMELINE,
LC_VIEW_TOOLBAR_LAST = LC_VIEW_TOOLBAR_TIMELINE,
2013-08-09 06:57:18 +02:00
LC_VIEW_FULLSCREEN,
LC_VIEW_CLOSE_CURRENT_TAB,
2017-08-25 21:57:14 +02:00
LC_VIEW_SHADING_FIRST,
LC_VIEW_SHADING_WIREFRAME = LC_VIEW_SHADING_FIRST,
LC_VIEW_SHADING_FLAT,
LC_VIEW_SHADING_DEFAULT_LIGHTS,
LC_VIEW_SHADING_LAST = LC_VIEW_SHADING_DEFAULT_LIGHTS,
2013-12-17 03:43:16 +01:00
LC_VIEW_PROJECTION_FIRST,
LC_VIEW_PROJECTION_PERSPECTIVE = LC_VIEW_PROJECTION_FIRST,
LC_VIEW_PROJECTION_ORTHO,
LC_VIEW_PROJECTION_LAST = LC_VIEW_PROJECTION_ORTHO,
2020-01-05 20:38:24 +01:00
LC_VIEW_TOGGLE_VIEW_SPHERE,
LC_VIEW_TOGGLE_AXIS_ICON,
LC_VIEW_FADE_PREVIOUS_STEPS,
2013-08-09 06:57:18 +02:00
LC_PIECE_INSERT,
LC_PIECE_DELETE,
2017-03-09 00:55:38 +01:00
LC_PIECE_DUPLICATE,
2015-12-14 19:01:17 +01:00
LC_PIECE_RESET_PIVOT_POINT,
LC_PIECE_REMOVE_KEY_FRAMES,
LC_PIECE_CONTROL_POINT_INSERT,
LC_PIECE_CONTROL_POINT_REMOVE,
2013-08-09 06:57:18 +02:00
LC_PIECE_MOVE_PLUSX,
LC_PIECE_MOVE_MINUSX,
LC_PIECE_MOVE_PLUSY,
LC_PIECE_MOVE_MINUSY,
LC_PIECE_MOVE_PLUSZ,
LC_PIECE_MOVE_MINUSZ,
LC_PIECE_ROTATE_PLUSX,
LC_PIECE_ROTATE_MINUSX,
LC_PIECE_ROTATE_PLUSY,
LC_PIECE_ROTATE_MINUSY,
LC_PIECE_ROTATE_PLUSZ,
LC_PIECE_ROTATE_MINUSZ,
LC_PIECE_MINIFIG_WIZARD,
LC_PIECE_ARRAY,
LC_PIECE_VIEW_SELECTED_MODEL,
2015-12-02 00:31:28 +01:00
LC_PIECE_MOVE_SELECTION_TO_MODEL,
LC_PIECE_INLINE_SELECTED_MODELS,
LC_PIECE_EDIT_SELECTED_SUBMODEL,
2018-10-14 17:47:28 +02:00
LC_PIECE_EDIT_END_SUBMODEL,
2013-08-09 06:57:18 +02:00
LC_PIECE_GROUP,
LC_PIECE_UNGROUP,
LC_PIECE_GROUP_ADD,
LC_PIECE_GROUP_REMOVE,
LC_PIECE_GROUP_EDIT,
LC_PIECE_HIDE_SELECTED,
LC_PIECE_HIDE_UNSELECTED,
LC_PIECE_UNHIDE_SELECTED,
2013-08-09 06:57:18 +02:00
LC_PIECE_UNHIDE_ALL,
LC_PIECE_SHOW_EARLIER,
LC_PIECE_SHOW_LATER,
2014-12-10 00:56:29 +01:00
LC_MODEL_NEW,
2014-12-31 18:05:23 +01:00
LC_MODEL_PROPERTIES,
2014-12-10 00:56:29 +01:00
LC_MODEL_LIST,
LC_MODEL_FIRST,
LC_MODEL_01 = LC_MODEL_FIRST,
LC_MODEL_02,
LC_MODEL_03,
LC_MODEL_04,
LC_MODEL_05,
LC_MODEL_06,
LC_MODEL_07,
LC_MODEL_08,
LC_MODEL_09,
LC_MODEL_10,
LC_MODEL_11,
LC_MODEL_12,
LC_MODEL_13,
LC_MODEL_14,
LC_MODEL_15,
LC_MODEL_16,
LC_MODEL_17,
LC_MODEL_18,
LC_MODEL_19,
LC_MODEL_20,
LC_MODEL_21,
LC_MODEL_22,
LC_MODEL_23,
LC_MODEL_24,
LC_MODEL_LAST = LC_MODEL_24,
2013-08-09 06:57:18 +02:00
LC_HELP_HOMEPAGE,
LC_HELP_BUG_REPORT,
2013-08-09 06:57:18 +02:00
LC_HELP_UPDATES,
LC_HELP_ABOUT,
LC_TIMELINE_INSERT_BEFORE,
LC_TIMELINE_INSERT_AFTER,
LC_TIMELINE_DELETE,
LC_TIMELINE_MOVE_SELECTION,
LC_TIMELINE_SET_CURRENT,
2013-08-09 06:57:18 +02:00
LC_NUM_COMMANDS
};
struct lcCommand
{
const char* ID;
const char* MenuName;
const char* StatusText;
const char* DefaultShortcut;
};
extern lcCommand gCommands[LC_NUM_COMMANDS];
2016-04-25 07:26:34 +02:00
enum lcTool
{
LC_TOOL_INSERT,
LC_TOOL_LIGHT,
LC_TOOL_SPOTLIGHT,
LC_TOOL_CAMERA,
LC_TOOL_SELECT,
LC_TOOL_MOVE,
LC_TOOL_ROTATE,
LC_TOOL_ERASER,
LC_TOOL_PAINT,
LC_TOOL_COLOR_PICKER,
2016-04-25 07:26:34 +02:00
LC_TOOL_ZOOM,
LC_TOOL_PAN,
LC_TOOL_ROTATE_VIEW,
LC_TOOL_ROLL,
LC_TOOL_ZOOM_REGION,
LC_NUM_TOOLS
};
2016-06-13 01:05:26 +02:00
extern const char* gToolNames[LC_NUM_TOOLS];
2016-04-25 07:26:34 +02:00