27 #include "../../common/Translator.h" 
   28 #include "../../datatype/Property.h" 
   29 #include "../../qt/widgets/layer/explorer/LegendItem.h" 
   30 #include "../../se/Rule.h" 
   31 #include "../Exception.h" 
   38   : AbstractTreeItem(parent)
 
   43   for(
size_t i = 0; i < rules.size(); ++i)
 
   66   if(role == Qt::DisplayRole && column == 0)
 
   67     return QVariant(
TE_TR(
"Legends"));
 
   79   if(!children().empty ())
 
   87   return Qt::ItemIsUserCheckable;
 
   96   return m_items.size() > 0 ? 
true : 
false;
 
  116   return "LEGEND_ITEM";
 
const std::string getItemType() const 
It returns the item type. 
 
std::vector< te::qt::widgets::AbstractTreeItem * > getItems() const 
 
bool canFetchMore() const 
 
te::map::AbstractLayerPtr getLayer() const 
 
A class that represents a group of legends in a LayerTreeModel. 
 
#define TE_TR(message)
It marks a string in order to get translated. 
 
QMenu * getMenu(QWidget *parent=0) const 
 
Qt::ItemFlags flags() const 
 
QVariant data(int column, int role) const 
 
LegendGroupItem(std::vector< te::se::Rule * > rules, AbstractTreeItem *parent)
 
std::vector< te::qt::widgets::AbstractTreeItem * > m_items
 
A Rule is used to attach property/scale conditions to and group the individual symbols used for rende...
 
bool setData(int column, const QVariant &value, int role=Qt::EditRole)
 
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr