xref: /haiku/src/tests/servers/app/playground/ObjectWindow.h (revision 6d9903099d03f6b5faa49839e9d8f315f269f553)
1 // ObjectWindow.h
2 
3 #ifndef OBJECT_WINDOW_H
4 #define OBJECT_WINDOW_H
5 
6 #include <Window.h>
7 
8 class BButton;
9 class BCheckBox;
10 class BColorControl;
11 class BListView;
12 class BMenuField;
13 class BTextControl;
14 class BSlider;
15 class ObjectView;
16 
17 class ObjectWindow : public BWindow {
18  public:
19 						ObjectWindow(BRect frame, const char* name);
20 	virtual				~ObjectWindow();
21 
22 	virtual	bool		QuitRequested();
23 
24 	virtual	void		MessageReceived(BMessage* message);
25 
26  private:
27 			void		_UpdateControls() const;
28 			void		_UpdateColorControls() const;
29 			rgb_color	_GetColor() const;
30 
31 	ObjectView*			fObjectView;
32 
33 	BButton*			fNewB;
34 	BButton*			fClearB;
35 
36 	BButton*			fUndoB;
37 	BButton*			fRedoB;
38 
39 	BMenuField*			fDrawingModeMF;
40 
41 	BColorControl*		fColorControl;
42 	BTextControl*		fAlphaTC;
43 
44 	BCheckBox*			fFillCB;
45 	BSlider*			fPenSizeS;
46 
47 	BListView*			fObjectLV;
48 };
49 
50 #endif // OBJECT_WINDOW_H
51