Changeset 329 in Sophya for trunk/SophyaPI/PI/piwdgx.cc
- Timestamp:
- Jun 24, 1999, 4:24:58 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/piwdgx.cc
r320 r329 113 113 114 114 /* --Methode-- */ 115 PIWdgX::PIWdgX(PIContainerGen *par, c har *nom,115 PIWdgX::PIWdgX(PIContainerGen *par, const char *nom, 116 116 int sx, int sy, int px, int py) 117 117 :PIWdgGen(par, nom, sx, sy, px, py) … … 123 123 124 124 /* --Methode-- */ 125 int PIWdgX::CreateXtWdg(c har *nom, SysDWdgClass wdgcl, SysDWdg pwdg,125 int PIWdgX::CreateXtWdg(const char *nom, SysDWdgClass wdgcl, SysDWdg pwdg, 126 126 int sx, int sy, int px, int py, Arg* oarg, int na) 127 127 { … … 453 453 } 454 454 455 /* --Methode-- */456 void PIWdgX::SetLabel(string const& lab)457 {458 XmString xmstr;459 xmstr = XmStringLtoRCreate((char *)lab.c_str(), XmSTRING_DEFAULT_CHARSET);460 int n=0;461 Arg warg[2];462 463 XtSetArg(warg[n], XmNlabelString, xmstr); n++;464 XtSetValues(XtWdg(), warg, n);465 XmStringFree(xmstr);466 return;467 }468 469 470 455 471 456 /* --Methode-- */ … … 555 540 556 541 // Ressources X si non definis 557 static const String fallback_res[2 4] = {542 static const String fallback_res[26] = { 558 543 "PeidaInt*default*background: LightGrey" , 559 544 "PeidaInt*background: LightGrey" , … … 577 562 "PeidaInt*fontList: -*-courier-bold-r-normal-*-12-*-*-*-*-*-ISO8859-1", 578 563 "PeidaInt*default*fontList: -*-courier-bold-r-normal-*-12-*-*-*-*-*-ISO8859-1", 579 "PeidaInt*fontFamilyName: *-courier", // Pas de blanc apres le nom de font 580 "PeidaInt*courierfontFamilyName: *-courier", // " " 581 "PeidaInt*symbolfontFamilyName: *-symbol", // " " 564 "PeidaInt*fontFamilyName: *-courier", // Pas de blanc apres le nom de font 565 "PeidaInt*courierfontFamilyName: *-courier", // " " 566 "PeidaInt*helveticafontFamilyName: *-helvetica", // " " 567 "PeidaInt*timesfontFamilyName: *-times", // " " 568 "PeidaInt*symbolfontFamilyName: *-symbol", // " " 582 569 "PeidaInt*XmToggleButton*selectColor: Red", 583 570 NULL
Note:
See TracChangeset
for help on using the changeset viewer.