summaryrefslogtreecommitdiffstats
path: root/ToolAddPolygon.h
blob: d3ec2d3d403983ea4a322414e467018fb61c01c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef TOOLADDPOLYGON_H_
#define TOOLADDPOLYGON_H_

#include "Tool.h"
#include "EditManager.h"

class ToolAddPolygon : public Tool {
  private:
    GtkWidget *image;
    
    EditManager *editManager;
    
    static const gchar* name;
    
    // prevent shallow copy
    ToolAddPolygon(const ToolAddPolygon &t);
    const ToolAddPolygon& operator=(const ToolAddPolygon &t);
    
  public:
    ToolAddPolygon(EditManager *editManager);
    virtual ~ToolAddPolygon();
    
    virtual void activate();
    virtual void deactivate();
    
    virtual const gchar *getName() {
      return name;
    }
    
    bool isSensitive() {
      return TRUE;
    }
    
    virtual GtkWidget *getImage();
};

#endif /*TOOLADDPOLYGON_H_*/