| | |
| |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| |
|
| | #include <Gui/BitmapFactory.h> |
| | #include <Gui/Control.h> |
| |
|
| | #include "TaskDlgPathCompound.h" |
| |
|
| |
|
| | using namespace Gui; |
| | using namespace PathGui; |
| |
|
| | PROPERTY_SOURCE(PathGui::ViewProviderPathCompound, PathGui::ViewProviderPath) |
| |
|
| |
|
| | bool ViewProviderPathCompound::setEdit(int ModNum) |
| | { |
| | Q_UNUSED(ModNum); |
| | Gui::TaskView::TaskDialog* dlg = new TaskDlgPathCompound(this); |
| | Gui::Control().showDialog(dlg); |
| | return true; |
| | } |
| |
|
| | void ViewProviderPathCompound::unsetEdit(int ModNum) |
| | { |
| | Q_UNUSED(ModNum); |
| | |
| | Gui::Control().closeDialog(); |
| | } |
| |
|
| | std::vector<App::DocumentObject*> ViewProviderPathCompound::claimChildren() const |
| | { |
| | return std::vector<App::DocumentObject*>(getObject<Path::FeatureCompound>()->Group.getValues()); |
| | } |
| |
|
| | bool ViewProviderPathCompound::canDragObjects() const |
| | { |
| | return true; |
| | } |
| |
|
| | void ViewProviderPathCompound::dragObject(App::DocumentObject* obj) |
| | { |
| | getObject<Path::FeatureCompound>()->removeObject(obj); |
| | } |
| |
|
| | bool ViewProviderPathCompound::canDropObjects() const |
| | { |
| | return true; |
| | } |
| |
|
| | void ViewProviderPathCompound::dropObject(App::DocumentObject* obj) |
| | { |
| | getObject<Path::FeatureCompound>()->addObject(obj); |
| | } |
| |
|
| | QIcon ViewProviderPathCompound::getIcon() const |
| | { |
| | return Gui::BitmapFactory().pixmap("CAM_Compound"); |
| | } |
| |
|
| | |
| |
|
| | namespace Gui |
| | { |
| | |
| | PROPERTY_SOURCE_TEMPLATE(PathGui::ViewProviderPathCompoundPython, PathGui::ViewProviderPathCompound) |
| | |
| |
|
| | |
| | template class PathGuiExport ViewProviderFeaturePythonT<PathGui::ViewProviderPathCompound>; |
| | } |
| |
|