Unix Technical Forum

Mac OS X interface problems

This is a discussion on Mac OS X interface problems within the pgsql Interfaces Pgadmin Hackers forums, part of the PostgreSQL category; --> Please don't use private mail, we need to discuss this in the pgadmin-hackers community. Maarten Engelen wrote: > Attached ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 05:28 PM
Andreas Pflug
 
Posts: n/a
Default Mac OS X interface problems

Please don't use private mail, we need to discuss this in the
pgadmin-hackers community.

Maarten Engelen wrote:
> Attached you will find two screenshots of the preference dialog an the
> database property dialog after I changed the default font setting from
> Lucida Grande to Courier. I had to do this in the pgadmin3 preference
> file, because (as you will see from the screenshot) there is no dropdown
> control to choose a new font. The control is uneditable.
>
> I edited the database property dialog xrc file to make it a bit wider.
> But the controls still don't space evenly over the dialog.


Your description doesn't fit the snapshots (font is "genova", not
"courier"; anyway, this doesn't seem to be the well-known font problem.

Please try the wx xrc sample: copy the attached basicdlg.xrc to
samples/xrc/rc, make and start xrcdemo (ignore the version hint) and
have a look at the basic dialog. It should display correctly, with the
exception of the three buttons at the bottom which might be
misplaced/cut off. Post the result here if it doesn't look ok.

Regards,
Andreas




---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 05:28 PM
Maarten Engelen
 
Posts: n/a
Default Re: Mac OS X interface problems

Well, not a very good start: I'm getting a compiler error when
compiling the xrcdemo.

g++ -o xrcdemo xrcdemo_xrcdemo.o xrcdemo_myframe.o xrcdemo_derivdlg.o
xrcdemo_custclas.o -framework QuickTime -framework IOKit -framework
Carbon -framework Cocoa -framework System -L../../lib
-lwx_macud_xrc-2.5 -lwx_macud_html-2.5 -lwx_macud_adv-2.5
-lwx_macud_core-2.5 -lwx_base_carbonud_xml-2.5 -lwx_base_carbonud-2.5
-lwxtiffd-2.5 -lwxjpegd-2.5 -lwxpngd-2.5 -lwxregexud-2.5
-lwxexpatd-2.5 -framework QuickTime -framework IOKit -framework Carbon
-framework Cocoa -framework System -lz -lpthread -liconv -framework
WebKit
ld: Undefined symbols:
wxURL::wxURL[in-charge](wxString const&)
wxURL::~wxURL [in-charge]()
make: *** [xrcdemo] Error 1

Any idea how to fix this?

Regards,

Maarten

Op 20-dec-04 om 12:17 heeft Andreas Pflug het volgende geschreven:

> Please don't use private mail, we need to discuss this in the
> pgadmin-hackers community.
>
> Maarten Engelen wrote:
>> Attached you will find two screenshots of the preference dialog an
>> the database property dialog after I changed the default font setting
>> from Lucida Grande to Courier. I had to do this in the pgadmin3
>> preference file, because (as you will see from the screenshot) there
>> is no dropdown control to choose a new font. The control is
>> uneditable.
>> I edited the database property dialog xrc file to make it a bit
>> wider. But the controls still don't space evenly over the dialog.

>
> Your description doesn't fit the snapshots (font is "genova", not
> "courier"; anyway, this doesn't seem to be the well-known font
> problem.
>
> Please try the wx xrc sample: copy the attached basicdlg.xrc to
> samples/xrc/rc, make and start xrcdemo (ignore the version hint) and
> have a look at the basic dialog. It should display correctly, with the
> exception of the three buttons at the bottom which might be
> misplaced/cut off. Post the result here if it doesn't look ok.
>
> Regards,
> Andreas
>
>
> <?xml version="1.0" ?>
> <resource>
> <object class="wxDialog" name="non_derived_dialog">
> <title>Options</title>
> <pos>0,0d</pos>
> <size>246,166d</size>
>
> <style>wxDEFAULT_DIALOG_STYLE|wxDIALOG_MODAL|wxCAP TION|wxSYSTEM_MENU</
> style>
> <object class="wxNotebook" name="nbOptions">
> <object class="notebookpage">
> <label>General</label>
> <selected>1</selected>
> <object class="wxPanel" name="pnlGeneral">
> <object class="wxStaticText" name="stLanguage">
> <label>User language</label>
> <pos>5,5d</pos>
> </object>
> <object class="wxComboBox" name="cbLanguage">
> <content/>
> <pos>70,5d</pos>
> <size>160,12d</size>
> <style>wxCB_READONLY|wxCB_DROPDOWN</style>
> </object>
> <object class="wxStaticText" name="stSqlHelpSite">
> <label>SQL help site</label>
> <pos>5,22d</pos>
> </object>
> <object class="wxTextCtrl" name="txtSqlHelpSite">
> <pos>70,20d</pos>
> <size>160,-1d</size>
> <tooltip>Enter the path or URL to the PostgreSQL
> documentation</tooltip>
> </object>
> <object class="wxStaticText" name="stProxy">
> <label>HTTP proxy</label>
> <pos>5,37d</pos>
> </object>
> <object class="wxTextCtrl" name="txtProxy">
> <pos>70,35d</pos>
> <size>160,-1d</size>
> </object>
> </object>
> </object>
> <object class="notebookpage">
> <label>Preferences</label>
> <object class="wxPanel" name="pnlPreferences">
> <object class="wxStaticText" name="stFont">
> <label>Font</label>
> <pos>5,7d</pos>
> </object>
> <object class="wxTextCtrl" name="txtFont">
> <pos>70,5d</pos>
> <size>140,12d</size>
> <style>wxTE_READONLY</style>
> </object>
> <object class="wxButton" name="btnFont">
> <label>...</label>
> <pos>215,5d</pos>
> <size>15,-1d</size>
> </object>
> <object class="wxCheckBox" name="chkUnicodeFile">
> <label>Read and write Unicode UTF-8 files</label>
> <pos>5,35d</pos>
> <size>226,12d</size>
> </object>
> <object class="wxCheckBox" name="chkAskSaveConfirm">
> <label>Do not prompt for unsaved files on exit</label>
> <checked>0</checked>
> <pos>5,47d</pos>
> <size>226,12d</size>
> </object>
> <object class="wxCheckBox" name="chkAskDelete">
> <label>Confirm object deletion?</label>
> <checked>1</checked>
> <pos>5,59d</pos>
> <size>226,12d</size>
> </object>
> <object class="wxCheckBox" name="chkShowUsersForPrivileges">
> <label>Show users for privileges?</label>
> <checked>0</checked>
> <pos>5,71d</pos>
> <size>226,12d</size>
> </object>
> <object class="wxCheckBox" name="chkDoubleClickProperties">
> <label>Show object properties on double click in
> treeview?</label>
> <checked>0</checked>
> <pos>5,83d</pos>
> <size>226,12d</size>
> </object>
> </object>
> </object>
> <object class="notebookpage">
> <label>Query</label>
> <object class="wxPanel" name="pnlQuery">
> <object class="wxStaticText" name="stSqlFont">
> <label>Font</label>
> <pos>5,7d</pos>
> </object>
> <object class="wxTextCtrl" name="txtSqlFont">
> <pos>70,5d</pos>
> <size>140,-1d</size>
> <style>wxTE_READONLY</style>
> </object>
> <object class="wxButton" name="btnSqlFont">
> <label>...</label>
> <pos>215,5d</pos>
> <size>15,-1d</size>
> </object>
> <object class="wxStaticText" name="lblMaxRows">
> <label>Maximum rows to retrieve</label>
> <pos>5,22d</pos>
> </object>
> <object class="wxTextCtrl" name="txtMaxRows">
> <value>100</value>
> <pos>175,20d</pos>
> <size>35,-1d</size>
> <tooltip>Maximums rows to retrieve into output window; 0 =
> unlimited</tooltip>
> </object>
> <object class="wxStaticText" name="lblMaxColSize">
> <label>Max. characters per column</label>
> <pos>5,37d</pos>
> </object>
> <object class="wxTextCtrl" name="txtMaxColSize">
> <value>256</value>
> <pos>175,35d</pos>
> <size>35,-1d</size>
> </object>
> <object class="wxStaticText" name="stAutoRowCount">
> <label>Count rows if estimated less than</label>
> <pos>5,52d</pos>
> </object>
> <object class="wxTextCtrl" name="txtAutoRowCount">
> <pos>175,50d</pos>
> <size>35,-1d</size>
> </object>
> <object class="wxCheckBox" name="chkStickySql">
> <label>Copy SQL from main form to SQL dialogue</label>
> <checked>1</checked>
> <pos>5,67d</pos>
> <size>226,12d</size>
> </object>
> </object>
> </object>
> <object class="notebookpage">
> <label>Logging</label>
> <object class="wxPanel" name="pnlLogging">
> <object class="wxStaticText" name="lblLogfile">
> <label>Logfile (%ID will be replaced with the Process
> ID)</label>
> <pos>5,5d</pos>
> </object>
> <object class="wxTextCtrl" name="txtLogfile">
> <value>pgadmin3_%ID.log</value>
> <pos>5,17d</pos>
> <size>205,-1d</size>
> <tooltip>Enter a filename to write application logs
> to.</tooltip>
> </object>
> <object class="wxButton" name="btnBrowseLogfile">
> <label>...</label>
> <pos>215,17d</pos>
> <size>15,-1d</size>
> <tooltip>Browse for a logfile.</tooltip>
> </object>
> <object class="wxRadioBox" name="radLoglevel">
> <label>Log Level</label>
> <content>
> <item>&amp;No logging</item>
> <item>&amp;Errors only</item>
> <item>Errors and N&amp;otices</item>
> <item>Errors, Notices, &amp;SQL</item>
> <item>&amp;Debug (not recommended for normal use)</item>
> </content>
> <selection>2</selection>
> <dimension>1</dimension>
> <pos>25,35d</pos>
> <style>wxRA_SPECIFY_COLS</style>
> <tooltip>Select the level of detail to record in the
> logfile.</tooltip>
> </object>
> </object>
> </object>
> <pos>2,3d</pos>
> <size>240,141d</size>
> </object>
> <object class="wxButton" name="wxID_HELP">
> <label>&amp;Help</label>
> <pos>2,147d</pos>
> <tooltip>Accept the current settings and close the
> dialogue.</tooltip>
> </object>
> <object class="wxButton" name="wxID_OK">
> <label>&amp;OK</label>
> <default>1</default>
> <pos>140,147d</pos>
> <tooltip>Accept the current settings and close the
> dialogue.</tooltip>
> </object>
> <object class="wxButton" name="wxID_CANCEL">
> <label>&amp;Cancel</label>
> <default>0</default>
> <pos>193,147d</pos>
> <tooltip>Cancel any changes and close the dialogue.</tooltip>
> </object>
> </object>
> </resource>



---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 05:28 PM
Andreas Pflug
 
Posts: n/a
Default Re: Mac OS X interface problems

Maarten Engelen wrote:
> Well, not a very good start: I'm getting a compiler error when
> compiling the xrcdemo.
>
> g++ -o xrcdemo xrcdemo_xrcdemo.o xrcdemo_myframe.o xrcdemo_derivdlg.o
> xrcdemo_custclas.o -framework QuickTime -framework IOKit -framework
> Carbon -framework Cocoa -framework System -L../../lib
> -lwx_macud_xrc-2.5 -lwx_macud_html-2.5 -lwx_macud_adv-2.5
> -lwx_macud_core-2.5 -lwx_base_carbonud_xml-2.5 -lwx_base_carbonud-2.5
> -lwxtiffd-2.5 -lwxjpegd-2.5 -lwxpngd-2.5 -lwxregexud-2.5
> -lwxexpatd-2.5 -framework QuickTime -framework IOKit -framework Carbon
> -framework Cocoa -framework System -lz -lpthread -liconv -framework
> WebKit
> ld: Undefined symbols:
> wxURL::wxURL[in-charge](wxString const&)
> wxURL::~wxURL [in-charge]()
> make: *** [xrcdemo] Error 1
>
> Any idea how to fix this?


No. xrcdemo doesn't use wxURL. Maybe you need a newer cvs snapshot
(ideally CVS HEAD)
Please ask at wx-dev for assistance.

Regards,
Andreas

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:01 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com