1/*
2 * Copyright 2008 Ralf Schülke, ralf.schuelke@googlemail.com.
3 * Copyright 2010 Adam Smith <adamd.smith@utoronto.ca>
4 * Copyright 2014 Haiku, Inc. All rights reserved.
5 *
6 * Distributed under the terms of the MIT License.
7 *
8 * Authors:
9 *		Ralf Schülke, ralf.schuelke@googlemail.com
10 *		John Scipione, jscipione@gmail.com
11 *		Adam Smith, adamd.smith@utoronto.ca
12 */
13#ifndef PAIRS_WINDOW_H
14#define PAIRS_WINDOW_H
15
16
17#include <Window.h>
18
19
20class BMenu;
21class BMessageRunner;
22class PairsView;
23
24
25class PairsWindow : public BWindow {
26public:
27								PairsWindow();
28		virtual					~PairsWindow();
29
30		virtual	void			MessageReceived(BMessage* message);
31
32		void					NewGame();
33		void					SetGameSize(uint8 rows, uint8 cols);
34
35private:
36				void			_MakeGameView(uint8 rows, uint8 cols);
37				void			_MakeMenuBar();
38				void			_ResizeWindow(uint8 rows, uint8 cols);
39
40				BView*			fBackgroundView;
41				PairsView*		fPairsView;
42				BMenuBar*		fMenuBar;
43				BMessageRunner*	fPairComparing;
44				bool			fIsFirstClick;
45				bool			fIsPairsActive;
46				int32			fPairCardPosition;
47				int32			fPairCardTmpPosition;
48				int32			fButtonTmpPosition;
49				int32			fButtonPosition;
50				int32			fButtonClicks;
51				int32			fFinishPairs;
52				BMenu*			fIconSizeMenu;
53};
54
55#endif	// PAIRS_WINDOW_H
56