All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::vp::LegendGroupItem Class Reference

#include <LegendGroupItem.h>

Inheritance diagram for te::vp::LegendGroupItem:
te::qt::widgets::AbstractTreeItem

Public Member Functions

bool canFetchMore () const
 
int columnCount () const
 
QVariant data (int column, int role) const
 
void fetchMore ()
 
Qt::ItemFlags flags () const
 
std::vector
< te::qt::widgets::AbstractTreeItem * > 
getAncestors ()
 
std::vector
< te::qt::widgets::AbstractTreeItem * > 
getDescendants ()
 
std::vector
< te::qt::widgets::AbstractTreeItem * > 
getItems () const
 
const std::string getItemType () const
 It returns the item type. More...
 
te::map::AbstractLayerPtr getLayer () const
 
QMenu * getMenu (QWidget *parent=0) const
 
bool hasChildren () const
 
 LegendGroupItem (std::vector< te::se::Rule * > rules, AbstractTreeItem *parent)
 
bool setData (int column, const QVariant &value, int role=Qt::EditRole)
 
 ~LegendGroupItem ()
 

Private Attributes

std::vector
< te::qt::widgets::AbstractTreeItem * > 
m_items
 

Detailed Description

Definition at line 42 of file LegendGroupItem.h.

Constructor & Destructor Documentation

te::vp::LegendGroupItem::LegendGroupItem ( std::vector< te::se::Rule * >  rules,
AbstractTreeItem parent 
)

Definition at line 37 of file LegendGroupItem.cpp.

References m_items, and te::qt::widgets::LegendItem::setCheckable().

te::vp::LegendGroupItem::~LegendGroupItem ( )

Definition at line 55 of file LegendGroupItem.cpp.

Member Function Documentation

bool te::vp::LegendGroupItem::canFetchMore ( ) const
virtual

Implements te::qt::widgets::AbstractTreeItem.

Definition at line 77 of file LegendGroupItem.cpp.

int te::vp::LegendGroupItem::columnCount ( ) const
virtual

Implements te::qt::widgets::AbstractTreeItem.

Definition at line 59 of file LegendGroupItem.cpp.

QVariant te::vp::LegendGroupItem::data ( int  column,
int  role 
) const
virtual

Implements te::qt::widgets::AbstractTreeItem.

Definition at line 64 of file LegendGroupItem.cpp.

References TE_TR.

void te::vp::LegendGroupItem::fetchMore ( )
virtual

Implements te::qt::widgets::AbstractTreeItem.

Definition at line 90 of file LegendGroupItem.cpp.

Qt::ItemFlags te::vp::LegendGroupItem::flags ( ) const
virtual

Implements te::qt::widgets::AbstractTreeItem.

Definition at line 85 of file LegendGroupItem.cpp.

std::vector< te::qt::widgets::AbstractTreeItem * > te::qt::widgets::AbstractTreeItem::getAncestors ( )
inherited

Definition at line 60 of file AbstractTreeItem.cpp.

Referenced by te::qt::widgets::LayerTreeView::onItemClicked().

std::vector< te::qt::widgets::AbstractTreeItem * > te::qt::widgets::AbstractTreeItem::getDescendants ( )
inherited
std::vector< te::qt::widgets::AbstractTreeItem * > te::vp::LegendGroupItem::getItems ( ) const

Definition at line 109 of file LegendGroupItem.cpp.

const std::string te::vp::LegendGroupItem::getItemType ( ) const
virtual

It returns the item type.

Returns
The item type.

Implements te::qt::widgets::AbstractTreeItem.

Definition at line 114 of file LegendGroupItem.cpp.

te::map::AbstractLayerPtr te::vp::LegendGroupItem::getLayer ( ) const
virtual

Implements te::qt::widgets::AbstractTreeItem.

Definition at line 104 of file LegendGroupItem.cpp.

QMenu * te::vp::LegendGroupItem::getMenu ( QWidget *  parent = 0) const
virtual

Implements te::qt::widgets::AbstractTreeItem.

Definition at line 72 of file LegendGroupItem.cpp.

bool te::vp::LegendGroupItem::hasChildren ( ) const
virtual

Implements te::qt::widgets::AbstractTreeItem.

Definition at line 94 of file LegendGroupItem.cpp.

bool te::vp::LegendGroupItem::setData ( int  column,
const QVariant &  value,
int  role = Qt::EditRole 
)
virtual

Implements te::qt::widgets::AbstractTreeItem.

Definition at line 99 of file LegendGroupItem.cpp.

Member Data Documentation

std::vector<te::qt::widgets::AbstractTreeItem*> te::vp::LegendGroupItem::m_items
private

Definition at line 76 of file LegendGroupItem.h.

Referenced by LegendGroupItem().


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