- Timestamp:
- Aug 9, 1999, 1:55:37 PM (26 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/pibwdgx.cc
r329 r367 71 71 void PIBaseWdgX::FinishCreate() 72 72 { 73 // appele par la fenetre mere, apres XtRealize() 73 74 if (finishDone) { 74 75 fprintf(stderr, "BUG/PIBaseWdgX::FinishCreate() multiple call \n"); 75 76 return; 76 77 } 77 // appele par la fenetre mere, apres XtRealize() 78 PIWdgX::FinishCreate(); 79 78 80 // J'active le backing store pour la fenetre X 79 81 XSetWindowAttributes xswa; … … 96 98 if (!mWGrC) mWGrC = new PIGraphicX(this); 97 99 mWGrC->TerminateInit(); 98 finishDone = true; // FinishCreate() fait99 100 } 100 101 -
trunk/SophyaPI/PI/pibwdgx.h
r329 r367 56 56 PIPointer mPtrS; 57 57 PIColors mBCol; 58 bool finishDone; // Si FinsihCreate appele59 58 }; 60 59 -
trunk/SophyaPI/PI/picontainergen.cc
r329 r367 196 196 { 197 197 if (stfcr) return; 198 PIWdg::FinishCreate(); 198 199 int k; 199 200 for(k=0; k<NbChilds(); k++) GetChild(k)->FinishCreate(); -
trunk/SophyaPI/PI/pioptmenux.cc
r329 r367 74 74 void PIOptMenuX::FinishCreate() 75 75 { 76 PIWdgX::FinishCreate(); 76 77 // printf("PIOptMenuX::FinishCreate()/DBG %s \n", Nom().c_str()); 77 78 if (mSmsg == 0) SetValue(mMen->ItemMsg(0)); -
trunk/SophyaPI/PI/piwdgx.cc
r329 r367 104 104 wmis = k_wmi_appshell; 105 105 stmng = false; 106 finishDone = false; 106 107 mBKleft = mBKright = mBKtop = mBKbottom = PIBK_free; 107 108 #ifdef DEBUG_PIWdgX … … 119 120 sdw = NULL; 120 121 wmis = k_wmi_unknown; 122 finishDone = false; 121 123 mBKleft = mBKright = mBKtop = mBKbottom = PIBK_free; 122 124 } … … 210 212 void PIWdgX::FinishCreate() 211 213 { 212 #ifdef DEBUG_PIWdgX 213 printf("Debug_PIWdgX::FinishCreate() ne fait rien ! \n"); 214 #endif 214 // appele par la fenetre mere, apres XtRealize() 215 if (finishDone) { 216 fprintf(stderr, "BUG/PIWdgX::FinishCreate() multiple call \n"); 217 return; 218 } 219 finishDone = true; 215 220 return; 216 221 } … … 321 326 PIBindingKind right, PIBindingKind bottom) 322 327 { 328 if (bindingLock) return; 329 mBKleft = left; mBKright = right; 330 mBKtop = top; mBKbottom = bottom; 331 BindWdgtoParent(); 332 } 333 334 335 /* --Methode-- */ 336 void PIWdgX::BindWdgtoParent() 337 { 323 338 Arg wargs[9]; 324 339 int n=0; … … 334 349 XtSetArg(wargs[n],XmNfractionBase, fbase); n++; 335 350 XtSetValues(parent->XtWdg(), wargs, n); 351 352 PIBindingKind left, top, right, bottom; 353 left = mBKleft; right = mBKright; 354 top = mBKtop; bottom = mBKbottom; 336 355 337 356 // printf(" DEBUG_SetBinding: C-Sz= %d %d - Sz=%d %d , Pos= %d %d \n", parent->XSize(), … … 423 442 424 443 XtSetValues(this->sdw, wargs, n); 425 mBKleft = left; mBKright = right;426 mBKtop = top; mBKbottom = bottom;427 444 // printf(" Out_SetBinding: C-Sz= %d %d - Sz=%d %d , Pos= %d %d \n", parent->XSize(), 428 445 // parent->YSize(), XSize(), YSize(), XPos(), YPos()); -
trunk/SophyaPI/PI/piwdgx.h
r329 r367 88 88 89 89 protected: 90 // Attache effectivement le widget au container 91 // Parent - Doit etre appele ds FinishCreate 92 virtual void BindWdgtoParent(); 93 90 94 // Definit le type de Widget, en particulier pour la gestion des feneteres de haut niveau 91 95 // k_wmi_cascade : Widget cree en cascade d'un autre (Exemple pour PIWIndowX) … … 100 104 WmIntState wmis; 101 105 bool stmng; 106 bool finishDone; // FinishCreate appele 102 107 PIBindingKind mBKleft, mBKright, mBKtop, mBKbottom; 103 108 }; -
trunk/SophyaPI/PI/piwindowx.cc
r329 r367 103 103 104 104 /* --Methode-- */ 105 void PIWindowX::SetBinding(PIBindingKind /*left*/, PIBindingKind /*top*/, 106 PIBindingKind /*right*/, PIBindingKind /*bottom*/) 105 void PIWindowX::BindWdgtoParent() 107 106 { 108 107 // On ne doit rien faire pour les fenetres -
trunk/SophyaPI/PI/piwindowx.h
r329 r367 12 12 virtual ~PIWindowX(); 13 13 14 virtual void SetBinding(PIBindingKind left, PIBindingKind top,15 PIBindingKind right, PIBindingKind bottom);16 14 virtual void SetSize(int sx, int sy); 17 15 virtual void SetPos(int px, int py); … … 21 19 22 20 protected: 21 virtual void BindWdgtoParent(); 23 22 PIWdgX *pwm; 24 23
Note:
See TracChangeset
for help on using the changeset viewer.