Re: How can be signal_remove() used on Winodw?
- From: Dimitri Holz <d holz innoventis de>
- To: gtkmm-list gnome org
- Subject: Re: How can be signal_remove() used on Winodw?
- Date: Thu, 22 Jan 2009 11:57:06 +0100
It is a big project whit about 30 files but here is a method that should
processing when signal_remove() will be emmitted and few signal bindings:
this->signal_check_resize().connect(sigc::mem_fun(*this,
&MainView::MyChangeToolbarSettings)); //compilable
this->signal_remove().connect(sigc::mem_fun(*this,&MainView::OnRemoveWindow));
//not compileable
void MainView::OnRemoveWindow()
{
int iX, iY;
this->get_position(iX, iY);
cout<<iX<<" "<<iY<<endl;
if(iX != m_iMainPosX || iY != m_iMainPosY)
{
int iSettingsY,iSettingsX;
int iTrafficY,iTrafficX,iMessageY,iMessageX;
m_oDiaModeTrafficWindow.get_position(iTrafficX, iTrafficY);
m_oDiaModeTrafficWindow.move(iTrafficX+iX-m_iMainPosX,iTrafficY+iY-m_iMainPosY);
m_oDiaModeSettingsWindow.get_position(iSettingsX, iSettingsY);
m_oDiaModeSettingsWindow.move(iSettingsX+iX-m_iMainPosX,iSettingsY+iY-m_iMainPosY);
m_oDiaModeMessageWindow.get_position(iMessageX, iMessageY);
m_oDiaModeMessageWindow.move(iMessageX+iX-m_iMainPosX,iMessageY+iY-m_iMainPosY);
m_iMainPosX = iX;
m_iMainPosY = iY;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]