Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - NeoOffice GUI
NeoOffice GUI
 
   NeoOffice Forum Index -> NeoOffice Development
View previous topic :: View next topic  
Author Message
M-Rick
Operator


Joined: Oct 27, 2004
Posts: 45
Location: Le Mans, France

PostPosted: Tue Jan 31, 2006 5:05 pm    Post subject: NeoOffice GUI

Do you know this interface library ?

http://www.randelshofer.ch/quaqua/download.html

Quote:
The Quaqua Look and Feel (Quaqua) is a user interface library for Java applications which wish to closely adhere to the Apple Human Interface Guidelines for Mac OS X.



_________________
iMac G5 20" 1,8 Ghz Mac OS X 10.4.8
MacBook Pro C2D 17" 2,33 Ghz Mac OS X 10.4.11
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Tue Jan 31, 2006 7:38 pm    Post subject:

This won't help anyone any more than porting gtk or Qt to Mac OS X. OOo (and thus Neo) uses Sun's (Star Division's) own cross-platform widget toolkit, vcl, and the only way to get an Aqua-looking vcl is to use the N*F frameworks (invented by Ed and Dan in Neo/C) and program your own Aqua N*F vcl extensions.

Pure Java apps (which Neo is not) on Mac OS X already have an Aqua LAF, although I'll admit that library makes the app "more Aqua" than most pure Java apps.

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Tue Jan 31, 2006 9:37 pm    Post subject:

It is a good reference, though, especially for anyone who's looking at doing the file picker implementation. The Swing component offers the filtering and such we need for OOo, but the Swing filepicker isn't implemented using native filepickers...it's implemented in Swing. Thus you're left with AWT (which has a *horrid* file picker) or redoing it in Carbon/Cocoa native. Right now my recommendation is still to go Carbon/Cocoa on the filepicker, but if this offers an easier binding via Java it may be worthwhile.

The overall Aqua LAF, though, still is a world away. I'm toying with punting on x86 and letting someone else do the heavy lifting and instead jumping off into NWF for Neo 2.0. I can do NWF on my PowerPC machines (which I'll have until they pry them from my cold, dead hands)

ed
Back to top
jakeOSX
Ninja
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: Wed Feb 01, 2006 6:35 am    Post subject:

ed, does that mean that you have to use AWT and not swing? (i found code for a swing file picker)

as for the cocoa, now it has been a while, but when I was looking into it, basically you just run a line of code, but I couldn't figure out how to call that (or where to). I assumed that Patrick did something similar with the print scheme, but my non-web programming is not so hot...
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Wed Feb 01, 2006 7:39 am    Post subject:

Give Ed and I credit: showing a native dialog is trivial. The problem is that making sure that it does not cause the OOo code to hang and feeding all of OOo's callback functions with data whenever something changes while in the native dialog is what is not trivial. It is these non-trivial items that are the reason why we have put native filepickers in the low priority category. If the print dialog was any indication of the work involved, it will take less than a week to implement but we'll spend a good three months chasing down all of the bugs after our first implementation.

Patrick
Back to top
rays
The Anomaly
(earlier version)


Joined: Sep 23, 2004
Posts: 475
Location: Geneva, Switzerland

PostPosted: Wed Feb 01, 2006 11:33 am    Post subject:

pluby wrote:
Give Ed and I credit


I do. Daily.

_________________
Ray Saunders
World Scout Bureau
Back to top
jakeOSX
Ninja
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: Wed Feb 01, 2006 4:51 pm    Post subject:

pluby wrote:
Give Ed and I credit: showing a native dialog is trivial.

Patrick


and i couldn't figure out how to do that... =)
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Wed Feb 01, 2006 8:15 pm    Post subject: awt vs. swing

jake: Yup, from Java itself you'd need to display the file picker from AWT and not from Swing. The Swing filepicker is a "platform independent" filepicker and does similar kinds of things like the OOo filepicker (e.g. not display the same sidebar as in the finder, have to navigate through Volumes folder for extra hard drives/partitions, etc.).

The AWT filepicker is implemented through the real file dialogs of OS X and not some platform-independent abstraction (like Swing). The bummer is that, on OS X, the AWT filepicker doesn't do filtering of files based on extensions, while Swing does, so doing things like adding different formats to a "save as" menu won't fly Sad

The only thing I can think of is to go through native dialogs which can be extended unlike their java counterparts.

ed
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Wed Feb 01, 2006 10:35 pm    Post subject: Re: awt vs. swing

OPENSTEP wrote:
jake: Yup, from Java itself you'd need to display the file picker from AWT and not from Swing. The Swing filepicker is a "platform independent" filepicker and does similar kinds of things like the OOo filepicker (e.g. not display the same sidebar as in the finder, have to navigate through Volumes folder for extra hard drives/partitions, etc.).


But the library listed above can do that, AFAICT. Anyway, I hope you get it sorted eventually Smile.

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Wed Feb 01, 2006 10:47 pm    Post subject:

Well, granted, I just looked at the screenshot, but I don't think the library is of any help. The filepicker doesn't have a "formats" menu for choosing the different supported formats for save/load nor custom controls and preview areas for selected files.

Granted, my knowledge is restricted to the AWT implementation of Apple VM 1.3.1, but there's no way to do a native filepicker with filter menus and custom controls from Java. All you can do is suck it up and use a real API Wink

ed
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Wed Feb 01, 2006 11:05 pm    Post subject:

OPENSTEP wrote:
Granted, my knowledge is restricted to the AWT implementation of Apple VM 1.3.1, but there's no way to do a native filepicker with filter menus and custom controls from Java. All you can do is suck it up and use a real API Wink


In some ways, using the Cocoa native APIs is easier since we have to keep dispatching OOo events while the native dialog is showing. This was a real pain to implement with the Java print dialog and became, surpising, easier when I ditched the Java print dialog and implemented my own native Cocoa ones.

Patrick
Back to top
neoeddy
Blue Pill


Joined: Mar 15, 2005
Posts: 2

PostPosted: Thu Mar 09, 2006 1:32 pm    Post subject: NeoOffice Gui

It would be great to have the savings dialog "mac-like" - I know, that the missing of this dialog-window, is for many Mac-Users the only reason not to get more in contact with Neooffice! Hopefully it will be part of one of the next releases.
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Thu Mar 09, 2006 5:01 pm    Post subject:

This is on a list of things to do, but getting 2.0 working is our first priority. Any new developer looking to jump on board can take a peek at the ancient design proposal I wrote up at:

http://www.dashboardbuddha.com/OOo/specs/index.html

Note: It's been sitting there since 2003. No one, either here nor at OOo, has taken it up. Not sure if that's a sign of anything meaningful...

ed
Back to top
jakeOSX
Ninja
Ninja


Joined: Aug 12, 2003
Posts: 1373

PostPosted: Sat Mar 11, 2006 2:30 pm    Post subject:

i did look into it, first at the cocoa calls that bring up the save dialogue, and even found some java code that uses swing to display a 'save as' dialogue that looks surprisingly good on a mac.

however, it would seem that both paths are the wrong tree =\
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Sat Mar 11, 2006 2:41 pm    Post subject:

The swing problem is that you don't get the sidebar or other standard Mac controls. The Cocoa approach will probably work and is probably the recommended approach now that we're on the Cocoa-based virtual machines. I honestly haven't looked into expanding Cocoa dialogs with custom controls as of yet.

ed
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Development All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.