DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
shapefilelayerentity.h
Go to the documentation of this file.
1 #ifndef SHAPEFILELAYERENTITY_H
2 #define SHAPEFILELAYERENTITY_H
3 
4 #include <objects/layerentity.h>
5 
6 namespace objecttree {
7 
9 {
10  Q_OBJECT
11 public:
12  explicit ShapefileLayerEntity(ObjectTreeModel *_model, int LayerEntity_idx = -1);
13  virtual ~ShapefileLayerEntity();
14  QModelIndex index(int row, int column, const QModelIndex &parent) const override;
15 
16  virtual QMenu *contextMenu() const override ;
17 
18 public slots:
19  void onActionShapeColor();
20 
21 private:
22  QMenu *mContextMenu;
23 
24  void initMenu();
25 };
26 
27 } // ns
28 
29 #endif // SHAPEFILELAYERENTITY_H
Definition: benthosentity.cpp:27
void onActionShapeColor()
Definition: shapefilelayerentity.cpp:64
virtual ~ShapefileLayerEntity()
Definition: shapefilelayerentity.cpp:39
virtual QModelIndex parent(const QModelIndex &parent) const
Definition: layerentity.cpp:42
ShapefileLayerEntity(ObjectTreeModel *_model, int LayerEntity_idx=-1)
Definition: shapefilelayerentity.cpp:33
virtual QMenu * contextMenu() const override
Definition: shapefilelayerentity.cpp:52
Definition: objecttreemodel.h:39
QModelIndex index(int row, int column, const QModelIndex &parent) const override
Definition: shapefilelayerentity.cpp:44
Generic Entity for layer management.
Definition: layerentity.h:33
Definition: shapefilelayerentity.h:8