Naming conventions.

This commit is contained in:
Jeff Young 2020-12-12 03:18:43 +00:00
parent b6e267b78d
commit 42d96fcadc
2 changed files with 12 additions and 12 deletions

View File

@ -32,11 +32,11 @@ wxDEFINE_EVENT( KIEVT_SHOW_INFOBAR, wxCommandEvent );
wxDEFINE_EVENT( KIEVT_DISMISS_INFOBAR, wxCommandEvent ); wxDEFINE_EVENT( KIEVT_DISMISS_INFOBAR, wxCommandEvent );
BEGIN_EVENT_TABLE( WX_INFOBAR, wxInfoBarGeneric ) BEGIN_EVENT_TABLE( WX_INFOBAR, wxInfoBarGeneric )
EVT_COMMAND( wxID_ANY, KIEVT_SHOW_INFOBAR, WX_INFOBAR::OnShowInfoBar ) EVT_COMMAND( wxID_ANY, KIEVT_SHOW_INFOBAR, WX_INFOBAR::onShowInfoBar )
EVT_COMMAND( wxID_ANY, KIEVT_DISMISS_INFOBAR, WX_INFOBAR::OnDismissInfoBar ) EVT_COMMAND( wxID_ANY, KIEVT_DISMISS_INFOBAR, WX_INFOBAR::onDismissInfoBar )
EVT_BUTTON( ID_CLOSE_INFOBAR, WX_INFOBAR::OnCloseButton ) EVT_BUTTON( ID_CLOSE_INFOBAR, WX_INFOBAR::onCloseButton )
EVT_TIMER( ID_CLOSE_INFOBAR, WX_INFOBAR::OnTimer ) EVT_TIMER( ID_CLOSE_INFOBAR, WX_INFOBAR::onTimer )
END_EVENT_TABLE() END_EVENT_TABLE()
@ -233,7 +233,7 @@ void WX_INFOBAR::RemoveAllButtons()
} }
void WX_INFOBAR::OnShowInfoBar( wxCommandEvent& aEvent ) void WX_INFOBAR::onShowInfoBar( wxCommandEvent& aEvent )
{ {
RemoveAllButtons(); RemoveAllButtons();
AddCloseButton(); AddCloseButton();
@ -241,19 +241,19 @@ void WX_INFOBAR::OnShowInfoBar( wxCommandEvent& aEvent )
} }
void WX_INFOBAR::OnDismissInfoBar( wxCommandEvent& aEvent ) void WX_INFOBAR::onDismissInfoBar( wxCommandEvent& aEvent )
{ {
Dismiss(); Dismiss();
} }
void WX_INFOBAR::OnCloseButton( wxCommandEvent& aEvent ) void WX_INFOBAR::onCloseButton( wxCommandEvent& aEvent )
{ {
Dismiss(); Dismiss();
} }
void WX_INFOBAR::OnTimer( wxTimerEvent& aEvent ) void WX_INFOBAR::onTimer( wxTimerEvent& aEvent )
{ {
// Reset and clear the timer // Reset and clear the timer
m_showTimer->Stop(); m_showTimer->Stop();

View File

@ -179,24 +179,24 @@ protected:
* KIEVT_SHOW_INFOBAR. The message is stored inside the string field, and the * KIEVT_SHOW_INFOBAR. The message is stored inside the string field, and the
* icon flag is stored inside the int field. * icon flag is stored inside the int field.
*/ */
void OnShowInfoBar( wxCommandEvent& aEvent ); void onShowInfoBar( wxCommandEvent& aEvent );
/** /**
* Event handler for dismissing the infobar using a wxCommandEvent of the type * Event handler for dismissing the infobar using a wxCommandEvent of the type
* KIEVT_DISMISS_INFOBAR. * KIEVT_DISMISS_INFOBAR.
*/ */
void OnDismissInfoBar( wxCommandEvent& aEvent ); void onDismissInfoBar( wxCommandEvent& aEvent );
/** /**
* Event handler for the close button. * Event handler for the close button.
* This is bound to ID_CLOSE_INFOBAR on the infobar. * This is bound to ID_CLOSE_INFOBAR on the infobar.
*/ */
void OnCloseButton( wxCommandEvent& aEvent ); void onCloseButton( wxCommandEvent& aEvent );
/** /**
* Event handler for the automatic closing timer. * Event handler for the automatic closing timer.
*/ */
void OnTimer( wxTimerEvent& aEvent ); void onTimer( wxTimerEvent& aEvent );
void onSize( wxSizeEvent& aEvent ); void onSize( wxSizeEvent& aEvent );