#include <TaskSketcherConstrains.h>
Public Slots | |
void on_comboBoxFilter_currentIndexChanged (int) | |
void on_extendedInformation_stateChanged (int state) | |
void on_filterInternalAlignment_stateChanged (int state) | |
void on_listWidgetConstraints_emitCenterSelectedItems (void) | |
void on_listWidgetConstraints_itemActivated (QListWidgetItem *item) | |
void on_listWidgetConstraints_itemChanged (QListWidgetItem *item) | |
void on_listWidgetConstraints_itemSelectionChanged (void) | |
void on_listWidgetConstraints_updateActiveStatus (QListWidgetItem *item, bool status) | |
void on_listWidgetConstraints_updateDrivingStatus (QListWidgetItem *item, bool status) | |
![]() | |
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... | |
Public Member Functions | |
void onSelectionChanged (const Gui::SelectionChanges &msg) | |
Observer message from the Selection. More... | |
TaskSketcherConstrains (ViewProviderSketch *sketchView) | |
~TaskSketcherConstrains () | |
![]() | |
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 | |
typedef boost::signals2::connection Connection | |
Protected Member Functions | |
void changeEvent (QEvent *e) | |
![]() | |
void actionEvent (QActionEvent *) | |
void showEvent (QShowEvent *) | |
![]() | |
void init (bool header) | |
virtual void paintEvent (QPaintEvent *event) | |
Protected Attributes | |
Connection connectionConstraintsChanged | |
ViewProviderSketch * sketchView | |
![]() | |
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 processHide () | |
void processShow () | |
![]() | |
bool expandable | |
bool header | |
QString headerText | |
Member Typedef Documentation
◆ Connection
|
protected |
Constructor & Destructor Documentation
◆ TaskSketcherConstrains()
TaskSketcherConstrains::TaskSketcherConstrains | ( | ViewProviderSketch * | sketchView | ) |
References connectionConstraintsChanged, QSint::ActionGroup::groupLayout(), on_comboBoxFilter_currentIndexChanged(), on_extendedInformation_stateChanged(), on_filterInternalAlignment_stateChanged(), on_listWidgetConstraints_emitCenterSelectedItems(), on_listWidgetConstraints_itemActivated(), on_listWidgetConstraints_itemChanged(), on_listWidgetConstraints_itemSelectionChanged(), on_listWidgetConstraints_updateActiveStatus(), on_listWidgetConstraints_updateDrivingStatus(), SketcherGui::ViewProviderSketch::signalConstraintsChanged, and sketchView.
◆ ~TaskSketcherConstrains()
TaskSketcherConstrains::~TaskSketcherConstrains | ( | ) |
References connectionConstraintsChanged.
Member Function Documentation
◆ changeEvent()
|
protected |
◆ on_comboBoxFilter_currentIndexChanged
|
slot |
Referenced by TaskSketcherConstrains().
◆ on_extendedInformation_stateChanged
|
slot |
Referenced by TaskSketcherConstrains().
◆ on_filterInternalAlignment_stateChanged
|
slot |
Referenced by TaskSketcherConstrains().
◆ on_listWidgetConstraints_emitCenterSelectedItems
|
slot |
References SketcherGui::ViewProviderSketch::centerSelection(), and sketchView.
Referenced by TaskSketcherConstrains().
◆ on_listWidgetConstraints_itemActivated
|
slot |
References ConstraintItem::ConstraintNbr, SketcherGui::EditDatumDialog::exec(), ConstraintItem::isDimensional(), and sketchView.
Referenced by TaskSketcherConstrains().
◆ on_listWidgetConstraints_itemChanged
|
slot |
References Gui::Command::abortCommand(), Gui::cmdAppObjectArgs(), Gui::Command::commitCommand(), ConstraintItem::ConstraintNbr, Sketcher::SketchObject::Constraints, ConstraintItem::data(), Base::Tools::escapedUnicodeFromUtf8(), Sketcher::PropertyConstraintList::getConstraintName(), Gui::MainWindow::getInstance(), SketcherGui::ViewProviderSketch::getIsShownVirtualSpace(), SketcherGui::ViewProviderSketch::getSketchObject(), Sketcher::PropertyConstraintList::getValues(), Gui::Command::openCommand(), sketchView, and Base::Tools::toStdString().
Referenced by TaskSketcherConstrains().
◆ on_listWidgetConstraints_itemSelectionChanged
|
slot |
References Gui::SelectionSingleton::addSelection(), Gui::SelectionObserver::blockConnection(), Gui::SelectionSingleton::clearSelection(), ConstraintItem::ConstraintNbr, Sketcher::PropertyConstraintList::getConstraintName(), App::DocumentObject::getDocument(), App::Document::getName(), App::DocumentObject::getNameInDocument(), SketcherGui::ViewProviderSketch::getSketchObject(), Gui::Selection(), and sketchView.
Referenced by TaskSketcherConstrains().
◆ on_listWidgetConstraints_updateActiveStatus
|
slot |
References Gui::Application::commandManager(), Gui::Application::Instance, and Gui::CommandManager::runCommandByName().
Referenced by TaskSketcherConstrains().
◆ on_listWidgetConstraints_updateDrivingStatus
|
slot |
References Gui::Application::commandManager(), Gui::Application::Instance, and Gui::CommandManager::runCommandByName().
Referenced by TaskSketcherConstrains().
◆ onSelectionChanged()
|
virtual |
Observer message from the Selection.
Implements Gui::SelectionObserver.
References Gui::SelectionChanges::AddSelection, Gui::SelectionChanges::ClrSelection, ConstraintItem::ConstraintNbr, App::DocumentObject::getDocument(), App::Document::getName(), App::DocumentObject::getNameInDocument(), SketcherGui::ViewProviderSketch::getSketchObject(), Gui::SelectionChanges::RmvSelection, Gui::SelectionChanges::SetSelection, and sketchView.
Member Data Documentation
◆ connectionConstraintsChanged
|
protected |
Referenced by TaskSketcherConstrains(), and ~TaskSketcherConstrains().
◆ sketchView
|
protected |
The documentation for this class was generated from the following files:
- src/Mod/Sketcher/Gui/TaskSketcherConstrains.h
- src/Mod/Sketcher/Gui/TaskSketcherConstrains.cpp