MIRA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
VisualizationControl Class Referenceabstract

View part for managing (adding, removing and editing properties) visualizations of the currently focused visualization view. More...

#include <views/VisualizationControl.h>

Inheritance diagram for VisualizationControl:
Inheritance graph
[legend]

Signals

void viewActivated (ViewPart *view)
 
void viewClosed (ViewPart *view)
 
void viewDestroyed (ViewPart *view)
 
void minimizedRequested (ViewPart *view)
 
void currentDockLocationChanged (Qt::DockWidgetArea area)
 

Public Member Functions

template<typename Reflector >
void reflect (Reflector &r)
 
virtual void init (IWorkbenchPartSite *site)
 Is called by the workbench. More...
 
IWorkbenchPartSitegetSite ()
 
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 isVisible () const
 
Qt::DockWidgetArea getDockArea () const
 Returns the dock area, this view belongs to. More...
 
bool isActivated () const
 Returns true if this ViewPart currently has the focus and hence the users attention. More...
 
virtual ObjectgetAdapter (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

virtual void onVisibilityChanged (bool visible)
 
void onMinimizeRequested ()
 
void onDockLocationChanged (Qt::DockWidgetArea area)
 
void onTopLevelChanged (bool topLevel)
 

Protected Member Functions

virtual QWidget * createPartControl ()
 Creates the content widget. More...
 
virtual QWidget * createDefaultPage ()
 Must be implemented in derived classes. More...
 
virtual QWidget * createPage (IWorkbenchPart *part)
 Must be implemented in derived classes. More...
 
void setPage (QWidget *page)
 Sets the specified widget as current "page". More...
 
virtual void editorActivated (IWorkbenchPart *part)
 Notifies this listener that the given editor part has been activated. More...
 
virtual void editorClosed (IWorkbenchPart *part)
 Notifies this listener that the given editor part has been closed. More...
 
virtual void viewActivated (IWorkbenchPart *part)
 Notifies this listener that the given view part has been activated. More...
 
virtual void viewClosed (IWorkbenchPart *part)
 Notifies this listener that the given view part has been closed. More...
 
virtual void focusInEvent (QFocusEvent *)
 
virtual void closeEvent (QCloseEvent *)
 
QMenu * getViewMenu ()
 Returns the optional view menu that is shown when the user clicks the view menu tool button. More...
 
ViewPartTitleBargetTitleBar ()
 Returns the title bar of this view part. More...
 
void paintEvent (QPaintEvent *event)
 
virtual Class const & internalGetClass () const =0
 

Protected Attributes

ViewPartTitleBarmTitleBar
 

Detailed Description

View part for managing (adding, removing and editing properties) visualizations of the currently focused visualization view.

The visualization view must implement the VisualizationControlPage adapter for its visualizations and properties to be shown in this view upon activation.

Member Function Documentation

void reflect ( Reflector &  r)
inline
virtual QWidget* createPartControl ( )
protectedvirtual

Creates the content widget.

Reimplemented from PageViewPart.

virtual QWidget* createDefaultPage ( )
protectedvirtual

Must be implemented in derived classes.

Is called to display a default page (e.g. when no workbench part is active)

Implements PageViewPart.

virtual QWidget* createPage ( IWorkbenchPart part)
protectedvirtual

Must be implemented in derived classes.

Is called when the workbench part changes in order to display a special page for that part. If this method returns NULL, the current page remains unchanged. Note that the creator of the page is responsible for its destruction. The page will not be deleted if this PageViewPart is destructed!

Implements PageViewPart.

void setPage ( QWidget *  page)
protectedinherited

Sets the specified widget as current "page".

virtual void editorActivated ( IWorkbenchPart part)
protectedvirtualinherited

Notifies this listener that the given editor part has been activated.

Implements IPartListener.

virtual void editorClosed ( IWorkbenchPart part)
protectedvirtualinherited

Notifies this listener that the given editor part has been closed.

Implements IPartListener.

virtual void viewActivated ( IWorkbenchPart part)
protectedvirtualinherited

Notifies this listener that the given view part has been activated.

Implements IPartListener.

Reimplemented in PropertyView.

void viewActivated ( ViewPart view)
signalinherited
virtual void viewClosed ( IWorkbenchPart part)
protectedvirtualinherited

Notifies this listener that the given view part has been closed.

Implements IPartListener.

void viewClosed ( ViewPart view)
signalinherited
virtual void init ( IWorkbenchPartSite site)
virtualinherited

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 ( )
inherited
virtual void activate ( )
virtualinherited

Is called by the Workbench to inform the Part that is being activated by the user.

Reimplemented from WorkbenchPart.

virtual void deactivate ( )
virtualinherited

Is called by the Workbench to inform the Part that is being deactivated since another Part got the focus.

Reimplemented from WorkbenchPart.

bool isVisible ( ) const
inherited
Qt::DockWidgetArea getDockArea ( ) const
inherited

Returns the dock area, this view belongs to.

virtual void focusInEvent ( QFocusEvent *  )
protectedvirtualinherited
virtual void closeEvent ( QCloseEvent *  )
protectedvirtualinherited
QMenu* getViewMenu ( )
protectedinherited

Returns the optional view menu that is shown when the user clicks the view menu tool button.

A ViewPart can add items to this menu within it's createPartControl() method, by calling this method and populating items to the menu.

ViewPartTitleBar* getTitleBar ( )
protectedinherited

Returns the title bar of this view part.

void paintEvent ( QPaintEvent *  event)
protectedinherited
void viewDestroyed ( ViewPart view)
signalinherited
void minimizedRequested ( ViewPart view)
signalinherited
void currentDockLocationChanged ( Qt::DockWidgetArea  area)
signalinherited
virtual void onVisibilityChanged ( bool  visible)
protectedvirtualslotinherited
void onMinimizeRequested ( )
protectedslotinherited
void onDockLocationChanged ( Qt::DockWidgetArea  area)
protectedslotinherited
void onTopLevelChanged ( bool  topLevel)
protectedslotinherited
bool isActivated ( ) const
inlineinherited

Returns true if this ViewPart currently has the focus and hence the users attention.

virtual Object* getAdapter ( const Class adapter)
inlinevirtualinherited

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.

Class const& getClass ( ) const
inlineinherited

call the virtual internalGetClass().

static PseudoClass const& CLASS ( )
inlinestaticinherited
virtual Class const& internalGetClass ( ) const
protectedpure virtualinherited

Member Data Documentation

ViewPartTitleBar* mTitleBar
protectedinherited

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