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 |
|
---|
6 | #ifndef PIBWDGX_H_SEEN
|
---|
7 | #define PIBWDGX_H_SEEN
|
---|
8 |
|
---|
9 | #include "pisysdep.h"
|
---|
10 | #include "pibwdggen.h"
|
---|
11 |
|
---|
12 | #include "pigraphx.h"
|
---|
13 |
|
---|
14 | #include "pigraphps.h"
|
---|
15 |
|
---|
16 | class PIBaseWdgX : public PIBaseWdgGen
|
---|
17 | {
|
---|
18 |
|
---|
19 | public:
|
---|
20 | // Les methodes ...
|
---|
21 |
|
---|
22 | PIBaseWdgX(PIContainerGen *par, const char *nom,
|
---|
23 | int sx=10, int sy=10, int px=0, int py=0);
|
---|
24 | virtual ~PIBaseWdgX();
|
---|
25 |
|
---|
26 | virtual void FinishCreate(); // appele par la fenetre mere, apres XtRealize()
|
---|
27 |
|
---|
28 | // Activation des evenements
|
---|
29 | virtual void ActivatePtrCross();
|
---|
30 | virtual void ActivateButton(int bid);
|
---|
31 | virtual void ActivateMove(int bid);
|
---|
32 | virtual void ActivateKeyboard();
|
---|
33 |
|
---|
34 | // Divers : couleur de fond, Effacement fenetre, forme de la souris
|
---|
35 | virtual void SelPointerShape(PIPointer ptr=PI_ArrowPointer);
|
---|
36 | virtual PIPointer GetPointerShape();
|
---|
37 | virtual void AssignKeyboard();
|
---|
38 |
|
---|
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 |
|
---|
45 | // Fonction qui doit etre appelee pour rafraichir la fenetre
|
---|
46 | virtual void Refresh();
|
---|
47 |
|
---|
48 | // Appel depuis le PIXtBaseWidget uniquement (ExposeEvt de Xt )
|
---|
49 | virtual void eXposeProcess(int x0, int y0, int dx, int dy);
|
---|
50 |
|
---|
51 | protected:
|
---|
52 | void Init();
|
---|
53 | PIPointer mPtrS;
|
---|
54 | };
|
---|
55 |
|
---|
56 | typedef PIBaseWdgX PIBaseWdg;
|
---|
57 |
|
---|
58 | #endif /* PIBWDGX_H_SEEN */
|
---|