summaryrefslogtreecommitdiff
path: root/src/stamps/StampsView.h
blob: 02e5569961f96f196e5f1a83977bccfd4e327335 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * StampsView.h
 *
 *  Created on: Mar 29, 2012
 *      Author: Simon
 */

#ifndef STAMPSVIEW_H_
#define STAMPSVIEW_H_

#include <vector>
#include "interface/Window.h"
#include "interface/Button.h"
#include "interface/Textbox.h"
#include "interface/Label.h"

class StampsController;
class StampsModel;
class StampsView: public ui::Window {
	StampsController * c;
	std::vector<ui::Component*> stampButtons;
	ui::Button * previousButton;
	ui::Button * nextButton;
	ui::Label * infoLabel;
public:
	StampsView();
	//virtual void OnDraw();
	virtual void OnTick(float dt);
	void AttachController(StampsController * c_) { c = c_; };
	void NotifyPageChanged(StampsModel * sender);
	void NotifyStampsListChanged(StampsModel * sender);
	virtual void OnMouseWheel(int x, int y, int d);
	virtual void OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt);
	virtual ~StampsView();
};

#endif /* STAMPSVIEW_H_ */