Changeset 61 in Sophya
- Timestamp:
- Nov 26, 1997, 7:30:27 PM (28 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/ex_dessin.cc
r60 r61 17 17 str[20] = '\0'; 18 18 19 ActivateKeyboard(); 20 ActivateButton(1); 21 ActivateButton(2); 22 ActivateButton(3); 19 23 } 20 24 -
trunk/SophyaPI/PI/pibwdggen.h
r60 r61 62 62 63 63 virtual long kind() {return ClassId; } 64 65 // Activation des evenements 66 virtual void ActivatePtrCross() = 0; 67 virtual void ActivateButton(int bid) = 0; 68 virtual void ActivateMove(int bid) = 0; 69 virtual void ActivateKeyboard() = 0; 64 70 65 71 // Trace graphiques -
trunk/SophyaPI/PI/pibwdgmac.cc
r60 r61 24 24 } 25 25 26 /* --Methode-- */ 27 void PIBaseWdgMac::ActivatePtrCross() 28 { 29 // toujours actif pour le moment 30 } 31 32 /* --Methode-- */ 33 void PIBaseWdgMac::ActivateButton(int /*bid*/) 34 { 35 } 36 37 /* --Methode-- */ 38 void PIBaseWdgMac::ActivateMove(int /*bid*/) 39 { 40 } 41 42 /* --Methode-- */ 43 void PIBaseWdgMac::ActivateKeyboard() 44 { 45 } 26 46 27 47 /* --Methode-- */ -
trunk/SophyaPI/PI/pibwdgmac.h
r60 r61 17 17 int sx=10, int sy=10, int px=0, int py=0); 18 18 virtual ~PIBaseWdgMac(); 19 20 // Activation des evenements 21 virtual void ActivatePtrCross(); 22 virtual void ActivateButton(int bid); 23 virtual void ActivateMove(int bid); 24 virtual void ActivateKeyboard(); 19 25 20 26 // Trace graphiques -
trunk/SophyaPI/PI/pibwdgx.cc
r60 r61 65 65 SelMarker(1, PI_DotMarker); 66 66 67 // On active tous les evenements ...68 ActivatePtrCross();69 ActivateKeyboard();70 int i;71 for(i=1; i<=3; i++) {72 ActivateButton(i);73 ActivateMove(i);74 }75 67 Manage(); 76 68 } … … 80 72 PIBaseWdgX::~PIBaseWdgX() 81 73 { 82 74 #ifdef DEBUG_PIBWDGX 75 printf("PIBaseWdgX::~PIBaseWdgX()_Debug: Object= %lx (%lx) Wdg= %lx \n", 76 (long)this, (long)(((PIXtBaseWidget)XtWdg())->pixtbase.objet), (long)XtWdg() ); 77 #endif 78 Arg wargs[2]; 79 XtSetArg(wargs[0],PIXNobject,NULL); 80 XtSetValues(XtWdg(), wargs, 1); 83 81 } 84 82 -
trunk/SophyaPI/PI/pibwdgx.h
r60 r61 17 17 18 18 virtual void FinishCreate(); // appele par la fenetre mere, apres XtRealize() 19 20 // Activation des evenements 21 virtual void ActivatePtrCross(); 22 virtual void ActivateButton(int bid); 23 virtual void ActivateMove(int bid); 24 virtual void ActivateKeyboard(); 19 25 20 26 // Trace graphiques … … 92 98 void Init(); 93 99 void SelectFont(int isz, int jat); 94 // Activation des evenements95 void ActivatePtrCross();96 void ActivateButton(int bid);97 void ActivateMove(int bid);98 void ActivateKeyboard();99 100 100 101 GC mDefGC; -
trunk/SophyaPI/PI/piimage.cc
r60 r61 52 52 SelForeground(PI_White); 53 53 SelBackground(PI_Black); 54 55 ActivateButton(1); 56 ActivateMove(1); 57 ActivateButton(2); 58 ActivateMove(2); 59 ActivateButton(3); 60 ActivateMove(3); 54 61 55 62 } -
trunk/SophyaPI/PI/pipixmapgen.cc
r60 r61 22 22 cmap = new PIColorMap(CMAP_GREY32); 23 23 mEn = 0; 24 ActivateButton(1); 24 25 } 25 26 -
trunk/SophyaPI/PI/piscdrawwdg.cc
r60 r61 18 18 mTrW = NULL; 19 19 SetTextWin(NULL); 20 ActivateButton(1); // Pour pouvoir activer la fenetre et coordonnees 21 ActivateMove(1); // " " " " 22 ActivateButton(2); 23 ActivateMove(2); 20 24 21 25 } -
trunk/SophyaPI/PI/pixtbase.cc
r60 r61 12 12 #include "pixtbase.h" 13 13 14 // #define DEBUG_PIXTB 14 15 15 16 /* Construction du widget Xt PIXtBase */ … … 138 139 // get_GCs (wdgp); 139 140 #ifdef DEBUG_PIXTB 140 printf("Debug_init_pixtbase: Object= %ldnarg=%d \n",141 (long) (wdgp->pixtbase.objet), (int)(*narg));141 printf("Debug_init_pixtbase: Wdg=%lx Object= %lx narg=%d \n", 142 (long)wdgp, (long)(wdgp->pixtbase.objet), (int)(*narg)); 142 143 #endif 143 144 return; … … 148 149 { 149 150 #ifdef DEBUG_PIXTB 150 puts("Debug_destroy_pixtbase"); 151 printf("Debug_destroy_pixtbase: Wdg= %lx Object= %lx \n", (long)wdgp, 152 (long)(((PIXtBaseWidget)wdgp)->pixtbase.objet) ); 151 153 #endif 152 154 // free_GCs((PIXtBaseWidget)wdgp); 155 // $CHECK$ Reza 21/11/97 156 // J'ai l'impression que cette fonction n'est pas appellee au moment 157 // de destruction du Widget - Par contre la fonction leave est appelee 158 // si l'action correspondante a ete enregistree ?! 153 159 } 154 160 … … 157 163 static void resize_pixtbase (Widget wdgp) 158 164 { 165 #ifdef DEBUG_PIXTB 166 printf("Debug_resize_pixtbase: Wdg=%lx Object= %lx \n", (long)wdgp, 167 (long)(((PIXtBaseWidget)wdgp)->pixtbase.objet) ); 168 #endif 159 169 if (((PIXtBaseWidget)wdgp)->pixtbase.objet) 160 170 (((PIXtBaseWidget)wdgp)->pixtbase.objet)->Resize(); … … 166 176 { 167 177 #ifdef DEBUG_PIXTB 168 printf ("debug:expose %ld\n",(long)((PIXtBaseWidget)wdgp)->pixtbase.objet); 178 printf("Debug_expose_pixtbase: Wdg=%lx Object= %lx \n", (long)wdgp, 179 (long)(((PIXtBaseWidget)wdgp)->pixtbase.objet) ); 169 180 #endif 170 181 … … 185 196 String* /*args*/, Cardinal* /*narg*/) 186 197 { 198 #ifdef DEBUG_PIXTB 199 printf("Debug_enter_pixtbase: Wdg=%lx Object= %lx \n", (long)wdgp, 200 (long)(((PIXtBaseWidget)wdgp)->pixtbase.objet) ); 201 #endif 187 202 last_time_xevt = evt->xcrossing.time; 188 203 last_serial_xevt = evt->xcrossing.serial; … … 196 211 String* /*args*/, Cardinal* /*narg*/) 197 212 { 213 #ifdef DEBUG_PIXTB 214 printf("Debug_leave_pixtbase: Wdg=%lx Object= %lx \n", (long)wdgp, 215 (long)(((PIXtBaseWidget)wdgp)->pixtbase.objet) ); 216 #endif 198 217 last_time_xevt = evt->xcrossing.time; 199 218 last_serial_xevt = evt->xcrossing.serial;
Note:
See TracChangeset
for help on using the changeset viewer.