[158] | 1 | // This may look like C code, but it is really -*- C++ -*-
|
---|
| 2 | // Module PI : Peida Interactive PIBaseWdg
|
---|
| 3 | // Reza 95-96
|
---|
| 4 | // LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA
|
---|
| 5 |
|
---|
[2] | 6 | #ifndef PIBWDGX_H_SEEN
|
---|
| 7 | #define PIBWDGX_H_SEEN
|
---|
| 8 |
|
---|
| 9 | #include "pisysdep.h"
|
---|
| 10 | #include "pibwdggen.h"
|
---|
| 11 |
|
---|
[71] | 12 | #include "pigraphx.h"
|
---|
[158] | 13 |
|
---|
[71] | 14 | #include "pigraphps.h"
|
---|
[2] | 15 |
|
---|
| 16 | class PIBaseWdgX : public PIBaseWdgGen
|
---|
| 17 | {
|
---|
| 18 |
|
---|
| 19 | public:
|
---|
| 20 | // Les methodes ...
|
---|
| 21 |
|
---|
[329] | 22 | PIBaseWdgX(PIContainerGen *par, const char *nom,
|
---|
[71] | 23 | int sx=10, int sy=10, int px=0, int py=0);
|
---|
| 24 | virtual ~PIBaseWdgX();
|
---|
[2] | 25 |
|
---|
[71] | 26 | virtual void FinishCreate(); // appele par la fenetre mere, apres XtRealize()
|
---|
[2] | 27 |
|
---|
[61] | 28 | // Activation des evenements
|
---|
[71] | 29 | virtual void ActivatePtrCross();
|
---|
| 30 | virtual void ActivateButton(int bid);
|
---|
| 31 | virtual void ActivateMove(int bid);
|
---|
| 32 | virtual void ActivateKeyboard();
|
---|
[61] | 33 |
|
---|
[71] | 34 | // Divers : couleur de fond, Effacement fenetre, forme de la souris
|
---|
| 35 | virtual void SelPointerShape(PIPointer ptr=PI_ArrowPointer);
|
---|
[11] | 36 | virtual PIPointer GetPointerShape();
|
---|
[80] | 37 | virtual void AssignKeyboard();
|
---|
[11] | 38 |
|
---|
[158] | 39 | // Acces aux caracteristiques du dernier evenement
|
---|
| 40 | virtual void GetLastEventInfo(PIKeyModifier& kmod, unsigned long& tm);
|
---|
| 41 |
|
---|
| 42 | // On redefinit IsVisible() pour tenir compte de l appel a FinsihCreate
|
---|
| 43 | virtual bool IsVisible();
|
---|
| 44 |
|
---|
[180] | 45 | // Fonction qui doit etre appelee pour rafraichir la fenetre
|
---|
| 46 | virtual void Refresh();
|
---|
| 47 |
|
---|
[71] | 48 | // Appel depuis le PIXtBaseWidget uniquement (ExposeEvt de Xt )
|
---|
| 49 | virtual void eXposeProcess(int x0, int y0, int dx, int dy);
|
---|
| 50 |
|
---|
[2] | 51 | protected:
|
---|
[71] | 52 | void Init();
|
---|
[11] | 53 | PIPointer mPtrS;
|
---|
[2776] | 54 | // pour s'assurer que le bon FinishCreate() est appele - pb lie aux tables de fonctions
|
---|
| 55 | // virtuelles des classes qui sont remplies au fur et a mesure des constructeurs
|
---|
| 56 | bool bwx_finishDone;
|
---|
[2] | 57 | };
|
---|
| 58 |
|
---|
| 59 | typedef PIBaseWdgX PIBaseWdg;
|
---|
| 60 |
|
---|
| 61 | #endif /* PIBWDGX_H_SEEN */
|
---|