Re: [gtk-list] Re: Glade - UI Builder




>-) When writing the project files, you should not output directly C
>   source. You should opt for a intermediate language describing the
>   widgets. And from this, every language binding can either compile or
>   interpret it at runtime. (As far as I got it, all that is needed are
>   some ``exported'' widgets, while most widgets are only used internally
>   to build the GUI.)


Yes. I want to output a language-independant format. The current output
looks like this, but it's not complete and I'm open to suggestions:

(What did you mean by the 'exported' widgets?)


<Widget>GtkWindow
  <GtkWidget::name>window1
  <GtkWidget::x>-1
  <GtkWidget::y>-1
  <GtkWidget::width>-1
  <GtkWidget::height>-1
  <GtkWindow::title>window1
  <GtkWindow::position>None
  <GtkWindow::shrink>False
  <GtkWindow::grow>True
  <GtkWindow::auto_shrink>False
  <Widget>GtkTable
    <GtkWidget::name>table1
    <GtkWidget::width>180
    <GtkWidget::height>180
    <GtkTable::homogeneous>False
    <GtkTable::row_spacing>0
    <GtkTable::col_spacing>0
    <Widget>GtkButton
      <GtkWidget::name>button1
      <GtkWidget::width>47
      <GtkWidget::height>22
      <GtkWidget::can_focus>True
      <GtkButton::label>button1</GtkButton::label>
      <Widget>GtkLabel
        <GtkLabel::label>button1</GtkLabel::label>
        <GtkLabel::justify>Center
        <GtkLabel::xalign>0.500000
        <GtkLabel::yalign>0.500000
        <GtkLabel::xpad>0
        <GtkLabel::ypad>0
      </Widget>
    </Widget>
    <Widget>GtkEntry
      <GtkWidget::name>entry1
      <GtkWidget::width>158
      <GtkWidget::height>22
      <GtkWidget::can_focus>True
      <GtkEntry::editable>True
      <GtkEntry::visible>True
      <GtkEntry::max_length>0
    </Widget>
    <Widget>GtkLabel
      <GtkWidget::name>label1
      <GtkWidget::width>34
      <GtkWidget::height>16
      <GtkLabel::label>label1</GtkLabel::label>
      <GtkLabel::justify>Center
      <GtkLabel::xalign>0.500000
      <GtkLabel::yalign>0.500000
      <GtkLabel::xpad>0
      <GtkLabel::ypad>0
    </Widget>
  </Widget>
</Widget>


>Some questions:
>-) How does one add slots to a VBox?


This will be possible with the context-sensitive popup menus. It's in the
TODO
list, along with many other bits still to add.

>-) I presume the SigSegv is not intended when I try to open a colorsel in
>   properties window. (RH5.0, GTK 1.0.0, 24bit XF86, S3Virge 4MB)


That's odd. It doesn't happen to me (Debian 1.3, GTK 1.0.0, 16-bit XF86)
If someone can figure out where this is happening I'd appreciate it.


Damon






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]