#include <GraphvizView.h>
Public Member Functions | |
QByteArray | exportGraph (const QString &filter) |
GraphvizView (App::Document &_doc, QWidget *parent=nullptr) | |
virtual bool | onHasMsg (const char *pMsg) const |
Message handler test. More... | |
virtual bool | onMsg (const char *pMsg, const char **ppReturn) |
Message handler. More... | |
~GraphvizView () | |
Public Member Functions inherited from Gui::MDIView | |
virtual bool | canClose (void) |
overwrite when checking on close state More... | |
virtual void | deleteSelf () |
delete itself More... | |
virtual PyObject * | getPyObject () |
This method returns the Python wrapper for a C++ object. More... | |
MDIView (Gui::Document *pcDocument, QWidget *parent, Qt::WindowFlags wflags=Qt::WindowFlags()) | |
View constructor Attach the view to the given document. More... | |
virtual bool | onHasMsg (const char *pMsg) const |
Message handler test. More... | |
virtual bool | onMsg (const char *pMsg, const char **ppReturn) |
Message handler. More... | |
virtual void | onRelabel (Gui::Document *pDoc) |
get called when the document is updated More... | |
virtual void | viewAll () |
~MDIView () | |
View destructor Detach the view from the document, if attached. More... | |
virtual QStringList | undoActions () const |
virtual QStringList | redoActions () const |
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=nullptr, std::string *subname=nullptr) const |
access getter for the active object list More... | |
void | setActiveObject (App::DocumentObject *o, const char *n, const char *subname=nullptr) |
bool | hasActiveObject (const char *n) const |
bool | isActiveObject (App::DocumentObject *o, const char *n, const char *subname=nullptr) 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... | |
void | savePrinterSettings (QPrinter *printer) |
Save the printer configuration. More... | |
void | restorePrinterSettings (QPrinter *printer) |
Restore the printer configuration. More... | |
Public Member Functions inherited from Gui::BaseView | |
BaseView (Gui::Document *pcDocument=nullptr) | |
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... | |
Public Member Functions inherited from Base::BaseClass | |
BaseClass () | |
Construction. More... | |
BaseClass (const BaseClass &)=default | |
virtual PyObject * | getPyObject () |
This method returns the Python wrapper for a C++ object. More... | |
virtual Type | getTypeId () const |
bool | isDerivedFrom (const Type type) const |
BaseClass & | operator= (const BaseClass &)=default |
virtual void | setPyObject (PyObject *) |
virtual | ~BaseClass () |
Destruction. More... | |
Printing | |
virtual void | print (QPrinter *printer) |
virtual void | print () |
Print content of view. More... | |
virtual void | printPdf () |
Print to PDF file. More... | |
virtual void | printPreview () |
Show a preview dialog. More... | |
Additional Inherited Members | |
Public Types inherited from Gui::MDIView | |
enum | ViewMode { Child , TopLevel , FullScreen } |
MDI view mode enum. More... | |
Public Slots inherited from Gui::MDIView | |
virtual void | setOverrideCursor (const QCursor &) |
virtual void | restoreOverrideCursor () |
Signals inherited from Gui::MDIView | |
void | message (const QString &, int) |
Static Public Member Functions inherited from Base::BaseClass | |
static void * | create () |
static Type | getClassTypeId () |
static void | init () |
Protected Slots inherited from Gui::MDIView | |
virtual void | windowStateChanged (MDIView *) |
This method gets called from the main window this view is attached to whenever the window state of the active view changes. More... | |
Protected Member Functions inherited from Gui::MDIView | |
void | closeEvent (QCloseEvent *e) |
void | changeEvent (QEvent *e) |
Static Protected Member Functions inherited from Base::BaseClass | |
static void | initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) |
Protected Attributes inherited from Gui::MDIView | |
PyObject * | pythonObject |
Protected Attributes inherited from Gui::BaseView | |
bool | bIsDetached |
bool | bIsPassive |
GraphvizView::GraphvizView | ( | App::Document & | _doc, |
QWidget * | parent = nullptr |
||
) |
References draftgeoutils.faces::bind(), draftgeoutils.intersections::connect(), App::GetApplication(), ParameterGrp::GetBool(), App::Application::GetParameterGroupByPath(), GraphicsViewZoom::set_modifiers(), GraphicsViewZoom::set_zoom_inverted(), App::Document::signalRecomputed, App::Document::signalRedo, and App::Document::signalUndo.
GraphvizView::~GraphvizView | ( | ) |
QByteArray GraphvizView::exportGraph | ( | const QString & | filter | ) |
References App::GetApplication(), ParameterGrp::GetASCII(), ParameterGrp::GetBool(), and App::Application::GetParameterGroupByPath().
Referenced by onMsg(), and printPdf().
|
virtual |
Message handler test.
Reimplemented from Gui::MDIView.
|
virtual |
Message handler.
Reimplemented from Gui::MDIView.
References exportGraph(), Gui::FileDialog::getSaveFileName(), print(), printPdf(), and printPreview().
|
virtual |
Print content of view.
Reimplemented from Gui::MDIView.
References print().
Referenced by onMsg(), print(), and printPreview().
|
virtual |
Reimplemented from Gui::MDIView.
|
virtual |
Print to PDF file.
Reimplemented from Gui::MDIView.
References exportGraph(), and Gui::FileDialog::getSaveFileName().
Referenced by onMsg().
|
virtual |
Show a preview dialog.
Reimplemented from Gui::MDIView.
References draftgeoutils.intersections::connect(), and print().
Referenced by onMsg().