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 = "Please choose the folder to publish on the web.\n\n" 13 "You can have PoorMan create a default \"public_html\" " 14 "in your home folder.\n" 15 "Or you select one of your own folders instead."; 16 extern const char* STR_ERR_CANT_START 17 = "Cannot start the server"; 18 extern const char* STR_DIR_CREATED 19 = "A default web folder has been created " 20 "at \"/boot/home/public_html.\"\nMake sure there is a HTML " 21 "file named \"index.html\" in that folder."; 22 23 extern const char* STR_MNU_FILE 24 = "File"; 25 extern const char* STR_MNU_FILE_SAVE_AS 26 = "Save console as" B_UTF8_ELLIPSIS; 27 extern const char* STR_MNU_FILE_SAVE_SELECTION 28 = "Save console selections as" B_UTF8_ELLIPSIS; 29 extern const char* STR_MNU_FILE_ABOUT 30 = "About PoorMan" B_UTF8_ELLIPSIS; 31 extern const char* STR_MNU_FILE_QUIT 32 = "Quit"; 33 extern const char* STR_MNU_EDIT 34 = "Edit"; 35 extern const char* STR_MNU_EDIT_COPY 36 = "Copy"; 37 extern const char* STR_MNU_EDIT_SELECT_ALL 38 = "Select all"; 39 extern const char* STR_MNU_EDIT_PREF 40 = "Settings" B_UTF8_ELLIPSIS; 41 extern const char* STR_MNU_CTRL 42 = "Controls"; 43 extern const char* STR_MNU_CTRL_RUN_SERVER 44 = "Run server"; 45 extern const char* STR_MNU_CTRL_CLEAR_HIT_COUNTER 46 = "Clear hit counter"; 47 extern const char* STR_MNU_CTRL_CLEAR_CONSOLE 48 = "Clear console log"; 49 extern const char* STR_MNU_CTRL_CLEAR_LOG_FILE 50 = "Clear log file"; 51 52 extern const char* STR_FILEPANEL_SAVE_CONSOLE 53 = "Save log console"; 54 extern const char* STR_FILEPANEL_SAVE_CONSOLE_SELECTION 55 = "Save log console selection"; 56 extern const char* STR_TXT_VIEW 57 = "Logging view"; 58 59 // ------------------------------------------------------ 60 // Preferences Window 61 char* STR_WIN_NAME_PREF 62 = "PoorMan settings"; 63 64 extern const char* STR_SETTINGS_FILE_NAME 65 = "PoorMan settings"; 66 extern const char* STR_SETTINGS_NEW_FILE_NAME 67 = "OBOS PoorMan settings"; 68 extern const char* STR_DEFAULT_WEB_DIRECTORY 69 = "/boot/home/public_html"; 70 extern const char* STR_TAB_SITE 71 = "Site"; 72 extern const char* STR_BBX_LOCATION 73 = "Website location"; 74 extern const char* STR_TXT_DIRECTORY 75 = "Web folder:"; 76 extern const char* STR_BTN_DIRECTORY 77 = "Select web folder"; 78 extern const char* STR_TXT_INDEX 79 = "Start page:"; 80 extern const char* STR_BBX_OPTIONS 81 = "Website options"; 82 extern const char* STR_CBX_DIR_LIST 83 = "Send file listing if there's no start page"; 84 extern const char* STR_CBX_DIR_LIST_LABEL 85 = "Send file listing if there's no start page"; 86 extern const char* STR_FILEPANEL_SELECT_WEB_DIR 87 = "Select web folder"; 88 89 extern const char* STR_TAB_LOGGING 90 = "Logging"; 91 extern const char* STR_BBX_CONSOLE_LOGGING 92 = "Console logging"; 93 extern const char* STR_CBX_LOG_CONSOLE 94 = "Log to console"; 95 extern const char* STR_BBX_FILE_LOGGING 96 = "File logging"; 97 extern const char* STR_CBX_LOG_FILE 98 = "Log to file"; 99 extern const char* STR_TXT_LOG_FILE_NAME 100 = "Log file name:"; 101 extern const char* STR_BTN_CREATE_LOG_FILE 102 = "Create log file"; 103 extern const char* STR_FILEPANEL_CREATE_LOG_FILE 104 = "Create PoorMan log"; 105 106 extern const char* STR_TAB_ADVANCED 107 = "Advanced"; 108 extern const char* STR_BBX_CONNECTION 109 = "Connections"; 110 extern const char* STR_SLD_LABEL 111 = "Max. simultaneous connections:"; 112 char* STR_SLD_STATUS_LABEL 113 = "connections"; 114 115 extern const char CMD_FILE_SAVE_AS 116 = 'S'; 117 extern const char CMD_FILE_QUIT 118 = 'Q'; 119 extern const char CMD_EDIT_COPY 120 = 'C'; 121 extern const char CMD_EDIT_SELECT_ALL 122 = 'A'; 123 124 extern const char* STR_ABOUT_TITLE 125 = "About PoorMan"; 126 extern const char* STR_ABOUT_BUTTON 127 = "OK"; 128 extern const char* STR_ABOUT_DESC 129 = "Poor Man's web server\n" 130 "Copyright " B_UTF8_COPYRIGHT " 2004-2009 Haiku\n" 131 "All rights reserved.\n\n" 132 "Written by: Philip Harrison, Ma Jie"; 133 134 // -------------------------------- 135 extern const rgb_color WHITE = { 255, 255, 255, 255 }; 136 extern const rgb_color GRAY = { 184, 184, 184, 255 }; 137 extern const rgb_color BACKGROUND_COLOR = { 216, 216, 216, 255 }; 138 extern const rgb_color BLACK = { 0, 0, 0, 255 }; 139 extern const rgb_color RED = { 255, 0, 0, 255}; 140 extern const rgb_color GREEN = { 0, 255, 0, 255}; 141