Re: connecting signals & slots

From: Roger Mason <rmason_at_esd.mun.ca>
Date: Fri, 26 Jan 2007 14:58:11 -0330


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 - 19:28:38 CET

This archive was generated by hypermail 2.2.0 : Fri Jan 26 2007 - 23:50:00 CET