Hi,
I think that a real Aqua application should have the Preferences as the
second menu item under the "OpenOffice" menu, as all Mac applications
do,
not as a separate menu.
I don't mind to have them also as "Options" under Tools, but not
exclusively there. One of the beauties of the Mac is that there is some
standardisation.
Thank you for all your efforts
Roland
On 20 May 2007, at 08:19, Pavel Janík wrote:
Hi,
I'd like to add menu Preferences to OpenOffice.org application menu
for AQUA.
This simple patch does it:
Index: salframe.cxx
===================================================================
RCS file: /cvs/gsl/vcl/aqua/source/window/salframe.cxx,v
retrieving revision 1.46.112.74
diff -u -u -r1.46.112.74 salframe.cxx
--- salframe.cxx 17 May 2007 10:19:16 -0000 1.46.112.74
+++ salframe.cxx 19 May 2007 21:42:45 -0000
@@ -323,6 +323,7 @@
{
AquaSalMenu *pAquaSalMenu = (AquaSalMenu *) mpMenu;
SetRootMenu(pAquaSalMenu->mrMenuRef);
+ EnableMenuCommand(NULL, kHICommandPreferences);
}
if( ! mbShown )
{
@@ -1000,6 +1001,11 @@
pSalFrame->CallCallback( SALEVENT_SHUTDOWN, 0 );
result = noErr;
}
+ else if (commandStruct.commandID == kHICommandPreferences)
+ {
+ fprintf(stderr, "FIXME: Call Tools - Options
somehow...!\n");
+ result = noErr;
+ }
}
return result;
Now the question is, if/how can we properly call that dialog from
VCL... Do you have an idea?
Later on, we will need the same for About window.
--
Pavel Janík
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]