Re: Actions and UIManager vs. signals



Rainer,

This question has come up a bit on the list.  As much as I've read,
most people seem to prefer working with the UIManager.  I've just
finally started using it myself, and already I can tell you that I
like it quite a bit better already.

On 1/25/07, Rainer Thaden <RThaden web de> wrote:
Hi all,

I am starting to dive into gtkmm and try to develop a prototype app.
I built my main window with glade and read it with libglademm.

If I do so, I can just define signals for the menu items and connect them to my handler functions.
What is the advantage of not doing so and using actions and uimanage?
That I can enable and disable them together via one switch?


This is one of the benefits. I'm sure there are more. Personally I
think it makes my code quite a bit cleaner and easier to understand.

As far as I understand it, it is not possible to design these actions with Glade, right?

I didn't find too many examples for doing menus and menubars with libglademm.
If this is the wrong list, sorry for that.

The Menus And Toolbars chapter in th gtkmm book is a good example of
the UIManager.
http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch11.html


--
Regards,

Rainer

HTH,
Paul



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]