![](https://secure.gravatar.com/avatar/944a45c9d880b2ee8a888b15d01477ed.jpg?s=120&d=mm&r=g)
Since I uploaded that previous screenshot for all to see the current state of the Gtkmm work, I thought send up a screenshot showing off the toolbars.
In this screenshot, the Tools and the Tool Controls bars are detached.
The Tools bar is changed from a vertical orientation to horizontal.
The Tool Controls bar is "minimized" into an arrow menu thingy.
And the Commands bar (still attached) overflows beyond the size of the window, so you get a convenient arrow menu to access the those icons.
As time goes on, we ought to be able to extend this Toolbox widget to include functionality people have requested in various mock-ups posted to this list.
![](https://secure.gravatar.com/avatar/cb05f8930948859ba6f5eafcdc14e722.jpg?s=120&d=mm&r=g)
I read my mail in mutt under screen, through SSH, so I didn't see that last attached image, but now with *2* I haven't seen, I went looking for an online archive. Turns out we've been picked up by gmane! Wheee
http://article.gmane.org/gmane.comp.graphics.inkscape.devel/7059
![](https://secure.gravatar.com/avatar/bb65b6b3a109d97cf9f8d6c014ede042.jpg?s=120&d=mm&r=g)
On Tue, 04 Jan 2005 17:25:27 -0600, Derek P. Moore <derekm@...606...> wrote:
In this screenshot, the Tools and the Tool Controls bars are detached.
This is cool, but they are in fact detachable even now, so the main question is: Do they stay on top? Without that, their detachability is more of an annoyance (for me at least) because when they sink below the window it's a chore to try to dig them up.
![](https://secure.gravatar.com/avatar/944a45c9d880b2ee8a888b15d01477ed.jpg?s=120&d=mm&r=g)
On Tue, 2005-01-04 at 21:10 -0400, bulia byak wrote:
This is cool, but they are in fact detachable even now, so the main question is: Do they stay on top? Without that, their detachability is more of an annoyance (for me at least) because when they sink below the window it's a chore to try to dig them up.
Yup... Detached toolbars always stay on top of the main window. Dialogs and other windows can cover the toolbars, but that's pretty normal behavior.
![](https://secure.gravatar.com/avatar/bb65b6b3a109d97cf9f8d6c014ede042.jpg?s=120&d=mm&r=g)
On Tue, 04 Jan 2005 20:43:28 -0600, Derek P. Moore <derekm@...606...> wrote:
On Tue, 2005-01-04 at 21:10 -0400, bulia byak wrote:
This is cool, but they are in fact detachable even now, so the main question is: Do they stay on top? Without that, their detachability is more of an annoyance (for me at least) because when they sink below the window it's a chore to try to dig them up.
Yup... Detached toolbars always stay on top of the main window. Dialogs and other windows can cover the toolbars, but that's pretty normal behavior.
Excellent. Which window manager is this? Does it also work in other WMs?
![](https://secure.gravatar.com/avatar/944a45c9d880b2ee8a888b15d01477ed.jpg?s=120&d=mm&r=g)
On Tue, 2005-01-04 at 23:27 -0400, bulia byak wrote:
Excellent. Which window manager is this? Does it also work in other WMs?
I use Metacity, but I imagine it works with all window managers.
As a matter of fact, all the hard work is done by GTK+'s HandleBox widget, which is inherited by our Toolbox compound widget. So if it doesn't function properly, there's an issue with GTK+.
You can see the code for the widget here: http://cvs.sourceforge.net/viewcvs.py/inkscape/experimental/bryce/inkscape_g...
All the logic in that file really only implements the functionality for the Toolbox's popup context menu (orientation change, style changes, show arrow, etc.). Everything else is handled by HandleBox.
And Toolboxes are used as simply as:
Toolbox *bar = new Toolbox(static_castGtk::Toolbar*(_ui_mgr-
get_widget("/CommandsBar")));
some_box.pack_start(*Gtk::manage(bar));
Where the contents of "CommandsBar" is defined by the following XML description: http://cvs.sourceforge.net/viewcvs.py/inkscape/experimental/bryce/inkscape_g...
And the actions for the embedded toolbar are defined in the ApplicationImpl object (see application.cpp).
![](https://secure.gravatar.com/avatar/944a45c9d880b2ee8a888b15d01477ed.jpg?s=120&d=mm&r=g)
On Tue, 2005-01-04 at 23:20 -0600, Derek P. Moore wrote:
All the logic in that file really only implements the functionality for the Toolbox's popup context menu (orientation change, style changes, show arrow, etc.). Everything else is handled by HandleBox.
I forgot to mention: The popup menu on right-clicking the toolbar is defined by the following XML description: http://cvs.sourceforge.net/viewcvs.py/inkscape/experimental/bryce/inkscape_g...
And it's actions are defined and implemented in toolbox.cpp, of course.
participants (3)
-
bulia byak
-
Derek P. Moore
-
Kees Cook