- Timestamp:
- Apr 12, 2007, 11:48:32 AM (18 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/Tests/xp0.cc
r2750 r3215 38 38 39 39 { 40 puts("xp0: Debut PITApp::PITApp(int narg, char* arg[]) "); 40 41 // Menus, les numeros ds AppendItem sont les numeros de messages 41 42 // qui seront passes a Process() et permettent d'identifier l'action … … 96 97 printf("xp0 : simple PI example program \n"); 97 98 printf(" Usage : xp0 [Xt options] \n"); 99 exit(1); 98 100 } 99 101 // Creation de l'objet application et appel de Run() 102 puts("xp0: Creation objet Application PITApp "); 100 103 PITApp * app = new PITApp(narg, arg); 101 104 puts("appel de Application.Run() ... "); -
trunk/SophyaPI/PI/piapplgen.cc
r2615 r3215 62 62 :topcont(NULL), menubar(NULL), mState(0) 63 63 { 64 puts("DBG-PIApplicationGen::PIApplicationGen() "); 64 65 curapp = this; 65 66 } -
trunk/SophyaPI/PI/piapplx.cc
r2615 r3215 114 114 mStop = true; 115 115 116 puts("PIApplicationX::PIApplicationX()_info : Appel topwdg = new PIWdgX(narg, arg);"); 116 117 117 118 topwdg = new PIWdgX(narg, arg); 119 puts("PIApplicationX::PIApplicationX()_info : topwdg OK "); 118 120 119 121 int msx,msy; … … 121 123 msy+=5; 122 124 topwdg->SetSize(sx, sy+msy); 123 //DBGprintf("PIApplicationX-DBG:: Size=%d %d \n", topwdg->XSize(), topwdg->YSize());125 printf("PIApplicationX-DBG:: Size=%d %d \n", topwdg->XSize(), topwdg->YSize()); 124 126 125 127 intcont = new PIContainerX((PIMsgHandler *)this, topwdg, "MBCont", … … 141 143 sx, sy, 0, msy); 142 144 MBCont()->Show(); 143 //DBGprintf("PIApplicationX-DBG2:: MBContSize=%d %d \n", MBCont()->XSize(), MBCont()->YSize());145 printf("PIApplicationX-DBG2:: MBContSize=%d %d \n", MBCont()->XSize(), MBCont()->YSize()); 144 146 145 147 -
trunk/SophyaPI/PI/piwdgx.cc
r2876 r3215 310 310 XtSetValues(this->sdw, wargs, 2); 311 311 */ 312 /* Modifs Reza Avril 2007, remplacement par XtMakeGeometryRequest 312 313 XtResizeWidget(sdw, sx, sy, BorderWidth()); 313 314 */ 315 XtWidgetGeometry wgeom; 316 wgeom.request_mode = CWWidth|CWHeight; 317 wgeom.width = sx; 318 wgeom.height = sy; 319 XtMakeGeometryRequest(sdw, &wgeom, NULL); 314 320 return; 315 321 } … … 325 331 XtSetValues(this->sdw, wargs, 2); 326 332 */ 333 /* Modifs Reza Avril 2007, remplacement par XtMakeGeometryRequest 327 334 XtMoveWidget(sdw, px, py); 328 335 */ 336 XtWidgetGeometry wgeom; 337 wgeom.request_mode = CWX|CWY; 338 wgeom.x = px; 339 wgeom.y = py; 340 XtMakeGeometryRequest(sdw, &wgeom, NULL); 329 341 return; 330 342 } … … 662 674 //BUG ? - DEL top = XtVaAppInitialize(&appctx, appclass, NULL, 0, &n, ppc, const_cast<String*>(fallback_res)); 663 675 top = XtOpenApplication(&appctx, appclass, NULL, 0, &n, ppc, const_cast<String*>(fallback_res), 664 applicationShellWidgetClass, NULL, 0); 676 sessionShellWidgetClass, NULL, 0); 677 // Reza, Avril 2007 : applicationShell remplace par sessionShell 678 // doc Lesstif dit que applicationShell est obsolete 679 // applicationShellWidgetClass, NULL, 0); 680 665 681 if (top == NULL) { 666 682 fprintf(stderr, "PIWdgX::InitXt()/ Error XtVaAppInitialize()\n");
Note:
See TracChangeset
for help on using the changeset viewer.