MIRA
|
An editor is typically used to edit or browse data or objects. More...
#include <rcp/EditorPart.h>
Signals | |
void | editorClosed (EditorPart *editor) |
void | editorDestroyed (EditorPart *editor) |
void | windowTitleChanged (EditorPartWindow *editor) |
Public Member Functions | |
EditorPart () | |
virtual | ~EditorPart () |
virtual void | init (IWorkbenchPartSite *site) |
Is called by the workbench. More... | |
IWorkbenchPartSite * | getSite () |
virtual QImage | captureContent () |
Returns the content of the editor part as QImage. More... | |
void | setWidget (QWidget *widget) |
QWidget * | widget () const |
EditorPartTitleBar * | getTitleBar () |
void | undock () |
Undocks the window from the EditorPartArea and makes it floating. More... | |
void | dock () |
Docks the window back to the EditorPartArea. More... | |
bool | isDocked () const |
Returns true, if the window is docked in the EditorPartArea. More... | |
void | setOnTop (bool onTop) |
Makes the window stay on top of other windows. More... | |
bool | isOnTop () const |
Returns true, if the window stays on top of other windows. More... | |
void | showDecorations (bool show) |
void | setAutoHideDecorations (bool on) |
template<typename Reflector > | |
void | reflect (Reflector &r) |
virtual void | activate () |
Is called by the Workbench to inform the Part that is being activated by the user. More... | |
virtual void | deactivate () |
Is called by the Workbench to inform the Part that is being deactivated since another Part got the focus. More... | |
bool | isActivated () const |
Returns true if this ViewPart currently has the focus and hence the users attention. More... | |
virtual Object * | getAdapter (const Class &adapter) |
Returns an object which is an instance of the given class associated with this object. More... | |
Class const & | getClass () const |
call the virtual internalGetClass(). More... | |
Static Public Member Functions | |
static PseudoClass const & | CLASS () |
Protected Slots | |
void | onMinimized () |
void | onMaximized () |
void | onRestored () |
void | onUndock () |
void | onDock () |
void | onOnTop (bool onTop) |
Protected Member Functions | |
virtual QWidget * | createPartControl ()=0 |
Must be overloaded in subclasses to create the actual widget for this EditorPart. More... | |
QMenu * | getViewMenu () |
Returns the optional editor menu that is shown when the user clicks the editor menu tool button. More... | |
virtual void | closeEvent (QCloseEvent *) |
virtual void | paintEvent (QPaintEvent *paintEvent) |
virtual void | changeEvent (QEvent *event) |
void | setActive (bool activate) |
virtual void | windowStateChanged (Qt::WindowStates oldState, Qt::WindowStates newState) |
void | updateDecorations () |
void | updateStateButtons () |
virtual Class const & | internalGetClass () const =0 |
An editor is typically used to edit or browse data or objects.
Editors are shown as tabbed MDI windows. In contrast to views there may exist multiple instances of a certain editor type.
EditorPart | ( | ) |
|
virtual |
|
virtual |
Is called by the workbench.
The WorkbenchPart should initialize itself and my store the pointer tothe IWorkbenchPartSite interface for later use.
Implements WorkbenchPart.
IWorkbenchPartSite* getSite | ( | ) |
|
virtual |
Returns the content of the editor part as QImage.
Can be reimplemented by subclasses to provide special capturing techniques that are e.g. required by OpenQL widgets.
Reimplemented in Visualization3DView.
|
protectedpure virtual |
Must be overloaded in subclasses to create the actual widget for this EditorPart.
This EditorPart should be set as parent for the created widget.
Implemented in VisualizationView.
|
protected |
Returns the optional editor menu that is shown when the user clicks the editor menu tool button.
An EditorPart can add items to this menu within it's createPartControl() method, by calling this method and populating items to the menu.
|
protectedvirtual |
|
signal |
|
signal |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
Undocks the window from the EditorPartArea and makes it floating.
|
inlineinherited |
Docks the window back to the EditorPartArea.
|
inlineinherited |
Returns true, if the window is docked in the EditorPartArea.
|
inlineinherited |
Makes the window stay on top of other windows.
|
inlineinherited |
Returns true, if the window stays on top of other windows.
|
inherited |
|
inherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedslotinherited |
|
protectedslotinherited |
|
protectedslotinherited |
|
protectedslotinherited |
|
protectedslotinherited |
|
protectedslotinherited |
|
signalinherited |
|
inlineinherited |
|
virtualinherited |
Is called by the Workbench to inform the Part that is being activated by the user.
Implements IWorkbenchPart.
Reimplemented in ViewPart.
|
virtualinherited |
Is called by the Workbench to inform the Part that is being deactivated since another Part got the focus.
Implements IWorkbenchPart.
Reimplemented in ViewPart.
|
inlineinherited |
Returns true if this ViewPart currently has the focus and hence the users attention.
Returns an object which is an instance of the given class associated with this object.
Returns nullptr if no such object can be found. The implementation if IAdaptable is responsible for destroying the instance of the created object.
Implements IAdaptable.
Reimplemented in VisualizationView.
|
inlineinherited |
call the virtual internalGetClass().
|
inlinestaticinherited |
|
protectedpure virtualinherited |