#include <TaskLeaderLine.h>
◆ TaskLeaderLine() [1/2]
References draftgeoutils.intersections::connect(), TechDrawGui::QGSPage::findQViewForDocObj(), Gui::Application::getDocument(), App::DocumentObject::getDocument(), TechDrawGui::ViewProviderPage::getMDIViewPage(), TechDrawGui::MDIViewPage::getQGSPage(), TechDrawGui::MDIViewPage::getQGVPage(), Gui::Document::getViewProvider(), Gui::Application::Instance, onCancelEditClicked(), onTrackerClicked(), and setUiPrimary().
◆ TaskLeaderLine() [2/2]
References draftgeoutils.intersections::connect(), Base::Console(), Base::ConsoleSingleton::Error(), TechDraw::DrawView::findParentPage(), TechDrawGui::QGSPage::findQViewForDocObj(), Base::Persistence::getClassTypeId(), Gui::Application::getDocument(), App::DocumentObject::getDocument(), TechDrawGui::ViewProviderLeader::getFeature(), TechDrawGui::ViewProviderPage::getMDIViewPage(), TechDrawGui::MDIViewPage::getQGSPage(), TechDrawGui::MDIViewPage::getQGVPage(), App::PropertyLink::getValue(), App::PropertyQuantity::getValue(), Gui::Document::getViewProvider(), TechDrawGui::Rez::guiX(), Gui::Application::Instance, TechDraw::DrawLeaderLine::LeaderParent, onCancelEditClicked(), onTrackerClicked(), saveState(), setUiEdit(), TechDraw::DrawView::X, and TechDraw::DrawView::Y.
◆ ~TaskLeaderLine()
TaskLeaderLine::~TaskLeaderLine |
( |
| ) |
|
◆ abandonEditSession()
void TaskLeaderLine::abandonEditSession |
( |
void |
| ) |
|
|
protected |
◆ accept()
bool TaskLeaderLine::accept |
( |
void |
| ) |
|
|
virtual |
References abandonEditSession(), createLeaderFeature(), getCreateMode(), Gui::Application::getDocument(), App::DocumentObject::getDocument(), Gui::Command::Gui, Gui::Application::Instance, removeTracker(), and updateLeaderFeature().
Referenced by TechDrawGui::TaskDlgLeaderLine::accept(), femexamples.examplesgui.FemExamples::clicked(), femexamples.examplesgui.FemExamples::double_clicked(), ArchComponent.ComponentTaskPanel::editObject(), and PathScripts.PathToolBitLibraryGui.ToolBitLibrary::toolEdit().
◆ blockButtons()
void TechDrawGui::TaskLeaderLine::blockButtons |
( |
bool |
b | ) |
|
|
protected |
◆ changeEvent()
void TaskLeaderLine::changeEvent |
( |
QEvent * |
e | ) |
|
|
protected |
◆ commonFeatureUpdate()
void TaskLeaderLine::commonFeatureUpdate |
( |
void |
| ) |
|
|
protected |
◆ createLeaderFeature()
void TaskLeaderLine::createLeaderFeature |
( |
std::vector< Base::Vector3d > |
converted | ) |
|
|
protected |
References TechDraw::DrawLeaderLine::adjustLastSegment(), TechDrawGui::Rez::appX(), TechDraw::DrawLeaderLine::AutoHorizontal, Gui::Command::commitCommand(), commonFeatureUpdate(), Base::Persistence::getClassTypeId(), App::DocumentObject::getDocument(), App::DocumentObject::getNameInDocument(), App::Document::getObject(), App::Document::getUniqueObjectName(), App::PropertyBool::getValue(), TechDrawGui::QGIView::getViewProvider(), Gui::Command::openCommand(), draftutils.translate::QT_TRANSLATE_NOOP, TechDraw::DrawView::requestPaint(), TechDraw::DrawView::setPosition(), App::Color::setValue(), App::PropertyListsT< T, ListT, ParentT >::setValues(), App::DocumentObject::touch(), Gui::Command::updateActive(), TechDraw::DrawLeaderLine::WayPoints, Base::Vector3< _Precision >::x, and Base::Vector3< _Precision >::y.
Referenced by accept().
◆ enableTaskButtons()
void TaskLeaderLine::enableTaskButtons |
( |
bool |
b | ) |
|
◆ enableTextUi()
void TechDrawGui::TaskLeaderLine::enableTextUi |
( |
bool |
b | ) |
|
|
protected |
◆ enableVPUi()
void TaskLeaderLine::enableVPUi |
( |
bool |
b | ) |
|
|
protected |
◆ findParentQGIV()
QGIView * TaskLeaderLine::findParentQGIV |
( |
| ) |
|
|
protected |
◆ getCreateMode()
virtual bool TechDrawGui::TaskLeaderLine::getCreateMode |
( |
void |
| ) |
|
|
virtual |
◆ getPrefArrowStyle()
int TaskLeaderLine::getPrefArrowStyle |
( |
| ) |
|
|
protected |
◆ onCancelEditClicked
void TaskLeaderLine::onCancelEditClicked |
( |
bool |
b | ) |
|
|
slot |
◆ onPointEditComplete
void TaskLeaderLine::onPointEditComplete |
( |
void |
| ) |
|
|
protectedslot |
◆ onTrackerClicked
void TaskLeaderLine::onTrackerClicked |
( |
bool |
b | ) |
|
|
slot |
References TechDrawGui::QGILeaderLine::closeEdit(), draftgeoutils.intersections::connect(), Base::Console(), enableTaskButtons(), Base::ConsoleSingleton::Error(), TechDrawGui::QGSPage::findQViewForDocObj(), getCreateMode(), Gui::getMainWindow(), TechDrawGui::MDIViewPage::getQGSPage(), App::PropertyListsT< T, ListT, ParentT >::getValues(), Base::ConsoleSingleton::Message(), onPointEditComplete(), setEditCursor(), Gui::MainWindow::showMessage(), TechDrawGui::QGILeaderLine::startPathEdit(), startTracker(), TechDrawGui::QGTracker::terminateDrawing(), and TechDraw::DrawLeaderLine::WayPoints.
Referenced by TaskLeaderLine().
◆ onTrackerFinished
void TaskLeaderLine::onTrackerFinished |
( |
std::vector< QPointF > |
pts, |
|
|
QGIView * |
qgParent |
|
) |
| |
|
slot |
References Base::Console(), enableTaskButtons(), Base::ConsoleSingleton::Error(), Gui::getMainWindow(), TechDrawGui::QGIView::getScale(), Base::ConsoleSingleton::Message(), draftfunctions.scale::scale(), setEditCursor(), Gui::MainWindow::showMessage(), TechDrawGui::QGTracker::sleep(), and trackerPointsFromQPoints().
Referenced by startTracker().
◆ prefLineColor()
◆ prefWeight()
double TaskLeaderLine::prefWeight |
( |
| ) |
const |
|
protected |
◆ recomputeFeature()
void TaskLeaderLine::recomputeFeature |
( |
| ) |
|
◆ reject()
bool TaskLeaderLine::reject |
( |
void |
| ) |
|
|
virtual |
References abandonEditSession(), getCreateMode(), Gui::Application::getDocument(), App::DocumentObject::getDocument(), Gui::Command::Gui, Gui::Application::Instance, removeFeature(), removeTracker(), and restoreState().
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(), TechDrawGui::TaskDlgLeaderLine::reject(), and PathScripts.PathToolBitLibraryGui.ToolBitLibrary::toolEdit().
◆ removeFeature()
void TaskLeaderLine::removeFeature |
( |
void |
| ) |
|
|
protected |
◆ removeTracker()
void TaskLeaderLine::removeTracker |
( |
void |
| ) |
|
|
protected |
◆ restoreState()
void TaskLeaderLine::restoreState |
( |
void |
| ) |
|
|
protected |
◆ saveButtons()
◆ saveState()
void TaskLeaderLine::saveState |
( |
void |
| ) |
|
|
protected |
◆ setCreateMode()
virtual void TechDrawGui::TaskLeaderLine::setCreateMode |
( |
bool |
b | ) |
|
|
virtual |
◆ setEditCursor()
void TaskLeaderLine::setEditCursor |
( |
QCursor |
c | ) |
|
|
protected |
◆ setUiEdit()
void TaskLeaderLine::setUiEdit |
( |
void |
| ) |
|
|
protected |
References App::Color::asValue(), TechDrawGui::ViewProviderLeader::Color, draftgeoutils.intersections::connect(), enableVPUi(), TechDraw::DrawLeaderLine::EndSymbol, Base::Tools::fromStdString(), App::DocumentObject::getNameInDocument(), App::PropertyLink::getValue(), App::PropertyEnumeration::getValue(), App::PropertyColor::getValue(), App::PropertyQuantity::getValue(), TechDraw::DrawLeaderLine::LeaderParent, TechDrawGui::ViewProviderLeader::LineStyle, TechDrawGui::ViewProviderLeader::LineWidth, TechDrawGui::DrawGuiUtil::loadArrowBox(), and TechDraw::DrawLeaderLine::StartSymbol.
Referenced by TaskLeaderLine().
◆ setUiPrimary()
void TaskLeaderLine::setUiPrimary |
( |
void |
| ) |
|
|
protected |
◆ startTracker()
void TaskLeaderLine::startTracker |
( |
void |
| ) |
|
|
protected |
◆ trackerPointsFromQPoints()
void TaskLeaderLine::trackerPointsFromQPoints |
( |
std::vector< QPointF > |
pts | ) |
|
|
protected |
◆ updateLeaderFeature()
void TaskLeaderLine::updateLeaderFeature |
( |
void |
| ) |
|
|
protected |
References TechDrawGui::ViewProviderLeader::Color, Gui::Command::commitCommand(), commonFeatureUpdate(), TechDrawGui::ViewProviderLeader::LineStyle, TechDrawGui::ViewProviderLeader::LineWidth, Gui::Command::openCommand(), draftutils.translate::QT_TRANSLATE_NOOP, TechDraw::DrawView::requestPaint(), App::PropertyEnumeration::setValue(), App::PropertyColor::setValue(), App::Color::setValue(), App::PropertyQuantity::setValue(), and Gui::Command::updateActive().
Referenced by accept().
◆ updateTask()
void TaskLeaderLine::updateTask |
( |
| ) |
|
The documentation for this class was generated from the following files:
- FreeCAD/src/Mod/TechDraw/Gui/TaskLeaderLine.h
- FreeCAD/src/Mod/TechDraw/Gui/TaskLeaderLine.cpp