1 /**StyledEdit: Application class*/ 2 #ifndef STYLED_EDIT_APP 3 #define STYLED_EDIT_APP 4 5 #include <Application.h> 6 #include <Message.h> 7 #include <FilePanel.h> 8 9 class StyledEditWindow; 10 11 class StyledEditApp 12 : public BApplication 13 { 14 public: 15 StyledEditApp(); 16 virtual void MessageReceived(BMessage *message); 17 void ArgvReceived(int32 argc, const char *argv[], const char * cwd); 18 virtual void RefsReceived(BMessage *message); 19 virtual void ReadyToRun(); 20 21 virtual void DispatchMessage(BMessage *an_event, BHandler *handler); 22 23 int32 NumberOfWindows(); 24 void OpenDocument(); 25 void OpenDocument(entry_ref * ref); 26 void CloseDocument(); 27 28 private: 29 BFilePanel *fOpenPanel; 30 BMenu *fOpenPanelEncodingMenu; 31 uint32 fOpenAsEncoding; 32 int32 fWindowCount; 33 int32 fNext_Untitled_Window; 34 35 }; 36 37 extern StyledEditApp * styled_edit_app; 38 39 #endif // STYLED_EDIT_APP 40