Fox --> GTK ?

A

Alexander Kellett

QtRuby includes a tool called 'rbuic' which allows you to sketch out UI's
with Qt Designer, and then compile the .ui file produced into ruby. I
would
have thought something like Qt Designer or Glade are pretty essential for
ruby RAD, otherwise it probably won't be much quicker than a 'normal'
language.

actaully its still way faster. i hate gui tools. qt designer is just
awful and glade ain't that much better. i much prefer to just write
the code, and with ruby/qtruby the turn around time for having a
running program is *so* much lower than with c++/qt. therefore it
makes dialog design via code, more productive if anything :)

Alex
 
A

Alexander Kellett

It's kind of cheating, though. And it sounds computationally expensive.
And moving/resizing the notes would be a problem.

if the widget set has a canvas of its own like gnome-canvas
or qcanvas then the computational difficulty will disappear completely.
not that i think a canvas is a good idea mind :)

Alex
 
A

Alexander Kellett

Who has experience converting Fox to GTK and might like to
offer a little assistance?

i'm interested in doing the same but for qt or kde if ur interested

Alex
 
R

Richard Dale

Alexander said:
actaully its still way faster. i hate gui tools. qt designer is just
awful and glade ain't that much better. i much prefer to just write
the code, and with ruby/qtruby the turn around time for having a
running program is *so* much lower than with c++/qt. therefore it
makes dialog design via code, more productive if anything :)
I haven't tried RubyCocoa with InterfaceBuilder support, but that's still my
favourite GUI builder after all these years. Even though I think it's been
re-written and now produces an XML format rather than binary .nib files, it
still looks much the same as 10 years ago. It is an 'instance composition
tool', in that you build a network of instances visually and then archive
them out to the .nib file. In ruby you could archive out a network of ruby
instances via yaml. Each connection is represented by an 'IBConnector'
instance in InterfaceBuilder.

I think Qt Designer is an example of why C++ isn't really suitable for
writing dynamic interface builder tools :).

But using rbuic might be a good way of learning about Qt code though. You
can generate Qt code via the tool and then maintain it manually, and ignore
the .ui file, if you want to just use the code as a starting point.

-- Richard
 
D

Detlef Reichl

I thought of something like that -- draw the little windows on a canvas,
and when you click on one to edit it, turn it into a "real" widget in
the same spot.

It's kind of cheating, though. And it sounds computationally expensive.
And moving/resizing the notes would be a problem.

Hal
something like this i made in c some time ago with subclassing gtk::
layout. i had many smal windows which could be draged around and while
gtk::layout is a subclass of gtk::conainer you could put in what you
want. if you want i can look if i have some code snipets of it.

cheers
detlef
 
L

Lothar Scholz

Hello Hal,

Monday, April 26, 2004, 7:02:41 AM, you wrote:


HF> Thanks, Laurent, that's not too bad...

HF> But: Is there a way to hide all the windows at once?

Yes if you hide the owner window all owned windows (dialogs) are hidden.

HF> Is there a way
HF> to get rid of the +[]x buttons on the upper right of each window?

Use the transient overwrite feature. But this removes all borders so
you have to draw the frame yourself. On windows it is possible to
disable the [x] button , but you need some sophisticated c code.

HF> Is there a way to "contain" these inside a larger window with a
HF> neutral background?

If you are reponsible for moving around the windows, then it is of
course possible. But with this i think that learning FOX more
intensive or using WxRuby might be better.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,371
Latest member
Brkaa

Latest Threads

Top