Ignore:
Timestamp:
07/08/05 18:14:35 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc

    r7092 r7178  
    28962896    fi.fIniDir    = StrDup(dir);
    28972897
    2898     new TGFileDialog(fClient->GetRoot(), this, kFDSave, &fi);
     2898    new TGFileDialog(fClient->GetRoot(), this, kFDOpen, &fi);
    28992899
    29002900    if (!fi.fFilename)
  • trunk/MagicSoft/Mars/mbase/MTaskInteractive.cc

    r4513 r7178  
    8383    fCall[1] = 0;
    8484    fCall[2] = 0;
     85    fCall[3] = 0;
    8586}
    8687
     
    9495    Free(1);
    9596    Free(2);
     97    Free(3);
    9698}
    9799
     
    141143    {
    142144    case 0:
    143         gLog << "Pre";
     145        gLog << "PreProcess";
     146        break;
     147    case 1:
     148        gLog << "Process";
    144149        break;
    145150    case 2:
    146         gLog << "Post";
     151        gLog << "PostProcess";
     152        break;
     153    case 3:
     154        gLog << "ReInit";
    147155        break;
    148156
    149157    }
    150     gLog << "Process-function." << endl;
     158    gLog << "-function." << endl;
    151159
    152160    return kTRUE;
  • trunk/MagicSoft/Mars/mbase/MTaskInteractive.h

    r4452 r7178  
    1212{
    1313private:
    14     TMethodCall *fCall[3];
     14    TMethodCall *fCall[4];
    1515
    16     Int_t (*fPreProcess)(MParList *list);
    17     Int_t (*fProcess)();
    18     Int_t (*fPostProcess)();
     16    Int_t  (*fPreProcess)(MParList *list);
     17    Int_t  (*fProcess)();
     18    Int_t  (*fPostProcess)();
     19    Bool_t (*fReInit)(MParList *list);
    1920
    20     Int_t PreProcess(MParList *list) { if (fCall[0]) return Return(0, &list); return fPreProcess  ? (*fPreProcess)(list) : kTRUE; }
    21     Int_t Process()                  { if (fCall[1]) return Return(1);        return fProcess     ? (*fProcess)()        : kTRUE; }
    22     Int_t PostProcess()              { if (fCall[2]) return Return(2);        return fPostProcess ? (*fPostProcess)()    : kTRUE; }
     21    Int_t  PreProcess(MParList *list) { if (fCall[0]) return Return(0, &list); return fPreProcess  ? (*fPreProcess)(list) : kTRUE; }
     22    Int_t  Process()                  { if (fCall[1]) return Return(1);        return fProcess     ? (*fProcess)()        : kTRUE; }
     23    Int_t  PostProcess()              { if (fCall[2]) return Return(2);        return fPostProcess ? (*fPostProcess)()    : kTRUE; }
     24    Bool_t ReInit(MParList *list)     { if (fCall[3]) return Return(3, &list); return fPostProcess ? (*fPostProcess)()    : kTRUE; }
    2325
    2426    Int_t Return(Int_t no, void *param=NULL);
     
    3234    // This is to be used in compiled code
    3335    void SetPreProcess(Int_t (*func)(MParList *list)) { fPreProcess = func;  Free(0); }
    34     void SetProcess(Int_t (*func)())                  { fProcess = func;     Free(1);  }
    35     void SetPostProcess(Int_t (*func)())              { fPostProcess = func; Free(2);  }
     36    void SetProcess(Int_t (*func)())                  { fProcess = func;     Free(1); }
     37    void SetPostProcess(Int_t (*func)())              { fPostProcess = func; Free(2); }
     38    void SetReInit(Bool_t (*func)(MParList *list))    { fReInit = func;      Free(3); }
    3639
    3740    // This is for usage in CINT
     
    3942    void SetProcess(void *fcn)     { Set(fcn, 1, "");          fProcess    =0; }
    4043    void SetPostProcess(void *fcn) { Set(fcn, 2, "");          fPostProcess=0; }
     44    void SetReInit(void *fcn)      { Set(fcn, 3, "MParList*"); fReInit     =0; }
    4145
    4246    ClassDef(MTaskInteractive, 0) // Interactive task
Note: See TracChangeset for help on using the changeset viewer.