Defines the interface class for the toolbar builder.
More...
#include <IToolBarBuilder.hpp>
|
enum | Aligment { TOP,
BOTTOM,
RIGHT,
LEFT
} |
|
typedef std::string | RegistryKeyType |
|
typedef ::fwGui::factory::Key | Key |
|
|
virtual bool | isA (const std::string &type) const override |
|
FWGUI_API | IToolBarBuilder () |
| Constructor. Do nothing.
|
|
virtual FWGUI_API | ~IToolBarBuilder () |
| Destructor. Do nothing.
|
|
virtual FWGUI_API::fwGui::container::fwToolBar::sptr | getToolBar () |
| Returns the builded tool bar.
|
|
virtual FWGUI_API void | initialize (::fwRuntime::ConfigurationElement::sptr configuration) |
| Initialize the tool bar. More...
|
|
virtual FWGUI_API void | createToolBar (::fwGui::container::fwContainer::sptr parent)=0 |
| Instantiate layout with parent toolBar. More...
|
|
virtual FWGUI_API void | destroyToolBar ()=0 |
| Destroy local layout with sub containers. More...
|
|
virtual const std::string & | getLeafClassname () const |
| return object's classname without its namespace, i.e. BaseObject
|
|
|
static bool | isTypeOf (const std::string &type) |
|
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 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
|
|
|
FWGUI_API static const RegistryKeyType | REGISTRY_KEY = "::fwGui::ToolBarBuilder" |
|
|
::fwGui::container::fwToolBar::sptr | m_toolBar |
| ToolBar.
|
|
std::pair< int, int > | m_toolBitmapSize |
|
Aligment | m_aligment |
|
|
| GuiBaseObject () |
|
virtual | ~GuiBaseObject () |
|
Defines the interface class for the toolbar builder.
- Date
- 2009-2010.
Definition at line 30 of file IToolBarBuilder.hpp.
virtual FWGUI_API void fwGui::builder::IToolBarBuilder::createToolBar |
( |
::fwGui::container::fwContainer::sptr |
parent | ) |
|
|
pure virtual |
Instantiate layout with parent toolBar.
- Precondition
- LayoutManager must be initialized before.
-
parent toolBar must be instanced.
Implemented in fwGui::builder::ToolBarBuilder.
virtual FWGUI_API void fwGui::builder::IToolBarBuilder::destroyToolBar |
( |
| ) |
|
|
pure virtual |
Destroy local layout with sub containers.
- Precondition
- services using this sub containers must be stopped before.
Implemented in fwGui::builder::ToolBarBuilder.
void fwGui::builder::IToolBarBuilder::initialize |
( |
::fwRuntime::ConfigurationElement::sptr |
configuration | ) |
|
|
virtual |
Initialize the tool bar.
Example of configuration
2 <
toolBitmapSize height=
"50" width=
"50" />
- align : toolbar alignment (top, bottom, left, right)
- <toolBitmapSize height= "50" width="50"/> : give the size of the icon.
Definition at line 41 of file IToolBarBuilder.cpp.
References OSLM_ASSERT, and OSLM_FATAL.
The documentation for this class was generated from the following files: