| 1 | // This may look like C code, but it is really -*- C++ -*- | 
|---|
| 2 | // Outils de manipulation des PIContDrawer  O. Perdereau 11/2001 | 
|---|
| 3 | // Relatif a un SEUL contourdrawer | 
|---|
| 4 | // LAL (Orsay) / IN2P3-CNRS  DAPNIA/SPP (Saclay) / CEA | 
|---|
| 5 |  | 
|---|
| 6 | #ifndef PICNTOOLS_H_SEEN | 
|---|
| 7 | #define PICNTOOLS_H_SEEN | 
|---|
| 8 |  | 
|---|
| 9 | #include "pisysdep.h" | 
|---|
| 10 | #include PISTDWDG_H | 
|---|
| 11 | #include PIOPTMENU_H | 
|---|
| 12 | #include PIWIN_H | 
|---|
| 13 | #include PIAPP_H | 
|---|
| 14 | #include "picmapview.h" | 
|---|
| 15 |  | 
|---|
| 16 | // --------- fenetre de dialogue pour modifs  options de trace des contours  ---------- | 
|---|
| 17 | // -------------------------------------------------------------------------------- | 
|---|
| 18 |  | 
|---|
| 19 | class PIContourDrawer; | 
|---|
| 20 | class PIBaseWdgGen; | 
|---|
| 21 |  | 
|---|
| 22 | class PICnTools : public PIWindow | 
|---|
| 23 | { | 
|---|
| 24 | public : | 
|---|
| 25 | PICnTools(PIApplication* par); | 
|---|
| 26 | ~PICnTools(); | 
|---|
| 27 | virtual void  Show(); | 
|---|
| 28 |  | 
|---|
| 29 | static PICnTools* curlutw; | 
|---|
| 30 | static void ShowPICnTools(); | 
|---|
| 31 | static void HidePICnTools(); | 
|---|
| 32 | static void SetCurrentBaseWdg(PIBaseWdgGen* cbw); | 
|---|
| 33 | static void SetCurrentCnDrw(PIContourDrawer* drw); | 
|---|
| 34 | static PIBaseWdgGen* GetCurrentBaseWdg(); | 
|---|
| 35 | static PIContourDrawer* GetCurrentCnDrw(); | 
|---|
| 36 | inline PICMapView* CMapVW() { return cmapv; } | 
|---|
| 37 | protected: | 
|---|
| 38 | virtual void  UpdateAttFromDrawer(); | 
|---|
| 39 | virtual void  SetGraphicAtt(bool ); | 
|---|
| 40 | virtual void  SetCalcParm(); | 
|---|
| 41 | virtual void  Process(PIMessage msg, PIMsgHandler* sender, void* data=NULL); | 
|---|
| 42 |  | 
|---|
| 43 | private: | 
|---|
| 44 | // Pour couleur, fontes, etc | 
|---|
| 45 |  | 
|---|
| 46 | PICMapView* cmapv; | 
|---|
| 47 | PICheckBox*  mCkb[3]; | 
|---|
| 48 | PILabel* mLab[5]; | 
|---|
| 49 | PIOptMenu* mOpt[10]; | 
|---|
| 50 | PIMenu* mCasc[5]; | 
|---|
| 51 | PILabel* mNlb; | 
|---|
| 52 | PIText* mTxt[2]; | 
|---|
| 53 | PIButton* mButdr[2]; | 
|---|
| 54 | PIButton* mButcf[5]; | 
|---|
| 55 | int mNDr; | 
|---|
| 56 | int mtyp, msz; | 
|---|
| 57 | // | 
|---|
| 58 | static PIBaseWdgGen* mCurBW; | 
|---|
| 59 | static PIContourDrawer* mCurCDrw; | 
|---|
| 60 | static PICnTools* cwdrwt; | 
|---|
| 61 | }; | 
|---|
| 62 |  | 
|---|
| 63 | #endif | 
|---|