-
Notifications
You must be signed in to change notification settings - Fork 13
/
panel.h
29 lines (26 loc) · 643 Bytes
/
panel.h
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
#include <map>
#include <string>
#include <vector>
#include <wx/wx.h>
#include "symbol.h"
#include "board.h"
class Panel : public wxPanel
{
public:
Panel(wxFrame *parent, Board *chessboard);
protected:
void OnPaint(wxPaintEvent& event);
void OnMouseDown(wxMouseEvent& event);
void OnMouseUp(wxMouseEvent& event);
void OnMove(wxMouseEvent& event);
private:
int SquareLength();
void DrawSquare(wxPaintDC &dc, int x, int y);
void LoadPiece();
wxStatusBar *statusbar;
Board *board;
int boardLength;
std::vector<Symbol*> symbol;
std::string origin;
std::map<char, wxString> symbolPath;
};