diff options
| author | jacob1 <jfu614@gmail.com> | 2012-09-11 00:09:22 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-16 11:05:29 (GMT) |
| commit | 8f58c61c69eaac8655d8894efd30433cc0f2a653 (patch) | |
| tree | 0959aadd9662e66b5fb9ce6f3302cd123509184d /src/interface/SaveButton.h | |
| parent | eac109a563682422f67b19e2a04cb8d0628c7185 (diff) | |
| download | powder-8f58c61c69eaac8655d8894efd30433cc0f2a653.zip powder-8f58c61c69eaac8655d8894efd30433cc0f2a653.tar.gz | |
Show number of votes and the history button on your own saves
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 d1ae05a..9e9bef5 100644 --- a/src/interface/SaveButton.h +++ b/src/interface/SaveButton.h @@ -19,6 +19,7 @@ class SaveButtonAction public: virtual void ActionCallback(ui::SaveButton * sender) {} virtual void AuthorActionCallback(ui::SaveButton * sender) {} + virtual void HistoryActionCallback(ui::SaveButton * sender) {} virtual void SelectedCallback(ui::SaveButton * sender) {} virtual ~SaveButtonAction() {} }; @@ -32,6 +33,8 @@ class SaveButton : public Component, public ThumbnailListener bool wantsDraw; bool waitingForThumb; bool isMouseInsideAuthor; + bool MouseInsideHistory; + bool showVotes; public: SaveButton(Point position, Point size, SaveInfo * save); SaveButton(Point position, Point size, SaveFile * file); @@ -54,12 +57,14 @@ public: bool GetSelected() { return selected; } void SetSelectable(bool selectable_) { selectable = selectable_; } bool GetSelectable() { return selectable; } + void SetShowVotes(bool showVotes_) { showVotes = showVotes_; } SaveInfo * GetSave() { return save; } SaveFile * GetSaveFile() { return file; } inline bool GetState() { return state; } virtual void DoAction(); virtual void DoAuthorAction(); + virtual void DoHistoryAction(); virtual void DoSelection(); void SetActionCallback(SaveButtonAction * action); protected: |
