Bo Peng wrote:
My approach would be to simply erase all session stuff related to
toolbar appearance and positioning and just Qt integrated support.
What I am not quite sure is about the interaction between backend and
frontend. You see, addToolbar etc is done in the backend and display
is done from the frontend. What if, just suppose, that you save layout
information for three toolbars, the backend somehow adds two or have
different number of icons (preference change, whatever), and the
frontend want to restore layout for three toolbars?
You see, the thorough solution is to do toolbars *all* in qt. :-)
Exactly!
The toolback backend should only be for reading ui files and checking
status. Everything related to appearance, including toolbar
showing.hiding, should be frontend specific. This has really nothing to
do in the backend. The backend shouldn't even know about it.
If you want an analogy, take the BufferView as it now in 1.5: The
frontend (WorkArea) is the one who set the size of the BufferView for
example. In this case the frontend is _using_ the backend and not
vice-versa like in the toolbar stuff.
Abdel.