#include <TaskSections.h>
Classes | |
| class | ShapeSelection |
Public Member Functions | |
| bool | accept () |
| void | checkOpenCommand () |
| void | open () |
| bool | reject () |
| SectionsPanel (ViewProviderSections *vp, Surface::Sections *obj) | |
| void | setEditedObject (Surface::Sections *obj) |
| ~SectionsPanel () | |
Public Member Functions inherited from Gui::SelectionObserver | |
| void | attachSelection () |
| Attaches to the selection. More... | |
| bool | blockSelection (bool block) |
| void | detachSelection () |
| Detaches from the selection. More... | |
| bool | isSelectionAttached () const |
| bool | isSelectionBlocked () const |
| SelectionObserver (bool attach=true, ResolveMode resolve=ResolveMode::OldStyleElement) | |
| Constructor. More... | |
| SelectionObserver (const Gui::ViewProviderDocumentObject *vp, bool attach=true, ResolveMode resolve=ResolveMode::OldStyleElement) | |
| Constructor. More... | |
| virtual | ~SelectionObserver () |
Public Member Functions inherited from Gui::DocumentObserver | |
| void | attachDocument (Document *) |
| Attaches to another document, the old document is not longer observed then. More... | |
| void | detachDocument () |
| Detaches from the current document, the document is not longer observed then. More... | |
| DocumentObserver () | |
| Constructor. More... | |
| DocumentObserver (Document *) | |
| virtual | ~DocumentObserver () |
Protected Types | |
| enum | SelectionMode { } |
Protected Member Functions | |
| void | changeEvent (QEvent *e) |
| virtual void | onSelectionChanged (const Gui::SelectionChanges &msg) |
| virtual void | slotDeletedObject (const Gui::ViewProviderDocumentObject &Obj) |
| Notifies when the object is about to be removed. More... | |
| virtual void | slotRedoDocument (const Gui::Document &Doc) |
| Notifies on redo. More... | |
| virtual void | slotUndoDocument (const Gui::Document &Doc) |
| Notifies on undo. More... | |
Protected Attributes | |
| bool | checkCommand |
| Surface::Sections * | editedObject |
| SelectionMode | selectionMode |
|
protected |
| SurfaceGui::SectionsPanel::SectionsPanel | ( | ViewProviderSections * | vp, |
| Surface::Sections * | obj | ||
| ) |
References checkCommand, draftgeoutils.intersections::connect(), selectionMode, and setEditedObject().
| SurfaceGui::SectionsPanel::~SectionsPanel | ( | ) |
| bool SurfaceGui::SectionsPanel::accept | ( | void | ) |
References SurfaceGui::ViewProviderSections::Edge, editedObject, App::DocumentObject::getStatusString(), App::PropertyLinkSubList::getSubListValues(), SurfaceGui::ViewProviderSections::highlightReferences(), App::DocumentObject::isValid(), Part::Feature::mustExecute(), Surface::Sections::NSections, App::DocumentObject::recomputeFeature(), Gui::SelectionSingleton::rmvSelectionGate(), Gui::Selection(), and selectionMode.
Referenced by SurfaceGui::TaskSections::accept(), femexamples.examplesgui.FemExamples::clicked(), femexamples.examplesgui.FemExamples::double_clicked(), ArchComponent.ComponentTaskPanel::editObject(), and PathScripts.PathToolBitLibraryGui.ToolBitLibrary::toolEdit().
|
protected |
| void SurfaceGui::SectionsPanel::checkOpenCommand | ( | ) |
References checkCommand, editedObject, App::PropertyString::getValue(), Gui::Command::hasPendingCommand(), App::DocumentObject::Label, and Gui::Command::openCommand().
Referenced by onSelectionChanged(), and open().
|
protectedvirtual |
| void SurfaceGui::SectionsPanel::open | ( | ) |
References checkOpenCommand(), Gui::SelectionSingleton::clearSelection(), SurfaceGui::ViewProviderSections::Edge, editedObject, App::PropertyLinkSubList::getSubListValues(), SurfaceGui::ViewProviderSections::highlightReferences(), Surface::Sections::NSections, and Gui::Selection().
Referenced by SurfaceGui::TaskSections::open().
| bool SurfaceGui::SectionsPanel::reject | ( | void | ) |
References SurfaceGui::ViewProviderSections::Edge, editedObject, App::PropertyLinkSubList::getSubListValues(), SurfaceGui::ViewProviderSections::highlightReferences(), Surface::Sections::NSections, Gui::SelectionSingleton::rmvSelectionGate(), Gui::Selection(), and selectionMode.
Referenced by draftguitools.gui_hatch.Draft_Hatch_TaskPanel::accept(), draftguitools.gui_setstyle.Draft_SetStyle_TaskPanel::accept(), drafttaskpanels.task_shapestring.ShapeStringTaskPanelCmd::accept(), drafttaskpanels.task_shapestring.ShapeStringTaskPanelEdit::accept(), drafttaskpanels.task_shapestring.ShapeStringTaskPanel::action(), femexamples.examplesgui.FemExamples::clicked(), SurfaceGui::TaskSections::reject(), and PathScripts.PathToolBitLibraryGui.ToolBitLibrary::toolEdit().
| void SurfaceGui::SectionsPanel::setEditedObject | ( | Surface::Sections * | obj | ) |
References Gui::DocumentObserver::attachDocument(), editedObject, App::DocumentObject::getDocument(), App::PropertyLinkSubList::getSubValues(), App::PropertyLinkSubList::getValues(), Gui::Application::Instance, and Surface::Sections::NSections.
Referenced by SectionsPanel(), and SurfaceGui::TaskSections::setEditedObject().
|
protectedvirtual |
Notifies when the object is about to be removed.
Reimplemented from Gui::DocumentObserver.
References SurfaceGui::ViewProviderSections::Edge, editedObject, App::PropertyLinkSubList::getSubListValues(), SurfaceGui::ViewProviderSections::highlightReferences(), and Surface::Sections::NSections.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
Referenced by checkOpenCommand(), SectionsPanel(), slotRedoDocument(), and slotUndoDocument().
|
protected |
Referenced by accept(), checkOpenCommand(), onSelectionChanged(), open(), reject(), setEditedObject(), and slotDeletedObject().
|
protected |