#include <DlgPropertyLink.h>
Public Member Functions | |
void | accept () |
QList< App::SubObjectT > | currentLinks () const |
DlgPropertyLink (QWidget *parent=nullptr) | |
void | init (const App::DocumentObjectT &prop, bool tryFilter=true) |
QList< App::SubObjectT > | originalLinks () const |
~DlgPropertyLink () | |
Destroys the object and frees any allocated resources. More... | |
Public Member Functions inherited from Gui::SelectionObserver | |
void | attachSelection () |
Attaches to the selection. More... | |
bool | blockSelection (bool block) |
void | detachSelection () |
Detaches from the selection. More... | |
bool | isSelectionAttached () const |
bool | isSelectionBlocked () const |
SelectionObserver (bool attach=true, ResolveMode resolve=ResolveMode::OldStyleElement) | |
Constructor. More... | |
SelectionObserver (const Gui::ViewProviderDocumentObject *vp, bool attach=true, ResolveMode resolve=ResolveMode::OldStyleElement) | |
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 *) |
DlgPropertyLink::DlgPropertyLink | ( | QWidget * | parent = nullptr | ) |
References Gui::Dialog::Ui_DlgPropertyLink::buttonBox, draftgeoutils.intersections::connect(), Gui::ExpressionParameter::instance(), Gui::NoResolve, Gui::Dialog::Ui_DlgPropertyLink::searchBox, Gui::ExpressionLineEdit::setExactMatch(), Gui::ExpressionLineEdit::setNoProperty(), Gui::Dialog::Ui_DlgPropertyLink::setupUi(), Gui::Dialog::Ui_DlgPropertyLink::treeWidget, and Gui::Dialog::Ui_DlgPropertyLink::typeTree.
DlgPropertyLink::~DlgPropertyLink | ( | ) |
Destroys the object and frees any allocated resources.
References detachObserver().
void DlgPropertyLink::accept | ( | ) |
|
protected |
|
protected |
References detachObserver().
QList< App::SubObjectT > DlgPropertyLink::currentLinks | ( | ) | const |
References Gui::Dialog::Ui_DlgPropertyLink::treeWidget.
|
protected |
References Gui::Dialog::Ui_DlgPropertyLink::searchBox.
|
static |
References formatObject().
|
static |
Referenced by formatLinks(), and formatObject().
|
static |
References formatObject(), App::DocumentObjectT::getObject(), and App::SubObjectT::getSubName().
|
static |
References App::PropertyLinkBase::getLinks().
Referenced by init().
|
protected |
References detachObserver().
void DlgPropertyLink::init | ( | const App::DocumentObjectT & | prop, |
bool | tryFilter = true |
||
) |
References Gui::SelectionChanges::AddSelection, Gui::BitmapFactory(), Gui::Dialog::Ui_DlgPropertyLink::checkObjectType, Gui::Dialog::Ui_DlgPropertyLink::checkSubObject, 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(), App::PropertyLinkBase::LinkSyncSubObject, onSelectionChanged(), Gui::Dialog::Ui_DlgPropertyLink::searchBox, Gui::ExpressionLineEdit::setDocumentObject(), App::PropertyXLink::supportXLink(), Gui::Dialog::Ui_DlgPropertyLink::treeWidget, and Gui::Dialog::Ui_DlgPropertyLink::typeTree.
Referenced by DocumentObject.DocumentObject::onChanged().
|
protected |
References Gui::Dialog::Ui_DlgPropertyLink::searchBox.
|
protected |
References Gui::SelectionSingleton::rmvPreselect(), and Gui::Selection().
|
static |
References Base::Tools::escapedUnicodeFromUtf8().
|
protectedvirtual |
Implements Gui::SelectionObserver.
References Gui::SelectionChanges::AddSelection, Gui::Dialog::Ui_DlgPropertyLink::checkSubObject, App::GeoFeature::resolveElement(), and Gui::Dialog::Ui_DlgPropertyLink::treeWidget.
Referenced by init().
QList< App::SubObjectT > DlgPropertyLink::originalLinks | ( | ) | const |
|
protected |
References attachObserver().