[pgadmin-hackers] CVS Commit by dpage: Turns out that wxMac actually supports a macish
Log Message:
---
Turns out that wxMac actually supports a macish behaviour of
the "Quit" MenuItem. It works similar to the About and Help menu
handling - you just set s_macEditMenuItemId to the id of
the Exit-Menuitem, and wx takes care of the rest.
Here is is patch (3-liner, including the compiler conditionals)
for this.
[Florian Pflug]
Modified Files:
--
pgadmin3/src/ui:
frmMain.cpp (r1.128 -> r1.129)
Index: frmMain.cpp
===
RCS file: /projects/pgadmin3/src/ui/frmMain.cpp,v
retrieving revision 1.128
retrieving revision 1.129
diff -Lsrc/ui/frmMain.cpp -Lsrc/ui/frmMain.cpp -u -w -r1.128 -r1.129
--- src/ui/frmMain.cpp
+++ src/ui/frmMain.cpp
@@ -178,6 +178,9 @@
fileMenu->Append(MNU_HBAFILECONFIG, _("Open pg_hba.conf"),_("Open
configuration editor with pg_hba.conf."));
fileMenu->AppendSeparator();
fileMenu->Append(MNU_EXIT, _("E&xit\tAlt-F4"),_("Quit this
program."));
+#ifdef __WXMAC__
+wxApp::s_macExitMenuItemId = MNU_EXIT;
+#endif
menuBar->Append(fileMenu, _("&File"));
// Edit Menu
---(end of broadcast)---
TIP 7: don't forget to increase your free space map settings
Re: [pgadmin-hackers] [PATCH] Improve Cmd-Q / Exit-Menu-Item on OSX
Thanks Florian, patch applied.
Regards, Dave
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Florian G. Pflug
> Sent: 24 April 2005 20:55
> To: pgadmin-hackers
> Subject: [pgadmin-hackers] [PATCH] Improve Cmd-Q /
> Exit-Menu-Item on OSX
>
> Hi
>
> Turns out that wxMac actually supports a macish behaviour of
> the "Quit" MenuItem. It works similar to the About and Help menu
> handling - you just set s_macEditMenuItemId to the id of
> the Exit-Menuitem, and wx takes care of the rest.
>
> Here is is patch (3-liner, including the compiler conditionals)
> for this.
>
> cut here
> Index: src/ui/frmMain.cpp
> ===
> RCS file: /projects/pgadmin3/src/ui/frmMain.cpp,v
> retrieving revision 1.128
> diff -a -u -r1.128 frmMain.cpp
> --- src/ui/frmMain.cpp24 Apr 2005 12:19:50 - 1.128
> +++ src/ui/frmMain.cpp24 Apr 2005 19:38:02 -
> @@ -178,6 +178,9 @@
> fileMenu->Append(MNU_HBAFILECONFIG, _("Open
> pg_hba.conf"),_("Open configuration editor
> with pg_hba.conf."));
> fileMenu->AppendSeparator();
> fileMenu->Append(MNU_EXIT, _("E&xit\tAlt-F4"),
> _("Quit this program."));
> +#ifdef __WXMAC__
> +wxApp::s_macExitMenuItemId = MNU_EXIT ;
> +#endif
> menuBar->Append(fileMenu, _("&File"));
>
> // Edit Menu
> cut here -
>
> Please apply. (This is not sent as an attachment, because
> I had trouble getting attachments through to the list...)
>
> Greetings, Florian Pflug
>
---(end of broadcast)---
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])
[pgadmin-hackers] query runtime guru hint
RFC: Taken from the recent discussion on pgsql-performance, I added the requirement to have a guru hint for long query runtimes. Now I got a good question to ask: whatsalongruntime? >10s? >300ms? ... Is this a guru hint topic at all, or more a doc/faq topic? Though annoying users with guru popups might prevent people from flooding the lists with questions answered in the faqs. Regards, Andreas ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])
Re: [pgadmin-hackers] query runtime guru hint
-Original Message- From: [EMAIL PROTECTED] on behalf of Andreas Pflug Sent: Mon 4/25/2005 5:59 PM To: pgadmin-hackers Subject: [pgadmin-hackers] query runtime guru hint > RFC: > Taken from the recent discussion on pgsql-performance, I added the > requirement to have a guru hint for long query runtimes. Now I got a > good question to ask: > whatsalongruntime? >10s? >300ms? ... Good question. 10 seconds sounds good to me - we want the message to get across, and it's not like you can't disable that one hint. > Is this a guru hint topic at all, or more a doc/faq topic? Though > annoying users with guru popups might prevent people from flooding the > lists with questions answered in the faqs. Yes, I think so - especially given Tom's observation about the query times in pgAdmin. I think a hint, and a paragraph in the docs explaining exactly how the timings work is appropriate. Regards, Dave ---(end of broadcast)--- TIP 8: explain analyze is your friend
[pgadmin-hackers] pgadminIII on OSX 10.3.9; w/ wxWidgets-2.6.0 OK, w/ wxWidgets-CVS make fail
hi all, coming back from vacation :-( i noticed that wxwidgets 2.6.0 has been released, and that there are now nightly OSX builds available (nice! florian) after updating to OSX 10.3.9, i've done a sanity run for myself: wxWidgets-CVS (4/25/05 11:34:29) & wxWidgets-2.6.0 both: ../configure \ --prefix=/usr/local/wxWidgets-cvs \ --with-mac \ --disable-shared \ --disable-debug \ --enable-unicode \ --with-regex make make install w/o error, where: % du -s -h /usr/local/wxWidgets-260/* 868K/usr/local/wxWidgets-260/bin 4.8M/usr/local/wxWidgets-260/include 16M /usr/local/wxWidgets-260/lib 12K /usr/local/wxWidgets-260/share % ls -al /usr/local/wxWidgets-260/bin total 868 drwxr-xr-x 5 rootadmin170 Apr 25 15:18 . drwxr-xr-x 6 rootadmin204 Apr 25 15:18 .. lrwxr-xr-x 1 rootadmin 69 Apr 25 15:18 wx-config -> /usr/local/wxWidgets-260/lib/wx/config/mac-unicode-release-static-2.6 lrwxr-xr-x 1 rootadmin 8 Apr 25 15:18 wxrc -> wxrc-2.6 -rwxr-xr-x 1 devuser wheel 879000 Apr 25 13:26 wxrc-2.6 % du -s -h /usr/local/wxWidgets-cvs/* 968K/usr/local/wxWidgets-cvs/bin 4.8M/usr/local/wxWidgets-cvs/include 27M /usr/local/wxWidgets-cvs/lib 12K /usr/local/wxWidgets-cvs/share % ls -al /usr/local/wxWidgets-cvs/bin total 968 drwxr-xr-x 5 rootadmin170 Apr 25 17:05 . drwxr-xr-x 6 rootadmin204 Apr 25 17:05 .. lrwxr-xr-x 1 rootadmin 69 Apr 25 17:05 wx-config -> /usr/local/wxWidgets-cvs/lib/wx/config/mac-unicode-release-static-2.6 lrwxr-xr-x 1 rootadmin 8 Apr 25 17:05 wxrc -> wxrc-2.6 -rwxr-xr-x 1 devuser wheel 980160 Apr 25 17:00 wxrc-2.6 subsequent builds of pgadmin3-cvs (4/25/05 04:04:22) as: CASE XXX == 260, cvs ./configure \ --enable-appbundle \ --enable-static \ --disable-debug \ --with-wx=/usr/local/wxWidgets-XXX \ --with-wx-config=wx-config \ --with-pgsql=/usr/local/pgsql \ --with-pgsql-include=/usr/local/pgsql/include make all make install --- (CASE wxwidgets-260) -- no longer requires a chmod on complete-bundle.sh (thx!) builds completely/successfully, but STILL fails to AUTOSTRIP correctly % ls -al /usr/ports/pgadmin3-cvs/pgAdmin3.app/Contents/MacOS/pgAdmin3 -rwxr-xr-x 1 root admin 109540252 Apr 25 18:20 /usr/ports/pgadmin3-cvs/pgAdmin3.app/Contents/MacOS/pgAdmin3 % strip /usr/ports/pgadmin3-cvs/pgAdmin3.app/Contents/MacOS/pgAdmin3 % ls -al /usr/ports/pgadmin3-cvs/pgAdmin3.app/Contents/MacOS/pgAdmin3 -rwxr-xr-x 1 root admin 7800208 Apr 25 18:24 /usr/ports/pgadmin3-cvs/pgAdmin3.app/Contents/MacOS/pgAdmin3 the resultant executable launches from Finder w/o error, and initial poking around is error free. yay! --- (CASE wxwidgets-cvs) -- no longer requires a chmod on complete-bundle.sh configures OK 'make all' fails at: ld: Undefined symbols: wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*) make[2]: *** [pgadmin3] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 i'll see what i can find out abt this one ... cheers, richard ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org
