summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Tool.h5
-rw-r--r--ToolAddPolygon.h4
-rw-r--r--ToolAddRect.h6
-rw-r--r--ToolGrab.h4
-rw-r--r--ToolRotate.h4
-rw-r--r--ToolSelector.h4
6 files changed, 5 insertions, 22 deletions
diff --git a/Tool.h b/Tool.h
index a6c0ee0..56c1605 100644
--- a/Tool.h
+++ b/Tool.h
@@ -20,7 +20,10 @@ class Tool : public Object {
}
virtual GtkWidget* getImage() = 0;
- virtual bool isSensitive() = 0;
+
+ virtual bool isSensitive() const {
+ return true;
+ }
virtual bool hoverFilter(const LevelObject &object) const = 0;
diff --git a/ToolAddPolygon.h b/ToolAddPolygon.h
index b63f78e..2237a65 100644
--- a/ToolAddPolygon.h
+++ b/ToolAddPolygon.h
@@ -36,10 +36,6 @@ class ToolAddPolygon : public Tool, private EventHandler, private Renderer {
return "Add polygonal room";
}
- virtual bool isSensitive() {
- return TRUE;
- }
-
virtual GtkWidget *getImage() {
return image;
}
diff --git a/ToolAddRect.h b/ToolAddRect.h
index 8c777f4..b207efe 100644
--- a/ToolAddRect.h
+++ b/ToolAddRect.h
@@ -5,7 +5,7 @@
#include "SidebarAdd.h"
-class ToolAddRect : public Tool, public EventHandler, public Renderer {
+class ToolAddRect : public Tool, private EventHandler, private Renderer {
private:
GtkWidget *image;
@@ -36,10 +36,6 @@ class ToolAddRect : public Tool, public EventHandler, public Renderer {
return "Add rectangular room";
}
- virtual bool isSensitive() {
- return TRUE;
- }
-
virtual GtkWidget *getImage() {
return image;
}
diff --git a/ToolGrab.h b/ToolGrab.h
index d0a6091..fc9f582 100644
--- a/ToolGrab.h
+++ b/ToolGrab.h
@@ -35,10 +35,6 @@ class ToolGrab : public Tool, private EventHandler {
return "Grab";
}
- virtual bool isSensitive() {
- return TRUE;
- }
-
virtual GtkWidget *getImage() {
return image;
}
diff --git a/ToolRotate.h b/ToolRotate.h
index 0a3ea0b..92aeab7 100644
--- a/ToolRotate.h
+++ b/ToolRotate.h
@@ -35,10 +35,6 @@ class ToolRotate : public Tool, private EventHandler, private Renderer {
return "Rotate";
}
- virtual bool isSensitive() {
- return TRUE;
- }
-
virtual GtkWidget *getImage() {
return image;
}
diff --git a/ToolSelector.h b/ToolSelector.h
index e2ce48a..f6a83c1 100644
--- a/ToolSelector.h
+++ b/ToolSelector.h
@@ -30,10 +30,6 @@ class ToolSelector : public Tool, public EventHandler {
return "Select";
}
- virtual bool isSensitive() {
- return TRUE;
- }
-
virtual GtkWidget *getImage() {
return image;
}