[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-users] Signal Problem
From: |
Dimitris Mexis |
Subject: |
[paragui-users] Signal Problem |
Date: |
Sun, 20 Mar 2005 14:28:48 -0800 (PST) |
My header file is like this:
class pgWindow : public PG_Window
{
public:
pgWindow( PG_Widget* parent, PG_Rect r, char * text
);
class clsStartUp : public pgWindow
{
public:
clsStartUp( struct GfxOptions & gfxOptions,
PG_Widget * parent, PG_Rect r, char * text );
bool handle_selectitem( PG_Pointer clientdata );
}
This to help you get an idea of my window....
I call this :
rdoNation = new PG_RadioButton( this, PG_Rect( rdoX,
rdoY, 100, 20 ), tmp.c_str() );
rdoNation->SetID( i );
rdoNation->sigClick.connect(
&clsStartUp::handle_selectitem );
and my handle_item function....ehm.. slot is:
bool clsStartUp::handle_selectitem( PG_Pointer
clientdata )
{
PG_RadioButton* b = (PG_RadioButton*)clientdata;
int id = b->GetID();
player->setNation( id );
txtName->SetText( civilization->getTribalHero(
player->getNationID() ).c_str() );
//rchInfo->SetText( ini_Data->readINI(
ini_Data->retINIFile( ATTRIBUTES ), stringfyShort(
player->getNationID() ).c_str(), "Desc" ).c_str() );
#ifdef YESSOUND
Mix_PlayChannel( -1, sound->chunk[SAIL_START], 1 );
#endif
}
...but....I...get....
clstown.cpp:205: error: no matching function for call
to
`PG_RadioButton::SignalButtonClick<bool>::connect(bool
(clsStartUp::*)(void*))'
/usr/include/paragui/pgsignals.h:94: note: candidates
are: SigC::Connection PG_Signal2<P1, P2,
datatype>::connect(const SigC::Slot3<bool, P1, P2,
datatype>&, datatype) [with P1 = PG_RadioButton*, P2 =
bool, datatype = void*]
/usr/include/paragui/pgsignals.h:98: note:
SigC::Connection PG_Signal2<P1, P2,
datatype>::connect(const SigC::Slot2<bool, P1,
datatype>&, datatype) [with P1 = PG_RadioButton*, P2 =
bool, datatype = void*]
/usr/include/paragui/pgsignals.h:102: note:
SigC::Connection PG_Signal2<P1, P2,
datatype>::connect(const SigC::Slot2<bool, P1,
datatype>&) [with P1 = PG_RadioButton*, P2 = bool,
datatype = void*]
/usr/include/paragui/pgsignals.h:106: note:
SigC::Connection PG_Signal2<P1, P2,
datatype>::connect(const SigC::Slot1<bool, datatype>&)
[with P1 = PG_RadioButton*, P2 = bool, datatype =
void*]
/usr/include/paragui/pgsignals.h:110: note:
SigC::Connection PG_Signal2<P1, P2,
datatype>::connect(const SigC::Slot1<bool, datatype>&)
[with P1 = PG_RadioButton*, P2 = bool, datatype =
void*]
/usr/include/paragui/pgsignals.h:114: note:
SigC::Connection PG_Signal2<P1, P2,
datatype>::connect(const SigC::Slot0<bool>&) [with P1
= PG_RadioButton*, P2 = bool, datatype = void*]
make: *** [clstown] Error 1
he...
I don't understand nothing of this....I used the old
version of 1.0 and perhaps it had some bugs and
erroneous parts, this thing with the signals
is...unbelievable...
My project is http://methos.sourceforge.net. I
commented hundreds of lines, because nothing works
fine...
Please help me, I can't get on with that....
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
- [paragui-users] Signal Problem,
Dimitris Mexis <=