• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

The MinGW.org Installation Manager Tool


Commit MetaInfo

Revision642285973bb22a6a0feacbe976e93eb24746f1d8 (tree)
Time2013-07-30 22:28:19
AuthorKeith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Log Message

Implement "icon legend" display as "help" menu item.

Change Summary

Incremental Difference

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
11 2013-07-30 Keith Marshall <keithmarshall@users.sourceforge.net>
22
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+
314 Avoid discarding pending changes when catalogue is updated.
415
516 * src/guimain.h (IDD_CONFIRMATION): New manifest constant; define it.
--- a/src/guiexec.cpp
+++ b/src/guiexec.cpp
@@ -715,11 +715,14 @@ long AppWindowMaker::OnCommand( WPARAM cmd )
715715 */
716716 switch( cmd )
717717 { 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
720723 * dialogue box.
721724 */
722- WTK::GenericDialogue( AppInstance, AppWindow, IDD_HELP_ABOUT );
725+ WTK::GenericDialogue( AppInstance, AppWindow, cmd );
723726 break;
724727
725728 case IDM_PACKAGE_INSTALL:
--- a/src/guimain.rc
+++ b/src/guimain.rc
@@ -123,7 +123,7 @@ BEGIN
123123 BEGIN
124124 MENUITEM "&Contents", IDM_HELP_CONTENTS, GRAYED
125125 MENUITEM "Quick &Introduction", IDM_HELP_INTRO, GRAYED
126- MENUITEM "Icon &Legend", IDM_HELP_LEGEND, GRAYED
126+ MENUITEM "Icon &Legend", IDM_HELP_LEGEND
127127 MENUITEM "&About mingw-get", IDM_HELP_ABOUT
128128 END
129129
@@ -151,6 +151,48 @@ ID_PKGSTATE_BROKEN ICON DISCARDABLE "state11.ico"
151151 ID_PKGSTATE_REMOVE ICON DISCARDABLE "state12.ico"
152152 ID_PKGSTATE_PURGE ICON DISCARDABLE "state13.ico"
153153
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+
154196 #define SS_CTEXTBOX SS_SUNKEN | SS_CENTER
155197 #define ES_VT100 ES_LEFT | ES_READONLY | ES_MULTILINE | ES_AUTOVSCROLL
156198