[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
|
---|
[3473] | 8 | #include "piconsenum.h"
|
---|
| 9 | class PIConsole;
|
---|
[78] | 10 |
|
---|
[138] | 11 |
|
---|
[2] | 12 | class PIApplicationGen : public PIMsgHandler {
|
---|
| 13 | public:
|
---|
[18] | 14 | enum { kReadyState=0, kBusyState=1, kBlockedState=2 };
|
---|
| 15 |
|
---|
[2] | 16 | PIApplicationGen();
|
---|
| 17 | virtual ~PIApplicationGen();
|
---|
| 18 |
|
---|
| 19 | virtual void Run()=0;
|
---|
| 20 | virtual void Stop()=0;
|
---|
| 21 |
|
---|
[18] | 22 | virtual void SetReady();
|
---|
| 23 | virtual void SetBusy();
|
---|
| 24 | virtual void SetBlocked();
|
---|
| 25 | virtual int GetState();
|
---|
| 26 |
|
---|
| 27 |
|
---|
[2] | 28 | virtual PIContainer* MainWin() {return topcont;}
|
---|
| 29 | virtual PIMenubar* Menubar() {return menubar;}
|
---|
| 30 |
|
---|
[110] | 31 | virtual void AppendMenu(PIMenu *pdm);
|
---|
[75] | 32 |
|
---|
[1592] | 33 | virtual void PrefCompSize(int& szx, int& szy) = 0;
|
---|
| 34 | virtual void ScreenSize(int& szx, int& szy) = 0;
|
---|
| 35 | virtual void ScreenSizeMM(int& szx, int& szy) = 0;
|
---|
| 36 | virtual void ScreenResolution(int& resolx, int& resoly) = 0;
|
---|
[75] | 37 |
|
---|
[81] | 38 | virtual void RedirectOutStream(PIConsole* cons, unsigned char va= PIVA_Def) = 0;
|
---|
[2607] | 39 | virtual void RedirectErrStream(PIConsole* cons, unsigned char va= PIVA_Red) = 0;
|
---|
[78] | 40 |
|
---|
[3369] | 41 | virtual void RedirectOutStream(PIConsole* cons, string const & flnm, bool fgcpos=false,
|
---|
| 42 | unsigned char va= PIVA_Def) = 0;
|
---|
| 43 | virtual void RedirectErrStream(PIConsole* cons, string const & flnm, bool fgcpos=false,
|
---|
| 44 | unsigned char va= PIVA_Def) = 0;
|
---|
| 45 |
|
---|
[2] | 46 | protected:
|
---|
| 47 | PIContainer *topcont;
|
---|
| 48 | PIMenubar *menubar;
|
---|
[18] | 49 | int mState;
|
---|
[2] | 50 | };
|
---|
| 51 |
|
---|
[90] | 52 | // Fonction globale pour recuperer la taille standard des composants (taille x,y)
|
---|
| 53 | void PIApplicationPrefCompSize(int& szx, int& szy);
|
---|
[92] | 54 | void PIApplicationScreenSize(int& szx, int& szy);
|
---|
[1592] | 55 | void PIApplicationScreenSizeMM(int& szx, int& szy);
|
---|
| 56 | void PIApplicationScreenResolution(int& resolx, int& resoly);
|
---|
[90] | 57 |
|
---|
[2] | 58 | #endif
|
---|