|
fw4spl
|
Defines the menu layout manager for IHM. More...
#include <IMenuLayoutManager.hpp>
Inheritance diagram for fwGui::layoutManager::IMenuLayoutManager:
Collaboration diagram for fwGui::layoutManager::IMenuLayoutManager:Classes | |
| class | ActionInfo |
Public Types | |
| enum | ActionType { DEFAULT, QUIT, ABOUT, HELP, NEW, SEPARATOR } |
| typedef ::fwRuntime::ConfigurationElement::sptr | ConfigurationType |
| typedef std::string | RegistryKeyType |
| typedef std::vector< ::fwGui::IMenuItemCallback::sptr > | CallbacksType |
Public Types inherited from fwGui::GuiBaseObject | |
| typedef ::fwGui::factory::Key | Key |
Public Member Functions | |
| virtual bool | isA (const std::string &type) const override |
| FWGUI_API | IMenuLayoutManager () |
| Constructor. Do nothing. | |
| virtual FWGUI_API | ~IMenuLayoutManager () |
| Destructor. Do nothing. | |
| virtual FWGUI_API std::vector< ::fwGui::container::fwMenuItem::sptr > | getMenuItems () |
| Returns the vector of fwMenuItem managed by this layout. | |
| virtual FWGUI_API std::vector< ::fwGui::container::fwMenu::sptr > | getMenus () |
| Returns the vector of fwMenu managed by this layout. | |
| virtual FWGUI_API void | initialize (ConfigurationType configuration) |
| Initialize layout managers. More... | |
| virtual FWGUI_API void | createLayout (::fwGui::container::fwMenu::sptr parent)=0 |
| Instantiate actions with parent menu. | |
| virtual FWGUI_API void | destroyLayout ()=0 |
| Destroy local actions. More... | |
| virtual FWGUI_API void | menuItemSetVisible (::fwGui::container::fwMenuItem::sptr, bool isVisible)=0 |
| Set the action visibility. | |
| virtual FWGUI_API void | menuItemSetEnabled (::fwGui::container::fwMenuItem::sptr, bool isEnabled)=0 |
| Set the action enable or not. | |
| virtual FWGUI_API void | menuItemSetChecked (::fwGui::container::fwMenuItem::sptr, bool isChecked)=0 |
| Set the action checked or not. | |
| virtual void | setCallbacks (CallbacksType callbacks) |
| Sets callbacks associate with menu items. | |
Public Member Functions inherited from fwGui::GuiBaseObject | |
Public Member Functions inherited from fwCore::BaseObject | |
| virtual const std::string & | getLeafClassname () const |
| return object's classname without its namespace, i.e. BaseObject | |
Static Public Member Functions | |
| static bool | isTypeOf (const std::string &type) |
Static Public Member Functions inherited from fwGui::GuiBaseObject | |
| static bool | isTypeOf (const std::string &type) |
| static const std::string & | classname () |
| return full object's classname with its namespace, i.e. fwCore::BaseObject | |
Static Public Member Functions inherited from fwCore::BaseObject | |
| static bool | isTypeOf (const std::string &type) |
| static const std::string & | leafClassname () |
| return object's classname without its namespace, i.e. BaseObject | |
| static const std::string & | classname () |
| return object's classname without its namespace, i.e. BaseObject | |
Static Public Attributes | |
| FWGUI_API static const RegistryKeyType | REGISTRY_KEY = "::fwGui::MenuLayoutManager" |
Protected Member Functions | |
| virtual FWGUI_API void | destroyActions () |
| Helper to destroy local actions. | |
Protected Member Functions inherited from fwGui::GuiBaseObject | |
| GuiBaseObject () | |
| virtual | ~GuiBaseObject () |
Protected Attributes | |
| std::vector< ::fwGui::container::fwMenuItem::sptr > | m_menuItems |
| All actions managed by this layout. | |
| std::vector< ::fwGui::container::fwMenu::sptr > | m_menus |
| All menus managed by this layout. | |
| std::vector< ActionInfo > | m_actionInfo |
| Save action informations from configuration. | |
| CallbacksType | m_callbacks |
| Callbacks associate with menu items. | |
Demangling methods | |
| virtual const std::string & | getClassname () const override |
| return full object's classname with its namespace, i.e. fwCore::BaseObject | |
| static const std::string & | classname () |
| return full object's classname with its namespace, i.e. fwCore::BaseObject | |
Defines the menu layout manager for IHM.
Definition at line 33 of file IMenuLayoutManager.hpp.
|
pure virtual |
Destroy local actions.
Implemented in fwGui::layoutManager::MenuLayoutManager.
|
virtual |
Initialize layout managers.
Example of configuration
This method analyzes the gui section of the configuration.
Definition at line 32 of file IMenuLayoutManager.cpp.
References m_actionInfo, OSLM_ASSERT, OSLM_FATAL, and SLM_ASSERT.