diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-14 11:03:33 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-14 11:03:33 (GMT) |
| commit | b05a847e967f5223b287e85f06b2be382b89fe19 (patch) | |
| tree | beb6176d2c3bfffd48e50e6d038ee420f9d12ed4 /src/interface/SaveButton.h | |
| parent | c259521e5e7985176d9ed19b4be509c4e820d954 (diff) | |
| download | powder-b05a847e967f5223b287e85f06b2be382b89fe19.zip powder-b05a847e967f5223b287e85f06b2be382b89fe19.tar.gz | |
Fix crash when using search (std::remove doesn't seem to work as I expected), Add clickable author names for search. Fixes #95
Diffstat (limited to 'src/interface/SaveButton.h')
| -rw-r--r-- | src/interface/SaveButton.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interface/SaveButton.h b/src/interface/SaveButton.h index a5902cd..d1ae05a 100644 --- a/src/interface/SaveButton.h +++ b/src/interface/SaveButton.h @@ -18,6 +18,7 @@ class SaveButtonAction { public: virtual void ActionCallback(ui::SaveButton * sender) {} + virtual void AuthorActionCallback(ui::SaveButton * sender) {} virtual void SelectedCallback(ui::SaveButton * sender) {} virtual ~SaveButtonAction() {} }; @@ -30,6 +31,7 @@ class SaveButton : public Component, public ThumbnailListener std::string name; bool wantsDraw; bool waitingForThumb; + bool isMouseInsideAuthor; public: SaveButton(Point position, Point size, SaveInfo * save); SaveButton(Point position, Point size, SaveFile * file); @@ -41,6 +43,8 @@ public: virtual void OnMouseEnter(int x, int y); virtual void OnMouseLeave(int x, int y); + virtual void OnMouseMovedInside(int x, int y, int dx, int dy); + virtual void Draw(const Point& screenPos); virtual void Tick(float dt); @@ -55,6 +59,7 @@ public: SaveFile * GetSaveFile() { return file; } inline bool GetState() { return state; } virtual void DoAction(); + virtual void DoAuthorAction(); virtual void DoSelection(); void SetActionCallback(SaveButtonAction * action); protected: |
