|
Nemiver
0.3
|
The base class for Layouts. More...
#include <nmv-layout.h>
Public Member Functions | |
| virtual void | do_lay_out (IPerspective &a_perspective)=0 |
| initialize the layout More... | |
| virtual void | do_cleanup_layout ()=0 |
| clean-up the layout More... | |
| virtual const UString & | identifier () const =0 |
| gets the layout unique identifier More... | |
| virtual const UString & | name () const =0 |
| gets the layout name More... | |
| virtual const UString & | description () const =0 |
| gets the layout description More... | |
| virtual Gtk::Widget * | widget () const =0 |
| gets the layout container widget More... | |
| virtual void | do_init ()=0 |
| Initialize the layout. More... | |
| virtual void | save_configuration ()=0 |
| save the configuration of the layout More... | |
| virtual void | activate_view (int a_view_identifier)=0 |
| activate a view More... | |
| virtual void | append_view (Gtk::Widget &a_widget, const UString &a_title, int a_index)=0 |
| appends a view to the layout More... | |
| virtual void | remove_view (int a_index)=0 |
| remove a view from the layout More... | |
| virtual | ~Layout () |
Public Member Functions inherited from nemiver::common::Object | |
| Object () | |
| Object (Object const &) | |
| Object & | operator= (Object const &) |
| virtual | ~Object () |
| void | ref () |
| void | unref () |
| void | enable_refcount (bool a_enabled=true) |
| bool | is_refcount_enabled () const |
| long | get_refcount () const |
| void | attach_object (const UString &a_key, const Object *a_object) |
| bool | get_attached_object (const UString &a_key, const Object *&a_object) |
Protected Member Functions | |
| Layout () | |
Additional Inherited Members | |
Protected Attributes inherited from nemiver::common::Object | |
| SafePtr< ObjectPriv > | m_priv |
The base class for Layouts.
Perspectives can use the LayoutManager to manage different Layouts. The LayoutManager handle object that inherit from the class Layout.
|
inlineprotected |
|
inlinevirtual |
|
pure virtual |
activate a view
| a_view_identifier | The view to activate |
Implemented in nemiver::DBGPerspectiveDefaultLayout, nemiver::DBGPerspectiveDynamicLayout, nemiver::DBGPerspectiveTwoPaneLayout, and nemiver::DBGPerspectiveWideLayout.
|
pure virtual |
appends a view to the layout
The view is added to the end of the existing list of views contained in the layout.
| a_widget | Widget of the view to add to the layout |
| a_title | Title of the view (will appears in notebook label, ...) |
| a_index | Unique identifier of the view to add to the layout |
Implemented in nemiver::DBGPerspectiveDefaultLayout, nemiver::DBGPerspectiveDynamicLayout, nemiver::DBGPerspectiveTwoPaneLayout, and nemiver::DBGPerspectiveWideLayout.
|
pure virtual |
gets the layout description
Implemented in nemiver::DBGPerspectiveDefaultLayout, nemiver::DBGPerspectiveDynamicLayout, nemiver::DBGPerspectiveTwoPaneLayout, and nemiver::DBGPerspectiveWideLayout.
|
pure virtual |
clean-up the layout
Must be called before initializing a new layout for a perspective.
Implemented in nemiver::DBGPerspectiveDefaultLayout, nemiver::DBGPerspectiveDynamicLayout, nemiver::DBGPerspectiveTwoPaneLayout, and nemiver::DBGPerspectiveWideLayout.
|
pure virtual |
Initialize the layout.
Implemented in nemiver::DBGPerspectiveDynamicLayout, nemiver::DBGPerspectiveTwoPaneLayout, nemiver::DBGPerspectiveWideLayout, and nemiver::DBGPerspectiveDefaultLayout.
|
pure virtual |
initialize the layout
| a_perspective | The associated perspective. |
Implemented in nemiver::DBGPerspectiveDefaultLayout, nemiver::DBGPerspectiveDynamicLayout, nemiver::DBGPerspectiveTwoPaneLayout, and nemiver::DBGPerspectiveWideLayout.
|
pure virtual |
gets the layout unique identifier
Implemented in nemiver::DBGPerspectiveDefaultLayout, nemiver::DBGPerspectiveDynamicLayout, nemiver::DBGPerspectiveTwoPaneLayout, and nemiver::DBGPerspectiveWideLayout.
|
pure virtual |
gets the layout name
Implemented in nemiver::DBGPerspectiveDefaultLayout, nemiver::DBGPerspectiveDynamicLayout, nemiver::DBGPerspectiveTwoPaneLayout, and nemiver::DBGPerspectiveWideLayout.
|
pure virtual |
remove a view from the layout
| a_index | Unique identifier of the view to remove from the layout |
Implemented in nemiver::DBGPerspectiveDefaultLayout, nemiver::DBGPerspectiveDynamicLayout, nemiver::DBGPerspectiveTwoPaneLayout, and nemiver::DBGPerspectiveWideLayout.
|
pure virtual |
save the configuration of the layout
Implemented in nemiver::DBGPerspectiveDefaultLayout, nemiver::DBGPerspectiveDynamicLayout, nemiver::DBGPerspectiveTwoPaneLayout, and nemiver::DBGPerspectiveWideLayout.
|
pure virtual |
gets the layout container widget
Implemented in nemiver::DBGPerspectiveDefaultLayout, nemiver::DBGPerspectiveDynamicLayout, nemiver::DBGPerspectiveTwoPaneLayout, and nemiver::DBGPerspectiveWideLayout.
1.8.17