gui::TreeItemOutline Class Reference

Tree item containing one outline. More...

#include <treeitemoutline.h>

Inheritance diagram for gui::TreeItemOutline:
gui::TreeItemDict gui::TreeItem gui::TreeItemAbstract

List of all members.

Public Member Functions

 TreeItemOutline (TreeData *_data, Q_ListView *parent, OutlineItem pdfObj, const QString name=QString::null, Q_ListViewItem *after=NULL, const QString &nameId=NULL)
 TreeItemOutline (TreeData *_data, Q_ListViewItem *parent, OutlineItem pdfObj, const QString name=QString::null, Q_ListViewItem *after=NULL, const QString &nameId=NULL)
virtual ~TreeItemOutline ()
virtual void reloadSelf ()

Private Member Functions

void showTitle ()

Private Attributes

QString title

Detailed Description

Tree item containing one outline.

Class holding one outline in tree.
As outline is essentially a dictionary, this item behaves almost like a dictionary item
Most notable difference is showing the outline title in the tree.


Constructor & Destructor Documentation

gui::TreeItemOutline::TreeItemOutline ( TreeData _data,
Q_ListView *  parent,
OutlineItem  pdfObj,
const QString  name = QString::null,
Q_ListViewItem *  after = NULL,
const QString &  nameId = NULL 
)

constructor of TreeItem - create root item from given object

Parameters:
parent Q_ListView in which to put item
pdfObj Object contained in this item
nameId Internal name of this item
name Caption of this item - will be shown in treeview
_data TreeData containing necessary information about tree in which this item will be inserted
after Item after which this one will be inserted

References gui::TreeItemAbstract::data, gui::TreeItemAbstract::reload(), and showTitle().

gui::TreeItemOutline::TreeItemOutline ( TreeData _data,
Q_ListViewItem *  parent,
OutlineItem  pdfObj,
const QString  name = QString::null,
Q_ListViewItem *  after = NULL,
const QString &  nameId = NULL 
)

constructor of TreeItem - create child item from given object

Parameters:
parent Q_ListViewItem which is parent of this object
pdfObj Object contained in this item
nameId Internal name of this item
name Caption of this item - will be shown in treeview
_data TreeData containing necessary information about tree in which this item will be inserted
after Item after which this one will be inserted

gui::TreeItemOutline::~TreeItemOutline (  )  [virtual]

default destructor


Member Function Documentation

void gui::TreeItemOutline::reloadSelf (  )  [virtual]

Reload contents of itself and only itself (excluding any children)

Reimplemented from gui::TreeItem.

void gui::TreeItemOutline::showTitle (  )  [private]

Update title of the item

Referenced by TreeItemOutline().


Member Data Documentation

QString gui::TreeItemOutline::title [private]

outline title


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