Last change
on this file since 90 was 90, checked in by ansari, 28 years ago |
1/ Adaptation pour modif Eric PIGraphicGen - PIGraphicWin
2/ Utilisation XtApp...() et determination de la taille preferee
des composantes graphiques Reza 12/03/98
|
File size:
1.3 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 |
|
---|
| 30 | virtual void AppendMenu(PIPDMenu *pdm);
|
---|
[75] | 31 |
|
---|
[90] | 32 | virtual void PrefCompSz(int& szx, int& szy) = 0;
|
---|
[75] | 33 |
|
---|
[81] | 34 | virtual void RedirectOutStream(PIConsole* cons, unsigned char va= PIVA_Def) = 0;
|
---|
| 35 | virtual void RedirectErrStream(PIConsole* cons, unsigned char va= PIVA_Ital) = 0;
|
---|
[78] | 36 |
|
---|
[2] | 37 | protected:
|
---|
| 38 | PIContainer *topcont;
|
---|
| 39 | PIMenubar *menubar;
|
---|
[18] | 40 | int mState;
|
---|
[2] | 41 | };
|
---|
| 42 |
|
---|
[90] | 43 | // Fonction globale pour recuperer la taille standard des composants (taille x,y)
|
---|
| 44 | void PIApplicationPrefCompSize(int& szx, int& szy);
|
---|
| 45 |
|
---|
[2] | 46 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.