#include <TaskFaceColors.h>
Classes | |
class | Private |
Public Member Functions | |
bool | accept () |
FaceColors (ViewProviderPartExt *vp, QWidget *parent=0) | |
bool | reject () |
~FaceColors () | |
Protected Member Functions | |
void | changeEvent (QEvent *e) |
void | onSelectionChanged (const Gui::SelectionChanges &msg) |
Definition at line 34 of file TaskFaceColors.h.
FaceColors::FaceColors | ( | ViewProviderPartExt * | vp, | |
QWidget * | parent = 0 | |||
) |
Definition at line 103 of file TaskFaceColors.cpp.
References PartGui::Ui_TaskFaceColors::colorButton, Gui::ViewProviderDocumentObject::getObject(), PartGui::Ui_TaskFaceColors::groupBox, App::DocumentObject::Label, Gui::Selection(), PartGui::Ui_TaskFaceColors::setupUi(), PartGui::FaceColors::Private::ui, and PartGui::FaceColors::Private::vp.
FaceColors::~FaceColors | ( | ) |
Definition at line 114 of file TaskFaceColors.cpp.
References Gui::Selection().
bool FaceColors::accept | ( | void | ) |
Definition at line 188 of file TaskFaceColors.cpp.
References App::DocumentObject::getDocument(), Gui::ViewProviderDocumentObject::getObject(), Gui::Application::Instance, Gui::Document::resetEdit(), and PartGui::FaceColors::Private::vp.
Referenced by PartGui::TaskFaceColors::accept().
void FaceColors::changeEvent | ( | QEvent * | e | ) | [protected] |
Definition at line 203 of file TaskFaceColors.cpp.
References PartGui::Ui_TaskFaceColors::retranslateUi(), and PartGui::FaceColors::Private::ui.
void FaceColors::onSelectionChanged | ( | const Gui::SelectionChanges & | msg | ) | [protected, virtual] |
Implements Gui::SelectionObserver.
Definition at line 137 of file TaskFaceColors.cpp.
References Gui::SelectionChanges::AddSelection, App::Color::b, Gui::SelectionChanges::ClrSelection, PartGui::Ui_TaskFaceColors::colorButton, Mesh2Shape::faces, App::Color::g, App::DocumentObject::getDocument(), App::Document::getName(), App::DocumentObject::getNameInDocument(), PartGui::FaceColors::Private::index, PartGui::Ui_TaskFaceColors::labelElement, PartGui::FaceColors::Private::obj, Gui::SelectionChanges::pDocName, PartGui::FaceColors::Private::perface, Gui::SelectionChanges::pObjectName, Gui::SelectionChanges::pSubName, App::Color::r, Gui::SelectionChanges::RmvSelection, Gui::ColorButton::setColor(), Gui::SelectionChanges::Type, and PartGui::FaceColors::Private::ui.
bool FaceColors::reject | ( | void | ) |
Definition at line 195 of file TaskFaceColors.cpp.
References PartGui::FaceColors::Private::current, PartGui::ViewProviderPartExt::DiffuseColor, App::DocumentObject::getDocument(), Gui::ViewProviderDocumentObject::getObject(), Gui::Application::Instance, Gui::Document::resetEdit(), App::PropertyColorList::setValues(), and PartGui::FaceColors::Private::vp.
Referenced by PartGui::TaskFaceColors::reject().