#include <DlgPropertyLink.h>
Public Member Functions | |
void accept () | |
QList< App::SubObjectT > currentLinks () const | |
DlgPropertyLink (QWidget *parent=0) | |
void init (const App::DocumentObjectT &prop, bool tryFilter=true) | |
QList< App::SubObjectT > originalLinks () const | |
~DlgPropertyLink () | |
Destroys the object and frees any allocated resources. 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 () | |
Static Public Member Functions | |
static QString formatLinks (App::Document *ownerDoc, QList< App::SubObjectT > links) | |
static QString formatObject (App::Document *ownerDoc, App::DocumentObject *obj, const char *sub) | |
static QString formatObject (App::Document *ownerDoc, const App::SubObjectT &sobj) | |
static QList< App::SubObjectT > getLinksFromProperty (const App::PropertyLinkBase *prop) | |
static QString linksToPython (QList< App::SubObjectT > links) | |
Protected Member Functions | |
void attachObserver () | |
void closeEvent (QCloseEvent *e) | |
void detachObserver () | |
bool eventFilter (QObject *obj, QEvent *ev) | |
void hideEvent (QHideEvent *) | |
void keyPressEvent (QKeyEvent *ev) | |
void leaveEvent (QEvent *) | |
void onSelectionChanged (const Gui::SelectionChanges &msg) | |
void showEvent (QShowEvent *) | |
Constructor & Destructor Documentation
◆ DlgPropertyLink()
DlgPropertyLink::DlgPropertyLink | ( | QWidget * | parent = 0 | ) |
◆ ~DlgPropertyLink()
DlgPropertyLink::~DlgPropertyLink | ( | ) |
Destroys the object and frees any allocated resources.
References detachObserver().
Member Function Documentation
◆ accept()
void DlgPropertyLink::accept | ( | ) |
Referenced by ArchComponent.ComponentTaskPanel::editObject().
◆ attachObserver()
|
protected |
◆ closeEvent()
|
protected |
References detachObserver().
◆ currentLinks()
QList< App::SubObjectT > DlgPropertyLink::currentLinks | ( | ) | const |
◆ detachObserver()
|
protected |
◆ eventFilter()
◆ formatLinks()
|
static |
References formatObject().
◆ formatObject() [1/2]
|
static |
Referenced by formatLinks(), and formatObject().
◆ formatObject() [2/2]
|
static |
References formatObject(), App::DocumentObjectT::getObject(), and App::SubObjectT::getSubName().
◆ getLinksFromProperty()
|
static |
References App::PropertyLinkBase::getLinks().
Referenced by init().
◆ hideEvent()
|
protected |
References detachObserver().
◆ init()
void DlgPropertyLink::init | ( | const App::DocumentObjectT & | prop, |
bool | tryFilter = true |
||
) |
References Gui::SelectionChanges::AddSelection, Gui::BitmapFactory(), App::GetApplication(), Base::Persistence::getClassTypeId(), App::Application::getDocuments(), getLinksFromProperty(), Base::Type::getName(), App::DocumentObjectT::getObject(), Base::Type::getParent(), App::DocumentObjectT::getProperty(), App::Hidden, Base::Type::isBad(), Base::Type::isDerivedFrom(), onSelectionChanged(), and App::PropertyXLink::supportXLink().
Referenced by DocumentObject.DocumentObject::onChanged().
◆ keyPressEvent()
|
protected |
◆ leaveEvent()
|
protected |
References Gui::SelectionSingleton::rmvPreselect(), and Gui::Selection().
◆ linksToPython()
|
static |
References Base::Tools::escapedUnicodeFromUtf8().
◆ onSelectionChanged()
|
protectedvirtual |
Implements Gui::SelectionObserver.
References Gui::SelectionChanges::AddSelection, and App::GeoFeature::resolveElement().
Referenced by init().
◆ originalLinks()
QList< App::SubObjectT > DlgPropertyLink::originalLinks | ( | ) | const |
◆ showEvent()
|
protected |
References attachObserver().
The documentation for this class was generated from the following files:
- src/Gui/DlgPropertyLink.h
- src/Gui/DlgPropertyLink.cpp