1/*
2 * Copyright 2012, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 * 		Aaron Hill <serac@hillvisions.com>
7 */
8#ifndef _GLIFE_GLIFECONFIG_H
9#define _GLIFE_GLIFECONFIG_H
10
11
12#include <Slider.h>
13#include <View.h>
14
15#include "GLifeState.h"
16
17
18// Message IDs
19enum {
20	kGridWidth		= 'grdw',
21	kGridHeight		= 'grdh',
22	kGridBorder		= 'bord',
23	kGridDelay		= 'dely'
24};
25
26
27// GLifeConfig Class Declaration
28class GLifeConfig : public BView
29{
30private:
31	GLifeState*	m_pglsState;
32
33	uint32		m_uiWindowFlags;
34
35	BSlider*	fGridWidth;
36	BSlider*	fGridHeight;
37	BSlider*	fGridBorder;
38	BSlider*	fGridDelay;
39	void		_UpdateLabels();
40
41public:
42				GLifeConfig(BRect, GLifeState*);
43
44	void		AttachedToWindow(void);
45	void		MessageReceived(BMessage*);
46};
47
48
49#endif /* _GLIFE_GLIFECONFIG_H */
50