2 #include "../../widgets/propertybrowser/AbstractPropertyManager.h"
4 #include "../../../../maptools/AbstractLayer.h"
14 layerInfo_prop->addSubProperty(id_prop);
15 id_prop->setEnabled(
false);
18 layerInfo_prop->addSubProperty(title_prop);
19 title_prop->setPropertyName(
"title");
20 title_prop->setEnabled(
false);
23 layerInfo_prop->addSubProperty(srid_prop);
24 srid_prop->setPropertyName(
"srid");
25 srid_prop->setEnabled(
false);
35 llx_prop->setEnabled(
false);
36 lly_prop->setEnabled(
false);
37 urx_prop->setEnabled(
false);
38 ury_prop->setEnabled(
false);
40 bbox_prop->addSubProperty(llx_prop);
41 bbox_prop->addSubProperty(lly_prop);
42 bbox_prop->addSubProperty(urx_prop);
43 bbox_prop->addSubProperty(ury_prop);
45 layerInfo_prop->addSubProperty(bbox_prop);
50 visEnum << tr(
"Not visible") << tr(
"visible") << tr(
"Partially visible");
53 layerInfo_prop->addSubProperty(vis_prop);
54 vis_prop->setPropertyName(
"visibility");
55 vis_prop->setEnabled(
false);
67 addProperty(layerInfo_prop, tr(
"Layer properties"), Qt::lightGray);
76 if(p->propertyName() ==
"srid")
77 m_layer->setSRID(value);
78 else if(p->propertyName() ==
"visibility")
84 if(p->propertyName() ==
"title")
85 m_layer->setTitle(value.toStdString());
virtual const std::string & getTitle() const
It returns the layer title.
This is the base class for layers.
const double & getLowerLeftY() const
It returns a constant refernce to the y coordinate of the lower left corner.
virtual ~LayerPropertiesInfo()
Destructor.
virtual void valueChanged(QtProperty *p, int value)
Visibility
Each layer can have three states of visibility.
const double & getLowerLeftX() const
It returns a constant reference to the x coordinate of the lower left corner.
virtual const te::gm::Envelope & getExtent() const
It returns the Layer extent (or minimum bounding box).
A widget used to define the main property items that can be used to describe a se object...
const double & getUpperRightX() const
It returns a constant refernce to the x coordinate of the upper right corner.
te::map::AbstractLayer * m_layer
void addProperty(QtProperty *property, const QString &id, QColor c)
const double & getUpperRightY() const
It returns a constant refernce to the x coordinate of the upper right corner.
virtual Visibility getVisibility() const
It returns the layer visibility.
static AbstractPropertyManager & getInstance()
It returns a reference to the singleton instance.
virtual int getSRID() const
It returns the Spatial Reference System ID associated to the Layer.
LayerPropertiesInfo(QtTreePropertyBrowser *pb, te::map::AbstractLayer *layer)
Constructor.
virtual const std::string & getId() const
It returns the layer id.