summaryrefslogtreecommitdiff
path: root/src/localbrowser/LocalBrowserView.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/localbrowser/LocalBrowserView.h')
-rw-r--r--src/localbrowser/LocalBrowserView.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/localbrowser/LocalBrowserView.h b/src/localbrowser/LocalBrowserView.h
new file mode 100644
index 0000000..7a8c813
--- /dev/null
+++ b/src/localbrowser/LocalBrowserView.h
@@ -0,0 +1,44 @@
+/*
+ * StampsView.h
+ *
+ * Created on: Mar 29, 2012
+ * Author: Simon
+ */
+
+#ifndef STAMPSVIEW_H_
+#define STAMPSVIEW_H_
+
+#include <vector>
+#include "interface/Window.h"
+
+namespace ui
+{
+ class Label;
+ class Button;
+ class SaveButton;
+}
+
+class LocalBrowserController;
+class LocalBrowserModel;
+class LocalBrowserView: public ui::Window {
+ LocalBrowserController * c;
+ std::vector<ui::SaveButton*> stampButtons;
+ ui::Button * undeleteButton;
+ ui::Button * previousButton;
+ ui::Button * nextButton;
+ ui::Label * infoLabel;
+ ui::Button * removeSelected;
+public:
+ LocalBrowserView();
+ //virtual void OnDraw();
+ virtual void OnTick(float dt);
+ void AttachController(LocalBrowserController * c_) { c = c_; };
+ void NotifyPageChanged(LocalBrowserModel * sender);
+ void NotifySavesListChanged(LocalBrowserModel * sender);
+ void NotifySelectedChanged(LocalBrowserModel * sender);
+ virtual void OnMouseWheel(int x, int y, int d);
+ virtual void OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt);
+ virtual ~LocalBrowserView();
+};
+
+#endif /* STAMPSVIEW_H_ */