Re: GUI quickly?

2009-02-15 Thread Michael Torrie
Juhana Sadeharju wrote:
 This is related to open source free project, please help.
 
 I have described variables this way:
 NPC / Weight, float
 NPC / AI Data / Mood, list of choices here
 
 What are possibilities for creating GUI with minimal work?
 I may group variables to groups, one per window.
 I may group variables to subgroups, one per tab.
 I may add widget type IDs if that is not clear.
 But, using Glade to built the windows is too time-consuming.
 
 Of course, when a value has been edited in GUI, I should
 receive message: NPC / Weight changed to 3.14, etc.

Sometimes for simple things that drive command-line utilities, a program
called zenity is useful.  For example, if you had ashell script and
you just wanted a bit of GUI interaction.  Probably not quite what you
are looking for, but who knows.

There is really no way to do GUI programming without taking a bit of
time and effort.  However it is not that hard to use Glade, so you may
just want to roll up your sleeves and give it a shot.  Of course your
program probably is procedural.  You'll have to rework it under any GUI
system to be event-driven.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


GUI quickly?

2009-02-10 Thread Juhana Sadeharju

This is related to open source free project, please help.

I have described variables this way:
NPC / Weight, float
NPC / AI Data / Mood, list of choices here

What are possibilities for creating GUI with minimal work?
I may group variables to groups, one per window.
I may group variables to subgroups, one per tab.
I may add widget type IDs if that is not clear.
But, using Glade to built the windows is too time-consuming.

Of course, when a value has been edited in GUI, I should
receive message: NPC / Weight changed to 3.14, etc.

Juhana
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GUI quickly?

2009-02-10 Thread Dov Grobgeld
Here are a couple of options:

   - Parse your variable list through regular expressions and dynamically
   build your interface.
   - Offline generate a glade (or GtkBuilder file) based on the same
   parsing. The syntax of glade and GtkBuilder is very straight forward.

Regarding the callback, the question is if you really want to get a callback
for each of the four characters 3,.,1 and 4. After all you are not
likely to use them until you press some [Go] button, or at least leave the
widget. In any case it will help you in this case to use the
g_object_set_data() function to attach the name of the data to the entry or
ComboBox widgets.

If you instead use the [Go] button approach, then you can save all your
widgets in a list and in the [Go] clicked signal handle, query them all for
their current values. This latter approach is how I do it now, after having
used the callback on each keypress in the beginning of my Gtk days. (Which
is closer to how Perl/Tk works).

Regards,
Dov

2009/2/10 Juhana Sadeharju kou...@nic.funet.fi


 This is related to open source free project, please help.

 I have described variables this way:
 NPC / Weight, float
 NPC / AI Data / Mood, list of choices here

 What are possibilities for creating GUI with minimal work?
 I may group variables to groups, one per window.
 I may group variables to subgroups, one per tab.
 I may add widget type IDs if that is not clear.
 But, using Glade to built the windows is too time-consuming.

 Of course, when a value has been edited in GUI, I should
 receive message: NPC / Weight changed to 3.14, etc.

 Juhana
 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GUI quickly?

2009-02-10 Thread Guy Rouillier

Juhana Sadeharju wrote:

This is related to open source free project, please help.

I have described variables this way:
NPC / Weight, float
NPC / AI Data / Mood, list of choices here

What are possibilities for creating GUI with minimal work?
I may group variables to groups, one per window.
I may group variables to subgroups, one per tab.
I may add widget type IDs if that is not clear.
But, using Glade to built the windows is too time-consuming.

Of course, when a value has been edited in GUI, I should
receive message: NPC / Weight changed to 3.14, etc.


I don't really understand your app, but that isn't necessary.  A quick 
Google search of linux visual builder produces many options: Gambas, 
Mono, WxHatch, Ultimate++, Glade.  Depends on what your target platform 
is and what your language preferences are.  Since you mention quickly 
in the subject, you might want to give Gambas a try.


--
Guy Rouillier
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list