AbstractPart
Base class of Aspects with MDI windows as views (AspectParts).
Public Methods
|
AbstractPart(const QString &name, AspectType type) |
|
createContextMenu() override |
|
deleteView() const |
|
dockWidget() const |
|
dropableOn() const override |
|
exportView() const =0 |
|
hasMdiSubWindow() const |
|
isDraggable() const override |
|
printPreview() const =0 |
|
printView()=0 |
|
registerShortcuts() |
|
suppressDeletion(bool suppress) |
|
unregisterShortcuts() |
|
view() const =0 |
|
viewCreated() const |
Detailed Description
-
class AbstractPart : public AbstractAspect
Base class of Aspects with MDI windows as views (AspectParts).
Subclassed by AbstractDataSource, Datapicker, DatapickerImage, HypothesisTest, Note, Script, SeasonalDecomposition, Workbook, Worksheet
Public Functions
-
virtual QWidget *view() const = 0
Construct a primary view on me.
The caller receives ownership of the view.
This method may be called multiple times during the life time of a Part, or it might not get called at all. Parts must not depend on the existence of a view for their operation.
-
void deleteView() const
this function is called when PartMdiView, the mdi-subwindow-wrapper of the actual view, is closed (=deleted) in MainWindow. Makes sure that the view also gets deleted.
-
virtual ContentDockWidget *dockWidget() const
Wrap the view() into a PartMdiView.
A new view is only created the first time this method is called; after that, a pointer to the pre-existing view is returned.
-
virtual QMenu *createContextMenu() override
Return AbstractAspect::createContextMenu() plus operations on the primary view.
-
virtual QWidget *view() const = 0