xref: /haiku/src/apps/resedit/App.h (revision 3be9edf8da228afd9fec0390f408c964766122aa)
1 /*
2  * Copyright (c) 2005-2006, Haiku, Inc.
3  * Distributed under the terms of the MIT license.
4  *
5  * Author:
6  *		DarkWyrm <darkwyrm@earthlink.net>
7  */
8 #ifndef APP_H
9 #define APP_H
10 
11 #include <Application.h>
12 #include <FilePanel.h>
13 
14 enum {
15 	M_REGISTER_WINDOW = 'regw',
16 	M_UNREGISTER_WINDOW,
17 	M_SHOW_OPEN_PANEL,
18 	M_SHOW_SAVE_PANEL
19 };
20 
21 class App : public BApplication
22 {
23 public:
24 			App(void);
25 			~App(void);
26 	void	MessageReceived(BMessage *msg);
27 	void	ArgvReceived(int32 argc, char** argv);
28 	void	RefsReceived(BMessage *msg);
29 	void	ReadyToRun(void);
30 	bool	QuitRequested(void);
31 
32 private:
33 	uint32		fWindowCount;
34 	BFilePanel	*fOpenPanel, *fSavePanel;
35 };
36 
37 #endif
38