Add
ClassDef(MyFitButton,1);
at the end of your class declaration.
Cheers,
Philippe
-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch]
On Behalf Of Roger Mason
Sent: Friday, January 26, 2007 12:28 PM
To: Fine, Valeri
Cc: roottalk_at_pcroot.cern.ch
Subject: Re: [ROOT] connecting signals & slots
Hi Valeri,
"Fine, Valeri" <fine_at_bnl.gov> writes:
> I think you need something like this
> ( Let me know whether I should elaborate further )
>
This is what I have:
class MyFitButton : public TGTextButton { private:
TGraph *fGraph; TF1 *fF1;
public:
MyFitButton( TGButton() )
: TGTextButton ( const TGWindow *p, TGHotString *s, Int_t id, GContext_t norm, FontStruct_t font, UInt_t options )
, fGraph(0), fF1(0) {}
void SetGraph(TGraph *g) { fGraph = g;} void SetFun1(TF1 *f) { fF1 = f;}
TGraph *Graph() const {return fGraph;}
TF1 *Fun1() const { return fF1;}
};
ACLiC complains:
Error in <MyFitButton>: MyFitButton inherits from TObject but does not have its own ClassDef
Thanks for your help,
Roger
Received on Fri Jan 26 2007 - 20:03:19 CET
This archive was generated by hypermail 2.2.0 : Sat Jan 27 2007 - 17:50:01 CET