Re: connecting signals & slots

From: Roger Mason <rmason_at_esd.mun.ca>
Date: Sat, 27 Jan 2007 08:29:52 -0330


Hello Ilka/Valeri/Philipe,

Philippe Canal <pcanal_at_fnal.gov> writes:

> Add
> 	ClassDef(MyFitButton,1);
> at the end of your class declaration.
>

Now I get a different set of errors (things are looking up!):

/home/rmason/Programming/rootmac/RogersGUI.C: In constructor
'MyFitButton::MyFitButton(TGButton (*)())':
/home/rmason/Programming/rootmac/RogersGUI.C:145: error: expected
primary-expression before 'const'
/home/rmason/Programming/rootmac/RogersGUI.C:145: error: expected
primary-expression before '*' token
/home/rmason/Programming/rootmac/RogersGUI.C:145: error: 's' was not
declared in this scope
/home/rmason/Programming/rootmac/RogersGUI.C:145: error: expected
primary-expression before 'id'
/home/rmason/Programming/rootmac/RogersGUI.C:145: error: expected
primary-expression before 'norm'
/home/rmason/Programming/rootmac/RogersGUI.C:145: error: expected
primary-expression before 'font'
/home/rmason/Programming/rootmac/RogersGUI.C:145: error: expected
primary-expression before 'options'

The offending line is this:

   MyFitButton( TGButton() ) : TGTextButton ( const TGWindow *p,    TGHotString *s, Int_t id, GContext_t norm, FontStruct_t font,    UInt_t options )

          , fGraph(0), fF1(0) {}

There are some more errors following, but it is possible they are consequent on this first one.

By the way, what does 'ClassDef(MyFitButton,1);' do? I could not find it in any of my C++ books.

Thanks agaain for you help,

Roger Received on Sat Jan 27 2007 - 13:00:04 CET

This archive was generated by hypermail 2.2.0 : Sat Jan 27 2007 - 17:50:01 CET