2 * Copyright 2002-2010, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
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
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';
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';
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';
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};
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';
82 const uint32 UPDATE_STATUS
= 'UPSt';
83 const uint32 UNLOCK_FILE
= 'UNLk';
84 const uint32 UPDATE_LINE_SELECTION
= 'UPls';