xref: /haiku/src/tests/kits/interface/menu/menuworld/constants.cpp (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
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 
16 extern 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 
25 extern const char* STR_APP_NAME
26 	= "MenuWorld";
27 
28 extern const char* STR_IERROR
29 	= "Internal Error:\n";
30 
31 extern const char* STR_SEPARATOR
32 	= "--------------------";
33 
34 extern const char* STR_NO_FULL_MENU_BAR
35 	= "Couldn't find the window's menu bar.";
36 
37 extern const char* STR_NO_HIDDEN_MENU_BAR
38 	= "Couldn't find the window's hidden menu bar.";
39 
40 extern const char* STR_NO_MENU_VIEW
41 	= "Couldn't find the window's menu view";
42 
43 extern const char* STR_NO_STATUS_VIEW
44 	= "Couldn't find the window's status view";
45 
46 extern const char* STR_NO_LABEL_CTRL
47 	= "Couldn't find the label edit field.";
48 
49 extern const char* STR_NO_HIDE_USER_CHECK
50 	= "Couldn't find the hide user menus check box.";
51 
52 extern const char* STR_NO_LARGE_ICON_CHECK
53 	= "Couldn't find the large test icons check box.";
54 
55 extern const char* STR_NO_ADDMENU_BUTTON
56 	= "Couldn't find the add menu button.";
57 
58 extern const char* STR_NO_ADDITEM_BUTTON
59 	= "Couldn't find the add menu item button.";
60 
61 extern const char* STR_NO_DELETE_BUTTON
62 	= "Couldn't find the delete button.";
63 
64 extern const char* STR_NO_MENU_OUTLINE
65 	= "Couldn't find the menu outline list.";
66 
67 extern const char* STR_NO_MENU_SCROLL_VIEW
68 	= "Couldn't find the menu outline list scroll view.";
69 
70 extern const char* STR_MNU_FILE
71 	= "File";
72 
73 extern const char* STR_MNU_FILE_ABOUT
74 	= "About...";
75 
76 extern const char* STR_MNU_FILE_CLOSE
77 	= "Close";
78 
79 extern const char* STR_MNU_TEST
80 	= "Test";
81 
82 extern const char* STR_MNU_TEST_ITEM
83 	= "Test Item";
84 
85 extern const char* STR_MNU_EMPTY_ITEM
86 	= "(Empty menu)";
87 
88 extern const char* STR_LABEL_CTRL
89 	= "Label:";
90 
91 extern const char* STR_HIDE_USER_MENUS
92 	= "Hide User Menus";
93 
94 extern const char* STR_LARGE_TEST_ICONS
95 	= "Large Test Icons";
96 
97 extern const char* STR_ADD_MENU
98 	= "Add Menu";
99 
100 extern const char* STR_ADD_ITEM
101 	= "Add Item";
102 
103 extern const char* STR_ADD_SEP
104 	= "Add Separator";
105 
106 extern const char* STR_DELETE_MENU
107 	= "Delete";
108 
109 extern const char* STR_STATUS_DEFAULT
110 	= "";
111 
112 extern const char* STR_STATUS_TEST
113 	= "Test item selected: ";
114 
115 extern const char* STR_STATUS_USER
116 	= "Menu item selected: ";
117 
118 extern const char* STR_STATUS_ADD_MENU
119 	= "Added menu: ";
120 
121 extern const char* STR_STATUS_ADD_ITEM
122 	= "Added menu item: ";
123 
124 extern const char* STR_STATUS_ADD_SEPARATOR
125 	= "Added separator menu item";
126 
127 extern const char* STR_STATUS_DELETE_MENU
128 	= "Deleted menu: ";
129 
130 extern const char* STR_STATUS_DELETE_ITEM
131 	= "Deleted menu item: ";
132 
133 extern const char* STR_STATUS_DELETE_SEPARATOR
134 	= "Deleted separator menu item";
135 
136 extern const char* STR_ABOUT_TITLE
137 	= "About MenuWorld";
138 
139 extern const char* STR_ABOUT_BUTTON
140 	= "Struth!";
141 
142 extern 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 
166 extern const char CMD_FILE_CLOSE
167 	= 'W';
168 
169 extern const char CMD_TEST_ICON_SIZE
170 	= 'I';
171 
172 
173 
174 //--------------------------------------------------------------------
175 //	Colors
176 
177 extern const rgb_color BKG_GREY		= { 216, 216, 216, 0 };
178