2 // Author: Matevz Tadel 2007
4 /**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
10 #include "AliEveMacro.h"
12 //______________________________________________________________________________
13 // Full description of AliEveMacro
15 // !!! Eventually, fSources should be a bitfield, but we need a widget
16 // that can show/edit this. Like combo-box with a check-box for each
21 //______________________________________________________________________________
22 AliEveMacro::AliEveMacro(Int_t src, const TString& tags, const TString& mac,
23 const TString& foo, const TString& args, Bool_t act) :
25 fSources(src), fTags(tags), fMacro (mac),
26 fFunc (foo), fArgs(args), fActive(act)
31 /******************************************************************************/
33 TString AliEveMacro::FormForExec() const
35 // Return string suitable for execution.
37 return fFunc + "(" + fArgs + ");";
40 TString AliEveMacro::FormForDisplay() const
42 // Return string suitable for display.
44 return TString::Format
45 (" %c %-20s %-20s %-30s %-s", fActive ? 'x' : ' ',
46 fMacro.Data(), fFunc.Data(), fArgs.Data(), fTags.Data());