xref: /haiku/src/apps/icon-o-matic/MainWindow.h (revision cfda5dd75bf4c1cae5b1aa808f37b59da114be26)
1 /*
2  * Copyright 2006, Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  */
8 
9 #ifndef MAIN_WINDOW_H
10 #define MAIN_WINDOW_H
11 
12 #include <Window.h>
13 
14 class CanvasView;
15 class Document;
16 class IconEditorApp;
17 class IconView;
18 class PathListView;
19 class ShapeListView;
20 class SwatchGroup;
21 class ViewState;
22 
23 class MainWindow : public BWindow {
24  public:
25 								MainWindow(IconEditorApp* app,
26 										   Document* document);
27 	virtual						~MainWindow();
28 
29 	// BWindow interface
30 	virtual	void				MessageReceived(BMessage* message);
31 	virtual	bool				QuitRequested();
32 
33  private:
34 			void				_Init();
35 			BView*				_CreateGUI(BRect frame);
36 
37 	IconEditorApp*				fApp;
38 	Document*					fDocument;
39 
40 	CanvasView*					fCanvasView;
41 	SwatchGroup*				fSwatchGroup;
42 
43 	IconView*					fIconPreview16;
44 	IconView*					fIconPreview32;
45 	IconView*					fIconPreview48;
46 	IconView*					fIconPreview64;
47 
48 	PathListView*				fPathListView;
49 	ShapeListView*				fShapeListView;
50 	// TODO: for testing only...
51 	ViewState*					fState;
52 };
53 
54 #endif // MAIN_WINDOW_H
55