Changeset 3563 in Sophya for trunk/SophyaPI/PIext


Ignore:
Timestamp:
Jan 29, 2009, 10:26:49 PM (17 years ago)
Author:
ansari
Message:

Ajout commande setdefafsz ds graphexecut.cc pour changer la valeur globale par defaut pour PIDrawer::AutoFontSizeFraction, Reza 29/01/2009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/graphexecut.cc

    r3551 r3563  
    8787    for(unsigned int kt=1; kt<tokens.size(); kt++)  { opts += ' '; opts += tokens[kt]; }
    8888  if (mImgApp) mImgApp->SetDefaultAxesAttributes(opts);
     89  }
     90else if (kw == "setdefafsz") {
     91  if (tokens.size() < 1) { cout << "Usage: setdefafsz " << endl;  return(0); }
     92  double fsz = atof(tokens[0].c_str());
     93  PIDrawer::SetGlDefAutoFontSizeFrac(fsz);
     94  cout << " setdefafsz: PIDrawer Global Default AutoFontSize fraction set to "
     95       << PIDrawer::GetGlDefAutoFontSizeFrac() << endl;
    8996  }
    9097else if (kw == "setinsetlimits") {
     
    491498mpiac->RegisterCommand(kw, usage, this, grp);
    492499
     500kw = "setdefafsz";
     501usage = "Define the Global Default value for PIDrawer AutoFontSize Fraction \n";
     502usage += " Usage: setdefafsz value \n";
     503usage += "   0<value<1 : default PIDrawer font size, as a fraction of the widget size\n";
     504usage += "   Its value can be set by the PIDEFAFSZFRAC environment variable \n";
     505usage += "   See also graphic attributes : fixedfontsize autofontsize=frac "; 
     506mpiac->RegisterCommand(kw, usage, this, grp);
     507
    493508kw = "setinsetlimits";
    494509usage = "Define the display rectangle for drawers added as insets \n";
Note: See TracChangeset for help on using the changeset viewer.