Last change
on this file since 128 was 128, checked in by ercodmgr, 27 years ago |
Dernieres (avant-avant ??) modifs de cette version de PI (depuis PC Reza 03/08/98)
|
File size:
1.4 KB
|
Rev | Line | |
---|
[2] | 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 |
|
---|
[78] | 9 | #include "picons.h"
|
---|
| 10 |
|
---|
[2] | 11 | class PIApplicationGen : public PIMsgHandler {
|
---|
| 12 | public:
|
---|
[18] | 13 | enum { kReadyState=0, kBusyState=1, kBlockedState=2 };
|
---|
| 14 |
|
---|
[2] | 15 | PIApplicationGen();
|
---|
| 16 | virtual ~PIApplicationGen();
|
---|
| 17 |
|
---|
| 18 | virtual void Run()=0;
|
---|
| 19 | virtual void Stop()=0;
|
---|
| 20 |
|
---|
[18] | 21 | virtual void SetReady();
|
---|
| 22 | virtual void SetBusy();
|
---|
| 23 | virtual void SetBlocked();
|
---|
| 24 | virtual int GetState();
|
---|
| 25 |
|
---|
| 26 |
|
---|
[2] | 27 | virtual PIContainer* MainWin() {return topcont;}
|
---|
| 28 | virtual PIMenubar* Menubar() {return menubar;}
|
---|
| 29 |
|
---|
[110] | 30 | virtual void AppendMenu(PIMenu *pdm);
|
---|
[75] | 31 |
|
---|
[90] | 32 | virtual void PrefCompSz(int& szx, int& szy) = 0;
|
---|
[92] | 33 | virtual void ScreenSz(int& szx, int& szy) = 0;
|
---|
[75] | 34 |
|
---|
[81] | 35 | virtual void RedirectOutStream(PIConsole* cons, unsigned char va= PIVA_Def) = 0;
|
---|
[128] | 36 | virtual void RedirectErrStream(PIConsole* cons, unsigned char va= PIVA_Ital|PIVA_Red) = 0;
|
---|
[78] | 37 |
|
---|
[2] | 38 | protected:
|
---|
| 39 | PIContainer *topcont;
|
---|
| 40 | PIMenubar *menubar;
|
---|
[18] | 41 | int mState;
|
---|
[2] | 42 | };
|
---|
| 43 |
|
---|
[90] | 44 | // Fonction globale pour recuperer la taille standard des composants (taille x,y)
|
---|
| 45 | void PIApplicationPrefCompSize(int& szx, int& szy);
|
---|
[92] | 46 | void PIApplicationScreenSize(int& szx, int& szy);
|
---|
[90] | 47 |
|
---|
[2] | 48 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.