Author Topic: GTK  (Read 7509 times)

Offline grogdunn

  • Single posting newcomer
  • *
  • Posts: 5
GTK
« 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
hihi sorry for bad english but at school I have bad marks in Eng :cry:

Offline frithjofh

  • Regular
  • ***
  • Posts: 376
Re: GTK
« Reply #1 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
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

Offline grogdunn

  • Single posting newcomer
  • *
  • Posts: 5
Re: GTK
« Reply #2 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?
hihi sorry for bad english but at school I have bad marks in Eng :cry:

Offline frithjofh

  • Regular
  • ***
  • Posts: 376
Re: GTK
« Reply #3 on: July 27, 2008, 08:00:54 pm »
hi,

there is an application called wxglade wich exports xrc files
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

Offline grogdunn

  • Single posting newcomer
  • *
  • Posts: 5
Re: GTK
« Reply #4 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:
hihi sorry for bad english but at school I have bad marks in Eng :cry:

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: GTK
« Reply #5 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.