Nemiver  0.3
Public Member Functions | Protected Member Functions | List of all members
nemiver::IWorkbench Class Referenceabstract

the interface of the Workbench. The workbench is what you see graphically when you use Nemiver. It is made of a menu bar, toolbars and a set of widgets that let you actually debug your code. The set of widgets that actually makes the debugger experience is called a perspective. The Workbench must be seen a container of perspectives. A perspective can be active or not. More...

#include <nmv-i-workbench.h>

Inheritance diagram for nemiver::IWorkbench:
nemiver::common::DynModIface nemiver::common::Object

Public Member Functions

virtual ~IWorkbench ()
 
virtual void do_init (Gtk::Main &a_main)=0
 initialization function More...
 
virtual void shut_down ()=0
 
virtual Glib::RefPtr< Glib::MainContext > get_main_context ()=0
 
various getters

signal

virtual Glib::RefPtr< Gtk::ActionGroup > get_default_action_group ()=0
 
virtual Gtk::Widget & get_menubar ()=0
 
virtual Gtk::Notebook & get_toolbar_container ()=0
 
virtual Gtk::Window & get_root_window ()=0
 
virtual void set_title_extension (const UString &a_str)=0
 Set state-related information to be appended to the window title. More...
 
virtual Glib::RefPtr< Gtk::UIManager > & get_ui_manager ()=0
 
virtual IPerspectiveget_perspective (const UString &a_name)=0
 
virtual void do_init (IConfMgrSafePtr &)=0
 set the configuration manager used by this interface More...
 
virtual IConfMgrSafePtr get_configuration_manager ()=0
 
signals
virtual sigc::signal< void > & shutting_down_signal ()=0
 emitted just before the workbench shuts down More...
 
- Public Member Functions inherited from nemiver::common::DynModIface
 DynModIface (DynamicModuleSafePtr &a_dynmod)
 
 DynModIface (DynamicModule *a_dynmod)
 
DynamicModuleget_dynamic_module () const
 
- Public Member Functions inherited from nemiver::common::Object
 Object ()
 
 Object (Object const &)
 
Objectoperator= (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

 IWorkbench (DynamicModule *a_dynmod)
 

Additional Inherited Members

- Protected Attributes inherited from nemiver::common::Object
SafePtr< ObjectPrivm_priv
 

Detailed Description

the interface of the Workbench. The workbench is what you see graphically when you use Nemiver. It is made of a menu bar, toolbars and a set of widgets that let you actually debug your code. The set of widgets that actually makes the debugger experience is called a perspective. The Workbench must be seen a container of perspectives. A perspective can be active or not.

An implication of a workbench being a container of perspectives is the way it manages toolbars. There can be several toolbars hosted by the workbench. The expected behaviour is that when the user switch from one perspective to another, (for example from the debugger perspective to the valgring memory checker, if one appears some day) the toolbars of the right perspective are displayed. Oh, and there can be only one perspective active at a time.

When a new perspective is added to the workbench, the later queries the former for the toolbars to display when the perspective becomes active. As a result, The workbench appends the toolbars in a Gtk::Notebook and shows the appropriate toolbars when the perspective becomes active.

Constructor & Destructor Documentation

◆ IWorkbench()

nemiver::IWorkbench::IWorkbench ( DynamicModule a_dynmod)
inlineprotected

◆ ~IWorkbench()

virtual nemiver::IWorkbench::~IWorkbench ( )
inlinevirtual

Member Function Documentation

◆ do_init() [1/2]

virtual void nemiver::IWorkbench::do_init ( Gtk::Main &  a_main)
pure virtual

initialization function

Parameters
a_mainthe main loop created by the application.

◆ do_init() [2/2]

virtual void nemiver::IWorkbench::do_init ( IConfMgrSafePtr )
pure virtual

set the configuration manager used by this interface

◆ get_configuration_manager()

virtual IConfMgrSafePtr nemiver::IWorkbench::get_configuration_manager ( )
pure virtual
Returns
the interface of the configuration manager

◆ get_default_action_group()

virtual Glib::RefPtr<Gtk::ActionGroup> nemiver::IWorkbench::get_default_action_group ( )
pure virtual
Returns
the action group that is always activated

◆ get_main_context()

virtual Glib::RefPtr<Glib::MainContext> nemiver::IWorkbench::get_main_context ( )
pure virtual

◆ get_menubar()

virtual Gtk::Widget& nemiver::IWorkbench::get_menubar ( )
pure virtual

◆ get_perspective()

virtual IPerspective* nemiver::IWorkbench::get_perspective ( const UString a_name)
pure virtual
Returns
the perspective that which name matches a_name

◆ get_root_window()

virtual Gtk::Window& nemiver::IWorkbench::get_root_window ( )
pure virtual
Returns
the Workbench root window

◆ get_toolbar_container()

virtual Gtk::Notebook& nemiver::IWorkbench::get_toolbar_container ( )
pure virtual
Returns
gets the container of the toolbars.

◆ get_ui_manager()

virtual Glib::RefPtr<Gtk::UIManager>& nemiver::IWorkbench::get_ui_manager ( )
pure virtual
Returns
the Gtk::UIManager of the workbench

◆ set_title_extension()

virtual void nemiver::IWorkbench::set_title_extension ( const UString a_str)
pure virtual

Set state-related information to be appended to the window title.

◆ shut_down()

virtual void nemiver::IWorkbench::shut_down ( )
pure virtual

◆ shutting_down_signal()

virtual sigc::signal<void>& nemiver::IWorkbench::shutting_down_signal ( )
pure virtual

emitted just before the workbench shuts down


The documentation for this class was generated from the following file: