Re: [Flightgear-devel] Java client library

2002-06-10 Thread Dave Tessman

> I'm currently working on a gui to help users to start fgfs
> with their own options (it parses prefernces.xml and show the
> user the different options available). I started writing it
> in Python with wxPython gui library (works on Linux-gtk,
> Windows, MacOSX, and every motif-Unices). If find python +
> wxPython much greater than java + swing (to use and to program)

This may sound kinda wierd, but I have had some success using Macromedia's
Flash MX for this type of stuff.
No Linux support, but it is rather ubiquitous on Windows and Mac.  It runs
within a familar environment for the user (Browser), run-time is free, has a
built in XML parser/generator, Can read and write to the file system
directly, Can start other applications, and it is easy to make the results
look very cool.

One could just bring up a local instance of TomCat and use standard web
forms as well . :-)



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



RE: [Flightgear-devel] Java client library

2002-06-09 Thread Jim Wilson

Norman Vine <[EMAIL PROTECTED]> said:

> My point was that the beauty of having a 'scriptable' GUI was that a
> user,  not a developer / programmer,  should be able to personalize 
> their GUI easily,  not so sure this would be possible with a C++ GUI.
> 

Well one time I was asked to write an xml configurable gui based on pui,
but I suppose that would create an undesireable requirement for opengl on 
the clients.   Seems as though it could be possible design an xml based
"script" that could be backended with just about anything though.

As far as java is concerned, my feelings are mixed.  Java is a very
interesting and fun language, but for the most part anything of consequence
running in jvm seems to be a little pigish and fails to take full advantage of
much of what gui style interface is best for.  With it's proprietary licensing
it'd be a shame if it turned into the favored platform for Flight Gear gui
clients, imho.

Best,

Jim

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



RE: [Flightgear-devel] Java client library

2002-06-09 Thread David Megginson

Norman Vine writes:

 > but this was in reference to 'ease of use' for 'users' not 'developers'
 > 
 > hmmm 
 >  maybe FlightGear 'users' all know how to run compilers  :-))

No, but any ones who can write Python or Java code certainly can.  A
user-friendly, extensible GUI would probably have a GUI interface for
adding new forms and fields and would save the new configuration in a
format that the user never sees.

The Java GUI could allow runtime Python scripting through JPython, but
it would probably make more sense to use ECMAScript since it's better
known.


All the best,


David

-- 
David Megginson, [EMAIL PROTECTED], http://www.megginson.com/

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



RE: [Flightgear-devel] Java client library

2002-06-09 Thread David Megginson

Norman Vine writes:

 > FWIW -  What I think would likely be the 'pentultimate' system is a Tool 
 > that read the existing XML configuration files and automagically created 
 > a GUI from what it found.  This is sort of what the HTML interface to the
 > properties does now

If the GUI is able to run on a different box than the program, it will
have to be able to get all of the information it needs over the
network connection without touching any config files.  The current
telnet interface is usable for now, but we might want to be able to
pass extra information in the future.


All the best,


David

-- 
David Megginson, [EMAIL PROTECTED], http://www.megginson.com/

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



RE: [Flightgear-devel] Java client library

2002-06-08 Thread Norman Vine

Tony Peden writes:
>
>>>
>
>Scripting languages are good stuff ... but they are still languages.

Agreed :-)

but this was in reference to 'ease of use' for 'users' not 'developers'

hmmm 
 maybe FlightGear 'users' all know how to run compilers  :-))

Cheers

Norman

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] Java client library

2002-06-08 Thread Tony Peden

Norman Vine wrote:

> Tony Peden writes:
> 
>>Norman Vine wrote:
>>
>>
>>>David Megginson writes:
>>>
>>>
Olivier Grisel writes:



>So if we develop such user friendly tools, it might be a
>good idea to choose only one gui style so as they get all
>the same style.
>
>
You work sounds great.  I see no harm in having both Java and Python
GUIs -- I'm no Python fan myself (though there are other fgfs
developers who are), and Java will make life a lot easier for Mac and
Windows users who probably already have Java on their systems but
would run away screaming if we asked them to install Python or Perl.


>>>Well perhaps but ...  those that did the 'One Click' installation 
>>>would have a GUI they could probably 'customize' for themselves :-).
>>>
>>>FWIW - IMHO writing the External GUI in JAVA is tantamount to 
>>>writting it in C++
>>>
>>
>>Like there would be something wrong with writing in C++ ?
>>
> 
> No  -  I agree with David that the more external GUI's the better
> This flexibility was in fact one of our prime reasons for implementing
> the network interface.
> 
> My point was that the beauty of having a 'scriptable' GUI was that a
> user,  not a developer / programmer,  should be able to personalize 
> their GUI easily,  not so sure this would be possible with a C++ GUI.
> 
> FWIW -  What I think would likely be the 'pentultimate' system is a Tool 
> that read the existing XML configuration files and automagically created 
> a GUI from what it found.  This is sort of what the HTML interface to the
> properties does now



Scripting languages are good stuff ... but they are still languages.


> 
> Cheers
> 
> Norman
> 
> 
> ___
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> 
> 



-- 
--
Tony Peden
[EMAIL PROTECTED]
We all know Linux is great ... it does infinite loops in 5 seconds.
-- attributed to Linus Torvalds




___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



RE: [Flightgear-devel] Java client library

2002-06-08 Thread Norman Vine

Tony Peden writes:
>
>Norman Vine wrote:
>
>> David Megginson writes:
>> 
>>>Olivier Grisel writes:
>>>
>>>
So if we develop such user friendly tools, it might be a
good idea to choose only one gui style so as they get all
the same style.

>>>You work sounds great.  I see no harm in having both Java and Python
>>>GUIs -- I'm no Python fan myself (though there are other fgfs
>>>developers who are), and Java will make life a lot easier for Mac and
>>>Windows users who probably already have Java on their systems but
>>>would run away screaming if we asked them to install Python or Perl.
>>>
>> 
>> Well perhaps but ...  those that did the 'One Click' installation 
>> would have a GUI they could probably 'customize' for themselves :-).
>> 
>> FWIW - IMHO writing the External GUI in JAVA is tantamount to 
>> writting it in C++
>
>
>Like there would be something wrong with writing in C++ ?

No  -  I agree with David that the more external GUI's the better
This flexibility was in fact one of our prime reasons for implementing
the network interface.

My point was that the beauty of having a 'scriptable' GUI was that a
user,  not a developer / programmer,  should be able to personalize 
their GUI easily,  not so sure this would be possible with a C++ GUI.

FWIW -  What I think would likely be the 'pentultimate' system is a Tool 
that read the existing XML configuration files and automagically created 
a GUI from what it found.  This is sort of what the HTML interface to the
properties does now

Cheers

Norman


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] Java client library

2002-06-08 Thread Tony Peden

Norman Vine wrote:

> David Megginson writes:
> 
>>Olivier Grisel writes:
>>
>>
>>>So if we develop such user friendly tools, it might be a
>>>good idea to choose only one gui style so as they get all
>>>the same style.
>>>
>>You work sounds great.  I see no harm in having both Java and Python
>>GUIs -- I'm no Python fan myself (though there are other fgfs
>>developers who are), and Java will make life a lot easier for Mac and
>>Windows users who probably already have Java on their systems but
>>would run away screaming if we asked them to install Python or Perl.
>>
> 
> Well perhaps but ...  those that did the 'One Click' installation 
> would have a GUI they could probably 'customize' for themselves :-).
> 
> FWIW - IMHO writing the External GUI in JAVA is tantamount to 
> writting it in C++


Like there would be something wrong with writing in C++ ?


> 
> Regards
> 
> Norman
> 
> 
> 
> ___
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel
> 
> 



-- 
--
Tony Peden
[EMAIL PROTECTED]
We all know Linux is great ... it does infinite loops in 5 seconds.
-- attributed to Linus Torvalds




___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



RE: [Flightgear-devel] Java client library

2002-06-08 Thread Norman Vine

David Megginson writes:
>
>Olivier Grisel writes:
>
> > So if we develop such user friendly tools, it might be a
> > good idea to choose only one gui style so as they get all
> > the same style.
>
>You work sounds great.  I see no harm in having both Java and Python
>GUIs -- I'm no Python fan myself (though there are other fgfs
>developers who are), and Java will make life a lot easier for Mac and
>Windows users who probably already have Java on their systems but
>would run away screaming if we asked them to install Python or Perl.

Well perhaps but ...  those that did the 'One Click' installation 
would have a GUI they could probably 'customize' for themselves :-).

FWIW - IMHO writing the External GUI in JAVA is tantamount to 
writting it in C++

Regards

Norman



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] Java client library

2002-06-08 Thread Erik Hofman

Olivier Grisel wrote:
> It don't like SWING !  It don't like SWING !
> :)
> 
> For Windows users py2exe exists and transorf a wxPython
> app into a dummy-windows-user friendly .exe file.
> (but have never tested it since I don't have win)
> 
> Irix doesn't support motif or gtk ?

Actually, it supports both ...

Erik

> 
> Some (too early) screen shots
> 
> http://champi.freezope.org/FlightGear/Oz/Oz-shot-1.png
> http://champi.freezope.org/FlightGear/Oz/Oz-shot-2.png
> http://champi.freezope.org/FlightGear/Oz/Oz-shot-3.png

Hmm, not bad!

Erik



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] Java client library

2002-06-08 Thread Olivier Grisel


It don't like SWING !  It don't like SWING !
:)

For Windows users py2exe exists and transorf a wxPython
app into a dummy-windows-user friendly .exe file.
(but have never tested it since I don't have win)

Irix doesn't support motif or gtk ?

Some (too early) screen shots

http://champi.freezope.org/FlightGear/Oz/Oz-shot-1.png
http://champi.freezope.org/FlightGear/Oz/Oz-shot-2.png
http://champi.freezope.org/FlightGear/Oz/Oz-shot-3.png

and for curious people

http://champi.freezope.org/FlightGear/Oz/Oz.tar.bz2


-- 
Champi (03)  Olivier Grisel
***   Paix, Amour, Liberté et Fleurs.   ***


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] Java client library

2002-06-08 Thread Erik Hofman

David Megginson wrote:
> Olivier Grisel writes:
> 
>  > So if we develop such user friendly tools, it might be a
>  > good idea to choose only one gui style so as they get all
>  > the same style.
> 
> You work sounds great.  I see no harm in having both Java and Python
> GUIs -- I'm no Python fan myself (though there are other fgfs
> developers who are), and Java will make life a lot easier for Mac and

Irix and

> Windows users who probably already have Java on their systems but
> would run away screaming if we asked them to install Python or Perl.

Erik



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] Java client library

2002-06-08 Thread David Megginson

Olivier Grisel writes:

 > So if we develop such user friendly tools, it might be a
 > good idea to choose only one gui style so as they get all
 > the same style.

You work sounds great.  I see no harm in having both Java and Python
GUIs -- I'm no Python fan myself (though there are other fgfs
developers who are), and Java will make life a lot easier for Mac and
Windows users who probably already have Java on their systems but
would run away screaming if we asked them to install Python or Perl.


All the best,


David

-- 
David Megginson, [EMAIL PROTECTED], http://www.megginson.com/

___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] Java client library

2002-06-08 Thread Olivier Grisel


> I might develop this into a remote instructor's panel, a full
> configuration GUI, a remote-control module for weather and other
> environment parameters, or any combination of these.  Contributions
> are welcome, of course.

I'm currently working on a gui to help users to start fgfs
with their own options (it parses prefernces.xml and show the
user the different options available). I started writing it
in Python with wxPython gui library (works on Linux-gtk,
Windows, MacOSX, and every motif-Unices). If find python +
wxPython much greater than java + swing (to use and to program)

I think I would be able to submit you my first release in
 two or three days.

I'd also have the idea of instructor gui, and I started
some scipts to test the idea (currently it can just
connect/disconnect to fgfs telnet port).

With my script your example becomes :
cnx = fgCnx('localhost', 9000)
altitude = cnx.get("/position/altitude-ft")
cnx.set("/position/altitude-ft", altitude + 1000)
cnx.close()

So I'm able to realtime plot every  props with
a gnuplot python wrap, ...

I can send you a copy of my scripts by mail if you want.

So if we develop such user friendly tools, it might be a
good idea to choose only one gui style so as they get all
the same style.

I'm looking forward to hearing from you :)

bye
-- 
Champi (03)  Olivier Grisel
***   Paix, Amour, Liberté et Fleurs.   ***


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel