The MinGW.org Installation Manager Tool
Revision | 642285973bb22a6a0feacbe976e93eb24746f1d8 (tree) |
---|---|
Time | 2013-07-30 22:28:19 |
Author | Keith Marshall <keithmarshall@user...> |
Commiter | Keith Marshall |
Implement "icon legend" display as "help" menu item.
@@ -1,5 +1,16 @@ | ||
1 | 1 | 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 2 | |
3 | + Implement "icon legend" display as "help" menu item. | |
4 | + | |
5 | + * src/guimain.rc (IDM_HELP_LEGEND): Make menu item active; define | |
6 | + template for the dialogue box which it is to call out. | |
7 | + | |
8 | + * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_HELP_LEGEND]: New | |
9 | + case handler; implement dialogue box call out, as a variation on... | |
10 | + [IDM_HELP_ABOUT]: ...this; modify it accordingly. | |
11 | + | |
12 | +2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net> | |
13 | + | |
3 | 14 | Avoid discarding pending changes when catalogue is updated. |
4 | 15 | |
5 | 16 | * src/guimain.h (IDD_CONFIRMATION): New manifest constant; define it. |
@@ -715,11 +715,14 @@ long AppWindowMaker::OnCommand( WPARAM cmd ) | ||
715 | 715 | */ |
716 | 716 | switch( cmd ) |
717 | 717 | { case IDM_HELP_ABOUT: |
718 | - /* This request is initiated by selecting "About mingw-get" | |
719 | - * from the "Help" menu; we respond by displaying the "about" | |
718 | + /* This request is initiated by selecting "About ...", ... | |
719 | + */ | |
720 | + case IDM_HELP_LEGEND: | |
721 | + /* ...and this one by selecting "Icon Legend", from the "Help" | |
722 | + * menu; in both cases, we respond by displaying an associated | |
720 | 723 | * dialogue box. |
721 | 724 | */ |
722 | - WTK::GenericDialogue( AppInstance, AppWindow, IDD_HELP_ABOUT ); | |
725 | + WTK::GenericDialogue( AppInstance, AppWindow, cmd ); | |
723 | 726 | break; |
724 | 727 | |
725 | 728 | case IDM_PACKAGE_INSTALL: |
@@ -123,7 +123,7 @@ BEGIN | ||
123 | 123 | BEGIN |
124 | 124 | MENUITEM "&Contents", IDM_HELP_CONTENTS, GRAYED |
125 | 125 | MENUITEM "Quick &Introduction", IDM_HELP_INTRO, GRAYED |
126 | - MENUITEM "Icon &Legend", IDM_HELP_LEGEND, GRAYED | |
126 | + MENUITEM "Icon &Legend", IDM_HELP_LEGEND | |
127 | 127 | MENUITEM "&About mingw-get", IDM_HELP_ABOUT |
128 | 128 | END |
129 | 129 |
@@ -151,6 +151,48 @@ ID_PKGSTATE_BROKEN ICON DISCARDABLE "state11.ico" | ||
151 | 151 | ID_PKGSTATE_REMOVE ICON DISCARDABLE "state12.ico" |
152 | 152 | ID_PKGSTATE_PURGE ICON DISCARDABLE "state13.ico" |
153 | 153 | |
154 | +/* Template for dialogue box to document the meanings of these icons; | |
155 | + * (display is restricted to subset in current active deployment). | |
156 | + */ | |
157 | +IDM_HELP_LEGEND DIALOG DISCARDABLE 10, 20, 190, 140 | |
158 | +CAPTION "Icon Legend" | |
159 | +STYLE DS_MODALFRAME | DS_SETFONT | WS_POPUP | WS_CAPTION | WS_DLGFRAME | |
160 | +FONT 10, "Verdana" | |
161 | +BEGIN | |
162 | + LTEXT "mingw-get indicates the status of all packages using the " \ | |
163 | + "following set of icons, one of which is displayed to the left " \ | |
164 | + "of each entry within the package list:", -1, 5, 4, 180, 24 | |
165 | + CONTROL ID_PKGSTATE_AVAILABLE, ID_PKGSTATE_AVAILABLE, \ | |
166 | + "Static", SS_ICON | SS_REALSIZEIMAGE, 7, 34, 0, 0 | |
167 | + LTEXT "Package available in repository; not installed.", \ | |
168 | + -1, 20, 34, 186, 10 | |
169 | + CONTROL ID_PKGSTATE_AVAILABLE_INSTALL, ID_PKGSTATE_AVAILABLE_INSTALL, \ | |
170 | + "Static", SS_ICON | SS_REALSIZEIMAGE, 7, 44, 0, 0 | |
171 | + LTEXT "Package selected; marked for installation.", \ | |
172 | + -1, 20, 44, 186, 10 | |
173 | + CONTROL ID_PKGSTATE_INSTALLED_CURRENT, ID_PKGSTATE_INSTALLED_CURRENT, \ | |
174 | + "Static", SS_ICON | SS_REALSIZEIMAGE, 7, 54, 0, 0 | |
175 | + LTEXT "Package installed; version is latest available.", \ | |
176 | + -1, 20, 54, 186, 10 | |
177 | + CONTROL ID_PKGSTATE_INSTALLED_OLD, ID_PKGSTATE_INSTALLED_OLD, \ | |
178 | + "Static", SS_ICON | SS_REALSIZEIMAGE, 7, 64, 0, 0 | |
179 | + LTEXT "Package installed; newer version available.", \ | |
180 | + -1, 20, 64, 186, 10 | |
181 | + CONTROL ID_PKGSTATE_UPGRADE, ID_PKGSTATE_UPGRADE, \ | |
182 | + "Static", SS_ICON | SS_REALSIZEIMAGE, 7, 74, 0, 0 | |
183 | + LTEXT "Package installed; marked for upgrade.", \ | |
184 | + -1, 20, 74, 186, 10 | |
185 | + CONTROL ID_PKGSTATE_REINSTALL, ID_PKGSTATE_REINSTALL, \ | |
186 | + "Static", SS_ICON | SS_REALSIZEIMAGE, 7, 84, 0, 0 | |
187 | + LTEXT "Package installed; marked for reinstallation.", \ | |
188 | + -1, 20, 84, 186, 10 | |
189 | + CONTROL ID_PKGSTATE_REMOVE, ID_PKGSTATE_REMOVE, \ | |
190 | + "Static", SS_ICON | SS_REALSIZEIMAGE, 7, 94, 0, 0 | |
191 | + LTEXT "Package installed; marked for removal.", \ | |
192 | + -1, 20, 94, 186, 10 | |
193 | + DEFPUSHBUTTON "Dismiss", IDOK, 70, 115, 50, 14, WS_GROUP | WS_TABSTOP | |
194 | +END | |
195 | + | |
154 | 196 | #define SS_CTEXTBOX SS_SUNKEN | SS_CENTER |
155 | 197 | #define ES_VT100 ES_LEFT | ES_READONLY | ES_MULTILINE | ES_AUTOVSCROLL |
156 | 198 |