Defines the base for line layout manager.
More...
#include <LineLayoutManagerBase.hpp>
|
enum | Orientation { VERTICAL,
HORIZONTAL
} |
| Defines all possible orientation for a LineLayout.
|
|
typedef std::string | RegistryKeyType |
|
typedef ::fwRuntime::ConfigurationElement::sptr | ConfigurationType |
|
typedef ::fwGui::factory::Key | Key |
|
|
virtual bool | isA (const std::string &type) const override |
|
FWGUI_API | LineLayoutManagerBase () |
| Constructor. Do nothing.
|
|
virtual FWGUI_API | ~LineLayoutManagerBase () |
| Destructor. Do nothing.
|
|
virtual FWGUI_API void | initialize (ConfigurationType configuration) override |
| Initialize Line layout manager before the creation of layout. More...
|
|
Orientation | getOrientation () |
|
FWGUI_API | IViewLayoutManager () |
| Constructor. Do nothing.
|
|
virtual FWGUI_API | ~IViewLayoutManager () |
| Destructor. Do nothing.
|
|
virtual FWGUI_API void | createLayout (::fwGui::container::fwContainer::sptr parent)=0 |
| Instantiate layout with parent container. More...
|
|
virtual FWGUI_API void | destroyLayout ()=0 |
| Destroy local layout with sub containers. More...
|
|
virtual FWGUI_API std::vector< ::fwGui::container::fwContainer::sptr > | getSubViews () |
| Returns all sub containers managed by this layout.
|
|
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 & | 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
|
|
|
static FWGUI_API const RegistryKeyType | REGISTRY_KEY = "::fwGui::LineLayoutManager" |
|
|
std::list< ViewInfo > | getViewsInfo () |
|
virtual FWGUI_API void | destroySubViews () |
| Helper to destroy local sub views.
|
|
| GuiBaseObject () |
|
virtual | ~GuiBaseObject () |
|
|
std::vector< ::fwGui::container::fwContainer::sptr > | m_subViews |
| All sub containers managed by this layout.
|
|
Defines the base for line layout manager.
Definition at line 24 of file LineLayoutManagerBase.hpp.
void fwGui::layoutManager::LineLayoutManagerBase::initialize |
( |
ConfigurationType |
configuration | ) |
|
|
overridevirtual |
Initialize Line layout manager before the creation of layout.
Example of configuration with cardinal layout.
1 <
service uid=
"subView2" type=
"::gui::view::SDefaultView" autoConnect=
"no" >
3 <
layout type=
"::fwGui::LineLayoutManager" >
4 <
orientation value=
"horizontal" />
5 <
view proportion=
"0" minWidth=
"30" />
6 <
view proportion=
"0" minWidth=
"50" />
10 <
view sid=
"view1" start=
"yes" />
11 <
view sid=
"view2" start=
"yes" />
- <layout type="::fwGui::LineLayoutManager" > : define a line layout.
- <view proportion="0" minWidth="30" /> : define a new view which can have the following attributes
- orientation {horizontal | vertical} : define if the layout is vertical or horizontal.
- proportion : define if the space allocate in proportion of the proportion factor (bigger it is, more space are used).
- border : define the size of the border in the layout
- caption : define the title to display.
- minWidth : minimal width of the view.
- minHeight : minimal height of the view.
- visible {true | yes | false | no} : define if the view is visible or not.
Implements fwGui::layoutManager::IViewLayoutManager.
Definition at line 42 of file LineLayoutManagerBase.cpp.
References OSLM_ASSERT, SLM_ASSERT, and SLM_FATAL_IF.
The documentation for this class was generated from the following files: