Reimplemented Read/WriteFile to use server file descriptors.
[wine/multimedia.git] / programs / progman / Xx.rc
blob6f5a96ad52e2829c1d7c43e6ea9679d0b1fbe3f6
1 /*
2  * Program Manager
3  *
4  * Copyright 1996 Ulrich Schmid
5  */
7 #include "windows.h"
8 #include "progman.h"
10 #define CONCAT(a, b) CONCAT1(a, b)
11 #define CONCAT1(a, b) a##b
13 /* Menu */
15 CONCAT(MENU_, LANGUAGE_ID) MENU
17  POPUP MENU_FILE {
18    MENUITEM MENU_FILE_NEW,              PM_NEW 
19    MENUITEM MENU_FILE_OPEN,             PM_OPEN
20    MENUITEM MENU_FILE_MOVE,             PM_MOVE,      GRAYED
21    MENUITEM MENU_FILE_COPY,             PM_COPY,      GRAYED
22    MENUITEM MENU_FILE_DELETE,           PM_DELETE
23    MENUITEM MENU_FILE_ATTRIBUTES,       PM_ATTRIBUTES
24    MENUITEM SEPARATOR   
25    MENUITEM MENU_FILE_EXECUTE,          PM_EXECUTE
26    MENUITEM SEPARATOR   
27    MENUITEM MENU_FILE_EXIT,             PM_EXIT
28  }
29  POPUP MENU_OPTIONS {
30    MENUITEM MENU_OPTIONS_AUTO_ARRANGE,  PM_AUTO_ARRANGE
31    MENUITEM MENU_OPTIONS_MIN_ON_RUN,    PM_MIN_ON_RUN
32    MENUITEM MENU_OPTIONS_SAVE_SETTINGS, PM_SAVE_SETTINGS
33  }
34  POPUP MENU_WINDOWS {
35    MENUITEM MENU_WINDOWS_OVERLAP,       PM_OVERLAP
36    MENUITEM MENU_WINDOWS_SIDE_BY_SIDE,  PM_SIDE_BY_SIDE
37    MENUITEM MENU_WINDOWS_ARRANGE,       PM_ARRANGE
38  }
39  POPUP MENU_LANGUAGE {
40    /* Dummy item, will be removed */
41    MENUITEM SEPARATOR
42  }
43  POPUP MENU_HELP {
44    MENUITEM MENU_HELP_CONTENTS,         PM_CONTENTS
45    MENUITEM MENU_HELP_SEARCH,           PM_SEARCH
46    MENUITEM SEPARATOR   
47    MENUITEM MENU_HELP_HELP_ON_HELP,     PM_HELPONHELP
48    MENUITEM MENU_HELP_TUTORIAL,         PM_TUTORIAL
49    MENUITEM SEPARATOR   
51    POPUP MENU_INFO {
52      MENUITEM MENU_INFO_LICENSE,        PM_LICENSE
53      MENUITEM MENU_INFO_NO_WARRANTY,    PM_NO_WARRANTY
54      MENUITEM MENU_INFO_ABOUT_WINE,     PM_ABOUT_WINE
55    }
56  }
59 /* Dialog `New' */
61 CONCAT(DIALOG_NEW_, LANGUAGE_ID) DIALOG 0, 0, 170, 65
62 STYLE DS_MODALFRAME
63 CAPTION DIALOG_NEW_CAPTION
65 RADIOBUTTON   "",                 PM_NEW_GROUP,    10, 15,  10, 15
66 LTEXT         DIALOG_NEW_GROUP,   PM_NEW_GROUP,    20, 18,  80, 15
67 RADIOBUTTON   "",                 PM_NEW_PROGRAM,  10, 35,  10, 15
68 LTEXT         DIALOG_NEW_PROGRAM, PM_NEW_PROGRAM,  20, 38,  80, 15
69 DEFPUSHBUTTON DIALOG_OK,          IDOK,           105,  5,  60, 15, WS_TABSTOP
70 PUSHBUTTON    DIALOG_CANCEL,      IDCANCEL,       105, 25,  60, 15, WS_TABSTOP
71 PUSHBUTTON    DIALOG_HELP,        PM_HELP,        105, 45,  60, 15, WS_TABSTOP
74 /* Dialog `Move' */
76 CONCAT(DIALOG_MOVE_, LANGUAGE_ID) DIALOG 0, 0, 250, 65
77 STYLE DS_MODALFRAME
78 CAPTION DIALOG_MOVE_CAPTION
80 LTEXT         DIALOG_MOVE_PROGRAM,    IDIGNORE,            5,  5,  90, 15
81 LTEXT         "",                     PM_PROGRAM,         95,  5,  90, 15
82 LTEXT         DIALOG_MOVE_FROM_GROUP, IDIGNORE,            5, 13,  90, 15
83 LTEXT         "",                     PM_FROM_GROUP,      95, 13,  90, 15
84 LTEXT         DIALOG_MOVE_TO_GROUP,   PM_TO_GROUP_TXT,     5, 28, 140, 15
85 COMBOBOX                              PM_TO_GROUP,         5, 38, 140, 50, WS_TABSTOP | CBS_DROPDOWNLIST
86 DEFPUSHBUTTON DIALOG_OK,              IDOK,              185,  5,  60, 15, WS_TABSTOP
87 PUSHBUTTON    DIALOG_CANCEL,          IDCANCEL,          185, 25,  60, 15, WS_TABSTOP
88 PUSHBUTTON    DIALOG_HELP,            PM_HELP,           185, 45,  60, 15, WS_TABSTOP
91 /* Dialog `Copy' */
93 CONCAT(DIALOG_COPY_, LANGUAGE_ID) DIALOG 0, 0, 250, 65
94 STYLE DS_MODALFRAME
95 CAPTION DIALOG_COPY_CAPTION
97 LTEXT         DIALOG_COPY_PROGRAM,    IDIGNORE,            5,  5,  90, 15
98 LTEXT         "",                     PM_PROGRAM,         95,  5,  90, 15
99 LTEXT         DIALOG_COPY_FROM_GROUP, IDIGNORE,            5, 13,  90, 15
100 LTEXT         "",                     PM_FROM_GROUP,      95, 13,  90, 15
101 LTEXT         DIALOG_COPY_TO_GROUP,   PM_TO_GROUP_TXT,     5, 28, 140, 15
102 COMBOBOX                              PM_TO_GROUP,         5, 38, 140, 50, WS_TABSTOP | CBS_DROPDOWNLIST
103 DEFPUSHBUTTON DIALOG_OK,              IDOK,              185,  5,  60, 15, WS_TABSTOP
104 PUSHBUTTON    DIALOG_CANCEL,          IDCANCEL,          185, 25,  60, 15, WS_TABSTOP
105 PUSHBUTTON    DIALOG_HELP,            PM_HELP,           185, 45,  60, 15, WS_TABSTOP
108 /* Dialog `Group attributes' */
110 CONCAT(DIALOG_GROUP_, LANGUAGE_ID) DIALOG 0, 0, 230, 65
111 STYLE DS_MODALFRAME
112 CAPTION DIALOG_GROUP_CAPTION
114 LTEXT     DIALOG_GROUP_DESCRIPTION, PM_DESCRIPTION_TXT,   05, 18,  50, 10
115 EDITTEXT                            PM_DESCRIPTION,       60, 18,  90, 15, WS_TABSTOP
116 LTEXT     DIALOG_GROUP_FILE,        PM_FILE_TXT,          05, 38,  50, 10
117 EDITTEXT                            PM_FILE,              60, 38,  90, 15, WS_TABSTOP
118 DEFPUSHBUTTON DIALOG_OK,            IDOK,                155,  5,  60, 15, WS_TABSTOP
119 PUSHBUTTON    DIALOG_CANCEL,        IDCANCEL,            155, 25,  60, 15, WS_TABSTOP
120 PUSHBUTTON    DIALOG_HELP,          PM_HELP,             155, 45,  60, 15, WS_TABSTOP
123 /* Dialog `Program attributes' */
125 CONCAT(DIALOG_PROGRAM_, LANGUAGE_ID) DIALOG 0, 0, 250, 105
126 STYLE DS_MODALFRAME
127 CAPTION DIALOG_PROGRAM_CAPTION
129 LTEXT         DIALOG_PROGRAM_DESCRIPTION,  PM_DESCRIPTION_TXT,   05, 10,  60, 10
130 EDITTEXT                                   PM_DESCRIPTION,       80, 10,  90, 15, WS_TABSTOP
131 LTEXT         DIALOG_PROGRAM_COMMAND_LINE, PM_COMMAND_LINE_TXT,  05, 25,  60, 10
132 EDITTEXT                                   PM_COMMAND_LINE,      80, 25,  90, 15, WS_TABSTOP
133 LTEXT         DIALOG_PROGRAM_DIRECTORY,    PM_DIRECTORY_TXT,     05, 40,  60, 10
134 EDITTEXT                                   PM_DIRECTORY,         80, 40,  90, 15, WS_TABSTOP
135 LTEXT         DIALOG_PROGRAM_HOT_KEY,      PM_HOT_KEY_TXT,       05, 55,  60, 10
136 EDITTEXT                                   PM_HOT_KEY,           80, 55,  90, 15, WS_TABSTOP
137 ICON          "",                          PM_ICON,              20, 70
138 CHECKBOX      "",                          PM_SYMBOL,            80, 75,  10, 10, WS_TABSTOP
139 LTEXT         DIALOG_PROGRAM_SYMBOL,       IDIGNORE,             95, 75,  75, 10
140 DEFPUSHBUTTON DIALOG_OK,                   IDOK,                185,  5,  60, 15, WS_TABSTOP
141 PUSHBUTTON    DIALOG_CANCEL,               IDCANCEL,            185, 25,  60, 15, WS_TABSTOP
142 PUSHBUTTON    DIALOG_BROWSE,               PM_BROWSE,           185, 45,  60, 15, WS_TABSTOP
143 PUSHBUTTON    DIALOG_PROGRAM_OTHER_SYMBOL, PM_OTHER_SYMBOL,     185, 65,  60, 15, WS_TABSTOP
144 PUSHBUTTON    DIALOG_HELP,                 PM_HELP,             185, 85,  60, 15, WS_TABSTOP
147 /* Dialog `Symbol' */
149 CONCAT(DIALOG_SYMBOL_, LANGUAGE_ID) DIALOG 0, 0, 200, 85
150 STYLE DS_MODALFRAME
151 CAPTION DIALOG_SYMBOL_CAPTION
153 LTEXT     DIALOG_SYMBOL_FILE,    PM_ICON_FILE_TXT,    5, 15,  40, 10
154 EDITTEXT                         PM_ICON_FILE,       45, 15,  85, 15, WS_TABSTOP
155 LTEXT     DIALOG_SYMBOL_CURRENT, PM_SYMBOL_LIST_TXT,  5, 30, 125, 10
156 COMBOBOX                         PM_SYMBOL_LIST,      5, 40, 125, 50,
157    CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | CBS_OWNERDRAWFIXED | WS_TABSTOP
158 DEFPUSHBUTTON DIALOG_OK,         IDOK,              135,  5,  60, 15, WS_TABSTOP
159 PUSHBUTTON    DIALOG_CANCEL,     IDCANCEL,          135, 25,  60, 15, WS_TABSTOP
160 PUSHBUTTON    DIALOG_BROWSE ,    PM_BROWSE,         135, 45,  60, 15, WS_TABSTOP
161 PUSHBUTTON    DIALOG_HELP,       PM_HELP,           135, 65,  60, 15, WS_TABSTOP
164 /* Dialog `Execute' */
166 CONCAT(DIALOG_EXECUTE_, LANGUAGE_ID) DIALOG 0, 0, 200, 85
167 STYLE DS_MODALFRAME
168 CAPTION DIALOG_EXECUTE_CAPTION
170 LTEXT     DIALOG_EXECUTE_COMMAND_LINE, IDIGNORE,   05, 15, 120, 10
171 EDITTEXT                               PM_COMMAND, 05, 25, 120, 15, WS_TABSTOP
172 CHECKBOX      "",                      PM_SYMBOL,  05, 45,  10, 10, WS_TABSTOP
173 LTEXT         DIALOG_EXECUTE_SYMBOL,   IDIGNORE,   20, 45, 120, 10
174 DEFPUSHBUTTON DIALOG_OK,               IDOK,      135,  5,  60, 15, WS_TABSTOP
175 PUSHBUTTON    DIALOG_CANCEL,           IDCANCEL,  135, 25,  60, 15, WS_TABSTOP
176 PUSHBUTTON    DIALOG_BROWSE ,          PM_BROWSE, 135, 45,  60, 15, WS_TABSTOP
177 PUSHBUTTON    DIALOG_HELP,             PM_HELP,   135, 65,  60, 15, WS_TABSTOP
180 /* Strings */
182 #define ADDSTRING(str) ADDSTRING1(LANGUAGE_NUMBER, IDS_ ## str) STRING_ ## str
183 #define ADDSTRING1(langnum, ids) ADDSTRING2(langnum, ids)
184 #define ADDSTRING2(langnum, ids) 0x ## langnum ## ids
186 #define STRINGIFY(str) STRINGIFY1(str)
187 #define STRINGIFY1(str) #str
189 #define STRING_LANGUAGE_ID        STRINGIFY(LANGUAGE_ID)
190 #define STRING_LANGUAGE_MENU_ITEM LANGUAGE_MENU_ITEM
192 STRINGTABLE
194 ADDSTRING(LANGUAGE_ID)
195 ADDSTRING(LANGUAGE_MENU_ITEM)
196 ADDSTRING(PROGRAM_MANAGER)
197 ADDSTRING(ERROR)
198 ADDSTRING(WARNING)
199 ADDSTRING(INFO)
200 ADDSTRING(DELETE)
201 ADDSTRING(DELETE_GROUP_s)
202 ADDSTRING(DELETE_PROGRAM_s)
203 ADDSTRING(NOT_IMPLEMENTED)
204 ADDSTRING(FILE_READ_ERROR_s)
205 ADDSTRING(FILE_WRITE_ERROR_s)
206 ADDSTRING(GRPFILE_READ_ERROR_s)
207 ADDSTRING(OUT_OF_MEMORY)
208 ADDSTRING(WINHELP_ERROR)
209 ADDSTRING(UNKNOWN_FEATURE_s)
210 ADDSTRING(FILE_NOT_OVERWRITTEN_s)
211 ADDSTRING(SAVE_GROUP_AS_s)
212 ADDSTRING(NO_HOT_KEY)
213 ADDSTRING(ALL_FILES)
214 ADDSTRING(PROGRAMS)
215 ADDSTRING(LIBRARIES_DLL)
216 ADDSTRING(SYMBOL_FILES)
217 ADDSTRING(SYMBOLS_ICO)