47 #ifndef _MIRA_VIEWPART_H_ 48 #define _MIRA_VIEWPART_H_ 52 #include <QDockWidget> 61 class ViewPartTitleBar;
156 Qt::DockWidgetArea mArea;
void onDockLocationChanged(Qt::DockWidgetArea area)
virtual void closeEvent(QCloseEvent *)
void onTopLevelChanged(bool topLevel)
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
IWorkbenchPartSite * getSite()
void viewClosed(ViewPart *view)
virtual QWidget * createPartControl()=0
Must be overloaded in subclasses to create the actual widget for this ViewPart.
virtual void deactivate()
Is called by the Workbench to inform the Part that is being deactivated since another Part got the fo...
void viewDestroyed(ViewPart *view)
A workbench part is a component within the workbench.
Definition: WorkbenchPart.h:117
void currentDockLocationChanged(Qt::DockWidgetArea area)
void paintEvent(QPaintEvent *event)
ViewPartTitleBar * mTitleBar
Definition: ViewPart.h:151
#define MIRA_ABSTRACT_OBJECT(classIdentifier)
Use this MACRO instead of MIRA_OBJECT to declare the class as abstract.
Definition: FactoryMacros.h:235
virtual void focusInEvent(QFocusEvent *)
A view is typically used to display information or properties.
Definition: ViewPart.h:69
virtual void init(IWorkbenchPartSite *site)
Is called by the workbench.
void viewActivated(ViewPart *view)
virtual void onVisibilityChanged(bool visible)
QMenu * getViewMenu()
Returns the optional view menu that is shown when the user clicks the view menu tool button...
virtual void activate()
Is called by the Workbench to inform the Part that is being activated by the user.
The primary interface between a workbench part and the workbench.
Definition: WorkbenchPart.h:67
ViewPartTitleBar * getTitleBar()
Returns the title bar of this view part.
void minimizedRequested(ViewPart *view)
void onMinimizeRequested()
Qt::DockWidgetArea getDockArea() const
Returns the dock area, this view belongs to.
virtual Qt::DockWidgetArea getDefaultDockArea() const
Can be implemented by view implementations to provide a preferred default dock area that is assigned ...
Definition: ViewPartTitleBar.h:60
Declaration of WorkbenchPart and related interfaces.