SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Base class for widgets that deal with attribute associations. More...
#include <qtAssociationWidget.h>
Public Slots | |
virtual void | showEntityAssociation (smtk::attribute::AttributePtr theAtt)=0 |
Display/Modify the association information to a specific attribute. | |
virtual void | showEntityAssociation (smtk::attribute::DefinitionPtr theDef)=0 |
Display/Modify the association information to a specific attribute definition. | |
Signals | |
void | attAssociationChanged () |
void | availableChanged () |
Public Member Functions | |
qtAssociationWidget (QWidget *p, qtBaseView *view) | |
virtual bool | hasSelectedItem ()=0 |
Return true if there are persistent objects selected. More... | |
virtual bool | isValid () const =0 |
return true if the association information is valid. More... | |
Protected Attributes | |
QPointer< qtBaseView > | m_view |
Base class for widgets that deal with attribute associations.
|
pure virtual |
Return true if there are persistent objects selected.
This comes in handy when a parent group view changes tabs. With this you can prevent tab switching from changing selection state when returning to the view owning this widget
Implemented in smtk::extension::qtAssociation2ColumnWidget.
|
pure virtual |
return true if the association information is valid.
Note that this not only can refer to the requirements related to the target attribute but also to requirements imposed by the View description such as requiring that all "appropriate" persistent objects be associated with an attribute of a specified type.
Implemented in smtk::extension::qtAssociation2ColumnWidget.