Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: grogdunn on July 27, 2008, 07:17:16 pm

Title: GTK
Post by: grogdunn on July 27, 2008, 07:17:16 pm
i have found the embedded wxSmith gui designer but there isn't a GTK gui designer?

thx
Title: Re: GTK
Post by: frithjofh on July 27, 2008, 07:34:21 pm
hi,

there is indeed no integrated gui designer for other than wxWidgets.

i think you could help yourself using glade for gtk gui designing and exporting xrc files. code::blocks can import them i think, but i am no expert at all in xrc ... sorry

regards
Title: Re: GTK
Post by: grogdunn on July 27, 2008, 07:52:52 pm
glade make me a .glade files like this
Code
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.4.5 on Sun Jul 27 19:42:14 2008 -->
<glade-interface>
  <widget class="GtkWindow" id="prova!">
    <child>
      <widget class="GtkFixed" id="fixed1">
        <property name="visible">True</property>
        <child>
          <widget class="GtkButton" id="button1">
            <property name="width_request">100</property>
            <property name="height_request">80</property>
            <property name="visible">True</property>
            <property name="can_focus">True</property>
            <property name="receives_default">True</property>
            <property name="label" translatable="yes">OK</property>
            <property name="response_id">0</property>
          </widget>
          <packing>
            <property name="x">188</property>
            <property name="y">93</property>
          </packing>
        </child>
      </widget>
    </child>
  </widget>
</glade-interface>
and i haven't found an Export option... :( i don't know how to do :(
in worst case i use the wx... maybe in a next version are expected an gtk gui designer?
Title: Re: GTK
Post by: frithjofh on July 27, 2008, 08:00:54 pm
hi,

there is an application called wxglade wich exports xrc files
Title: Re: GTK
Post by: grogdunn on July 27, 2008, 08:11:30 pm
hi,

there is an application called wxglade wich exports xrc files

ok but this program use wxWidgets (is a wx designer but with glade2 front end)... and if i would use wx i use the built in gui designer...

i would a method to create a GTK GUI with a RAD because i'm lazy and i wouldn't write all code  :lol:
Title: Re: GTK
Post by: Jenna on July 27, 2008, 08:45:11 pm
hi,

there is an application called wxglade wich exports xrc files

ok but this program use wxWidgets (is a wx designer but with glade2 front end)... and if i would use wx i use the built in gui designer...

i would a method to create a GTK GUI with a RAD because i'm lazy and i wouldn't write all code  :lol:

Maybe it would help if you read something about glade and libglade.

And have a look at the gtk+ wizard of C::B, it does not use glade (only gtk) , but it's not so hard to find out how it works.
It took me less than 15 minutes to create a very simple program (without events) with just two buttons and an image.

And I never used glade before.