xref: /haiku/src/apps/poorman/constants.h (revision 0e7fcd84af6c2bae5d5a741f3eb8f59813e0a6e0)
1 #ifndef CONSTANTS_H
2 #define CONSTANTS_H
3 
4 #include <GraphicsDefs.h>
5 
6 // ------------------------------------------------------
7 // BMessages
8 const int32 MSG_MENU_FILE_SAVE_AS			= 'oMSA';
9 const int32 MSG_MENU_FILE_SAVE_SELECTION	= 'oMSS';
10 const int32 MSG_MENU_EDIT_COPY				= 'oMCP';
11 const int32 MSG_MENU_EDIT_SELECT_ALL		= 'oMSE';
12 const int32 MSG_MENU_EDIT_PREF				= 'oMPR';
13 const int32 MSG_MENU_CTRL_RUN				= 'oMRN';
14 const int32 MSG_MENU_CTRL_CLEAR_HIT			= 'oMCH';
15 const int32 MSG_MENU_CTRL_CLEAR_CONSOLE		= 'oMCC';
16 const int32 MSG_MENU_CTRL_CLEAR_LOG			= 'oMCL';
17 const int32 MSG_FILE_PANEL_SAVE_CONSOLE		= 'oSAV';
18 const int32 MSG_FILE_PANEL_SAVE_CONSOLE_SELECTION	= 'SAVS';
19 
20 // BMessages Preferences Window
21 const int32 MSG_PREF_BTN_DONE				= 'oPBD';
22 const int32 MSG_PREF_BTN_CANCEL				= 'oPBC';
23 			// Site Tab
24 const int32 MSG_PREF_SITE_BTN_SELECT		= 'PSBS';
25 const int32 MSG_PREF_SITE_CBX_INDEX			= 'PSCI';
26 const int32 MSG_FILE_PANEL_SELECT_WEB_DIR	= 'oSWD';
27 			// Logging Tab
28 const int32 MSG_PREF_LOG_CBX_CONSOLE		= 'PLCC';
29 const int32 MSG_PREF_LOG_CBX_FILE			= 'PLCF';
30 const int32 MSG_PREF_LOG_BTN_CREATE_FILE	= 'PLBF';
31 const int32 MSG_FILE_PANEL_CREATE_LOG_FILE	= 'oCLF';
32 			// Advanced Tab
33 const int32 MSG_PREF_ADV_SLD_MAX_CONNECTION = 'PASM';
34 
35 // BMessage Preferences File
36 const uint32 MSG_PREF_FILE = 'pref';
37 
38 
39 const uint32 kStartServer = 'strt';
40 
41 //BMessage for Logger
42 const int32 MSG_LOG = 'logg';
43 // ------------------------------------------------------
44 // PoorMan Window
45 extern const char* STR_APP_SIG;
46 extern const char* STR_APP_NAME;
47 extern const char* STR_ERR_WEB_DIR; 	// Alert Box
48 extern const char* STR_ERR_CANT_START;
49 extern const char* STR_DIR_CREATED;
50 
51 extern const char* STR_MNU_FILE;
52 extern const char* STR_MNU_FILE_SAVE_AS;
53 extern const char* STR_MNU_FILE_SAVE_SELECTION;
54 extern const char* STR_MNU_FILE_QUIT;
55 extern const char* STR_MNU_EDIT;
56 extern const char* STR_MNU_EDIT_COPY;
57 extern const char* STR_MNU_EDIT_SELECT_ALL;
58 extern const char* STR_MNU_EDIT_PREF;
59 extern const char* STR_MNU_CTRL;
60 extern const char* STR_MNU_CTRL_RUN_SERVER;
61 extern const char* STR_MNU_CTRL_CLEAR_HIT_COUNTER;
62 extern const char* STR_MNU_CTRL_CLEAR_CONSOLE;
63 extern const char* STR_MNU_CTRL_CLEAR_LOG_FILE;
64 
65 extern const char* STR_FILEPANEL_SAVE_CONSOLE;
66 extern const char* STR_FILEPANEL_SAVE_CONSOLE_SELECTION;
67 extern const char* STR_TXT_VIEW;
68 
69 // ------------------------------------------------------
70 // Preferences Window
71 extern		 char* STR_WIN_NAME_PREF;
72 extern const char* STR_SETTINGS_FILE_NAME;
73 extern const char* STR_DEFAULT_WEB_DIRECTORY;
74 
75 extern const char* STR_TAB_SITE;
76 extern const char* STR_BBX_LOCATION;
77 extern const char* STR_TXT_DIRECTORY;
78 extern const char* STR_BTN_DIRECTORY;
79 extern const char* STR_TXT_INDEX;
80 extern const char* STR_BBX_OPTIONS;
81 extern const char* STR_CBX_DIR_LIST;
82 extern const char* STR_CBX_DIR_LIST_LABEL;
83 extern const char* STR_FILEPANEL_SELECT_WEB_DIR;
84 
85 extern const char* STR_TAB_LOGGING;
86 extern const char* STR_BBX_CONSOLE_LOGGING;
87 extern const char* STR_CBX_LOG_CONSOLE;
88 extern const char* STR_BBX_FILE_LOGGING;
89 extern const char* STR_CBX_LOG_FILE;
90 extern const char* STR_TXT_LOG_FILE_NAME;
91 extern const char* STR_BTN_CREATE_LOG_FILE;
92 extern const char* STR_FILEPANEL_CREATE_LOG_FILE;
93 
94 extern const char* STR_TAB_ADVANCED;
95 extern const char* STR_BBX_CONNECTION;
96 extern const char* STR_SLD_LABEL;
97 extern const char* STR_SLD_STATUS_LABEL;
98 
99 extern const char CMD_FILE_SAVE_AS;
100 extern const char CMD_FILE_QUIT;
101 extern const char CMD_EDIT_COPY;
102 extern const char CMD_EDIT_SELECT_ALL;
103 
104 
105 /* Colors */
106 extern const rgb_color WHITE;
107 extern const rgb_color GRAY;
108 extern const rgb_color BACKGROUND_COLOR;
109 extern const rgb_color BLACK;
110 extern const rgb_color RED;
111 extern const rgb_color GREEN;
112 #endif
113