#include <TaskDressUpParameters.h>
Public Member Functions | |
virtual void apply () | |
Apply the changes made to the object to it. More... | |
Part::Feature * getBase (void) const | |
const std::vector< std::string > getReferences (void) const | |
int getTransactionID () const | |
void hideObject () | |
void setupTransaction () | |
void showObject () | |
TaskDressUpParameters (ViewProviderDressUp *DressUpView, bool selectEdges, bool selectFaces, QWidget *parent=0) | |
virtual ~TaskDressUpParameters () | |
![]() | |
void hideGroupBox () | |
bool isGroupVisible () const | |
virtual QSize minimumSizeHint () const | |
TaskBox (const QPixmap &icon, const QString &title, bool expandable=true, QWidget *parent=0) | |
Constructor. More... | |
TaskBox (const QString &title, bool expandable=true, QWidget *parent=0) | |
Constructor. More... | |
TaskBox (QWidget *parent=0) | |
Constructor. More... | |
~TaskBox () | |
![]() | |
ActionGroup (const QPixmap &icon, const QString &title, bool expandable=true, QWidget *parent=0) | |
Constructor. More... | |
ActionGroup (const QString &title, bool expandable=true, QWidget *parent=0) | |
Constructor. More... | |
ActionGroup (QWidget *parent=0) | |
Constructor. More... | |
ActionLabel * addAction (QAction *action, bool addToLayout=true, bool addStretch=true) | |
Creates action item from the action and returns it. More... | |
ActionLabel * addActionLabel (ActionLabel *label, bool addToLayout=true, bool addStretch=true) | |
Adds label to the group. More... | |
bool addWidget (QWidget *widget, bool addToLayout=true, bool addStretch=true) | |
Adds widget to the group. More... | |
QBoxLayout * groupLayout () | |
Returns group's layout (QVBoxLayout by default). More... | |
bool hasHeader () const | |
Returns true if the group has header. More... | |
QString headerText () const | |
Returns text of the header. More... | |
bool isExpandable () const | |
Returns true if the group is expandable. More... | |
QSize minimumSizeHint () const | |
void setScheme (ActionPanelScheme *pointer) | |
Sets the scheme of the panel and all the child groups to scheme. More... | |
![]() | |
void attachSelection () | |
Attaches to the selection. More... | |
bool blockConnection (bool block) | |
void detachSelection () | |
Detaches from the selection. More... | |
bool isConnectionAttached () const | |
bool isConnectionBlocked () const | |
SelectionObserver (bool attach=true, int resolve=1) | |
Constructor. More... | |
SelectionObserver (const Gui::ViewProviderDocumentObject *vp, bool attach=true, int resolve=1) | |
Constructor. More... | |
virtual ~SelectionObserver () | |
Protected Types | |
enum selectionModes { none, refAdd, refRemove, plane, line } | |
Protected Slots | |
void createDeleteAction (QListWidget *parentList, QWidget *parentButton) | |
void doubleClicked (QListWidgetItem *item) | |
void itemClickedTimeout () | |
void onButtonRefAdd (const bool checked) | |
void onButtonRefRemove (const bool checked) | |
virtual void onRefDeleted (void)=0 | |
void setSelection (QListWidgetItem *current) | |
![]() | |
void processHide () | |
void processShow () | |
Protected Member Functions | |
virtual void clearButtons (const selectionModes notThis)=0 | |
void exitSelectionMode () | |
ViewProviderDressUp * getDressUpView () const | |
bool KeyEvent (QEvent *e) | |
bool referenceSelected (const Gui::SelectionChanges &msg) | |
![]() | |
void actionEvent (QActionEvent *) | |
void showEvent (QShowEvent *) | |
![]() | |
void init (bool header) | |
virtual void paintEvent (QPaintEvent *event) | |
Static Protected Member Functions | |
static void removeItemFromListWidget (QListWidget *widget, const char *itemstr) | |
Protected Attributes | |
bool allowEdges | |
bool allowFaces | |
QAction * deleteAction | |
ViewProviderDressUp * DressUpView | |
QWidget * proxy | |
selectionModes selectionMode | |
int transactionID | |
bool wasDoubleClicked = false | |
![]() | |
double m_foldDelta | |
int m_foldDirection | |
QPixmap m_foldPixmap | |
double m_foldStep | |
double m_fullHeight | |
double m_tempHeight | |
QWidget * myDummy | |
class TaskGroup * myGroup | |
class TaskHeader * myHeader | |
ActionPanelScheme * myScheme | |
Additional Inherited Members | |
![]() | |
void setExpandable (bool expandable=true) | |
Makes the group expandable if expandable is set to true. More... | |
void setHeader (bool enable=true) | |
Enables/disables group's header according to enable. More... | |
void setHeaderText (const QString &title) | |
Sets text of the header to title. More... | |
void showHide () | |
Expands/collapses the group. More... | |
![]() | |
bool expandable | |
bool header | |
QString headerText | |
Member Enumeration Documentation
◆ selectionModes
|
protected |
Constructor & Destructor Documentation
◆ TaskDressUpParameters()
TaskDressUpParameters::TaskDressUpParameters | ( | ViewProviderDressUp * | DressUpView, |
bool | selectEdges, | ||
bool | selectFaces, | ||
QWidget * | parent = 0 |
||
) |
References App::Application::getActiveTransaction(), and App::GetApplication().
◆ ~TaskDressUpParameters()
|
virtual |
References Gui::SelectionSingleton::rmvSelectionGate(), and Gui::Selection().
Member Function Documentation
◆ apply()
|
virtual |
Apply the changes made to the object to it.
Reimplemented in PartDesignGui::TaskChamferParameters, and PartDesignGui::TaskFilletParameters.
Referenced by PartDesignGui::TaskDlgFilletParameters::accept(), and PartDesignGui::TaskDlgChamferParameters::accept().
◆ clearButtons()
|
protectedpure virtual |
Implemented in PartDesignGui::TaskDraftParameters, PartDesignGui::TaskThicknessParameters, PartDesignGui::TaskChamferParameters, and PartDesignGui::TaskFilletParameters.
Referenced by doubleClicked(), onButtonRefAdd(), and onButtonRefRemove().
◆ createDeleteAction
|
protectedslot |
◆ doubleClicked
|
protectedslot |
References clearButtons(), Gui::SelectionSingleton::clearSelection(), DressUpView, exitSelectionMode(), PartDesignGui::ViewProviderDressUp::highlightReferences(), itemClickedTimeout(), none, Gui::Selection(), showObject(), and wasDoubleClicked.
Referenced by PartDesignGui::TaskChamferParameters::TaskChamferParameters(), PartDesignGui::TaskDraftParameters::TaskDraftParameters(), PartDesignGui::TaskFilletParameters::TaskFilletParameters(), and PartDesignGui::TaskThicknessParameters::TaskThicknessParameters().
◆ exitSelectionMode()
|
protected |
References Gui::SelectionSingleton::clearSelection(), none, Gui::SelectionSingleton::rmvSelectionGate(), Gui::Selection(), selectionMode, and showObject().
Referenced by doubleClicked(), onButtonRefAdd(), onButtonRefRemove(), PartDesignGui::TaskFilletParameters::onSelectionChanged(), PartDesignGui::TaskChamferParameters::onSelectionChanged(), PartDesignGui::TaskThicknessParameters::onSelectionChanged(), and PartDesignGui::TaskDraftParameters::onSelectionChanged().
◆ getBase()
Part::Feature * TaskDressUpParameters::getBase | ( | void | ) | const |
◆ getDressUpView()
|
protected |
References DressUpView.
Referenced by PartDesignGui::TaskFilletParameters::apply().
◆ getReferences()
const std::vector< std::string > TaskDressUpParameters::getReferences | ( | void | ) | const |
◆ getTransactionID()
int PartDesignGui::TaskDressUpParameters::getTransactionID | ( | ) | const |
References transactionID.
◆ hideObject()
void TaskDressUpParameters::hideObject | ( | ) |
References DressUpView, getBase(), Gui::ViewProviderDocumentObject::getObject(), App::PropertyBool::setValue(), and App::DocumentObject::Visibility.
Referenced by onButtonRefAdd(), onButtonRefRemove(), and setSelection().
◆ itemClickedTimeout
|
protectedslot |
References wasDoubleClicked.
Referenced by doubleClicked(), and setSelection().
◆ KeyEvent()
◆ onButtonRefAdd
|
protectedslot |
References Gui::SelectionSingleton::addSelectionGate(), allowEdges, allowFaces, clearButtons(), Gui::SelectionSingleton::clearSelection(), DressUpView, exitSelectionMode(), getBase(), hideObject(), PartDesignGui::ViewProviderDressUp::highlightReferences(), refAdd, Gui::Selection(), and selectionMode.
Referenced by PartDesignGui::TaskChamferParameters::TaskChamferParameters(), PartDesignGui::TaskDraftParameters::TaskDraftParameters(), PartDesignGui::TaskFilletParameters::TaskFilletParameters(), and PartDesignGui::TaskThicknessParameters::TaskThicknessParameters().
◆ onButtonRefRemove
|
protectedslot |
References Gui::SelectionSingleton::addSelectionGate(), allowEdges, allowFaces, clearButtons(), Gui::SelectionSingleton::clearSelection(), DressUpView, exitSelectionMode(), getBase(), hideObject(), PartDesignGui::ViewProviderDressUp::highlightReferences(), refRemove, Gui::Selection(), and selectionMode.
Referenced by PartDesignGui::TaskChamferParameters::TaskChamferParameters(), PartDesignGui::TaskDraftParameters::TaskDraftParameters(), PartDesignGui::TaskFilletParameters::TaskFilletParameters(), and PartDesignGui::TaskThicknessParameters::TaskThicknessParameters().
◆ onRefDeleted
|
protectedpure virtualslot |
◆ referenceSelected()
|
protected |
References Gui::SelectionChanges::AddSelection, PartDesign::DressUp::Base, DressUpView, DraftVecUtils::find(), getBase(), App::DocumentObject::getDocument(), App::Document::getName(), Gui::ViewProviderDocumentObject::getObject(), App::PropertyLinkSub::getSubValues(), PartDesignGui::ViewProviderDressUp::highlightReferences(), App::Document::recomputeFeature(), refAdd, refRemove, selectionMode, setupTransaction(), and App::PropertyLinkSub::setValue().
Referenced by PartDesignGui::TaskFilletParameters::onSelectionChanged(), PartDesignGui::TaskChamferParameters::onSelectionChanged(), PartDesignGui::TaskThicknessParameters::onSelectionChanged(), and PartDesignGui::TaskDraftParameters::onSelectionChanged().
◆ removeItemFromListWidget()
|
staticprotected |
◆ setSelection
|
protectedslot |
References Gui::SelectionSingleton::addSelection(), Gui::SelectionSingleton::clearSelection(), DressUpView, PartDesign::Body::findBodyOf(), App::DocumentObject::getDocument(), App::Document::getName(), App::DocumentObject::getNameInDocument(), Gui::ViewProviderDocumentObject::getObject(), hideObject(), PartDesignGui::ViewProviderDressUp::highlightReferences(), itemClickedTimeout(), Gui::Selection(), and wasDoubleClicked.
Referenced by PartDesignGui::TaskChamferParameters::TaskChamferParameters(), PartDesignGui::TaskDraftParameters::TaskDraftParameters(), PartDesignGui::TaskFilletParameters::TaskFilletParameters(), and PartDesignGui::TaskThicknessParameters::TaskThicknessParameters().
◆ setupTransaction()
void TaskDressUpParameters::setupTransaction | ( | ) |
References DressUpView, App::Application::getActiveTransaction(), App::GetApplication(), Gui::ViewProviderDocumentObject::getObject(), App::PropertyString::getValue(), App::DocumentObject::Label, App::Application::setActiveTransaction(), and transactionID.
Referenced by PartDesignGui::TaskDraftParameters::onSelectionChanged(), and referenceSelected().
◆ showObject()
void TaskDressUpParameters::showObject | ( | ) |
References DressUpView, getBase(), Gui::ViewProviderDocumentObject::getObject(), App::PropertyBool::setValue(), and App::DocumentObject::Visibility.
Referenced by PartDesignGui::TaskDlgFilletParameters::accept(), PartDesignGui::TaskDlgDraftParameters::accept(), PartDesignGui::TaskDlgThicknessParameters::accept(), PartDesignGui::TaskDlgChamferParameters::accept(), doubleClicked(), and exitSelectionMode().
Member Data Documentation
◆ allowEdges
|
protected |
Referenced by onButtonRefAdd(), and onButtonRefRemove().
◆ allowFaces
|
protected |
Referenced by onButtonRefAdd(), and onButtonRefRemove().
◆ deleteAction
|
protected |
Referenced by createDeleteAction(), KeyEvent(), PartDesignGui::TaskFilletParameters::onSelectionChanged(), PartDesignGui::TaskChamferParameters::onSelectionChanged(), PartDesignGui::TaskDraftParameters::onSelectionChanged(), PartDesignGui::TaskThicknessParameters::onSelectionChanged(), PartDesignGui::TaskChamferParameters::TaskChamferParameters(), PartDesignGui::TaskDraftParameters::TaskDraftParameters(), PartDesignGui::TaskFilletParameters::TaskFilletParameters(), and PartDesignGui::TaskThicknessParameters::TaskThicknessParameters().
◆ DressUpView
|
protected |
Referenced by PartDesignGui::TaskChamferParameters::apply(), PartDesignGui::TaskFilletParameters::clearButtons(), PartDesignGui::TaskChamferParameters::clearButtons(), PartDesignGui::TaskDraftParameters::clearButtons(), PartDesignGui::TaskThicknessParameters::clearButtons(), doubleClicked(), getBase(), getDressUpView(), PartDesignGui::TaskDraftParameters::getLine(), PartDesignGui::TaskDraftParameters::getPlane(), getReferences(), hideObject(), onButtonRefAdd(), onButtonRefRemove(), PartDesignGui::TaskFilletParameters::onSelectionChanged(), PartDesignGui::TaskChamferParameters::onSelectionChanged(), PartDesignGui::TaskThicknessParameters::onSelectionChanged(), PartDesignGui::TaskDraftParameters::onSelectionChanged(), referenceSelected(), setSelection(), setupTransaction(), showObject(), PartDesignGui::TaskChamferParameters::TaskChamferParameters(), PartDesignGui::TaskDraftParameters::TaskDraftParameters(), PartDesignGui::TaskFilletParameters::TaskFilletParameters(), and PartDesignGui::TaskThicknessParameters::TaskThicknessParameters().
◆ proxy
|
protected |
Referenced by PartDesignGui::TaskFilletParameters::changeEvent(), PartDesignGui::TaskChamferParameters::changeEvent(), PartDesignGui::TaskDraftParameters::changeEvent(), PartDesignGui::TaskThicknessParameters::changeEvent(), PartDesignGui::TaskChamferParameters::TaskChamferParameters(), PartDesignGui::TaskDraftParameters::TaskDraftParameters(), PartDesignGui::TaskFilletParameters::TaskFilletParameters(), and PartDesignGui::TaskThicknessParameters::TaskThicknessParameters().
◆ selectionMode
|
protected |
Referenced by exitSelectionMode(), onButtonRefAdd(), onButtonRefRemove(), PartDesignGui::TaskFilletParameters::onSelectionChanged(), PartDesignGui::TaskChamferParameters::onSelectionChanged(), PartDesignGui::TaskDraftParameters::onSelectionChanged(), PartDesignGui::TaskThicknessParameters::onSelectionChanged(), and referenceSelected().
◆ transactionID
|
protected |
Referenced by getTransactionID(), and setupTransaction().
◆ wasDoubleClicked
|
protected |
Referenced by doubleClicked(), itemClickedTimeout(), and setSelection().
The documentation for this class was generated from the following files:
- src/Mod/PartDesign/Gui/TaskDressUpParameters.h
- src/Mod/PartDesign/Gui/TaskDressUpParameters.cpp