1 #include "constants.h" 2 3 #include <InterfaceDefs.h> 4 5 // ------------------------------------------------------ 6 // PoorMan Window 7 extern const char* STR_APP_SIG 8 = "application/x-vnd.haiku.PoorMan"; 9 char* STR_APP_NAME 10 = "PoorMan"; 11 extern const char* STR_ERR_WEB_DIR 12 = "You have not yet selected the folder you want PoorMan " 13 "to publish on the Web. PoorMan can create a " 14 "\"public_html\" folder in your home folder or you can select " 15 "one of your own folders to publish.\n\n" 16 "Do you wish to select a folder to publish on the Web?"; 17 extern const char* STR_ERR_CANT_START 18 = "Can't Start the Server"; 19 extern const char* STR_DIR_CREATED 20 = "A default Web folder has been created for you " 21 "at \"/boot/home/public_html.\"\nMake sure an HTML " 22 "document named \"index.html\" is in that folder."; 23 24 extern const char* STR_MNU_FILE 25 = "File"; 26 extern const char* STR_MNU_FILE_SAVE_AS 27 = "Save Console As" B_UTF8_ELLIPSIS; 28 extern const char* STR_MNU_FILE_SAVE_SELECTION 29 = "Save Console Selections As" B_UTF8_ELLIPSIS; 30 extern const char* STR_MNU_FILE_ABOUT 31 = "About PoorMan" B_UTF8_ELLIPSIS; 32 extern const char* STR_MNU_FILE_QUIT 33 = "Quit"; 34 extern const char* STR_MNU_EDIT 35 = "Edit"; 36 extern const char* STR_MNU_EDIT_COPY 37 = "Copy"; 38 extern const char* STR_MNU_EDIT_SELECT_ALL 39 = "Select All"; 40 extern const char* STR_MNU_EDIT_PREF 41 = "Settings" B_UTF8_ELLIPSIS; 42 extern const char* STR_MNU_CTRL 43 = "Controls"; 44 extern const char* STR_MNU_CTRL_RUN_SERVER 45 = "Run Server"; 46 extern const char* STR_MNU_CTRL_CLEAR_HIT_COUNTER 47 = "Clear Hit Counter"; 48 extern const char* STR_MNU_CTRL_CLEAR_CONSOLE 49 = "Clear Console Log"; 50 extern const char* STR_MNU_CTRL_CLEAR_LOG_FILE 51 = "Clear Log File"; 52 53 extern const char* STR_FILEPANEL_SAVE_CONSOLE 54 = "Save Log Console"; 55 extern const char* STR_FILEPANEL_SAVE_CONSOLE_SELECTION 56 = "Save Log Console Selection"; 57 extern const char* STR_TXT_VIEW 58 = "Logging View"; 59 60 // ------------------------------------------------------ 61 // Preferences Window 62 char* STR_WIN_NAME_PREF 63 = "PoorMan Settings"; 64 65 extern const char* STR_SETTINGS_FILE_NAME 66 = "PoorMan Settings"; 67 extern const char* STR_SETTINGS_NEW_FILE_NAME 68 = "OBOS PoorMan Settings"; 69 extern const char* STR_DEFAULT_WEB_DIRECTORY 70 = "/boot/home/public_html"; 71 extern const char* STR_TAB_SITE 72 = "Site"; 73 extern const char* STR_BBX_LOCATION 74 = "Web Site Location"; 75 extern const char* STR_TXT_DIRECTORY 76 = "Web Folder:"; 77 extern const char* STR_BTN_DIRECTORY 78 = "Select Web Folder"; 79 extern const char* STR_TXT_INDEX 80 = "Start Page:"; 81 extern const char* STR_BBX_OPTIONS 82 = "Web Site Options"; 83 extern const char* STR_CBX_DIR_LIST 84 = "Send file listing if there's no start page"; 85 extern const char* STR_CBX_DIR_LIST_LABEL 86 = "Send file listing if there's no start page"; 87 extern const char* STR_FILEPANEL_SELECT_WEB_DIR 88 = "Select Web Folder"; 89 90 extern const char* STR_TAB_LOGGING 91 = "Logging"; 92 extern const char* STR_BBX_CONSOLE_LOGGING 93 = "Console Logging"; 94 extern const char* STR_CBX_LOG_CONSOLE 95 = "Log to Console"; 96 extern const char* STR_BBX_FILE_LOGGING 97 = "File Logging"; 98 extern const char* STR_CBX_LOG_FILE 99 = "Log to File"; 100 extern const char* STR_TXT_LOG_FILE_NAME 101 = "Log File Name:"; 102 extern const char* STR_BTN_CREATE_LOG_FILE 103 = "Create Log File"; 104 extern const char* STR_FILEPANEL_CREATE_LOG_FILE 105 = "Create Poor Man Log"; 106 107 extern const char* STR_TAB_ADVANCED 108 = "Advanced"; 109 extern const char* STR_BBX_CONNECTION 110 = "Connections Options"; 111 extern const char* STR_SLD_LABEL 112 = "Max. Simultaneous Connections:"; 113 char* STR_SLD_STATUS_LABEL 114 = "connections"; 115 116 extern const char CMD_FILE_SAVE_AS 117 = 'S'; 118 extern const char CMD_FILE_QUIT 119 = 'Q'; 120 extern const char CMD_EDIT_COPY 121 = 'C'; 122 extern const char CMD_EDIT_SELECT_ALL 123 = 'A'; 124 125 extern const char* STR_ABOUT_TITLE 126 = "About PoorMan"; 127 extern const char* STR_ABOUT_BUTTON 128 = "OK"; 129 extern const char* STR_ABOUT_DESC 130 = "Poor Man's Web Server\n" 131 "Copyright " B_UTF8_COPYRIGHT " 2004-2009 Haiku\n" 132 "All rights reserved.\n\n" 133 "Written by: Philip Harrison, Ma Jie"; 134 135 // -------------------------------- 136 extern const rgb_color WHITE = { 255, 255, 255, 255 }; 137 extern const rgb_color GRAY = { 184, 184, 184, 255 }; 138 extern const rgb_color BACKGROUND_COLOR = { 216, 216, 216, 255 }; 139 extern const rgb_color BLACK = { 0, 0, 0, 255 }; 140 extern const rgb_color RED = { 255, 0, 0, 255}; 141 extern const rgb_color GREEN = { 0, 255, 0, 255}; 142