gui::ListItem Class Reference

List of all members.

Public Member Functions

 ListItem (NodeData *_nodeData, Q_ListBox *_parent, const QString &text=QString::null)
 ListItem (NodeData *_nodeData, const QString &text=QString::null)
 ListItem (NodeData *_nodeData, Q_ListBox *_parent, const QString &text, Q_ListBoxItem *after)
const NodeDatagetNodeData () const
NodeDatagetNodeData ()
bool isType (NodeData::Type type)

Private Attributes

NodeDatanodeData

Detailed Description

List box item. Inherits from QListBoxText item type and adds NodeData data field.


Constructor & Destructor Documentation

gui::ListItem::ListItem ( NodeData _nodeData,
Q_ListBox *  _parent,
const QString &  text = QString::null 
) [inline]
gui::ListItem::ListItem ( NodeData _nodeData,
const QString &  text = QString::null 
) [inline]
gui::ListItem::ListItem ( NodeData _nodeData,
Q_ListBox *  _parent,
const QString &  text,
Q_ListBoxItem *  after 
) [inline]

Member Function Documentation

NodeData* gui::ListItem::getNodeData (  )  [inline]

Returns pointer to nodeData field.

Returns:
Pointer to nodeData.

References nodeData.

const NodeData* gui::ListItem::getNodeData (  )  const [inline]

Returns pointer to nodeData field.

Returns:
Constant pointer to nodeData.

References nodeData.

Referenced by gui::MergeDialog::getResult(), and gui::MergeDialog::removeBtn_clicked().

bool gui::ListItem::isType ( NodeData::Type  type  )  [inline]

Checks wheter this item has node data with given type.

Parameters:
type Type to compare with.
Returns:
true if nodeData is non null and has the same type as given one, false otherwise.

References nodeData, and gui::NodeData::type.

Referenced by gui::MergeDialog::getResult().


Member Data Documentation

Referenced by getNodeData(), and isType().


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