summaryrefslogtreecommitdiff
path: root/src/interface/SaveButton.h
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-01-07 16:56:48 (GMT)
committer jacob1 <jfu614@gmail.com>2013-01-07 16:56:48 (GMT)
commit323dae959ad168b634599b27802fb03598305c81 (patch)
treecea0fb4d328d51ce0f0e5a6c64775231e768dbc0 /src/interface/SaveButton.h
parent659c3677aa159912518f8cd541adfae6dce6dcdc (diff)
downloadpowder-323dae959ad168b634599b27802fb03598305c81.zip
powder-323dae959ad168b634599b27802fb03598305c81.tar.gz
local save deletion and renaming with the right click context menu
Diffstat (limited to 'src/interface/SaveButton.h')
-rw-r--r--src/interface/SaveButton.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/interface/SaveButton.h b/src/interface/SaveButton.h
index 74dbc00..7a75973 100644
--- a/src/interface/SaveButton.h
+++ b/src/interface/SaveButton.h
@@ -18,8 +18,8 @@ class SaveButtonAction
{
public:
virtual void ActionCallback(ui::SaveButton * sender) {}
- virtual void AuthorActionCallback(ui::SaveButton * sender) {}
- virtual void HistoryActionCallback(ui::SaveButton * sender) {}
+ virtual void AltActionCallback(ui::SaveButton * sender) {}
+ virtual void AltActionCallback2(ui::SaveButton * sender) {}
virtual void SelectedCallback(ui::SaveButton * sender) {}
virtual ~SaveButtonAction() {}
};
@@ -53,6 +53,7 @@ public:
virtual void OnMouseMovedInside(int x, int y, int dx, int dy);
+ void AddContextMenu(int menuType);
virtual void OnContextMenuAction(int item);
virtual void Draw(const Point& screenPos);
@@ -70,8 +71,8 @@ public:
SaveFile * GetSaveFile() { return file; }
inline bool GetState() { return state; }
virtual void DoAction();
- virtual void DoAuthorAction();
- virtual void DoHistoryAction();
+ virtual void DoAltAction();
+ virtual void DoAltAction2();
virtual void DoSelection();
void SetActionCallback(SaveButtonAction * action);
protected: