Line | |
---|
1 | #ifndef PIAPPLGEN_H_SEEN
|
---|
2 | #define PIAPPLGEN_H_SEEN
|
---|
3 |
|
---|
4 | #include "pimsghandler.h"
|
---|
5 | #include "pisysdep.h"
|
---|
6 | #include PICONT_H
|
---|
7 | #include PIMENUBAR_H
|
---|
8 |
|
---|
9 | #include "picons.h"
|
---|
10 |
|
---|
11 | class PIApplicationGen : public PIMsgHandler {
|
---|
12 | public:
|
---|
13 | enum { kReadyState=0, kBusyState=1, kBlockedState=2 };
|
---|
14 |
|
---|
15 | PIApplicationGen();
|
---|
16 | virtual ~PIApplicationGen();
|
---|
17 |
|
---|
18 | virtual void Run()=0;
|
---|
19 | virtual void Stop()=0;
|
---|
20 |
|
---|
21 | virtual void SetReady();
|
---|
22 | virtual void SetBusy();
|
---|
23 | virtual void SetBlocked();
|
---|
24 | virtual int GetState();
|
---|
25 |
|
---|
26 |
|
---|
27 | virtual PIContainer* MainWin() {return topcont;}
|
---|
28 | virtual PIMenubar* Menubar() {return menubar;}
|
---|
29 |
|
---|
30 | virtual void AppendMenu(PIPDMenu *pdm);
|
---|
31 |
|
---|
32 | virtual int PrefXSize() = 0;
|
---|
33 | virtual int PrefYSize() = 0;
|
---|
34 |
|
---|
35 | virtual void RedirectSdtOut(PIConsole* cons) = 0;
|
---|
36 |
|
---|
37 | protected:
|
---|
38 | PIContainer *topcont;
|
---|
39 | PIMenubar *menubar;
|
---|
40 | int mState;
|
---|
41 | };
|
---|
42 |
|
---|
43 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.