Skip to main content



      Home
Home » Eclipse Projects » GEF » GUI Builder - best approach
GUI Builder - best approach [message #11358] Fri, 28 June 2002 08:16 Go to next message
Eclipse UserFriend
Originally posted by: nospam.cops.org

Hello !

We began the development of a GUI Builder for SWT/JFace. The problem we are
facing now is how to represent the components (the Button for example) on
the surface of the builder? It can't be the actual components because of the
events. We thought about subclassing the components, but some are not
allowed to be subclassed and other are marked as intended to be subclassed
only within the SWT implementation.

So, what is the best approach for doing something like this?

Thanks!

Stelian
Re: GUI Builder - best approach [message #11395 is a reply to message #11358] Fri, 28 June 2002 08:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nospam.cops.org

Sorry, this post was intended for the eclipse.tools group. Once again,
sorry!

"Stelian Iancu" <nospam@cops.org> wrote in message
news:afhip1$h7v$1@rogue.oti.com...
> Hello !
>
> We began the development of a GUI Builder for SWT/JFace. The problem we
are
> facing now is how to represent the components (the Button for example) on
> the surface of the builder? It can't be the actual components because of
the
> events. We thought about subclassing the components, but some are not
> allowed to be subclassed and other are marked as intended to be subclassed
> only within the SWT implementation.
>
> So, what is the best approach for doing something like this?
>
> Thanks!
>
> Stelian
>
>
Re: GUI Builder - best approach [message #11505 is a reply to message #11358] Fri, 28 June 2002 21:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zacw.acaciatel.com

Use the draw2d library included in the GEF plugin. I think it's designed
for just that. Many of the standard SWT components like buttons are already
implemented in the draw2d lightweight framework and I think more are on the
way.
"Stelian Iancu" <nospam@cops.org> wrote in message
news:afhip1$h7v$1@rogue.oti.com...
> Hello !
>
> We began the development of a GUI Builder for SWT/JFace. The problem we
are
> facing now is how to represent the components (the Button for example) on
> the surface of the builder? It can't be the actual components because of
the
> events. We thought about subclassing the components, but some are not
> allowed to be subclassed and other are marked as intended to be subclassed
> only within the SWT implementation.
>
> So, what is the best approach for doing something like this?
>
> Thanks!
>
> Stelian
>
>
Re: GUI Builder - best approach [message #11578 is a reply to message #11505] Sun, 30 June 2002 17:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

"Zac Wolfe" <zacw@acaciatel.com> wrote in message
news:afivp0$7p6$1@rogue.oti.com...
> Use the draw2d library included in the GEF plugin. I think it's designed
> for just that. Many of the standard SWT components like buttons are
already
> implemented in the draw2d lightweight framework and I think more are on
the
> way.

We don't plan to reproduce the widgets that are available in the platform.
Our Button is slightly more flexble than the OS button, and was necessary
for simple things like scrolling a figure.

However, as I replied on the other forum, you could use dummy Figures simply
for the purpose of targeting, hit-testing, and the ability to paint stuff on
top of the widgets like handles the Grid from GridLayout. These figures
would paint by capturing the SWT representation, not emulating it. This is
exactly the approach taken by some Swing/AWT Gui builders.

> "Stelian Iancu" <nospam@cops.org> wrote in message
> news:afhip1$h7v$1@rogue.oti.com...
> > Hello !
> >
> > We began the development of a GUI Builder for SWT/JFace. The problem we
> are
> > facing now is how to represent the components (the Button for example)
on
> > the surface of the builder? It can't be the actual components because of
> the
> > events. We thought about subclassing the components, but some are not
> > allowed to be subclassed and other are marked as intended to be
subclassed
> > only within the SWT implementation.
> >
> > So, what is the best approach for doing something like this?
> >
> > Thanks!
> >
> > Stelian
> >
> >
>
>
Re: GUI Builder - best approach [message #11791 is a reply to message #11578] Mon, 01 July 2002 13:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zacw.acaciatel.com

Randy you said "These figures would paint by capturing the SWT
representation". How would one go about doing this? I (also) am building a
sort of GUI builder and I'm just reaching this point now.

Thanks
Zac

"Randy Hudson" <none@ibm.com> wrote in message
news:afnrcm$jh5$1@rogue.oti.com...
>
> "Zac Wolfe" <zacw@acaciatel.com> wrote in message
> news:afivp0$7p6$1@rogue.oti.com...
> > Use the draw2d library included in the GEF plugin. I think it's
designed
> > for just that. Many of the standard SWT components like buttons are
> already
> > implemented in the draw2d lightweight framework and I think more are on
> the
> > way.
>
> We don't plan to reproduce the widgets that are available in the platform.
> Our Button is slightly more flexble than the OS button, and was necessary
> for simple things like scrolling a figure.
>
> However, as I replied on the other forum, you could use dummy Figures
simply
> for the purpose of targeting, hit-testing, and the ability to paint stuff
on
> top of the widgets like handles the Grid from GridLayout. These figures
> would paint by capturing the SWT representation, not emulating it. This
is
> exactly the approach taken by some Swing/AWT Gui builders.
>
> > "Stelian Iancu" <nospam@cops.org> wrote in message
> > news:afhip1$h7v$1@rogue.oti.com...
> > > Hello !
> > >
> > > We began the development of a GUI Builder for SWT/JFace. The problem
we
> > are
> > > facing now is how to represent the components (the Button for example)
> on
> > > the surface of the builder? It can't be the actual components because
of
> > the
> > > events. We thought about subclassing the components, but some are not
> > > allowed to be subclassed and other are marked as intended to be
> subclassed
> > > only within the SWT implementation.
> > >
> > > So, what is the best approach for doing something like this?
> > >
> > > Thanks!
> > >
> > > Stelian
> > >
> > >
> >
> >
>
>
Re: GUI Builder - best approach [message #11825 is a reply to message #11791] Mon, 01 July 2002 13:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

See the SWT FAQ. Or, look at what you can do with control.getGC().

"Zac Wolfe" <zacw@acaciatel.com> wrote in message
news:afq1vi$lk5$1@rogue.oti.com...
> Randy you said "These figures would paint by capturing the SWT
> representation". How would one go about doing this? I (also) am building
a
> sort of GUI builder and I'm just reaching this point now.
>
> Thanks
> Zac
Re: GUI Builder - best approach [message #11891 is a reply to message #11825] Mon, 01 July 2002 13:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zacw.acaciatel.com

Perfect thanks.
"Randy Hudson" <none@ibm.com> wrote in message
news:afq2a3$lqp$1@rogue.oti.com...
> See the SWT FAQ. Or, look at what you can do with control.getGC().
>
> "Zac Wolfe" <zacw@acaciatel.com> wrote in message
> news:afq1vi$lk5$1@rogue.oti.com...
> > Randy you said "These figures would paint by capturing the SWT
> > representation". How would one go about doing this? I (also) am
building
> a
> > sort of GUI builder and I'm just reaching this point now.
> >
> > Thanks
> > Zac
>
>
>
Re: GUI Builder - best approach [message #12188 is a reply to message #11825] Tue, 02 July 2002 02:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.objfac.com

The FAQ I see. control.getGC()?

Bob

"Randy Hudson" <none@ibm.com> wrote in message
news:afq2a3$lqp$1@rogue.oti.com...
> See the SWT FAQ. Or, look at what you can do with control.getGC().
>
> "Zac Wolfe" <zacw@acaciatel.com> wrote in message
> news:afq1vi$lk5$1@rogue.oti.com...
> > Randy you said "These figures would paint by capturing the SWT
> > representation". How would one go about doing this? I (also) am
building
> a
> > sort of GUI builder and I'm just reaching this point now.
> >
> > Thanks
> > Zac
>
>
>
Re: GUI Builder - best approach [message #12217 is a reply to message #12188] Wed, 03 July 2002 10:53 Go to previous message
Eclipse UserFriend
Originally posted by: nospam.cops.org

yeah, i also couldn't find it ...
maybe it's hidden somewhere :)

"Bob Foster" <bob@objfac.com> wrote in message
news:afrfkb$8q0$1@rogue.oti.com...
> The FAQ I see. control.getGC()?
>
> Bob
>
> "Randy Hudson" <none@ibm.com> wrote in message
> news:afq2a3$lqp$1@rogue.oti.com...
> > See the SWT FAQ. Or, look at what you can do with control.getGC().
> >
> > "Zac Wolfe" <zacw@acaciatel.com> wrote in message
> > news:afq1vi$lk5$1@rogue.oti.com...
> > > Randy you said "These figures would paint by capturing the SWT
> > > representation". How would one go about doing this? I (also) am
> building
> > a
> > > sort of GUI builder and I'm just reaching this point now.
> > >
> > > Thanks
> > > Zac
> >
> >
> >
>
>
Previous Topic:Question about EditPart.setModel() & EditPartViewer.setContents()
Next Topic:Combining View model and GEF models?
Goto Forum:
  


Current Time: Wed Apr 16 15:59:37 EDT 2025

Powered by FUDForum. Page generated in 0.04485 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top