summaryrefslogtreecommitdiff
path: root/src/interface/Button.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-11-26 11:48:27 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-11-26 11:48:27 (GMT)
commit3664a22f98951548fc2257fb78f3c0232bb9beeb (patch)
treea80d148d5c01b0ff14734828837ff17e33ca2eb3 /src/interface/Button.h
parentb08812569cf96dcd5a62c8d0467bd14f3ae90e54 (diff)
downloadpowder-3664a22f98951548fc2257fb78f3c0232bb9beeb.zip
powder-3664a22f98951548fc2257fb78f3c0232bb9beeb.tar.gz
Right clicking on reload button will show save preview.
Diffstat (limited to 'src/interface/Button.h')
-rw-r--r--src/interface/Button.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interface/Button.h b/src/interface/Button.h
index 5bc7fc3..dff15b4 100644
--- a/src/interface/Button.h
+++ b/src/interface/Button.h
@@ -20,6 +20,7 @@ class ButtonAction
{
public:
virtual void ActionCallback(ui::Button * sender) {}
+ virtual void AltActionCallback(ui::Button * sender) {}
virtual void MouseEnterCallback(ui::Button * sender) {}
virtual ~ButtonAction() {}
};
@@ -45,6 +46,7 @@ public:
virtual void TextPosition();
inline bool GetState() { return state; }
virtual void DoAction(); //action of button what ever it may be
+ virtual void DoAltAction(); //action of button what ever it may be
void SetTogglable(bool isTogglable);
bool GetTogglable();
TPT_NO_INLINE bool GetToggleState();
@@ -60,7 +62,7 @@ protected:
std::string buttonDisplayText;
std::string ButtonText;
- bool isButtonDown, state, isMouseInside, isTogglable, toggle;
+ bool isButtonDown, isAltButtonDown, state, isMouseInside, isTogglable, toggle;
ButtonAction * actionCallback;
};