|
| qtReferenceTree (const qtAttributeItemInfo &info) |
|
void | markForDeletion () override |
| Indicates that the item should be deleted. More...
|
|
qt::MembershipCriteria | membershipCriteria () const |
|
std::string | membershipFilter () const |
|
void | setLabelVisible (bool) override |
|
bool | setSelectionIconPaths (const std::string &selectedIconPath, const std::string &unselectedIconPath) |
| Set the paths (into qrc files or the local filesystem) of icons used to indicate which items are selected and which are not. More...
|
|
std::pair< std::string, std::string > | selectionIconPaths () const |
| Return the paths to icons used to display the membership in the item.
|
|
std::shared_ptr< smtk::view::PhraseModel > | phraseModel () const |
| Return the phrase model controlling the tree's contents.
|
|
| qtItem (const qtAttributeItemInfo &info) |
|
smtk::attribute::ItemPtr | item () const |
|
template<typename ItemType > |
std::shared_ptr< ItemType > | itemAs () const |
|
qtUIManager * | uiManager () const |
|
smtk::attribute::ResourcePtr | attributeResource () const |
| Return the underlying Attribute Resource.
|
|
QPointer< QWidget > | widget () |
|
QPointer< QWidget > | parentWidget () |
|
bool | isLeafItem () |
|
virtual bool | isFixedWidth () const |
|
void | showAdvanceLevelOverlay (bool) |
|
bool | useSelectionManager () const |
|
void | setReadOnly (bool mode) |
|
bool | isReadOnly () const |
|
virtual QWidget * | lastEditor () const |
| Returns editor widget, used when setting tab order.
|
|
virtual void | updateTabOrder (QWidget *) |
| Sets previous widget for tabbing order.
|
|
|
virtual smtk::view::PhraseModelPtr | createPhraseModel () const |
| Subclasses override this to create a model of the appropriate type. More...
|
|
void | createWidget () override |
|
virtual void | clearWidgets () |
|
virtual void | updateUI () |
|
bool | eventFilter (QObject *src, QEvent *event) override |
|
virtual void | toggleCurrentItem (bool membership) |
| Toggle the currently-selected item(s)'s membership (when membership is true) or visibility (when membership is false). More...
|
|
virtual bool | synchronize (UpdateSource src) |
| Children must implement this.
|
|
smtk::extension::qt::MembershipBadge::MemberMap & | members () const |
| retrieve membership from the phraseModel's badge
|
|
void | checkRemovedComponents (smtk::view::DescriptivePhrasePtr, smtk::view::PhraseModelEvent, const std::vector< int > &, const std::vector< int > &, const std::vector< int > &) |
|
virtual void | setLocalAdvanceLevel (unsigned int level) |
|
virtual void | addChildItem (qtItem *) |
|
virtual void | removeChildItem (qtItem *) |
|
virtual void | clearChildItems () |
|
QList< qtItem * > & | childItems () |
|
A tree-view UI for attribute associations and reference-items.
The qtReferenceTree class provides a uniform GUI for selecting entries that populate an attribute's item while abstracting away the types of those entries. The organization of the tree can be configured on a per-instance basis by choosing different phrase models and subphrase generators. A subset of the tree identified by a MembershipCriteria and a filter string is made available for selection (and thus inclusion in the associated or referenced components/resources/objects).
void qtReferenceTree::linkHover |
( |
bool |
link | ) |
|
|
protectedvirtualslot |
Link this item to the "hovered" selection bit.
This should set up the initial state, observe changes to the item, and update the selection, and add some indication to the item showing the "hovered" status (e.g., a color swatch).
bool qtReferenceTree::setSelectionIconPaths |
( |
const std::string & |
selectedIconPath, |
|
|
const std::string & |
unselectedIconPath |
|
) |
| |
Set the paths (into qrc files or the local filesystem) of icons used to indicate which items are selected and which are not.
This returns true if the values were modified and false otherwise.
Note that calling this method will not result in re-renders of any views displaying the model; you are responsible for calling this method before rendering takes place or for causing a render if calling after the initial render.