#include <Iguana/Studio/interface/IgQtObjectMenuMessage.h>
Public Member Functions | |
IgQtObjectMenuMessage (IgQtObjectMenu *menu, IgRepresentable *object) | |
Construct a new message for a menu and context object. | |
IgQtObjectMenu * | menu (void) const |
Return the menu. | |
IgRepresentable * | object (void) const |
Return the context object. | |
Private Attributes | |
IgQtObjectMenu * | m_menu |
IgRepresentable * | m_object |
The message's IgRepresentable points to the object for which menu items should be provided; it will never be null. Observers should always check with the menu()'s IgQtObjectMenu::seen() whether their items are already listed in the menu, as this message can be sent with the items already added, e.g. by a browser to update a torn-off menu for a new selection focus. On the other hand, already added items might have been destroyed since the previous message.
Items on the menu should be updated to appropriate states before returning: enabled, checked and relevant. Newly added items are always relevant but should be updated for the other states. (FIXME: explain relevant vs. enabled policy.) (FIXME: multiple selection?)
Definition at line 35 of file IgQtObjectMenuMessage.h.
IgQtObjectMenuMessage::IgQtObjectMenuMessage | ( | IgQtObjectMenu * | menu, | |
IgRepresentable * | object | |||
) | [inline] |
Construct a new message for a menu and context object.
Definition at line 56 of file IgQtObjectMenuMessage.h.
IgQtObjectMenu * IgQtObjectMenuMessage::menu | ( | void | ) | const [inline] |
Return the menu.
Definition at line 64 of file IgQtObjectMenuMessage.h.
References m_menu.
Referenced by VisEventContentTwigOps::menuAction(), VisG4TwigOps::menuAction(), IgTwigOps::menuAction(), Ig3DBaseBrowser::repMenu(), IgSpareWindow::repMenu(), IgLegoWindow::repMenu(), Ig3DWindow::repMenu(), IgRPhiWindow::repMenu(), and IgRZWindow::repMenu().
00065 { return m_menu; }
IgRepresentable * IgQtObjectMenuMessage::object | ( | void | ) | const [inline] |
Return the context object.
Definition at line 69 of file IgQtObjectMenuMessage.h.
References m_object.
Referenced by VisEventContentTwigOps::menuAction(), VisG4TwigOps::menuAction(), IgTwigOps::menuAction(), Ig3DBaseBrowser::repMenu(), IgSpareWindow::repMenu(), IgLegoWindow::repMenu(), Ig3DWindow::repMenu(), IgRPhiWindow::repMenu(), and IgRZWindow::repMenu().
00070 { return m_object; }
IgQtObjectMenu* IgQtObjectMenuMessage::m_menu [private] |
IgRepresentable* IgQtObjectMenuMessage::m_object [private] |