xref: /haiku/src/add-ons/screen_savers/glife/GLifeConfig.h (revision 002f37b0cca92e4cf72857c72ac95db5a8b09615)
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
19 enum {
20 	kGridWidth		= 'grdw',
21 	kGridHeight		= 'grdh',
22 	kGridBorder		= 'bord',
23 	kGridDelay		= 'dely'
24 };
25 
26 
27 // GLifeConfig Class Declaration
28 class GLifeConfig : public BView
29 {
30 private:
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 
41 public:
42 				GLifeConfig(BRect, GLifeState*);
43 
44 	void		AttachedToWindow(void);
45 	void		MessageReceived(BMessage*);
46 };
47 
48 
49 #endif /* _GLIFE_GLIFECONFIG_H */
50