Extracted macro-based method into real method (for better context tagging).

Macro-based methods don't get tagged correctly in my editor which
screws up cross-referencing.
This commit is contained in:
Kohei Yoshida 2011-03-12 14:48:44 -05:00
parent 979e023be8
commit a040ea619d
2 changed files with 36 additions and 30 deletions

View file

@ -101,6 +101,7 @@ private:
void OKPushed();
void NameSelected();
void ScopeChanged();
void NameModified(Edit* pEd);
// Handler:
DECL_LINK( OkBtnHdl, void * );

View file

@ -524,36 +524,7 @@ void ScNameDlg::ScopeChanged()
UpdateNames();
}
IMPL_LINK( ScNameDlg, OkBtnHdl, void *, EMPTYARG )
{
OKPushed();
return 0;
}
IMPL_LINK( ScNameDlg, CancelBtnHdl, void *, EMPTYARG )
{
Close();
return 0;
}
IMPL_LINK( ScNameDlg, AddBtnHdl, void *, EMPTYARG )
{
return AddPushed();
}
IMPL_LINK( ScNameDlg, RemoveBtnHdl, void *, EMPTYARG )
{
RemovePushed();
return 0;
}
IMPL_LINK( ScNameDlg, NameSelectHdl, void *, EMPTYARG )
{
NameSelected();
return 0;
}
IMPL_LINK( ScNameDlg, EdModifyHdl, Edit *, pEd )
void ScNameDlg::NameModified(Edit* pEd)
{
String theName = aEdName.GetText();
String theSymbol = aEdAssign.GetText();
@ -625,6 +596,40 @@ IMPL_LINK( ScNameDlg, EdModifyHdl, Edit *, pEd )
aBtnRemove.Disable();
}
}
}
IMPL_LINK( ScNameDlg, OkBtnHdl, void *, EMPTYARG )
{
OKPushed();
return 0;
}
IMPL_LINK( ScNameDlg, CancelBtnHdl, void *, EMPTYARG )
{
Close();
return 0;
}
IMPL_LINK( ScNameDlg, AddBtnHdl, void *, EMPTYARG )
{
return AddPushed();
}
IMPL_LINK( ScNameDlg, RemoveBtnHdl, void *, EMPTYARG )
{
RemovePushed();
return 0;
}
IMPL_LINK( ScNameDlg, NameSelectHdl, void *, EMPTYARG )
{
NameSelected();
return 0;
}
IMPL_LINK( ScNameDlg, EdModifyHdl, Edit *, pEd )
{
NameModified(pEd);
return 0;
}