summaryrefslogtreecommitdiff
path: root/src/interface/SaveButton.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface/SaveButton.h')
-rw-r--r--src/interface/SaveButton.h5
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: