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

#include <PropertyItem.h>

Inheritance diagram for te::vp::PropertyItem:
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 ()
 
const std::string getItemType () const
 It returns the item type. More...
 
te::map::AbstractLayerPtr getLayer () const
 
QMenu * getMenu (QWidget *parent=0) const
 
te::dt::PropertygetProperty () const
 
bool hasChildren () const
 
bool isSelected ()
 Check if the Property is selected. More...
 
 PropertyItem (te::dt::Property *p, te::qt::widgets::AbstractTreeItem *parent)
 
bool setData (int column, const QVariant &value, int role=Qt::EditRole)
 
void setSelected (bool selected)
 Set the Property as selected. More...
 
 ~PropertyItem ()
 

Private Attributes

te::dt::Propertym_property
 Terralib Property of the LayerItem. More...
 
bool m_selected
 Property select state. More...
 

Detailed Description

Definition at line 40 of file PropertyItem.h.

Constructor & Destructor Documentation

te::vp::PropertyItem::PropertyItem ( te::dt::Property p,
te::qt::widgets::AbstractTreeItem parent 
)
te::vp::PropertyItem::~PropertyItem ( )

Definition at line 43 of file PropertyItem.cpp.

Member Function Documentation

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

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

Definition at line 78 of file PropertyItem.cpp.

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

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

Definition at line 49 of file PropertyItem.cpp.

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

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

Definition at line 54 of file PropertyItem.cpp.

References te::vp::LayerItem::isSelected().

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

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

Definition at line 88 of file PropertyItem.cpp.

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

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

Definition at line 83 of file PropertyItem.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
const std::string te::vp::PropertyItem::getItemType ( ) const
virtual

It returns the item type.

Returns
The item type.

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

Definition at line 140 of file PropertyItem.cpp.

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

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

Definition at line 125 of file PropertyItem.cpp.

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

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

Definition at line 67 of file PropertyItem.cpp.

te::dt::Property * te::vp::PropertyItem::getProperty ( ) const

Definition at line 120 of file PropertyItem.cpp.

Referenced by te::vp::LayerItem::getSelected().

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

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

Definition at line 92 of file PropertyItem.cpp.

bool te::vp::PropertyItem::isSelected ( )

Check if the Property is selected.

Returns
True if the Property is selected.

Definition at line 135 of file PropertyItem.cpp.

Referenced by te::vp::LayerItem::getSelected().

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

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

Definition at line 97 of file PropertyItem.cpp.

void te::vp::PropertyItem::setSelected ( bool  selected)

Set the Property as selected.

Parameters
selectedTrue or False to Property select state.

Definition at line 130 of file PropertyItem.cpp.

Referenced by te::vp::LayerItem::setData().

Member Data Documentation

te::dt::Property* te::vp::PropertyItem::m_property
private

Terralib Property of the LayerItem.

Definition at line 88 of file PropertyItem.h.

bool te::vp::PropertyItem::m_selected
private

Property select state.

Definition at line 89 of file PropertyItem.h.


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