It might have a much flexibile compare to hard coding ui in C++, with xml,
the menus and toobars can be defined in extra xml file (we don't currently
split xml content from .cpp files).

And there is an other benefit from my point of view, each synfig studio
panel has a toolbar by default, which are using xml to define toolitems,
that means, if we use same for canvas window, the code can share a lot
between panels.

One important point regarding adopting Inkscape ege-adjustment widget.
Synfig Studio's multiple document interface is so powerful right now, when
user handles two canvases side by side, there is not enough horizontal
space to show all tools, specially for onion skin or display quality like
widgets, with ege-ajustment, all these can be well handled. You can play
with Inkscape in a small window size and see how well it is.

Any way, I will try myself to implement a prototype to demo this advantage.

~ yu


2014-06-25 17:46 GMT+08:00 Konstantin Dmitriev <ksee.zelga...@gmail.com>:

> 2014-06-25 16:25 GMT+07:00 Yu Chen <jco...@gmail.com>:
> >
> > 2014-06-11 1:00 GMT+08:00 Konstantin Dmitriev <ksee.zelga...@gmail.com>:
> >
> >> AFAIK, gtk 2 (and 3) have a special widget to pack the toolbar buttons
> >> - https://developer.gnome.org/gtkmm/stable/classGtk_1_1Toolbar.html
> >> So it should be used instead of regular HBox widget.
> >
> >
> > Maybe I was wrong. The toolitems for toolbar can not adopt xml to
> structure
> > UI layout(tool buttons layout), hence we can not apply actions to canvas
> > window toolbar as other panels do (toolbar of layer panel for example).
> If
> > we implement the canvas window toolbar by using C++ code instead of gtk
> > actions(xml), It will lose flexibility and consistence.
> >
> >
> > http://fossies.org/dox/inkscape-0.48.5/ege-adjustment-action_8h.html
> >
> >
> > just my thoughts
>
> Sorry, I have a lack of knowledge here. What is a real advantage of using
> XML?
>
> K.
>
>
> ------------------------------------------------------------------------------
> Open source business process management suite built on Java and Eclipse
> Turn processes into business applications with Bonita BPM Community Edition
> Quickly connect people, data, and systems into organized workflows
> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> http://p.sf.net/sfu/Bonitasoft
> _______________________________________________
> Synfig-devl mailing list
> Synfig-devl@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/synfig-devl
>
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to