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 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_ABOUT; 55 extern const char* STR_MNU_FILE_QUIT; 56 extern const char* STR_MNU_EDIT; 57 extern const char* STR_MNU_EDIT_COPY; 58 extern const char* STR_MNU_EDIT_SELECT_ALL; 59 extern const char* STR_MNU_EDIT_PREF; 60 extern const char* STR_MNU_CTRL; 61 extern const char* STR_MNU_CTRL_RUN_SERVER; 62 extern const char* STR_MNU_CTRL_CLEAR_HIT_COUNTER; 63 extern const char* STR_MNU_CTRL_CLEAR_CONSOLE; 64 extern const char* STR_MNU_CTRL_CLEAR_LOG_FILE; 65 66 extern const char* STR_FILEPANEL_SAVE_CONSOLE; 67 extern const char* STR_FILEPANEL_SAVE_CONSOLE_SELECTION; 68 extern const char* STR_TXT_VIEW; 69 70 // ------------------------------------------------------ 71 // Preferences Window 72 extern char* STR_WIN_NAME_PREF; 73 extern const char* STR_SETTINGS_FILE_NAME; 74 extern const char* STR_SETTINGS_NEW_FILE_NAME; 75 extern const char* STR_DEFAULT_WEB_DIRECTORY; 76 77 extern const char* STR_TAB_SITE; 78 extern const char* STR_BBX_LOCATION; 79 extern const char* STR_TXT_DIRECTORY; 80 extern const char* STR_BTN_DIRECTORY; 81 extern const char* STR_TXT_INDEX; 82 extern const char* STR_BBX_OPTIONS; 83 extern const char* STR_CBX_DIR_LIST; 84 extern const char* STR_CBX_DIR_LIST_LABEL; 85 extern const char* STR_FILEPANEL_SELECT_WEB_DIR; 86 87 extern const char* STR_TAB_LOGGING; 88 extern const char* STR_BBX_CONSOLE_LOGGING; 89 extern const char* STR_CBX_LOG_CONSOLE; 90 extern const char* STR_BBX_FILE_LOGGING; 91 extern const char* STR_CBX_LOG_FILE; 92 extern const char* STR_TXT_LOG_FILE_NAME; 93 extern const char* STR_BTN_CREATE_LOG_FILE; 94 extern const char* STR_FILEPANEL_CREATE_LOG_FILE; 95 96 extern const char* STR_TAB_ADVANCED; 97 extern const char* STR_BBX_CONNECTION; 98 extern const char* STR_SLD_LABEL; 99 extern char* STR_SLD_STATUS_LABEL; 100 101 extern const char CMD_FILE_SAVE_AS; 102 extern const char CMD_FILE_QUIT; 103 extern const char CMD_EDIT_COPY; 104 extern const char CMD_EDIT_SELECT_ALL; 105 106 extern const char* STR_ABOUT_TITLE; 107 extern const char* STR_ABOUT_DESC; 108 extern const char* STR_ABOUT_BUTTON; 109 110 111 /* Colors */ 112 extern const rgb_color WHITE; 113 extern const rgb_color GRAY; 114 extern const rgb_color BACKGROUND_COLOR; 115 extern const rgb_color BLACK; 116 extern const rgb_color RED; 117 extern const rgb_color GREEN; 118 #endif 119