source: Sophya/trunk/SophyaPI/PI/pibwdgx.h@ 158

Last change on this file since 158 was 158, checked in by ercodmgr, 27 years ago

1/ Mise en place des LayoutMgr pour les PIContainer avec ZoneLayout/ StackLayout
2/ Nouvelles methodes pour PIGraphic (DrawOval() DrawArc ...)
3/ Modifs ds PIGraphicX (preparation pour les GraphicBufferX)
4/ Petites modifs pour PIGraphic (HugeFontSize, etc...)
5/ Support pour titre de trace ds PIElDrawer -> PIScDrawer et PI3dDrawWdg
6/ Documentation(AutoDoc) PIGraphic PIBaseWdg ... Reza 16/11/98

File size: 1.8 KB
RevLine 
[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
16class PIBaseWdgX : public PIBaseWdgGen
17{
18
19public:
20// Les methodes ...
21
[71]22 PIBaseWdgX(PIContainerGen *par, char *nom,
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 SetBackgroundColor(PIColors col=PI_White);
36 virtual void EraseWindow(int x0=0, int y0=0, int dx=0, int dy=0);
37 virtual void SelPointerShape(PIPointer ptr=PI_ArrowPointer);
38 virtual PIColors GetBackgroundColor();
[11]39 virtual PIPointer GetPointerShape();
[80]40 virtual void AssignKeyboard();
[11]41
[158]42// Acces aux caracteristiques du dernier evenement
43 virtual void GetLastEventInfo(PIKeyModifier& kmod, unsigned long& tm);
44
45// On redefinit IsVisible() pour tenir compte de l appel a FinsihCreate
46 virtual bool IsVisible();
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]51protected:
[71]52 void Init();
[11]53 PIPointer mPtrS;
[71]54 PIColors mBCol;
[158]55 bool finishDone; // Si FinsihCreate appele
[2]56};
57
58typedef PIBaseWdgX PIBaseWdg;
59
60#endif /* PIBWDGX_H_SEEN */
Note: See TracBrowser for help on using the repository browser.