xref: /haiku/src/apps/stylededit/Constants.h (revision 5412911f7f8ca41340b0f5cb928ed9726322ab44)
1 /*StyledEdit: constants*/
2 #ifndef CONSTANTS_H
3 #define CONSTANTS_H
4 
5 #include <GraphicsDefs.h>
6 #include <SupportDefs.h>
7 
8 #define APP_SIGNATURE  "application/x-vnd.obos.styled-edit"
9 
10 const float TEXT_INSET = 3.0;
11 
12 /*Messages for menu commands
13 file menu*/
14 const uint32 MENU_NEW					='MFnw';
15 const uint32 MENU_OPEN					='MFop';
16 const uint32 MENU_SAVE					='MSav';
17 const uint32 MENU_SAVEAS				='MEsa';
18 const uint32 MENU_REVERT				='MFre';
19 const uint32 MENU_CLOSE					='MFcl';
20 const uint32 MENU_PAGESETUP				='MFps';
21 const uint32 MENU_PRINT					='MFpr';
22 const uint32 MENU_QUIT					='MFqu';
23 //edit menu
24 const uint32 MENU_CLEAR					='MEcl';
25 const uint32 MENU_FIND					='MEfi';
26 const uint32 MENU_FIND_AGAIN			='MEfa';
27 const uint32 MENU_FIND_SELECTION		='MEfs';
28 const uint32 MENU_REPLACE				='MEre';
29 const uint32 MENU_REPLACE_SAME			='MErs';
30 
31 const uint32 MSG_SEARCH					='msea';
32 const uint32 MSG_REPLACE				='msre';
33 const uint32 MSG_REPLACE_ALL			='mrea';
34 //"Font"-menu
35 const uint32 FONT_SIZE					='FMsi';
36 const uint32 FONT_FAMILY				='FFch';
37 const uint32 FONT_STYLE					='FSch';
38 const uint32 FONT_COLOR					='Fcol';
39 
40 //fontcolors
41 //red, green, blue, alphachannel
42 const rgb_color	BLACK 					= {0, 0, 0, 255};
43 const rgb_color	RED 					= {255, 0, 0, 255};
44 const rgb_color	GREEN			 		= {0, 255, 0, 255};
45 const rgb_color	BLUE			 		= {0, 0, 255, 255};
46 const rgb_color	CYAN			 		= {0, 255, 255, 255};
47 const rgb_color	MAGENTA				 	= {255, 0, 255, 255};
48 const rgb_color	YELLOW 					= {255, 255, 0, 255};
49 
50 //"Document"-menu
51 const uint32 ALIGN_LEFT					='ALle';
52 const uint32 ALIGN_CENTER				='ALce';
53 const uint32 ALIGN_RIGHT				='ALri';
54 const uint32 WRAP_LINES					='MDwr';
55 
56 //enables "edit" menuitems
57 const uint32 ENABLE_ITEMS				='ENit';
58 const uint32 DISABLE_ITEMS				='DIit';
59 const uint32 CHANGE_WINDOW				='CHwi';
60 const uint32 TEXT_CHANGED				='TEch';
61 
62 // file panel constants
63 const uint32 OPEN_AS_ENCODING			='FPoe';
64 const uint32 SAVE_AS_ENCODING			='FPse';
65 const uint32 SAVE_THEN_QUIT				='FPsq';
66 
67 #endif // CONSTANTS_H
68