Gui::Dialog::DlgPropertyLink Class Reference

#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 *)
 

Constructor & Destructor Documentation

◆ DlgPropertyLink()

◆ ~DlgPropertyLink()

DlgPropertyLink::~DlgPropertyLink ( )

Destroys the object and frees any allocated resources.

References detachObserver().

Member Function Documentation

◆ accept()

◆ attachObserver()

◆ closeEvent()

void DlgPropertyLink::closeEvent ( QCloseEvent *  e)
protected

References detachObserver().

◆ currentLinks()

QList< App::SubObjectT > DlgPropertyLink::currentLinks ( ) const

◆ detachObserver()

◆ eventFilter()

bool DlgPropertyLink::eventFilter ( QObject *  obj,
QEvent *  ev 
)
protected

◆ formatLinks()

QString DlgPropertyLink::formatLinks ( App::Document *  ownerDoc,
QList< App::SubObjectT >  links 
)
static

References formatObject().

◆ formatObject() [1/2]

QString DlgPropertyLink::formatObject ( App::Document *  ownerDoc,
App::DocumentObject *  obj,
const char *  sub 
)
static

Referenced by formatLinks(), and formatObject().

◆ formatObject() [2/2]

static QString Gui::Dialog::DlgPropertyLink::formatObject ( App::Document *  ownerDoc,
const App::SubObjectT &  sobj 
)
static

◆ getLinksFromProperty()

QList< App::SubObjectT > DlgPropertyLink::getLinksFromProperty ( const App::PropertyLinkBase *  prop)
static

References App::PropertyLinkBase::getLinks().

Referenced by init().

◆ hideEvent()

void DlgPropertyLink::hideEvent ( QHideEvent *  ev)
protected

References detachObserver().

◆ init()

◆ keyPressEvent()

void DlgPropertyLink::keyPressEvent ( QKeyEvent *  ev)
protected

◆ leaveEvent()

void DlgPropertyLink::leaveEvent ( QEvent *  ev)
protected

◆ linksToPython()

QString DlgPropertyLink::linksToPython ( QList< App::SubObjectT >  links)
static

◆ onSelectionChanged()

◆ originalLinks()

QList< App::SubObjectT > DlgPropertyLink::originalLinks ( ) const

◆ showEvent()

void DlgPropertyLink::showEvent ( QShowEvent *  ev)
protected

References attachObserver().


The documentation for this class was generated from the following files: