2002-09-24 03:01:55 +04:00
|
|
|
/**StyledEdit: Application class*/
|
|
|
|
#ifndef STYLED_EDIT_APP
|
|
|
|
#define STYLED_EDIT_APP
|
|
|
|
|
|
|
|
#include <Application.h>
|
2002-11-05 12:24:25 +03:00
|
|
|
#include <Message.h>
|
|
|
|
#include <FilePanel.h>
|
|
|
|
|
|
|
|
class StyledEditWindow;
|
|
|
|
|
|
|
|
class StyledEditApp
|
|
|
|
: public BApplication
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
StyledEditApp();
|
|
|
|
virtual void MessageReceived(BMessage *message);
|
2002-11-21 02:29:00 +03:00
|
|
|
virtual void ArgvReceived(int32 argc, const char *argv[], const char * cwd);
|
2002-11-05 12:24:25 +03:00
|
|
|
virtual void RefsReceived(BMessage *message);
|
|
|
|
virtual void ReadyToRun();
|
|
|
|
|
2002-11-21 02:29:00 +03:00
|
|
|
virtual void DispatchMessage(BMessage *an_event, BHandler *handler);
|
|
|
|
|
2002-11-05 12:24:25 +03:00
|
|
|
int32 NumberOfWindows();
|
|
|
|
void OpenDocument();
|
|
|
|
void OpenDocument(entry_ref * ref);
|
|
|
|
void CloseDocument();
|
|
|
|
|
|
|
|
private:
|
|
|
|
BFilePanel *fOpenPanel;
|
2002-11-07 02:03:34 +03:00
|
|
|
BMenu *fOpenPanelEncodingMenu;
|
2003-07-06 08:05:22 +04:00
|
|
|
uint32 fOpenAsEncoding;
|
2002-11-05 12:24:25 +03:00
|
|
|
int32 fWindowCount;
|
|
|
|
int32 fNext_Untitled_Window;
|
2002-09-24 03:01:55 +04:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2002-11-05 12:24:25 +03:00
|
|
|
extern StyledEditApp * styled_edit_app;
|
2002-09-24 03:01:55 +04:00
|
|
|
|
2002-11-05 12:24:25 +03:00
|
|
|
#endif // STYLED_EDIT_APP
|