SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Slots | Signals | Public Member Functions | Protected Attributes | List of all members
smtk::extension::qtAssociationWidget Class Referenceabstract

Base class for widgets that deal with attribute associations. More...

#include <qtAssociationWidget.h>

Inheritance diagram for smtk::extension::qtAssociationWidget:
[legend]
Collaboration diagram for smtk::extension::qtAssociationWidget:
[legend]

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< qtBaseViewm_view
 

Detailed Description

Base class for widgets that deal with attribute associations.

Member Function Documentation

◆ hasSelectedItem()

virtual bool smtk::extension::qtAssociationWidget::hasSelectedItem ( )
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.

◆ isValid()

virtual bool smtk::extension::qtAssociationWidget::isValid ( ) const
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.


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