Kaydet (Commit) 59418d8e authored tarafından Noel Grandin's avatar Noel Grandin

convert Link<> to typed

Change-Id: I66ad4562f33b68172557d759a26b9e19d19e2c0e
üst 13720874
......@@ -100,10 +100,9 @@ namespace pcr
setModified();
}
IMPL_LINK_NOARG( CommonBehaviourControlHelper, ModifiedHdl )
IMPL_LINK_NOARG_TYPED( CommonBehaviourControlHelper, ModifiedHdl, ListBox&, void )
{
setModified();
return 0;
}
IMPL_LINK_NOARG_TYPED( CommonBehaviourControlHelper, GetFocusHdl, Control&, void )
......
......@@ -89,9 +89,8 @@ namespace pcr
virtual vcl::Window* getVclWindow() = 0;
/// may be used by derived classes, they forward the event to the PropCtrListener
DECL_LINK( ModifiedHdl, void* );
DECL_LINK_TYPED( ModifiedHdl, ListBox&, void );
DECL_LINK_TYPED( EditModifiedHdl, Edit&, void );
DECL_LINK_TYPED( SelectHdl, ListBox&, void );
DECL_LINK_TYPED( GetFocusHdl, Control&, void );
DECL_LINK_TYPED( LoseFocusHdl, Control&, void );
};
......
......@@ -61,10 +61,10 @@ namespace pcr
TListboxWindow::SetSelectHdl( LINK(this, ListLikeControlWithModifyHandler, OnSelect) );
}
void SetModifyHdl( const Link<>& _rLink ) { aModifyHdl = _rLink;; }
void SetModifyHdl( const Link<ListBox&,void>& _rLink ) { aModifyHdl = _rLink;; }
private:
DECL_LINK_TYPED(OnSelect, ListBox&, void);
Link<> aModifyHdl;
Link<ListBox&,void> aModifyHdl;
};
template< class LISTBOX_WINDOW >
......@@ -74,7 +74,7 @@ namespace pcr
template< class LISTBOX_WINDOW >
void ListLikeControlWithModifyHandler< LISTBOX_WINDOW >::OnSelect(ListBox& rListBox)
{
aModifyHdl.Call(&rListBox);
aModifyHdl.Call(rListBox);
}
//= OTimeControl
......
......@@ -56,7 +56,7 @@ namespace pcr
{
SetText( "" );
if ( m_pHelper )
m_pHelper->ModifiedHdl( this );
m_pHelper->setModified();
return true;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment