namespace view
{
// ----------------------------------------------------------------------------------
- Button::Button( wxWindow* parent, long id, ButtonPair* pair )
+ Button::Button( wxWindow* parent, long id, ButtonPair* pair )
{
- this->m_ButtonPair = pair;
- StringType wXbuttonName = this->m_ButtonPair->first->first;
- StringType wXiconPath = this->m_ButtonPair->first->second;
- StringType wXdescription = this->m_ButtonPair->second->first;
+ this->m_ButtonPair = pair;
+ StringType wXbuttonName = this->m_ButtonPair->first->first;
+ StringType wXiconPath = this->m_ButtonPair->first->second;
+ StringType wXdescription = this->m_ButtonPair->second->first;
wxString buttonName( wXbuttonName.c_str( ), wxConvUTF8 );
wxString imageIcon( wXiconPath.c_str( ), wxConvUTF8 );
wxString description( wXdescription.c_str( ), wxConvUTF8 );
buttonName );
this->SetToolTip( description );
}
+
// ----------------------------------------------------------------------------------
Button::~Button( )
{
}
+
// ----------------------------------------------------------------------------------
StringType
Button::GetButtonName( )
{
return ( this->m_ButtonPair->first->first );
}
+
// ----------------------------------------------------------------------------------
StringType
Button::GetIconPath( )
{
return ( this->m_ButtonPair->first->second );
}
+
// ----------------------------------------------------------------------------------
StringType
Button::GetDescription( )
{
return ( this->m_ButtonPair->second->first );
}
+
// ----------------------------------------------------------------------------------
void
Button::Execute( )