Last change
on this file since 2607 was 2607, checked in by ansari, 21 years ago |
Supression de l'attribut par defaut PIVA_Ital ds PIApplication::RedirectErrStream() (pb avec largeur caracteres italiques different de caracteres roman) - augmentation de la taille du buffer callback redirection stdout,stderr - Reza 7 Septembre 2004
|
File size:
1.7 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
|
---|
[78] | 8 | #include "picons.h"
|
---|
| 9 |
|
---|
[138] | 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 |
|
---|
[1592] | 32 | virtual void PrefCompSize(int& szx, int& szy) = 0;
|
---|
| 33 | virtual void ScreenSize(int& szx, int& szy) = 0;
|
---|
| 34 | virtual void ScreenSizeMM(int& szx, int& szy) = 0;
|
---|
| 35 | virtual void ScreenResolution(int& resolx, int& resoly) = 0;
|
---|
[75] | 36 |
|
---|
[81] | 37 | virtual void RedirectOutStream(PIConsole* cons, unsigned char va= PIVA_Def) = 0;
|
---|
[2607] | 38 | virtual void RedirectErrStream(PIConsole* cons, unsigned char va= PIVA_Red) = 0;
|
---|
[78] | 39 |
|
---|
[2] | 40 | protected:
|
---|
| 41 | PIContainer *topcont;
|
---|
| 42 | PIMenubar *menubar;
|
---|
[18] | 43 | int mState;
|
---|
[2] | 44 | };
|
---|
| 45 |
|
---|
[90] | 46 | // Fonction globale pour recuperer la taille standard des composants (taille x,y)
|
---|
| 47 | void PIApplicationPrefCompSize(int& szx, int& szy);
|
---|
[92] | 48 | void PIApplicationScreenSize(int& szx, int& szy);
|
---|
[1592] | 49 | void PIApplicationScreenSizeMM(int& szx, int& szy);
|
---|
| 50 | void PIApplicationScreenResolution(int& resolx, int& resoly);
|
---|
[90] | 51 |
|
---|
[2] | 52 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.