1 /* 2 * Copyright 2002-2010, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Mattias Sundblad 7 * Andrew Bachmann 8 */ 9 #ifndef CONSTANTS_H 10 #define CONSTANTS_H 11 12 13 #include <GraphicsDefs.h> 14 #include <SupportDefs.h> 15 16 17 #define APP_SIGNATURE "application/x-vnd.Haiku-StyledEdit" 18 19 const float TEXT_INSET = 3.0; 20 21 // Messages for menu commands 22 23 // file menu 24 const uint32 MENU_NEW = 'MFnw'; 25 const uint32 MENU_OPEN = 'MFop'; 26 const uint32 MENU_SAVE = 'MSav'; 27 const uint32 MENU_SAVEAS = 'MEsa'; 28 const uint32 MENU_REVERT = 'MFre'; 29 const uint32 MENU_CLOSE = 'MFcl'; 30 const uint32 MENU_PAGESETUP = 'MFps'; 31 const uint32 MENU_PRINT = 'MFpr'; 32 const uint32 MENU_QUIT = 'MFqu'; 33 34 // edit menu 35 const uint32 MENU_CLEAR = 'MEcl'; 36 const uint32 MENU_FIND = 'MEfi'; 37 const uint32 MENU_FIND_AGAIN = 'MEfa'; 38 const uint32 MENU_FIND_SELECTION = 'MEfs'; 39 const uint32 MENU_REPLACE = 'MEre'; 40 const uint32 MENU_REPLACE_SAME = 'MErs'; 41 42 const uint32 MSG_SEARCH = 'msea'; 43 const uint32 MSG_REPLACE = 'msre'; 44 const uint32 MSG_REPLACE_ALL = 'mrea'; 45 46 // "Font"-menu 47 const uint32 FONT_SIZE = 'FMsi'; 48 const uint32 FONT_FAMILY = 'FFch'; 49 const uint32 FONT_STYLE = 'FSch'; 50 const uint32 FONT_COLOR = 'Fcol'; 51 const uint32 kMsgSetItalic = 'Fita'; 52 const uint32 kMsgSetBold = 'Fbld'; 53 54 // fontcolors 55 const rgb_color BLACK = {0, 0, 0, 255}; 56 const rgb_color RED = {255, 0, 0, 255}; 57 const rgb_color GREEN = {0, 255, 0, 255}; 58 const rgb_color BLUE = {0, 0, 255, 255}; 59 const rgb_color CYAN = {0, 255, 255, 255}; 60 const rgb_color MAGENTA = {255, 0, 255, 255}; 61 const rgb_color YELLOW = {255, 255, 0, 255}; 62 63 // "Document"-menu 64 const uint32 ALIGN_LEFT = 'ALle'; 65 const uint32 ALIGN_CENTER = 'ALce'; 66 const uint32 ALIGN_RIGHT = 'ALri'; 67 const uint32 WRAP_LINES = 'MDwr'; 68 const uint32 SHOW_STATISTICS = 'MDss'; 69 70 // enables "edit" menuitems 71 const uint32 ENABLE_ITEMS = 'ENit'; 72 const uint32 DISABLE_ITEMS = 'DIit'; 73 const uint32 CHANGE_WINDOW = 'CHwi'; 74 const uint32 TEXT_CHANGED = 'TEch'; 75 76 // file panel constants 77 const uint32 OPEN_AS_ENCODING = 'FPoe'; 78 const uint32 SAVE_AS_ENCODING = 'FPse'; 79 const uint32 SAVE_THEN_QUIT = 'FPsq'; 80 81 // Update Line Info 82 const uint32 UPDATE_LINE = 'UPln'; 83 84 #endif // CONSTANTS_H 85 86