MIRA
|
#include <rcp/Workbench.h>
Classes | |
struct | MinimizedDockArea |
struct | MinimizedDockWidgetState |
class | Perspective |
Public Types | |
typedef boost::shared_ptr< Perspective > | PerspectivePtr |
Public Slots | |
Perspective * | addPerspective (std::string name) |
void | removePerspective (Perspective *perspective) |
void | activatePerspective (Perspective *perspective) |
Public Member Functions | |
Workbench (bool setupUi=true) | |
virtual | ~Workbench () |
void | reflect (XMLSerializer &r) |
void | reflect (XMLDeserializer &r) |
void | setupUi () |
QWidget * | createPart (ClassProxy partClass) |
QWidget * | restorePart (ClassProxy partClass, const XMLDom &xml) |
virtual void | saveWorkspace (const std::string &file) |
virtual void | loadWorkspace (const std::string &file) |
void | cleanupWorkspace () |
removes all perspectives More... | |
bool | isDockAreaMinimized (Qt::DockWidgetArea area) |
void | minimizeDockArea (Qt::DockWidgetArea area) |
void | restoreDockArea (Qt::DockWidgetArea area) |
QMenu * | createPopupMenu () |
virtual void | addPartListener (IPartListener *listener) |
virtual void | removePartListener (IPartListener *listener) |
virtual IWorkbenchPart * | getActiveEditor () |
Returns the currently active editor part, or NULL, if no editor is active. More... | |
virtual std::list< IWorkbenchPart * > | getEditors (bool backToFront=false) |
Returns a list of all editors of this workbench site. More... | |
void | savePartMemory () |
void | loadPartMemory () |
Protected Types | |
typedef boost::shared_ptr< XMLDom > | XMLDomPtr |
Protected Slots | |
virtual void | onEditorCreated (EditorPart *editor) |
virtual void | onEditorDestroyed (EditorPart *editor) |
virtual void | onWindowTitleChanged (EditorPartWindow *editor) |
virtual void | onEditorWindowActivated (EditorPartWindow *window) |
void | storePartMemory (ViewPart *part) |
void | storePartMemory (EditorPart *part) |
Protected Member Functions | |
void | createMinimizedDockArea (Qt::DockWidgetArea area) |
Protected Attributes | |
std::list< ViewPart * > | mViewParts |
std::list< EditorPart * > | mEditorParts |
std::map< std::string, ViewPart * > | mCreatedViews |
std::list< PerspectivePtr > | mPerspectives |
Perspective * | mCurrentPerspective |
std::map< Qt::DockWidgetArea, MinimizedDockArea > | mMinimizedDockAreas |
QSignalMapper * | mDockRestoreMapper |
std::map< QDockWidget *, MinimizedDockWidgetState > | mMinimizedDockWidgetStates |
std::map< std::string, XMLDomPtr > | mPartMemory |
typedef boost::shared_ptr<Perspective> PerspectivePtr |
Workbench | ( | bool | setupUi = true | ) |
|
virtual |
void reflect | ( | XMLSerializer & | r | ) |
void reflect | ( | XMLDeserializer & | r | ) |
void setupUi | ( | ) |
QWidget* createPart | ( | ClassProxy | partClass | ) |
QWidget* restorePart | ( | ClassProxy | partClass, |
const XMLDom & | xml | ||
) |
|
virtual |
|
virtual |
void cleanupWorkspace | ( | ) |
removes all perspectives
bool isDockAreaMinimized | ( | Qt::DockWidgetArea | area | ) |
void minimizeDockArea | ( | Qt::DockWidgetArea | area | ) |
void restoreDockArea | ( | Qt::DockWidgetArea | area | ) |
|
protected |
QMenu* createPopupMenu | ( | ) |
|
slot |
|
slot |
|
slot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
virtual |
Implements IWorkbenchPartSite.
|
virtual |
Implements IWorkbenchPartSite.
|
virtual |
Returns the currently active editor part, or NULL, if no editor is active.
Implements IWorkbenchPartSite.
|
virtual |
Returns a list of all editors of this workbench site.
By default, they are in order of creation. If backToFront=true, they are ordered in their current stack order.
Implements IWorkbenchPartSite.
void savePartMemory | ( | ) |
void loadPartMemory | ( | ) |
|
protectedslot |
|
protectedslot |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |