-
-
Notifications
You must be signed in to change notification settings - Fork 338
/
StyledEditApp.h
57 lines (44 loc) · 1.15 KB
/
StyledEditApp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* Copyright 2002-2010, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Mattias Sundblad
* Andrew Bachmann
* Jonas Sundström
*/
#ifndef STYLED_EDIT_APP
#define STYLED_EDIT_APP
#include <Application.h>
#include <Catalog.h>
struct entry_ref;
class BMenu;
class BHandler;
class BMessage;
class BFilePanel;
class StyledEditWindow;
class StyledEditApp : public BApplication {
public:
StyledEditApp();
virtual ~StyledEditApp();
virtual void MessageReceived(BMessage* message);
virtual void ArgvReceived(int32 argc, char** argv);
virtual void RefsReceived(BMessage* message);
virtual void ReadyToRun();
int32 NumberOfWindows();
void OpenDocument();
status_t OpenDocument(entry_ref* ref,
BMessage* message = NULL);
void CloseDocument();
private:
void ArgvReceivedEx(int32 argc, const char* argv[],
const char* cwd);
private:
BFilePanel* fOpenPanel;
BMenu* fOpenPanelEncodingMenu;
uint32 fOpenAsEncoding;
int32 fWindowCount;
int32 fNextUntitledWindow;
bool fBadArguments;
};
#endif // STYLED_EDIT_APP