Re: [Synfig-devl] widgets on toolbars (actions)

2014-07-02 Thread Yu Chen
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


Re: [Synfig-devl] widgets on toolbars (actions)

2014-06-25 Thread Yu Chen
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

~ yu
--
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


Re: [Synfig-devl] widgets on toolbars (actions)

2014-06-25 Thread Konstantin Dmitriev
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


Re: [Synfig-devl] widgets on toolbars (actions)

2014-06-10 Thread Konstantin Dmitriev
Hello, Yu!

Apologies for the late reply.

2014-06-03 21:52 GMT+07:00 Yu Chen jco...@gmail.com:
 Hello,

 Configurations for a new month fulltime development :)

 According to Konstantin 's announcement, it will focus on UI improvement. We
 are using gtk action system for menu items and toolbar items on most of
 menus and toolbars, except canvas window toolbar. The toolbar of canvas
 window is not using actions due to gtk only provides two kinds of actions:
 buttons and toggle buttons. The current implementation of canvas window
 toolbar is not flexible enough when the canvas window has a smaller size in
 width, in other words, the toolbar can't be cropped.

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.

K.

--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl