diff options
author | neoraider <devnull@localhost> | 2008-02-19 19:27:04 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-02-19 19:27:04 +0100 |
commit | db5647f2867daec941d1cdc44fea3a8a1f77544d (patch) | |
tree | 65f651f10e8d3b92b759f372d602ecd5796e11ff | |
parent | 4c9b0f34f8ebd9cc5a00e49f39e7c9fddda08ec1 (diff) | |
download | zoomedit-db5647f2867daec941d1cdc44fea3a8a1f77544d.tar zoomedit-db5647f2867daec941d1cdc44fea3a8a1f77544d.zip |
zoomedit: Removed unnecessary isSensitive methods.
-rw-r--r-- | Tool.h | 5 | ||||
-rw-r--r-- | ToolAddPolygon.h | 4 | ||||
-rw-r--r-- | ToolAddRect.h | 6 | ||||
-rw-r--r-- | ToolGrab.h | 4 | ||||
-rw-r--r-- | ToolRotate.h | 4 | ||||
-rw-r--r-- | ToolSelector.h | 4 |
6 files changed, 5 insertions, 22 deletions
@@ -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; } @@ -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; } |