Changeset 329 in Sophya for trunk/SophyaPI/PI/piwdgx.cc


Ignore:
Timestamp:
Jun 24, 1999, 4:24:58 PM (26 years ago)
Author:
ercodmgr
Message:

Ajout de const dans les declarations de char * dans tout PI
(char * --> const char *)
Passage a 5 types de fontes differentes (Def, Courier, Helvetica, Times, Symbol)

Reza 24/6/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/piwdgx.cc

    r320 r329  
    113113
    114114/* --Methode-- */
    115 PIWdgX::PIWdgX(PIContainerGen *par, char *nom,
     115PIWdgX::PIWdgX(PIContainerGen *par, const char *nom,
    116116               int sx, int sy, int px, int py)
    117117:PIWdgGen(par, nom, sx, sy, px, py)
     
    123123
    124124/* --Methode-- */
    125 int PIWdgX::CreateXtWdg(char *nom, SysDWdgClass wdgcl, SysDWdg pwdg,
     125int PIWdgX::CreateXtWdg(const char *nom, SysDWdgClass wdgcl, SysDWdg pwdg,
    126126                        int sx, int sy, int px, int py, Arg* oarg, int na)
    127127{
     
    453453}
    454454
    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 
    470455
    471456/* --Methode-- */
     
    555540
    556541// Ressources X si non definis
    557 static const String fallback_res[24] = {
     542static const String fallback_res[26] = {
    558543"PeidaInt*default*background:                 LightGrey" ,
    559544"PeidaInt*background:                         LightGrey" ,
     
    577562"PeidaInt*fontList:           -*-courier-bold-r-normal-*-12-*-*-*-*-*-ISO8859-1",
    578563"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",     //           "        "
    582569"PeidaInt*XmToggleButton*selectColor:         Red",
    583570NULL
Note: See TracChangeset for help on using the changeset viewer.