1 /* 2 * Copyright 2002-2006, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Mattias Sundblad 7 * Andrew Bachmann 8 */ 9 #ifndef STYLED_EDIT_APP 10 #define STYLED_EDIT_APP 11 12 13 #include <Application.h> 14 15 16 struct entry_ref; 17 18 class BMenu; 19 class BHandler; 20 class BMessage; 21 class BFilePanel; 22 class StyledEditWindow; 23 24 25 class StyledEditApp : public BApplication { 26 public: 27 StyledEditApp(); 28 virtual ~StyledEditApp(); 29 30 virtual void MessageReceived(BMessage *message); 31 virtual void RefsReceived(BMessage *message); 32 virtual void ReadyToRun(); 33 34 virtual void DispatchMessage(BMessage *an_event, BHandler *handler); 35 36 int32 NumberOfWindows(); 37 void OpenDocument(); 38 void OpenDocument(entry_ref *ref); 39 void CloseDocument(); 40 41 private: 42 void ArgvReceivedEx(int32 argc, const char *argv[], const char * cwd); 43 44 private: 45 BFilePanel *fOpenPanel; 46 BMenu *fOpenPanelEncodingMenu; 47 uint32 fOpenAsEncoding; 48 int32 fWindowCount; 49 int32 fNextUntitledWindow; 50 51 }; 52 53 extern StyledEditApp* styled_edit_app; 54 55 #endif // STYLED_EDIT_APP 56 57