Enable targets for EFI on binutils.
[haiku.git] / src / apps / stylededit / Constants.h
blob4c955b6bac4cc4d06e674b7053056e6896b2dd63
1 /*
2 * Copyright 2002-2010, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Mattias Sundblad
7 * Andrew Bachmann
8 */
9 #ifndef CONSTANTS_H
10 #define CONSTANTS_H
13 #include <GraphicsDefs.h>
14 #include <SupportDefs.h>
17 #define APP_SIGNATURE "application/x-vnd.Haiku-StyledEdit"
19 const float TEXT_INSET = 3.0;
21 // Messages for menu commands
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_RELOAD = 'MFrl';
29 const uint32 MENU_CLOSE = 'MFcl';
30 const uint32 MENU_PAGESETUP = 'MFps';
31 const uint32 MENU_PRINT = 'MFpr';
32 const uint32 MENU_QUIT = 'MFqu';
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';
42 const uint32 MSG_SEARCH = 'msea';
43 const uint32 MSG_REPLACE = 'msre';
44 const uint32 MSG_REPLACE_ALL = 'mrea';
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';
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};
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';
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';
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';
81 // Update StatusView
82 const uint32 UPDATE_STATUS = 'UPSt';
83 const uint32 UNLOCK_FILE = 'UNLk';
84 const uint32 UPDATE_LINE_SELECTION = 'UPls';
86 #endif // CONSTANTS_H