Changeset 714 in Sophya


Ignore:
Timestamp:
Feb 4, 2000, 7:39:48 PM (26 years ago)
Author:
ercodmgr
Message:

Modifs cosmetiques, liees a la documentation, Reza 4/2/99

Location:
trunk/SophyaPI/PI/Tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/Tests/xp1.cc

    r536 r714  
    3737
    3838
    39 
    4039/* ........................................................... */
    4140/*              Classe ArgsWindow (methodes)                   */
    4241/* ........................................................... */
    43 
    4442
    4543/* --Methode-- */
     
    6159mText[0] = new PIText(this, "UsArg1", bsx*2, bsy, bsx+(bsx*2/3), bsy/4);
    6260mText[0]->SetText("Hello ");
    63 mText[1] = new PIText(this, "UsArg2", bsx*2, bsy, bsx+(bsx*2/3), bsy/4 + (bsy/4+bsy) );
     61mText[1] = new PIText(this, "UsArg2", bsx*2, bsy, bsx+(bsx*2/3),
     62                      bsy/4 + (bsy/4+bsy) );
    6463mText[1]->SetText("1. -1.");
    6564
     
    7170//  Taille et position proportionnelles a la taille de la fenetre pour les elements
    7271for(int i=0; i<2; i++) {
    73   mLab[i]->SetBinding(PIBK_elastic , PIBK_elastic , PIBK_elastic , PIBK_elastic);
    74   mText[i]->SetBinding(PIBK_elastic , PIBK_elastic , PIBK_elastic , PIBK_elastic);
     72  mLab[i]->SetBinding(PIBK_elastic, PIBK_elastic, PIBK_elastic, PIBK_elastic);
     73  mText[i]->SetBinding(PIBK_elastic, PIBK_elastic, PIBK_elastic, PIBK_elastic);
    7574  }
    76 for(int ii=0; ii<2; ii++) mBut[ii]->SetBinding(PIBK_elastic , PIBK_elastic , PIBK_elastic , PIBK_elastic);
    77 
     75for(int ii=0; ii<2; ii++)
     76  mBut[ii]->SetBinding(PIBK_elastic, PIBK_elastic, PIBK_elastic, PIBK_elastic);
    7877}
    7978
     
    113112}
    114113
    115 
    116114/* ........................................................... */
    117115/*               Classe PITApp (methodes)                      */
     
    136134// On accroche le menu au Menubar
    137135AppendMenu(m[1]);
    138 
    139136
    140137// Creation d' un label
     
    163160      mAW->Show();
    164161      break;
    165 
    166162    case 10102 :     // Apparition de la fenetre de dialogue
    167163      mAW->Hide();
    168164      break;
    169 
    170165    case 10105:          // Sortie d'application
    171166      Stop();
     
    175170      cout << "PITApp::Process() Msg= " << msg << " UserMsg= "
    176171           << UserMsg(msg) << " ModMsg= " << ModMsg(msg) << endl;
    177      break;
    178    
     172     break;   
    179173  }
    180174return;
    181175}
    182 
    183 
    184176// ................................................................
    185177//                   programme principal
     
    200192exit(0);
    201193}
    202 
    203 
  • trunk/SophyaPI/PI/Tests/xp2.cc

    r549 r714  
    1313
    1414
    15 /*  Exemple d'utilisation PIBaseWdg - Creation d'une nouvelle composante graphique  */
     15/*  Exemple d'utilisation PIBaseWdg -
     16    Creation d'une nouvelle composante graphique  */
    1617
    1718// ---- Declaration de la classe ExBWdg --------
  • trunk/SophyaPI/PI/Tests/xp3.cc

    r688 r714  
    4747// First menu
    4848m[0] = new PIMenu(Menubar(),"Fichier");
    49 m[0]->AppendItem("ShowImageTools", 10101);    // Show Image Tools window
    50 m[0]->AppendItem("ShowDrawerTools", 10102);   // Show drawer Tools (Graphic Att.) window
    51 m[0]->AppendItem("PostScript (EPS)", 10105);  // Creating eps file from a graphic / image
     49// Show Image Tools window
     50m[0]->AppendItem("ShowImageTools", 10101);   
     51// Show drawer Tools (Graphic Att.) window
     52m[0]->AppendItem("ShowDrawerTools", 10102);   
     53// Creating eps file from a graphic / image
     54m[0]->AppendItem("PostScript (EPS)", 10105); 
    5255m[0]->AppendItem("Exit", 10150);
    5356// Appending menu to menu bar
     
    5659// 2nd Menu
    5760m[1] = new PIMenu(Menubar(),"Graphics");
    58 m[1]->AppendItem("2-Drawers", 10201);         // 2x 2D drawer superposition
    59 m[1]->AppendItem("Surf-3D", 10202);
    60 m[1]->AppendItem("Image", 10203);
     61m[1]->AppendItem("2-Drawers", 10201); // 2D drawer superposition
     62m[1]->AppendItem("Surf-3D", 10202);   //  Surface (3D) drawer
     63m[1]->AppendItem("Image", 10203);     //  Image view object
    6164// Appending menu to menu bar
    6265AppendMenu(m[1]);
     
    8386static double fsinc(double x)
    8487{ if ( (x>-1.e-8) && (x<1.e-8) ) return(0.); else return (sin(x)/x); }
    85 static float *  surf_fill_matx();   // fill 50x50 array
    86 static float *  img_fill_array(int sx, int sy);   // fill sx * sy array with random stars
     88// fill 50x50 array
     89static float *  surf_fill_matx();   
     90// fill sx * sy array with random stars
     91static float *  img_fill_array(int sx, int sy);   
    8792
    8893/* --Methode-- */
     
    136141     
    137142    // Using PIYfXDrawer and P1DAdapter<T>
    138     PIYfXDrawer* mxyd = new   PIYfXDrawer( new P1DAdapter<float>(vpx, 30, true),
    139                                              new P1DAdapter<float>(vpy, 30, true), true);
     143    PIYfXDrawer* mxyd = new PIYfXDrawer(new P1DAdapter<float>(vpx, 30, true),
     144                                  new P1DAdapter<float>(vpy, 30, true), true);
    140145    // Changing graphic attributes for the drawer
    141146    mxyd->SetColAtt(PI_Magenta);
Note: See TracChangeset for help on using the changeset viewer.