The Gui Document This is the document on GUI level. More...
#include <Document.h>
Public Member Functions | |
Document (App::Document *pcDocument, Application *app) | |
~Document () | |
methods for View handling | |
Gui::MDIView * | getActiveView (void) const |
Getter for the active view. More... | |
void | setActiveWindow (Gui::MDIView *view) |
Document::setActiveWindow If this document is active and the view is part of it then it will be activated. More... | |
Gui::MDIView * | getEditingViewOfViewProvider (Gui::ViewProvider *) const |
Gui::MDIView * | getViewOfViewProvider (const Gui::ViewProvider *) const |
Gui::MDIView * | getViewOfNode (SoNode *) const |
MDIView * | createView (const Base::Type &typeId) |
Create a new view. More... | |
Gui::MDIView * | cloneView (Gui::MDIView *) |
Create a clone of the given view. More... | |
bool | sendMsgToViews (const char *pMsg) |
send messages to the active view Send a specific massage to the active view and is able to receive a return message More... | |
bool | sendMsgToFirstView (const Base::Type &typeId, const char *pMsg, const char **ppReturn) |
Sends the message pMsg to the views of type typeid and stops with the first view that supports the message and returns ppReturn. More... | |
void | attachView (Gui::BaseView *pcView, bool bPassiv=false) |
Attach a view (get called by the MDIView constructor) More... | |
void | detachView (Gui::BaseView *pcView, bool bPassiv=false) |
Detach a view (get called by the MDIView destructor) More... | |
ViewProviderDocumentObject * | getViewProviderByPathFromTail (SoPath *path) const |
helper for selection More... | |
ViewProviderDocumentObject * | getViewProviderByPathFromHead (SoPath *path) const |
helper for selection More... | |
std::vector< std::pair< ViewProviderDocumentObject *, int > > | getViewProvidersByPath (SoPath *path) const |
Get all view providers along the path and the corresponding node index in the path. More... | |
void | onUpdate (void) |
call update on all attached views More... | |
void | onRelabel (void) |
call relabel to all attached views More... | |
std::list< MDIView * > | getMDIViews () const |
returns a list of all attached MDI views More... | |
std::list< MDIView * > | getMDIViewsOfType (const Base::Type &typeId) const |
returns a list of all MDI views of a certain type More... | |
MDIView * | setActiveView (ViewProviderDocumentObject *vp=nullptr, Base::Type typeId=Base::Type()) |
View provider handling <br> | |
ViewProvider * | getViewProvider (const App::DocumentObject *) const |
Get the view provider for that object. More... | |
ViewProviderDocumentObject * | getViewProvider (SoNode *node) const |
void | setAnnotationViewProvider (const char *name, ViewProvider *pcProvider) |
set an annotation view provider More... | |
ViewProvider * | getAnnotationViewProvider (const char *name) const |
get an annotation view provider More... | |
void | removeAnnotationViewProvider (const char *name) |
remove an annotation view provider More... | |
bool | isShow (const char *name) |
test if the feature is in show More... | |
void | setShow (const char *name) |
put the feature in show More... | |
void | setHide (const char *name) |
set the feature in Noshow More... | |
void | setPos (const char *name, const Base::Matrix4D &rclMtrx) |
set the feature transformation (only viewing) More... | |
std::vector< ViewProvider * > | getViewProvidersOfType (const Base::Type &typeId) const |
ViewProvider * | getViewProviderByName (const char *name) const |
bool | setEdit (Gui::ViewProvider *p, int ModNum=0, const char *subname=nullptr) |
set the ViewProvider in special edit mode More... | |
const Base::Matrix4D & | getEditingTransform () const |
void | setEditingTransform (const Base::Matrix4D &mat) |
void | resetEdit (void) |
reset from edit mode, this cause all document to reset edit More... | |
ViewProvider * | getInEdit (ViewProviderDocumentObject **parentVp=nullptr, std::string *subname=nullptr, int *mode=nullptr, std::string *subElement=nullptr) const |
get the in edit ViewProvider or NULL More... | |
void | setInEdit (ViewProviderDocumentObject *parentVp, const char *subname) |
set the in edit ViewProvider subname reference More... | |
void | toggleInSceneGraph (ViewProvider *vp) |
Add or remove view provider from scene graphs of all views. More... | |
Public Member Functions inherited from Base::Persistence | |
void | dumpToStream (std::ostream &stream, int compression) |
virtual unsigned int | getMemSize () const =0 |
This method is used to get the size of objects It is not meant to have the exact size, it is more or less an estimation which runs fast! Is it two bytes or a GB? More... | |
virtual Base::Type | getTypeId (void) const |
virtual void | Restore (XMLReader &)=0 |
This method is used to restore properties from an XML document. More... | |
virtual void | RestoreDocFile (Reader &) |
This method is used to restore large amounts of data from a file In this method you simply stream in your SaveDocFile() saved data. More... | |
void | restoreFromStream (std::istream &stream) |
virtual void | Save (Writer &) const =0 |
This method is used to save properties to an XML document. More... | |
virtual void | SaveDocFile (Writer &) const |
This method is used to save large amounts of data to a binary file. 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... | |
Public Attributes | |
Signals of the document | |
boost::signals2::signal< void(const Gui::ViewProviderDocumentObject &)> | signalNewObject |
signal on new Object More... | |
boost::signals2::signal< void(const Gui::ViewProviderDocumentObject &)> | signalDeletedObject |
signal on deleted Object More... | |
boost::signals2::signal< void(const Gui::ViewProviderDocumentObject &, const App::Property &)> | signalChangedObject |
signal on changed Object, the 2nd argument is the changed property of the referenced document object, not of the view provider More... | |
boost::signals2::signal< void(const Gui::ViewProviderDocumentObject &)> | signalRelabelObject |
signal on renamed Object More... | |
boost::signals2::signal< void(const Gui::ViewProviderDocumentObject &)> | signalActivatedObject |
signal on activated Object More... | |
boost::signals2::signal< void(const Gui::ViewProviderDocumentObject &)> | signalInEdit |
signal on entering in edit mode More... | |
boost::signals2::signal< void(const Gui::ViewProviderDocumentObject &)> | signalResetEdit |
signal on leaving edit mode More... | |
boost::signals2::signal< void(const Gui::ViewProviderDocumentObject &, const Gui::HighlightMode &, bool, App::DocumentObject *parent, const char *subname)> | signalHighlightObject |
signal on changed Object, the 2nd argument is the highlite mode to use More... | |
boost::signals2::signal< void(const Gui::ViewProviderDocumentObject &, const Gui::TreeItemMode &, App::DocumentObject *parent, const char *subname)> | signalExpandObject |
signal on changed Object, the 2nd argument is the highlite mode to use More... | |
boost::signals2::signal< void(const Gui::ViewProviderDocumentObject &)> | signalShowItem |
signal on changed ShowInTree property in view provider More... | |
boost::signals2::signal< void(const Gui::ViewProviderDocumentObject &)> | signalScrollToObject |
signal on scrolling to an object More... | |
boost::signals2::signal< void(const Gui::Document &doc)> | signalUndoDocument |
signal on undo Document More... | |
boost::signals2::signal< void(const Gui::Document &doc)> | signalRedoDocument |
signal on redo Document More... | |
boost::signals2::signal< void(const Gui::Document &doc)> | signalDeleteDocument |
signal on deleting Document More... | |
methods for the UNDO REDO handling | |
void | openCommand (const char *sName=nullptr) |
Open a new Undo transaction on the document. More... | |
void | commitCommand (void) |
Commit the Undo transaction on the document. More... | |
void | abortCommand (void) |
Abort the Undo transaction on the document. More... | |
bool | hasPendingCommand (void) const |
Check if an Undo transaction is open. More... | |
std::vector< std::string > | getUndoVector (void) const |
Get an Undo string vector with the Undo names. More... | |
std::vector< std::string > | getRedoVector (void) const |
Get an Redo string vector with the Redo names. More... | |
void | undo (int iSteps) |
Will UNDO one or more steps. More... | |
void | redo (int iSteps) |
Will REDO one or more steps. More... | |
bool | isPerformingTransaction () const |
Check if the document is performing undo/redo transaction. More... | |
bool | canClose (bool checkModify=true, bool checkLink=false) |
handles the application close event More... | |
bool | isLastView (void) |
void | beforeDelete () |
called by Application before being deleted More... | |
virtual PyObject * | getPyObject (void) |
This method returns the Python wrapper for a C++ object. More... | |
const char * | getCameraSettings () const |
bool | saveCameraSettings (const char *) const |
attributes for the UNDO REDO facility | |
class | TransactionViewProvider |
I/O of the document | |
unsigned int | getMemSize (void) const |
This method is used to get the size of objects It is not meant to have the exact size, it is more or less an estimation which runs fast! Is it two bytes or a GB? More... | |
bool | save (void) |
Save the document. More... | |
bool | saveAs (void) |
Save the document under a new file name. More... | |
bool | saveCopy (void) |
Save a copy of the document under a new file name. More... | |
virtual void | Save (Base::Writer &writer) const |
This method is used to save properties or very small amounts of data to an XML document. More... | |
virtual void | Restore (Base::XMLReader &reader) |
This method is used to restore properties from an XML document. More... | |
virtual void | SaveDocFile (Base::Writer &writer) const |
This method is used to save large amounts of data to a binary file. More... | |
virtual void | RestoreDocFile (Base::Reader &reader) |
This method is used to restore large amounts of data from a binary file. More... | |
void | exportObjects (const std::vector< App::DocumentObject * > &, Base::Writer &) |
void | importObjects (const std::vector< App::DocumentObject * > &, Base::Reader &, const std::map< std::string, std::string > &nameMapping) |
void | addRootObjectsToGroup (const std::vector< App::DocumentObject * > &, App::DocumentObjectGroup *) |
Add all root objects of the given array to a group. More... | |
void | setModified (bool) |
Observer message from the App doc. More... | |
bool | isModified () const |
App::Document * | getDocument (void) const |
Getter for the App Document. More... | |
void | slotNewObject (const App::DocumentObject &) |
This slot is connected to the App::Document::signalNewObject(...) More... | |
void | slotDeletedObject (const App::DocumentObject &) |
void | slotChangedObject (const App::DocumentObject &, const App::Property &) |
void | slotRelabelObject (const App::DocumentObject &) |
void | slotTransactionAppend (const App::DocumentObject &, App::Transaction *) |
void | slotTransactionRemove (const App::DocumentObject &, App::Transaction *) |
void | slotActivatedObject (const App::DocumentObject &) |
void | slotStartRestoreDocument (const App::Document &) |
void | slotFinishRestoreDocument (const App::Document &) |
void | slotUndoDocument (const App::Document &) |
void | slotRedoDocument (const App::Document &) |
void | slotShowHidden (const App::Document &) |
void | slotFinishImportObjects (const std::vector< App::DocumentObject * > &) |
void | slotFinishRestoreObject (const App::DocumentObject &obj) |
void | slotRecomputed (const App::Document &) |
void | slotSkipRecompute (const App::Document &doc, const std::vector< App::DocumentObject * > &objs) |
void | slotTouchedObject (const App::DocumentObject &) |
void | slotChangePropertyEditor (const App::Document &, const App::Property &) |
void | addViewProvider (Gui::ViewProviderDocumentObject *) |
static void | saveAll () |
Save all open document. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Base::Persistence | |
static void * | create (void) |
static std::string | encodeAttribute (const std::string &) |
Encodes an attribute upon saving. More... | |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Static Public Member Functions inherited from Base::BaseClass | |
static void * | create () |
static Type | getClassTypeId () |
static void | init () |
Static Protected Member Functions inherited from Base::BaseClass | |
static void | initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) |
The Gui Document This is the document on GUI level.
Its main responsibility is keeping track off open windows for a document and warning on unsaved closes. All handled views on the document must inherit from MDIView
Document::Document | ( | App::Document * | pcDocument, |
Application * | app | ||
) |
References draftgeoutils.faces::bind(), Gui::DocumentP::connectActObject, Gui::DocumentP::connectActObjectBlocker, Gui::DocumentP::connectChangeDocument, Gui::DocumentP::connectChangeDocumentBlocker, Gui::DocumentP::connectChangePropertyEditor, Gui::DocumentP::connectCngObject, Gui::DocumentP::connectDelObject, Gui::DocumentP::connectExportObjects, Gui::DocumentP::connectFinishImportObjects, Gui::DocumentP::connectFinishLoadDocument, Gui::DocumentP::connectFinishRestoreObject, Gui::DocumentP::connectImportObjects, Gui::DocumentP::connectNewObject, Gui::DocumentP::connectRecomputed, Gui::DocumentP::connectRedoDocument, Gui::DocumentP::connectRenObject, Gui::DocumentP::connectRestDocument, Gui::DocumentP::connectSaveDocument, Gui::DocumentP::connectShowHidden, Gui::DocumentP::connectSkipRecompute, Gui::DocumentP::connectStartLoadDocument, Gui::DocumentP::connectTouchedObject, Gui::DocumentP::connectTransactionAppend, Gui::DocumentP::connectTransactionRemove, Gui::DocumentP::connectUndoDocument, exportObjects(), App::GetApplication(), ParameterGrp::GetBool(), ParameterGrp::GetInt(), App::Application::GetParameterGroupByPath(), importObjects(), Restore(), Save(), App::Document::signalActivatedObject, App::Document::signalChangedObject, App::Document::signalChangePropertyEditor, App::Document::signalDeletedObject, App::Document::signalExportViewObjects, App::Document::signalFinishImportObjects, App::Application::signalFinishRestoreDocument, App::Document::signalFinishRestoreObject, App::Document::signalImportViewObjects, App::Document::signalNewObject, App::Document::signalRecomputed, App::Document::signalRedo, App::Document::signalRelabelObject, App::Document::signalRestoreDocument, App::Document::signalSaveDocument, App::Application::signalShowHidden, App::Document::signalSkipRecompute, App::Application::signalStartRestoreDocument, App::Document::signalTouchedObject, App::Document::signalTransactionAppend, App::Document::signalTransactionRemove, App::Document::signalUndo, slotActivatedObject(), slotChangedObject(), slotChangePropertyEditor(), slotDeletedObject(), slotFinishImportObjects(), slotFinishRestoreDocument(), slotFinishRestoreObject(), slotNewObject(), slotRecomputed(), slotRedoDocument(), slotRelabelObject(), slotShowHidden(), slotSkipRecompute(), slotStartRestoreDocument(), slotTouchedObject(), slotTransactionAppend(), slotTransactionRemove(), and slotUndoDocument().
Document::~Document | ( | ) |
References Gui::DocumentP::baseViews, Gui::DocumentP::connectActObject, Gui::DocumentP::connectChangeDocument, Gui::DocumentP::connectChangePropertyEditor, Gui::DocumentP::connectCngObject, Gui::DocumentP::connectDelObject, Gui::DocumentP::connectExportObjects, Gui::DocumentP::connectFinishImportObjects, Gui::DocumentP::connectFinishLoadDocument, Gui::DocumentP::connectFinishRestoreObject, Gui::DocumentP::connectImportObjects, Gui::DocumentP::connectNewObject, Gui::DocumentP::connectRecomputed, Gui::DocumentP::connectRedoDocument, Gui::DocumentP::connectRenObject, Gui::DocumentP::connectRestDocument, Gui::DocumentP::connectSaveDocument, Gui::DocumentP::connectShowHidden, Gui::DocumentP::connectSkipRecompute, Gui::DocumentP::connectStartLoadDocument, Gui::DocumentP::connectTouchedObject, Gui::DocumentP::connectTransactionAppend, Gui::DocumentP::connectTransactionRemove, and Gui::DocumentP::connectUndoDocument.
void Document::abortCommand | ( | void | ) |
Abort the Undo transaction on the document.
References App::Document::abortTransaction(), and getDocument().
Referenced by MeshGui::ViewProviderMesh::clipMeshCallback(), ReverseEngineeringGui::SegmentationManual::createSegment(), SketcherGui::ViewProviderSketch::mouseButtonPressed(), PartGui::TaskDlgAttacher::reject(), and MeshGui::ViewProviderMesh::trimMeshCallback().
void Document::addRootObjectsToGroup | ( | const std::vector< App::DocumentObject * > & | obj, |
App::DocumentObjectGroup * | grp | ||
) |
Add all root objects of the given array to a group.
References Gui::ViewProvider::claimChildren(), and getViewProvider().
|
protected |
void Document::attachView | ( | Gui::BaseView * | pcView, |
bool | bPassiv = false |
||
) |
Attach a view (get called by the MDIView constructor)
References Gui::DocumentP::baseViews, and Gui::DocumentP::passiveViews.
Referenced by Gui::BaseView::setDocument().
void Document::beforeDelete | ( | ) |
called by Application before being deleted
References Gui::Application::editDocument(), Gui::Application::Instance, and Gui::Application::setEditDocument().
handles the application close event
This method checks if the document can be closed.
It checks on the save state of the document and is able to abort the closing.
References Gui::ControlSingleton::activeDialog(), Gui::MainWindow::confirmSave(), Gui::Control(), getActiveView(), getDocument(), App::PropertyXLink::getDocumentInList(), Gui::TaskView::TaskDialog::getDocumentName(), Gui::getMainWindow(), App::PropertyString::getValue(), isModified(), App::Document::Label, App::Document::PartialDoc, save(), and App::Document::TempDoc.
Gui::MDIView * Document::cloneView | ( | Gui::MDIView * | oldview | ) |
Create a clone of the given view.
References Gui::View3DInventorViewer::addViewProvider(), Base::BaseClass::getClassTypeId(), Gui::getMainWindow(), Gui::View3DInventorViewer::getOverrideMode(), Base::BaseClass::getTypeId(), Gui::View3DInventor::getViewer(), getViewProvider(), Gui::View3DInventorViewer::hasAxisCross(), Gui::View3DInventorViewer::removeViewProvider(), Gui::View3DInventorViewer::resetEditingViewProvider(), Gui::View3DInventorViewer::setAxisCross(), Gui::View3DInventorViewer::setEditingViewProvider(), and Gui::View3DInventorViewer::setOverrideMode().
void Document::commitCommand | ( | void | ) |
Commit the Undo transaction on the document.
References App::Document::commitTransaction(), and getDocument().
Referenced by PartGui::TaskDlgAttacher::accept(), Gui::TaskCSysDragger::accept(), Gui::ManualAlignment::align(), MeshGui::ViewProviderMesh::clipMeshCallback(), PartGui::DlgPrimitives::createPrimitive(), ReverseEngineeringGui::SegmentationManual::createSegment(), PointsGui::ViewProviderScattered::cut(), PointsGui::ViewProviderStructured::cut(), MeshGui::ViewProviderMesh::fillHole(), MeshGui::ViewProviderMesh::markPartCallback(), SketcherGui::ViewProviderSketch::mouseButtonPressed(), MeshGui::DlgRegularSolidImp::on_createSolidButton_clicked(), MeshGui::ViewProviderMesh::partMeshCallback(), MeshGui::ViewProviderMesh::segmMeshCallback(), and MeshGui::ViewProviderMesh::trimMeshCallback().
MDIView * Document::createView | ( | const Base::Type & | typeId | ) |
Create a new view.
References Gui::View3DInventorViewer::addViewProvider(), Gui::MainWindow::addWindow(), Base::BaseClass::getClassTypeId(), getDocument(), Gui::getMainWindow(), getMDIViewsOfType(), Gui::View3DInventorViewer::getOverrideMode(), App::PropertyString::getValue(), Gui::View3DInventor::getViewer(), getViewProvider(), Base::Type::isDerivedFrom(), isModified(), App::Document::Label, Gui::View3DInventor::onMsg(), Gui::View3DInventorViewer::removeViewProvider(), saveCameraSettings(), and Gui::View3DInventorViewer::setOverrideMode().
Referenced by StdCmdViewCreate::activated(), setActiveView(), and Gui::Application::slotNewDocument().
void Document::detachView | ( | Gui::BaseView * | pcView, |
bool | bPassiv = false |
||
) |
Detach a view (get called by the MDIView destructor)
References Gui::DocumentP::baseViews, DraftVecUtils::find(), getDocument(), App::PropertyXLink::getDocumentInList(), and Gui::DocumentP::passiveViews.
void Document::exportObjects | ( | const std::vector< App::DocumentObject * > & | obj, |
Base::Writer & | writer | ||
) |
References Base::Writer::decInd(), App::Expand, Gui::Application::getDocument(), App::ExtensionContainer::hasExtensions(), Base::Writer::incInd(), Base::Writer::ind(), Gui::Application::Instance, Base::Writer::isForceXML(), App::ExtensionContainer::Save(), Base::Writer::setForceXML(), and Base::Writer::Stream().
Referenced by Document(), and Gui::MergeDocuments::SaveDocFile().
MDIView * Document::getActiveView | ( | void | ) | const |
Getter for the active view.
References Gui::MainWindow::activeWindow(), Base::BaseClass::getClassTypeId(), Gui::getMainWindow(), getMDIViews(), and Gui::MainWindow::windows().
Referenced by StdCmdViewCreate::activated(), SketcherGui::ViewProviderSketch::activateHandler(), Gui::Application::activeView(), Gui::SelectionSingleton::addSelection(), canClose(), TechDrawGui::Grabber3d::copyActiveViewToSvgFile(), Gui::ViewProviderDocumentObject::getActiveView(), getInEdit(), Gui::Command::isViewOfType(), SketcherGui::ViewProviderSketch::purgeHandler(), Gui::SelectionSingleton::rmvPreselect(), sendMsgToFirstView(), setActiveView(), setEdit(), setEditingTransform(), Gui::SelectionSingleton::setPreselect(), Gui::Application::sExport(), Gui::Application::slotActiveDocument(), Gui::Application::sSetActiveDocument(), and SketcherGui::ViewProviderSketch::updateData().
ViewProvider * Document::getAnnotationViewProvider | ( | const char * | name | ) | const |
get an annotation view provider
Referenced by Gui::View3DInventorPy::removeAnnotation().
const char * Document::getCameraSettings | ( | ) | const |
Referenced by SaveDocFile().
App::Document * Document::getDocument | ( | void | ) | const |
Referenced by abortCommand(), Gui::Dialog::DlgMacroExecuteImp::accept(), Gui::TaskCSysDragger::accept(), Gui::MacroCommand::activated(), StdCmdImport::activated(), StdCmdToggleSelectability::activated(), Gui::RecentMacrosAction::activateFile(), PartGui::FaceColors::Private::addFacesToSelection(), canClose(), Gui::View3DInventorViewer::checkGroupOnTop(), commitCommand(), Gui::TreeWidget::contextMenuEvent(), ReverseEngineeringGui::SegmentationManual::createSegment(), createView(), Gui::DocumentIndex::data(), detachView(), Gui::View3DInventorViewer::dropEvent(), Gui::TreeWidget::dropEvent(), ReverseEngineeringGui::SegmentationManual::Private::findGeometry(), Gui::ManualAlignment::finish(), Gui::LinkInfo::getDocName(), Gui::Command::getDocument(), getRedoVector(), getUndoVector(), getViewProviderByName(), hasPendingCommand(), Gui::Command::isActiveObjectValid(), Gui::DAG::Model::Model(), Gui::TreeWidget::onAllowPartialRecompute(), Gui::TreeWidget::onCreateGroup(), Gui::Application::onLastWindowClosed(), Gui::TreeWidget::onMarkRecompute(), Gui::MDIView::onRelabel(), DrawingGui::DrawingView::onRelabel(), Gui::TreeWidget::onReloadDoc(), Gui::View3DInventor::onRename(), Gui::TreeWidget::onSelectDependents(), Gui::TreeWidget::onSkipRecompute(), openCommand(), MeshPartGui::CurveOnMeshHandler::recomputeDocument(), redo(), save(), saveAs(), saveCopy(), Gui::DocumentItem::selectItems(), Gui::Application::setActiveDocument(), Gui::DocumentItem::setData(), Gui::View3DInventorViewer::setDocument(), setEdit(), Gui::DocumentItem::setShowHidden(), Gui::DocumentItem::showHidden(), slotChangePropertyEditor(), Gui::ElementColors::slotDeleteDocument(), Gui::DocumentItem::slotNewObject(), Gui::Application::sSetActiveDocument(), Gui::TreeWidget::startItemSearch(), undo(), Gui::DocumentObjectData::updateChildren(), and PartDesignGui::ViewProviderBody::updateOriginDatumSize().
const Base::Matrix4D & Document::getEditingTransform | ( | ) | const |
Gui::MDIView * Document::getEditingViewOfViewProvider | ( | Gui::ViewProvider * | vp | ) | const |
ViewProvider * Document::getInEdit | ( | ViewProviderDocumentObject ** | parentVp = nullptr , |
std::string * | subname = nullptr , |
||
int * | mode = nullptr , |
||
std::string * | subElement = nullptr |
||
) | const |
get the in edit ViewProvider or NULL
References getActiveView(), Gui::View3DInventor::getViewer(), and Gui::View3DInventorViewer::isEditingViewProvider().
Referenced by CmdSketcherConstrainHorizontal::applyConstraint(), CmdSketcherConstrainVertical::applyConstraint(), CmdSketcherConstrainLock::applyConstraint(), CmdSketcherConstrainBlock::applyConstraint(), CmdSketcherConstrainCoincident::applyConstraint(), CmdSketcherConstrainDistance::applyConstraint(), CmdSketcherConstrainPointOnObject::applyConstraint(), CmdSketcherConstrainDistanceX::applyConstraint(), CmdSketcherConstrainDistanceY::applyConstraint(), CmdSketcherConstrainParallel::applyConstraint(), CmdSketcherConstrainPerpendicular::applyConstraint(), CmdSketcherConstrainTangent::applyConstraint(), CmdSketcherConstrainRadius::applyConstraint(), CmdSketcherConstrainDiameter::applyConstraint(), CmdSketcherConstrainRadiam::applyConstraint(), CmdSketcherConstrainAngle::applyConstraint(), CmdSketcherConstrainEqual::applyConstraint(), and CmdSketcherConstrainSymmetric::applyConstraint().
std::list< MDIView * > Document::getMDIViews | ( | ) | const |
returns a list of all attached MDI views
References Gui::DocumentP::baseViews.
Referenced by TechDrawGui::DrawGuiUtil::get3DDirAndRot(), getActiveView(), TechDrawGui::QGVPage::getDevicePixelRatio(), RestoreDocFile(), Save(), SaveDocFile(), setActiveWindow(), and setModified().
std::list< MDIView * > Document::getMDIViewsOfType | ( | const Base::Type & | typeId | ) | const |
returns a list of all MDI views of a certain type
References Gui::DocumentP::baseViews.
Referenced by DrawingGui::TaskProjection::accept(), TechDrawGui::TaskProjection::accept(), StdCmdImport::activated(), createView(), getEditingViewOfViewProvider(), Gui::ViewProviderTextDocument::getMDIView(), getViewOfNode(), and sendMsgToFirstView().
|
virtual |
This method is used to get the size of objects It is not meant to have the exact size, it is more or less an estimation which runs fast! Is it two bytes or a GB?
Implements Base::Persistence.
|
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 Base::BaseClass.
Referenced by Gui::Application::sActiveDocument(), Gui::Application::sEditDocument(), Gui::Application::sGetDocument(), and Gui::Application::slotActiveDocument().
std::vector< std::string > Document::getRedoVector | ( | void | ) | const |
Get an Redo string vector with the Redo names.
Get a string vector with the 'Redo' actions.
References App::Document::getAvailableRedoNames(), and getDocument().
std::vector< std::string > Document::getUndoVector | ( | void | ) | const |
Get an Undo string vector with the Undo names.
Get a string vector with the 'Undo' actions.
References App::Document::getAvailableUndoNames(), and getDocument().
Referenced by TechDrawGui::TaskLeaderLine::removeFeature(), and TechDrawGui::TaskRichAnno::removeFeature().
Gui::MDIView * Document::getViewOfNode | ( | SoNode * | node | ) | const |
References Base::BaseClass::getClassTypeId(), and getMDIViewsOfType().
Referenced by Gui::Application::editViewOfNode(), Gui::ViewProviderDocumentObject::getViewOfNode(), and getViewOfViewProvider().
Gui::MDIView * Document::getViewOfViewProvider | ( | const Gui::ViewProvider * | vp | ) | const |
ViewProvider * Document::getViewProvider | ( | const App::DocumentObject * | Feat | ) | const |
Get the view provider for that object.
Referenced by addRootObjectsToGroup(), Gui::AlignmentGroup::addView(), cloneView(), TechDrawGui::TaskHatch::createHatch(), createView(), Gui::ViewProviderDocumentObject::findFrontRootOfType(), ReverseEngineeringGui::SegmentationManual::Private::findGeometry(), PartGui::DlgExtrusion::findShapes(), Gui::ViewProviderDocumentObject::getElementPicked(), TechDrawGui::QGIView::getFrameState(), TechDrawGui::ViewProviderDrawingView::getMDIViewPage(), TechDrawGui::ViewProviderTemplate::getMDIViewPage(), TechDrawGui::ViewProviderDrawingView::getQView(), Gui::LinkInfo::getView(), TechDrawGui::QGIView::getViewProvider(), Gui::ViewProviderDocumentObjectGroup::getViewProviders(), Gui::MergeDocuments::importObject(), TechDrawGui::TaskLinkDim::loadToTree(), Gui::DAG::Model::Model(), TechDrawGui::ViewProviderDrawingView::onGuiRepaint(), FemGui::ActiveAnalysisObserver::setActiveObject(), TechDrawGui::ViewProviderPage::setTemplateMarkers(), PartDesignGui::ViewProviderBody::setVisualBodyMode(), slotActivatedObject(), slotChangedObject(), slotDeletedObject(), slotFinishRestoreDocument(), slotFinishRestoreObject(), slotNewObject(), slotRelabelObject(), slotTransactionAppend(), TechDrawGui::TaskCosVertex::TaskCosVertex(), TechDrawGui::TaskDetail::TaskDetail(), TechDrawGui::TaskLeaderLine::TaskLeaderLine(), TechDrawGui::TaskProjGroup::TaskProjGroup(), TechDrawGui::TaskRichAnno::TaskRichAnno(), RobotGui::TaskTrajectory::TaskTrajectory(), RobotGui::TrajectorySimulate::TrajectorySimulate(), PartDesignGui::ViewProviderBody::unifyVisualProperty(), MeshGui::ViewProviderMeshCurvature::updateData(), and TechDrawGui::ViewProviderGeomHatch::updateGraphic().
ViewProviderDocumentObject * Document::getViewProvider | ( | SoNode * | node | ) | const |
ViewProvider * Document::getViewProviderByName | ( | const char * | name | ) | const |
References getDocument(), and App::Document::getObject().
Referenced by StdCmdToggleSelectability::activated(), importObjects(), isShow(), RestoreDocFile(), setHide(), setPos(), and setShow().
ViewProviderDocumentObject * Document::getViewProviderByPathFromHead | ( | SoPath * | path | ) | const |
helper for selection
ViewProviderDocumentObject * Document::getViewProviderByPathFromTail | ( | SoPath * | path | ) | const |
helper for selection
std::vector< std::pair< ViewProviderDocumentObject *, int > > Document::getViewProvidersByPath | ( | SoPath * | path | ) | const |
Get all view providers along the path and the corresponding node index in the path.
std::vector< ViewProvider * > Document::getViewProvidersOfType | ( | const Base::Type & | typeId | ) | const |
Referenced by Gui::SoFCUnifiedSelection::doAction(), and Gui::View3DInventorViewer::setOverrideMode().
bool Document::hasPendingCommand | ( | void | ) | const |
Check if an Undo transaction is open.
References getDocument(), and App::Document::hasPendingTransaction().
Referenced by PartGui::TaskDlgAttacher::open().
void Document::importObjects | ( | const std::vector< App::DocumentObject * > & | obj, |
Base::Reader & | reader, | ||
const std::map< std::string, std::string > & | nameMapping | ||
) |
bool Document::isLastView | ( | void | ) |
References Gui::DocumentP::baseViews.
bool Document::isModified | ( | ) | const |
Referenced by canClose(), createView(), Gui::ViewProviderDocumentObject::onChanged(), slotChangedObject(), and slotTouchedObject().
bool Document::isPerformingTransaction | ( | ) | const |
Check if the document is performing undo/redo transaction.
Unlike App::Document::isPerformingTransaction(), Gui::Document will report transacting when triggering grouped undo/redo in other documents
bool Document::isShow | ( | const char * | name | ) |
test if the feature is in show
References getViewProviderByName(), and Gui::ViewProvider::isShow().
void Document::onRelabel | ( | void | ) |
call relabel to all attached views
References Gui::DocumentP::baseViews, Gui::DocumentP::connectChangeDocumentBlocker, Base::Console(), Base::ConsoleSingleton::Log(), and Gui::DocumentP::passiveViews.
void Document::onUpdate | ( | void | ) |
call update on all attached views
References Gui::DocumentP::baseViews, Base::Console(), Base::ConsoleSingleton::Log(), and Gui::DocumentP::passiveViews.
Referenced by Gui::Application::updateActive().
void Document::openCommand | ( | const char * | sName = nullptr | ) |
Open a new Undo transaction on the document.
Open a new Undo transaction on the active document This method opens a new UNDO transaction on the active document.
This transaction will later appear in the UNDO/REDO dialog with the name of the command. If the user recall the transaction everything changed on the document between OpenCommand() and CommitCommand will be undone (or redone). You can use an alternative name for the operation default is the command name.
References getDocument(), and App::Document::openTransaction().
Referenced by Gui::ManualAlignment::align(), MeshGui::ViewProviderMesh::clipMeshCallback(), PartGui::DlgPrimitives::createPrimitive(), ReverseEngineeringGui::SegmentationManual::createSegment(), PointsGui::ViewProviderScattered::cut(), PointsGui::ViewProviderStructured::cut(), MeshGui::ViewProviderMesh::fillHole(), MeshGui::ViewProviderMesh::markPartCallback(), SketcherGui::ViewProviderSketch::mouseButtonPressed(), MeshGui::DlgRegularSolidImp::on_createSolidButton_clicked(), PartGui::TaskDlgAttacher::open(), MeshGui::ViewProviderMesh::partMeshCallback(), MeshGui::ViewProviderMesh::segmMeshCallback(), and MeshGui::ViewProviderMesh::trimMeshCallback().
void Document::redo | ( | int | iSteps | ) |
Will REDO one or more steps.
References App::GetApplication(), getDocument(), App::Document::redo(), and App::Application::signalRedo.
Referenced by Gui::View3DInventor::onMsg(), and SpreadsheetGui::SheetView::onMsg().
void Document::removeAnnotationViewProvider | ( | const char * | name | ) |
remove an annotation view provider
References Gui::DocumentP::baseViews, Gui::View3DInventor::getViewer(), and Gui::View3DInventorViewer::removeViewProvider().
Referenced by Gui::View3DInventorPy::removeAnnotation(), and setAnnotationViewProvider().
void Document::resetEdit | ( | void | ) |
reset from edit mode, this cause all document to reset edit
References Gui::Application::Instance, and Gui::Application::setEditDocument().
Referenced by Gui::TaskCSysDragger::accept(), StdCmdTransformManip::activated(), Gui::ViewProvider::eventCallback(), Gui::TaskView::TaskView::keyPressEvent(), FemGui::TaskFemConstraint::onButtonWizOk(), and PartGui::FaceColors::slotUndoDocument().
|
virtual |
This method is used to restore properties from an XML document.
Loads a separate XML file from the projects file with information about the view providers.
Implements Base::Persistence.
References Base::XMLReader::addFile(), and Gui::isRestoring.
Referenced by Document().
|
virtual |
This method is used to restore large amounts of data from a binary file.
Restores the properties of the view providers.
Reimplemented from Base::Persistence.
References Base::Console(), Base::ConsoleSingleton::Error(), Gui::ExpandItem, Base::Reader::getFileVersion(), getMDIViews(), getViewProviderByName(), Base::Reader::initLocalReader(), Gui::TreeWidget::instance(), Gui::ViewProvider::Restore(), saveCameraSettings(), setModified(), and signalExpandObject.
|
virtual |
This method is used to save properties or very small amounts of data to an XML document.
Adds a separate XML file to the projects file that contains information about the view providers.
Implements Base::Persistence.
References Base::Writer::addFile(), App::GetApplication(), ParameterGrp::GetBool(), Base::BaseClass::getClassTypeId(), ParameterGrp::GetInt(), getMDIViews(), App::Application::GetParameterGroupByPath(), Gui::View3DInventor::getViewer(), Base::Writer::isForceXML(), Gui::Thumbnail::Save(), Gui::Thumbnail::setFileName(), Gui::Thumbnail::setSize(), Gui::Thumbnail::setViewer(), and Gui::DocumentP::thumb.
Referenced by Document().
bool Document::save | ( | void | ) |
Save the document.
References Gui::Command::Doc, App::Document::getDependentDocuments(), Gui::Application::getDocument(), getDocument(), Gui::getMainWindow(), Gui::Application::Instance, App::Document::mustExecute(), App::Document::PartialDoc, saveAs(), setModified(), and App::Document::TempDoc.
Referenced by StdCmdSave::activated(), Gui::TextDocumentEditorView::canClose(), canClose(), Mod.Show.mTempoVis.TempoVis::modify(), Mod.Show.mTempoVis.TempoVis::modifyVPProperty(), Gui::TextDocumentEditorView::onMsg(), Gui::View3DInventor::onMsg(), SpreadsheetGui::SheetView::onMsg(), draftguitools.gui_setstyle.Draft_SetStyle_TaskPanel::onSaveStyle(), and Mod.Show.mTempoVis.TempoVis::saveCamera().
|
static |
Save all open document.
References Gui::Command::Doc, App::GetApplication(), App::Document::getDependentDocuments(), Gui::Application::getDocument(), App::Application::getDocuments(), Gui::getMainWindow(), Gui::Application::Instance, App::Document::PartialDoc, and App::Document::TempDoc.
Referenced by StdCmdSaveAll::activated().
bool Document::saveAs | ( | void | ) |
Save the document under a new file name.
References Gui::MainWindow::appendRecentFile(), Gui::Command::Doc, Base::Tools::escapedUnicodeFromUtf8(), Base::Tools::escapeEncodeFilename(), App::GetApplication(), getDocument(), App::Application::getDocumentName(), Gui::getMainWindow(), Gui::FileDialog::getSaveFileName(), setModified(), and Gui::MainWindow::showMessage().
Referenced by StdCmdSaveAs::activated(), PathScripts.PathToolBitCmd.CommandToolBitSave::Activated(), PathScripts.PathToolBitCmd.CommandToolBitSave::GetResources(), PathScripts.PathToolBitCmd.CommandToolBitSave::IsActive(), Gui::View3DInventor::onMsg(), SpreadsheetGui::SheetView::onMsg(), and save().
bool Document::saveCameraSettings | ( | const char * | settings | ) | const |
Referenced by createView(), RestoreDocFile(), and SaveDocFile().
bool Document::saveCopy | ( | void | ) |
Save a copy of the document under a new file name.
References Gui::Command::Doc, Base::Tools::escapeEncodeFilename(), App::GetApplication(), getDocument(), App::Application::getDocumentName(), Gui::getMainWindow(), Gui::FileDialog::getSaveFileName(), and Gui::MainWindow::showMessage().
Referenced by StdCmdSaveCopy::activated(), and Gui::View3DInventor::onMsg().
|
virtual |
This method is used to save large amounts of data to a binary file.
Saves the properties of the view providers.
Reimplemented from Base::Persistence.
References Base::Writer::decInd(), Base::Persistence::encodeAttribute(), App::Expand, getCameraSettings(), getMDIViews(), Base::Writer::incInd(), Base::Writer::ind(), Gui::TreeWidget::instance(), Base::Writer::isForceXML(), saveCameraSettings(), Base::Writer::setForceXML(), and Base::Writer::Stream().
bool Document::sendMsgToFirstView | ( | const Base::Type & | typeId, |
const char * | pMsg, | ||
const char ** | ppReturn | ||
) |
Sends the message pMsg to the views of type typeid and stops with the first view that supports the message and returns ppReturn.
The very first checked view is the current active view. If a view supports the message true is returned and false otherwise.
References getActiveView(), and getMDIViewsOfType().
bool Document::sendMsgToViews | ( | const char * | pMsg | ) |
send messages to the active view Send a specific massage to the active view and is able to receive a return message
send messages to the active view
send Messages to all views
References Gui::DocumentP::baseViews, and Gui::DocumentP::passiveViews.
MDIView * Document::setActiveView | ( | ViewProviderDocumentObject * | vp = nullptr , |
Base::Type | typeId = Base::Type() |
||
) |
References Gui::DocumentP::baseViews, Gui::MDIView::containsViewProvider(), createView(), getActiveView(), Base::BaseClass::getClassTypeId(), Gui::getMainWindow(), Gui::ViewProvider::getMDIView(), Gui::ViewProviderDocumentObject::getObject(), Gui::Application::getViewProvider(), Gui::Application::Instance, Base::Type::isBad(), and Gui::MainWindow::setActiveWindow().
Referenced by SpreadsheetGui::ViewProviderSheet::beforeDelete(), Gui::TreeWidget::dropEvent(), Gui::TreeWidget::mouseDoubleClickEvent(), Gui::Application::reopen(), setEdit(), and Gui::TreeWidget::syncView().
void Document::setActiveWindow | ( | Gui::MDIView * | view | ) |
Document::setActiveWindow If this document is active and the view is part of it then it will be activated.
If the document is not active of the view is already active nothing is done.
view |
References Gui::MainWindow::activeWindow(), DraftVecUtils::find(), Gui::getMainWindow(), getMDIViews(), and Gui::MainWindow::setActiveWindow().
void Document::setAnnotationViewProvider | ( | const char * | name, |
ViewProvider * | pcProvider | ||
) |
set an annotation view provider
References Gui::View3DInventorViewer::addViewProvider(), Gui::DocumentP::baseViews, Gui::View3DInventor::getViewer(), and removeAnnotationViewProvider().
Referenced by Gui::MainWindow::customEvent(), and Gui::View3DInventorPy::setAnnotation().
bool Document::setEdit | ( | Gui::ViewProvider * | p, |
int | ModNum = 0 , |
||
const char * | subname = nullptr |
||
) |
set the ViewProvider in special edit mode
References Gui::ControlSingleton::activeDialog(), Gui::Control(), Data::ComplexGeoData::findElementName(), getActiveView(), Base::Persistence::getClassTypeId(), Gui::SelectionSingleton::getCompleteSelection(), Gui::ViewProviderDocumentObject::getDocument(), getDocument(), App::DocumentObject::getFullName(), Gui::getMainWindow(), Gui::ViewProviderDocumentObject::getObject(), App::DocumentObject::getSubObject(), Gui::View3DInventor::getViewer(), Gui::Application::getViewProvider(), Gui::Application::Instance, Gui::NoResolve, Gui::Selection(), setActiveView(), Gui::MainWindow::setActiveWindow(), Gui::TaskView::TaskDialog::setDocumentName(), setEdit(), Gui::Application::setEditDocument(), Gui::View3DInventorViewer::setEditingViewProvider(), App::AutoTransaction::setEnable(), and signalInEdit.
Referenced by StdCmdTransformManip::activated(), Gui::ViewProviderLink::doubleClicked(), ArchGrid.ViewProviderArchGrid::doubleClicked(), ArchReference.ViewProviderArchReference::doubleClicked(), draftviewproviders.view_dimension.ViewProviderDimensionBase::doubleClicked(), draftviewproviders.view_hatch.ViewProviderDraftHatch::doubleClicked(), draftviewproviders.view_text.ViewProviderText::doubleClicked(), PathScripts.PathPropertyBagGui.ViewProvider::doubleClicked(), PathScripts.PathSetupSheetGui.ViewProvider::doubleClicked(), PathScripts.PathToolBitGui.ViewProvider::doubleClicked(), Spreadsheet_legacy.ViewProviderSpreadsheet::doubleClicked(), Gui::ViewProviderAnnotationLabel::doubleClicked(), Gui::ViewProviderMaterialObject::doubleClicked(), FemGui::ViewProviderFemPostFunction::doubleClicked(), FemGui::ViewProviderFemPostObject::doubleClicked(), RaytracingGui::ViewProviderLux::doubleClicked(), RaytracingGui::ViewProviderPovray::doubleClicked(), Gui::ViewProviderDragger::doubleClicked(), SketcherGui::ViewProviderSketch::doubleClicked(), ArchSchedule.CommandArchSchedule::IsActive(), setEdit(), PartDesignGui::ViewProviderShapeBinder::setupContextMenu(), PathScripts.PathIconViewProvider.ViewProvider::setupContextMenu(), PathScripts.PathJobGui.ViewProvider::setupContextMenu(), PathScripts.PathOpGui.ViewProvider::setupContextMenu(), PathScripts.PathToolControllerGui.ViewProvider::setupContextMenu(), and Gui::ViewProviderDocumentObject::startDefaultEditMode().
void Document::setEditingTransform | ( | const Base::Matrix4D & | mat | ) |
void Document::setHide | ( | const char * | name | ) |
set the feature in Noshow
References Base::Persistence::getClassTypeId(), Base::Persistence::getTypeId(), getViewProviderByName(), and Base::Type::isDerivedFrom().
Referenced by Gui::Application::sHide().
void Document::setInEdit | ( | ViewProviderDocumentObject * | parentVp, |
const char * | subname | ||
) |
set the in edit ViewProvider subname reference
void Document::setModified | ( | bool | b | ) |
Observer message from the App doc.
References getMDIViews().
Referenced by Gui::Dialog::DocumentRecovery::accept(), Gui::Application::importFrom(), Gui::ViewProviderDocumentObject::onChanged(), RestoreDocFile(), save(), saveAs(), slotChangedObject(), slotChangePropertyEditor(), slotDeletedObject(), slotFinishRestoreDocument(), slotNewObject(), and slotTouchedObject().
void Document::setPos | ( | const char * | name, |
const Base::Matrix4D & | rclMtrx | ||
) |
set the feature transformation (only viewing)
set the feature in Noshow
References getViewProviderByName(), and Gui::ViewProvider::setTransformation().
void Document::setShow | ( | const char * | name | ) |
put the feature in show
References Base::Persistence::getClassTypeId(), Base::Persistence::getTypeId(), getViewProviderByName(), and Base::Type::isDerivedFrom().
Referenced by Gui::Application::sShow().
|
protected |
References Base::Persistence::getClassTypeId(), getViewProvider(), Base::BaseClass::isDerivedFrom(), and signalActivatedObject.
Referenced by Document().
|
protected |
References Base::Persistence::getClassTypeId(), App::Property::getFullName(), App::DocumentObject::getFullName(), Gui::getMainWindow(), App::Property::getName(), getViewProvider(), Base::BaseClass::isDerivedFrom(), isModified(), App::Property::NoModify, setModified(), signalChangedObject, App::Property::testStatus(), Gui::ViewProvider::update(), and Gui::MainWindow::updateActions().
Referenced by Document().
|
protected |
References getDocument(), App::Property::getFullName(), and setModified().
Referenced by Document().
|
protected |
References Gui::DocumentP::baseViews, Gui::ViewProvider::beforeDelete(), Gui::Application::editDocument(), Base::Persistence::getClassTypeId(), Base::Persistence::getTypeId(), Gui::View3DInventor::getViewer(), getViewProvider(), Gui::Application::Instance, Base::Type::isDerivedFrom(), Gui::ViewProvider::onDelete(), Gui::View3DInventorViewer::removeViewProvider(), Gui::Application::setEditDocument(), setModified(), and signalDeletedObject.
Referenced by Document().
|
protected |
Referenced by Document().
|
protected |
|
protected |
References getViewProvider(), Gui::isRestoring, Gui::ViewProvider::setStatus(), and toggleInSceneGraph().
Referenced by Document().
|
protected |
This slot is connected to the App::Document::signalNewObject(...)
References Gui::View3DInventorViewer::addViewProvider(), Gui::ViewProviderDocumentObject::allowOverride(), Gui::ViewProviderDocumentObject::attach(), Gui::DocumentP::baseViews, Base::Persistence::getClassTypeId(), App::DocumentObject::getFullName(), Gui::ViewProvider::getRoot(), Base::Type::getTypeIfDerivedFrom(), Gui::View3DInventor::getViewer(), getViewProvider(), App::DocumentObject::getViewProviderName(), App::DocumentObject::getViewProviderNameStored(), Gui::ViewProviderDocumentObject::pcDocument, Gui::ViewProviderDocumentObject::reattach(), Gui::ViewProviderDocumentObject::setActiveMode(), setModified(), Gui::ViewProvider::setStatus(), signalNewObject, and Gui::ViewProviderDocumentObject::updateView().
Referenced by Document().
|
protected |
References Gui::getMainWindow(), Gui::MainWindow::updateActions(), and Gui::TreeWidget::updateStatus().
Referenced by Document().
|
protected |
References Gui::getMainWindow(), signalRedoDocument, and Gui::MainWindow::updateActions().
Referenced by Document().
|
protected |
References Base::Persistence::getClassTypeId(), getViewProvider(), Base::BaseClass::isDerivedFrom(), and signalRelabelObject.
Referenced by Document().
|
protected |
References Gui::Application::Instance, and Gui::Application::signalShowHidden.
Referenced by Document().
|
protected |
|
protected |
References Gui::DocumentP::connectActObjectBlocker.
Referenced by Document().
|
protected |
References App::DocumentObject::getFullName(), Gui::getMainWindow(), isModified(), setModified(), and Gui::MainWindow::updateActions().
Referenced by Document().
|
protected |
References App::Transaction::addObjectDel(), Base::Persistence::getClassTypeId(), getViewProvider(), and Base::BaseClass::isDerivedFrom().
Referenced by Document().
|
protected |
References App::Transaction::addObjectNew(), and Gui::ViewProvider::getRoot().
Referenced by Document().
|
protected |
References Gui::getMainWindow(), signalUndoDocument, and Gui::MainWindow::updateActions().
Referenced by Document().
void Document::toggleInSceneGraph | ( | ViewProvider * | vp | ) |
Add or remove view provider from scene graphs of all views.
It calls ViewProvider::canAddToSceneGraph() to decide whether to add the view provider or remove it
References Gui::DocumentP::baseViews, Gui::ViewProvider::canAddToSceneGraph(), Gui::ViewProvider::getRoot(), and Gui::View3DInventor::getViewer().
Referenced by Gui::ViewProviderPythonFeatureT< ViewProviderT >::onChanged(), and slotFinishRestoreObject().
void Document::undo | ( | int | iSteps | ) |
Will UNDO one or more steps.
References App::GetApplication(), getDocument(), App::Application::signalUndo, and App::Document::undo().
Referenced by Gui::View3DInventor::onMsg(), SpreadsheetGui::SheetView::onMsg(), TechDrawGui::TaskLeaderLine::removeFeature(), and TechDrawGui::TaskRichAnno::removeFeature().
|
friend |
|
mutable |
signal on activated Object
Referenced by slotActivatedObject(), slotFinishRestoreDocument(), and Gui::Application::slotNewDocument().
|
mutable |
signal on changed Object, the 2nd argument is the changed property of the referenced document object, not of the view provider
Referenced by PartDesignGui::ViewProviderBody::attach(), Gui::ViewProviderOriginGroupExtension::extensionAttach(), Gui::ViewProviderLink::finishRestoring(), Gui::DAG::Model::Model(), slotChangedObject(), and Gui::Application::slotNewDocument().
|
mutable |
signal on deleted Object
Referenced by Gui::DAG::Model::Model(), slotDeletedObject(), Gui::Application::slotNewDocument(), Gui::ManualAlignment::startAlignment(), and PartGui::TaskAttacher::TaskAttacher().
|
mutable |
signal on deleting Document
Referenced by PartGui::TaskAttacher::TaskAttacher().
|
mutable |
signal on changed Object, the 2nd argument is the highlite mode to use
Referenced by importObjects(), and RestoreDocFile().
|
mutable |
signal on changed Object, the 2nd argument is the highlite mode to use
Referenced by FemGui::ActiveAnalysisObserver::highlightActiveObject().
|
mutable |
signal on entering in edit mode
Referenced by Gui::DAG::Model::Model(), setEdit(), and Gui::Application::slotNewDocument().
|
mutable |
signal on new Object
Referenced by Gui::DAG::Model::Model(), Gui::Application::slotNewDocument(), and slotNewObject().
|
mutable |
signal on redo Document
Referenced by SketcherGui::ViewProviderSketch::setEdit(), and slotRedoDocument().
|
mutable |
signal on renamed Object
Referenced by Gui::Application::slotNewDocument(), and slotRelabelObject().
|
mutable |
signal on leaving edit mode
Referenced by Gui::DAG::Model::Model(), and Gui::Application::slotNewDocument().
|
mutable |
signal on scrolling to an object
|
mutable |
signal on changed ShowInTree property in view provider
|
mutable |
signal on undo Document
Referenced by PartGui::FaceColors::FaceColors(), SketcherGui::ViewProviderSketch::setEdit(), and slotUndoDocument().