diff options
author | neoraider <devnull@localhost> | 2008-01-16 17:11:00 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-01-16 17:11:00 +0100 |
commit | 8b4b9845d657970b920667f2c2ca64a4974463e9 (patch) | |
tree | 4c7d1d09cce705118c220967dc94873852d1669c /ToolSelector.h | |
parent | e9d27f488c8653967c9a5b86c94801367253444c (diff) | |
download | zoomedit-8b4b9845d657970b920667f2c2ca64a4974463e9.tar zoomedit-8b4b9845d657970b920667f2c2ca64a4974463e9.zip |
zoomedit: Let tools decide wether to highlight hovered objects.
Diffstat (limited to 'ToolSelector.h')
-rw-r--r-- | ToolSelector.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ToolSelector.h b/ToolSelector.h index 5ba2bcd..7f38d81 100644 --- a/ToolSelector.h +++ b/ToolSelector.h @@ -26,6 +26,10 @@ class ToolSelector : public Tool, public EventHandler { return "ToolSelector"; } + virtual void activate() { + editManager->highlightHoveredObject(); + } + virtual const char *getName() const { return "Select"; } @@ -44,6 +48,12 @@ class ToolSelector : public Tool, public EventHandler { virtual bool buttonPress(unsigned int button); + virtual bool motion() { + editManager->highlightHoveredObject(); + + return true; + } + virtual Sidebar* getSidebar() { return &sidebar; } |