Changeset 7178 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 07/08/05 18:14:35 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r7092 r7178 2896 2896 fi.fIniDir = StrDup(dir); 2897 2897 2898 new TGFileDialog(fClient->GetRoot(), this, kFD Save, &fi);2898 new TGFileDialog(fClient->GetRoot(), this, kFDOpen, &fi); 2899 2899 2900 2900 if (!fi.fFilename) -
trunk/MagicSoft/Mars/mbase/MTaskInteractive.cc
r4513 r7178 83 83 fCall[1] = 0; 84 84 fCall[2] = 0; 85 fCall[3] = 0; 85 86 } 86 87 … … 94 95 Free(1); 95 96 Free(2); 97 Free(3); 96 98 } 97 99 … … 141 143 { 142 144 case 0: 143 gLog << "Pre"; 145 gLog << "PreProcess"; 146 break; 147 case 1: 148 gLog << "Process"; 144 149 break; 145 150 case 2: 146 gLog << "Post"; 151 gLog << "PostProcess"; 152 break; 153 case 3: 154 gLog << "ReInit"; 147 155 break; 148 156 149 157 } 150 gLog << " Process-function." << endl;158 gLog << "-function." << endl; 151 159 152 160 return kTRUE; -
trunk/MagicSoft/Mars/mbase/MTaskInteractive.h
r4452 r7178 12 12 { 13 13 private: 14 TMethodCall *fCall[ 3];14 TMethodCall *fCall[4]; 15 15 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); 19 20 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; } 23 25 24 26 Int_t Return(Int_t no, void *param=NULL); … … 32 34 // This is to be used in compiled code 33 35 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); } 36 39 37 40 // This is for usage in CINT … … 39 42 void SetProcess(void *fcn) { Set(fcn, 1, ""); fProcess =0; } 40 43 void SetPostProcess(void *fcn) { Set(fcn, 2, ""); fPostProcess=0; } 44 void SetReInit(void *fcn) { Set(fcn, 3, "MParList*"); fReInit =0; } 41 45 42 46 ClassDef(MTaskInteractive, 0) // Interactive task
Note:
See TracChangeset
for help on using the changeset viewer.