|
| DrawingView (Gui::Document *doc, QWidget *parent=0) |
|
PyObject * | getPyObject () |
| This method returns the Python wrapper for a C++ object. More...
|
|
bool | onHasMsg (const char *pMsg) const |
| Message handler test. More...
|
|
bool | onMsg (const char *pMsg, const char **ppReturn) |
| Message handler. More...
|
|
void | onRelabel (Gui::Document *pDoc) |
| get called when the document is updated More...
|
|
void | print () |
| Print content of view. More...
|
|
void | print (QPrinter *printer) |
|
void | printPdf () |
| Print to PDF file. More...
|
|
void | printPreview () |
| Show a preview dialog. More...
|
|
void | setDocumentObject (const std::string &) |
|
virtual | ~DrawingView () |
|
virtual bool | canClose (void) |
| overwrite when checking on close state More...
|
|
virtual void | deleteSelf () |
| delete itself More...
|
|
| MDIView (Gui::Document *pcDocument, QWidget *parent, Qt::WindowFlags wflags=Qt::WindowFlags()) |
| View constructor Attach the view to the given document. More...
|
|
virtual void | viewAll () |
|
| ~MDIView () |
| View destructor Detach the view from the document, if attached. More...
|
|
QSize | minimumSizeHint () const |
|
virtual void | setCurrentViewMode (ViewMode mode) |
| If b is set to FullScreen the MDI view is displayed in full screen mode, if b is set to TopLevel then it is displayed as an own top-level window, otherwise (Normal) as tabbed window. More...
|
|
ViewMode | currentViewMode () const |
|
template<typename _T > |
_T | getActiveObject (const char *name, App::DocumentObject **parent=0, std::string *subname=0) const |
| access getter for the active object list More...
|
|
void | setActiveObject (App::DocumentObject *o, const char *n, const char *subname=0) |
|
bool | hasActiveObject (const char *n) const |
|
bool | isActiveObject (App::DocumentObject *o, const char *n, const char *subname=0) const |
|
virtual bool | containsViewProvider (const ViewProvider *) const |
| containsViewProvider Checks if the given view provider is part of this view. The default implementation returns false. More...
|
|
| BaseView (Gui::Document *pcDocument=0) |
| View constructor Attach the view to the given document. More...
|
|
virtual | ~BaseView () |
| View destructor Detach the view from the document, if attached! More...
|
|
void | setDocument (Gui::Document *pcDocument) |
| sets the view to another document (called by Application) More...
|
|
void | onClose (void) |
| is sent from the document in order to close the document More...
|
|
Gui::Document * | getGuiDocument () const |
| returns the document the view is attached to More...
|
|
App::Document * | getAppDocument () const |
| returns the document the view is attached to More...
|
|
bool | isPassive (void) const |
| indicates if the view is in passive mode More...
|
|
virtual void | onUpdate (void) |
| get called when the document is updated More...
|
|
virtual void | onRename (Gui::Document *) |
| get called when the document is renamed (change of its internal name) More...
|
|
virtual const char * | getName (void) const |
| returns the name of the view (important for messages) More...
|
|
| BaseClass () |
| Construction. More...
|
|
virtual Type | getTypeId (void) const |
|
bool | isDerivedFrom (const Type type) const |
|
virtual void | setPyObject (PyObject *) |
|
virtual | ~BaseClass () |
| Destruction. More...
|
|
PyObject * DrawingView::getPyObject |
( |
void |
| ) |
|
|
virtual |
This method returns the Python wrapper for a C++ object.
It's in the responsibility of the programmer to do the correct reference counting. Basically there are two ways how to implement that: Either always return a new Python object then reference counting is not a matter or return always the same Python object then the reference counter must be incremented by one. However, it's absolutely forbidden to return always the same Python object without incrementing the reference counter.
The default implementation returns 'None'.
Reimplemented from Gui::MDIView.