From: Benjamin Kaduk Date: Fri, 17 Jan 2014 21:02:13 +0000 (-0500) Subject: XML Ribbon markup file X-Git-Tag: krb5-1.14-alpha1~125 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da60312f1352cbd82e39e31398f7ead2e817f119;p=thirdparty%2Fkrb5.git XML Ribbon markup file The standard windows library ribbon interface is either constructed at runtime or specified in an XML file. Since we have a static set of functionality in our ribbon, it is simplest to just use the XML file. This should duplicate the interfaces currently provided by the MFC ribbon, though the menu items in the file menu are slightly taller than they used to be. Use uicc.exe to compile the XML to the binary format and produce a kfwribon.rc resource file and kfwribbon.h header. --- diff --git a/src/windows/leash/Makefile.in b/src/windows/leash/Makefile.in index 089dbbff85..31caf5cd46 100644 --- a/src/windows/leash/Makefile.in +++ b/src/windows/leash/Makefile.in @@ -105,6 +105,9 @@ $(OUTPRE)$(EXE_NAME).exe: $(OBJS) $(XOBJS) $(LIBS) ../lib/$(OUTPRE)libwin.lib atl.lib $(MFCLIB) $(SCLIB) copy $@ "$(OUTPRE)MIT Kerberos.exe" +kfwribbon.bml kfwribbon.h kfwribbon.rc: kfwribbon.xml + uicc.exe kfwribbon.xml kfwribbon.bml /res:kfwribbon.rc /header:kfwribbon.h /name:KFW_RIBBON + $(RESFILE): Leash.rc res/Leash.rc2 ver.rc ../version.rc ../kerberos.ver clean:: @@ -113,3 +116,6 @@ clean:: if exist $(OUTPRE)*.res del $(OUTPRE)*.res if exist $(OUTPRE)*.pdb del $(OUTPRE)*.pdb if exist *.err del *.err + if exist *.bml del *.bml + if exist kfwribbon.h del kfwribbon.h + if exist kfwribbon.rc del kfwribbon.rc diff --git a/src/windows/leash/kfwribbon.xml b/src/windows/leash/kfwribbon.xml new file mode 100644 index 0000000000..e87fca876f --- /dev/null +++ b/src/windows/leash/kfwribbon.xml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + res/getticketlarge.bmp + + + + + res/renewlarge.bmp + + + + + res/destroylarge.bmp + + + + + res/makedefaultlarge.bmp + + + + + res/cpwlarge.bmp + + + + + + + + + + + + + + + + + +