1//-------------------------------------------------------------------- 2// 3// constants.cpp 4// 5// Written by: Owen Smith 6// 7//-------------------------------------------------------------------- 8 9/* 10 Copyright 1999, Be Incorporated. All Rights Reserved. 11 This file may be used under the terms of the Be Sample Code License. 12*/ 13 14#include "constants.h" 15 16extern const char* STR_APP_SIG 17 = "application/x-vnd.BeDTS.MenuWorld"; 18 19#if defined(LOCALE_USA) 20 21//-------------------------------------------------------------------- 22// American English Strings 23 24 25extern const char* STR_APP_NAME 26 = "MenuWorld"; 27 28extern const char* STR_IERROR 29 = "Internal Error:\n"; 30 31extern const char* STR_SEPARATOR 32 = "--------------------"; 33 34extern const char* STR_NO_FULL_MENU_BAR 35 = "Couldn't find the window's menu bar."; 36 37extern const char* STR_NO_HIDDEN_MENU_BAR 38 = "Couldn't find the window's hidden menu bar."; 39 40extern const char* STR_NO_MENU_VIEW 41 = "Couldn't find the window's menu view"; 42 43extern const char* STR_NO_STATUS_VIEW 44 = "Couldn't find the window's status view"; 45 46extern const char* STR_NO_LABEL_CTRL 47 = "Couldn't find the label edit field."; 48 49extern const char* STR_NO_HIDE_USER_CHECK 50 = "Couldn't find the hide user menus check box."; 51 52extern const char* STR_NO_LARGE_ICON_CHECK 53 = "Couldn't find the large test icons check box."; 54 55extern const char* STR_NO_ADDMENU_BUTTON 56 = "Couldn't find the add menu button."; 57 58extern const char* STR_NO_ADDITEM_BUTTON 59 = "Couldn't find the add menu item button."; 60 61extern const char* STR_NO_DELETE_BUTTON 62 = "Couldn't find the delete button."; 63 64extern const char* STR_NO_MENU_OUTLINE 65 = "Couldn't find the menu outline list."; 66 67extern const char* STR_NO_MENU_SCROLL_VIEW 68 = "Couldn't find the menu outline list scroll view."; 69 70extern const char* STR_MNU_FILE 71 = "File"; 72 73extern const char* STR_MNU_FILE_ABOUT 74 = "About..."; 75 76extern const char* STR_MNU_FILE_CLOSE 77 = "Close"; 78 79extern const char* STR_MNU_TEST 80 = "Test"; 81 82extern const char* STR_MNU_TEST_ITEM 83 = "Test Item"; 84 85extern const char* STR_MNU_EMPTY_ITEM 86 = "(Empty menu)"; 87 88extern const char* STR_LABEL_CTRL 89 = "Label:"; 90 91extern const char* STR_HIDE_USER_MENUS 92 = "Hide User Menus"; 93 94extern const char* STR_LARGE_TEST_ICONS 95 = "Large Test Icons"; 96 97extern const char* STR_ADD_MENU 98 = "Add Menu"; 99 100extern const char* STR_ADD_ITEM 101 = "Add Item"; 102 103extern const char* STR_ADD_SEP 104 = "Add Separator"; 105 106extern const char* STR_DELETE_MENU 107 = "Delete"; 108 109extern const char* STR_STATUS_DEFAULT 110 = ""; 111 112extern const char* STR_STATUS_TEST 113 = "Test item selected: "; 114 115extern const char* STR_STATUS_USER 116 = "Menu item selected: "; 117 118extern const char* STR_STATUS_ADD_MENU 119 = "Added menu: "; 120 121extern const char* STR_STATUS_ADD_ITEM 122 = "Added menu item: "; 123 124extern const char* STR_STATUS_ADD_SEPARATOR 125 = "Added separator menu item"; 126 127extern const char* STR_STATUS_DELETE_MENU 128 = "Deleted menu: "; 129 130extern const char* STR_STATUS_DELETE_ITEM 131 = "Deleted menu item: "; 132 133extern const char* STR_STATUS_DELETE_SEPARATOR 134 = "Deleted separator menu item"; 135 136extern const char* STR_ABOUT_TITLE 137 = "About MenuWorld"; 138 139extern const char* STR_ABOUT_BUTTON 140 = "Struth!"; 141 142extern const char* STR_ABOUT_DESC 143 = "MenuWorld: a menu editing example\n\n" 144 "How to use:\n" 145 " Type some text into the label field, and " 146 "press \"Add Menu\" to add a menu.\n" 147 " Select an item in the outline list, and " 148 "press \"Delete\" to remove it.\n" 149 " Select an item in the outline list, type " 150 "some text into the label field, and press " 151 "\"Add Item\" to add an item under the selected " 152 "item. If nothing besides spaces or dashes is " 153 "typed in, a separator item will be created.\n" 154 " \"Hide User Menus\" hides the menus you've " 155 "generated.\n" 156 " \"Large Test Icons\" changes the size of " 157 "the numbers in the Test menu."; 158 159#endif /* LOCALE_USA */ 160 161 162 163//-------------------------------------------------------------------- 164// Shortcuts 165 166extern const char CMD_FILE_CLOSE 167 = 'W'; 168 169extern const char CMD_TEST_ICON_SIZE 170 = 'I'; 171 172 173 174//-------------------------------------------------------------------- 175// Colors 176 177extern const rgb_color BKG_GREY = { 216, 216, 216, 0 }; 178