scidavis  2.3.0
About: SciDAVis is a free application for Scientific Data Analysis and Visualization (a fork off of QtiPlot).
  Fossies Dox: scidavis-2.3.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

AbstractPart.h
Go to the documentation of this file.
1 
11 
29 #ifndef ABSTRACT_PART_H
30 #define ABSTRACT_PART_H
31 
32 #include "AbstractAspect.h"
33 
34 class PartMdiView;
35 class QMenu;
36 class QToolBar;
37 
39 
44 {
45  Q_OBJECT
46 
47  public:
49  AbstractPart(const QString &name) : AbstractAspect(name), d_mdi_window(0) {}
51 
57  virtual QWidget * view() = 0;
59 
65  virtual QMenu * createContextMenu() const;
67 
70  virtual bool fillProjectMenu(QMenu * menu) { Q_UNUSED(menu); return false; }
72 
75  virtual bool fillProjectToolBar(QToolBar * bar) { Q_UNUSED(bar); return false; }
76 
77  public slots:
79  virtual void copy() {};
81  virtual void cut() {};
83  virtual void paste() {};
84 
85  private:
88 };
89 
90 #endif // ifndef ABSTRACT_PART_H
AbstractPart::d_mdi_window
PartMdiView * d_mdi_window
The MDI sub-window that is wrapped around my primary view.
Definition: AbstractPart.h:83
AbstractPart::AbstractPart
AbstractPart(const QString &name)
Constructor.
Definition: AbstractPart.h:49
AbstractPart::paste
virtual void paste()
Paste at the current location or into the current selection.
Definition: AbstractPart.h:83
AbstractPart::copy
virtual void copy()
Copy current selection.
Definition: AbstractPart.h:79
AbstractPart::view
virtual QWidget * view()=0
Construct a primary view on me.
AbstractPart::mdiSubWindow
PartMdiView * mdiSubWindow()
Wrap the view() into a PartMdiView.
Definition: AbstractPart.cpp:35
PartMdiView
MDI sub window that implements functions common to all aspect views.
Definition: PartMdiView.h:50
AbstractAspect::name
QString name() const
Definition: AbstractAspect.cpp:229
AbstractPart::fillProjectMenu
virtual bool fillProjectMenu(QMenu *menu)
Fill the part specific menu for the main window including setting the title.
Definition: AbstractPart.h:70
AbstractPart::fillProjectToolBar
virtual bool fillProjectToolBar(QToolBar *bar)
Fill the part specific tool bar for the main window including setting the title.
Definition: AbstractPart.h:75
AbstractPart::cut
virtual void cut()
Cut current selection.
Definition: AbstractPart.h:81
AbstractPart::createContextMenu
virtual QMenu * createContextMenu() const
Return AbstractAspect::createContextMenu() plus operations on the primary view.
Definition: AbstractPart.cpp:42
AbstractAspect.h
AbstractAspect
Base class of all persistent objects in a Project.
Definition: AbstractAspect.h:86
AbstractPart
Base class of Aspects with MDI windows as views.
Definition: AbstractPart.h:44