All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Types | Public Member Functions
Qtilities::CoreGui::ObserverTreeItem Class Reference

The ObserverTreeItem class represents a single observer item in a tree view. More...

#include <ObserverTreeItem.h>

List of all members.

Public Types

enum  TreeItemType { InvalidType = 0, TreeItem = 1, TreeNode = 2, CategoryItem = 4 }
 The possible types of items which can be part of the constructed observer tree. More...

Public Member Functions

QtilitiesCategory category () const
 Gets the category represented through this item. Only used with CategoryItem types.
ObserverTreeItemchildWithName (const QString &name) const
 Checks if a child with the name already exists.
ObservercontainedObserver () const
 Gets the contained observer reference. The reference is held by the category item.
void setCategory (const QtilitiesCategory &category)
 Sets the category represented through this item. Only used with CategoryItem types.
void setContainedObserver (Observer *contained_observer)
 Sets a references to an observer in the case where the observer is contained within an interface.

Detailed Description

The ObserverTreeItem class represents a single observer item in a tree view.

This class should not be confused with TreeItem or TreeFileItem which are actual objects that are used to build tree structures along with TreeNode. The ObserverTreeItem class is used internally by ObserverTreeModel to construct a model used to display an Qtilities::Core::Observer tree structure and should not be used directly.


Member Enumeration Documentation

The possible types of items which can be part of the constructed observer tree.

Enumerator:
InvalidType 

An invalid type.

TreeItem 

A tree item.

TreeNode 

A tree node.

CategoryItem 

A category item.


Member Function Documentation

Qtilities::CoreGui::ObserverTreeItem * Qtilities::CoreGui::ObserverTreeItem::childWithName ( const QString &  name) const

Checks if a child with the name already exists.

If the child already exists a reference is returned to it. If not 0 is returned.



Qtilities : Reference Documentation Back to top Copyright © 2009-2013, Jaco Naudé