summaryrefslogtreecommitdiffstats
path: root/Tool.h
blob: b1e37318b6bb9c7cd27954f1cf6c6dce5220c13c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef TOOL_H_
#define TOOL_H_

#include "Object.h"
#include <gtk/gtk.h>


class Tool : public Object {
  public:
    virtual ~Tool() {}
    
    virtual void activate() {};
    virtual void deactivate() {};
    
    virtual const char *getName() const {
      return getType();
    }
    
    virtual GtkWidget *getImage() = 0;
    virtual bool isSensitive() = 0;
};

#endif /*TOOL_H_*/