#include <DlgExtrusion.h>
Public Member Functions | |
void | accept () |
void | apply () |
DlgExtrusion (QWidget *parent=0, Qt::WFlags fl=0) | |
~DlgExtrusion () | |
Protected Member Functions | |
bool | canExtrude (const TopoDS_Shape &) const |
void | changeEvent (QEvent *e) |
void | findShapes () |
Definition at line 35 of file DlgExtrusion.h.
DlgExtrusion::DlgExtrusion | ( | QWidget * | parent = 0 , |
|
Qt::WFlags | fl = 0 | |||
) |
Definition at line 53 of file DlgExtrusion.cpp.
References Gui::ItemViewSelection::applyFrom(), PartGui::Ui_DlgExtrusion::dirLen, findShapes(), Part::Feature::getClassTypeId(), PartGui::Ui_DlgExtrusion::labelNormal, Gui::Selection(), PartGui::Ui_DlgExtrusion::setupUi(), PartGui::Ui_DlgExtrusion::treeWidget, and PartGui::Ui_DlgExtrusion::viewButton.
DlgExtrusion::~DlgExtrusion | ( | ) |
Definition at line 69 of file DlgExtrusion.cpp.
void DlgExtrusion::accept | ( | void | ) |
Definition at line 132 of file DlgExtrusion.cpp.
References apply().
Referenced by PartGui::TaskExtrusion::accept().
void DlgExtrusion::apply | ( | ) |
Definition at line 138 of file DlgExtrusion.cpp.
References PartGui::Ui_DlgExtrusion::checkNormal, App::Document::commitTransaction(), Base::Console(), Gui::Command::copyVisual(), PartGui::Ui_DlgExtrusion::dirLen, PartGui::Ui_DlgExtrusion::dirX, PartGui::Ui_DlgExtrusion::dirY, PartGui::Ui_DlgExtrusion::dirZ, App::GetApplication(), Part::Feature::getClassTypeId(), App::Application::getDocument(), App::Document::getObject(), App::Document::getUniqueObjectName(), Gui::Application::Instance, Base::BaseClass::isDerivedFrom(), App::Document::openTransaction(), App::Document::recompute(), Part::Feature::Shape, PartGui::Ui_DlgExtrusion::treeWidget, Py::type(), draftlibs::fcgeo::vec(), and Base::Exception::what().
Referenced by accept(), and PartGui::TaskExtrusion::clicked().
bool DlgExtrusion::canExtrude | ( | const TopoDS_Shape & | shape | ) | const [protected] |
void DlgExtrusion::changeEvent | ( | QEvent * | e | ) | [protected] |
Definition at line 75 of file DlgExtrusion.cpp.
References PartGui::Ui_DlgExtrusion::retranslateUi().
void DlgExtrusion::findShapes | ( | ) | [protected] |
Definition at line 83 of file DlgExtrusion.cpp.
References canExtrude(), App::Application::getActiveDocument(), App::GetApplication(), Part::Feature::getClassTypeId(), Gui::ViewProvider::getIcon(), App::Document::getName(), App::Document::getObjectsOfType(), Gui::Document::getViewProvider(), Gui::Application::Instance, App::Document::Label, and PartGui::Ui_DlgExtrusion::treeWidget.
Referenced by DlgExtrusion().