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 ...@@ -100,10 +100,9 @@ namespace pcr
setModified(); setModified();
} }
IMPL_LINK_NOARG( CommonBehaviourControlHelper, ModifiedHdl ) IMPL_LINK_NOARG_TYPED( CommonBehaviourControlHelper, ModifiedHdl, ListBox&, void )
{ {
setModified(); setModified();
return 0;
} }
IMPL_LINK_NOARG_TYPED( CommonBehaviourControlHelper, GetFocusHdl, Control&, void ) IMPL_LINK_NOARG_TYPED( CommonBehaviourControlHelper, GetFocusHdl, Control&, void )
......
...@@ -89,9 +89,8 @@ namespace pcr ...@@ -89,9 +89,8 @@ namespace pcr
virtual vcl::Window* getVclWindow() = 0; virtual vcl::Window* getVclWindow() = 0;
/// may be used by derived classes, they forward the event to the PropCtrListener /// 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( EditModifiedHdl, Edit&, void );
DECL_LINK_TYPED( SelectHdl, ListBox&, void );
DECL_LINK_TYPED( GetFocusHdl, Control&, void ); DECL_LINK_TYPED( GetFocusHdl, Control&, void );
DECL_LINK_TYPED( LoseFocusHdl, Control&, void ); DECL_LINK_TYPED( LoseFocusHdl, Control&, void );
}; };
......
...@@ -61,10 +61,10 @@ namespace pcr ...@@ -61,10 +61,10 @@ namespace pcr
TListboxWindow::SetSelectHdl( LINK(this, ListLikeControlWithModifyHandler, OnSelect) ); TListboxWindow::SetSelectHdl( LINK(this, ListLikeControlWithModifyHandler, OnSelect) );
} }
void SetModifyHdl( const Link<>& _rLink ) { aModifyHdl = _rLink;; } void SetModifyHdl( const Link<ListBox&,void>& _rLink ) { aModifyHdl = _rLink;; }
private: private:
DECL_LINK_TYPED(OnSelect, ListBox&, void); DECL_LINK_TYPED(OnSelect, ListBox&, void);
Link<> aModifyHdl; Link<ListBox&,void> aModifyHdl;
}; };
template< class LISTBOX_WINDOW > template< class LISTBOX_WINDOW >
...@@ -74,7 +74,7 @@ namespace pcr ...@@ -74,7 +74,7 @@ namespace pcr
template< class LISTBOX_WINDOW > template< class LISTBOX_WINDOW >
void ListLikeControlWithModifyHandler< LISTBOX_WINDOW >::OnSelect(ListBox& rListBox) void ListLikeControlWithModifyHandler< LISTBOX_WINDOW >::OnSelect(ListBox& rListBox)
{ {
aModifyHdl.Call(&rListBox); aModifyHdl.Call(rListBox);
} }
//= OTimeControl //= OTimeControl
......
...@@ -56,7 +56,7 @@ namespace pcr ...@@ -56,7 +56,7 @@ namespace pcr
{ {
SetText( "" ); SetText( "" );
if ( m_pHelper ) if ( m_pHelper )
m_pHelper->ModifiedHdl( this ); m_pHelper->setModified();
return true; 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