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 RefsReceived(BMessage *msg); 28 void ReadyToRun(void); 29 bool QuitRequested(void); 30 31 private: 32 uint32 fWindowCount; 33 BFilePanel *fOpenPanel, *fSavePanel; 34 }; 35 36 #endif 37