X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c82c42d498ac1e35a395c9ecba681921c4817a7c..a685dd314cc5daeb1492a4a57f475df91d6cd126:/contrib/src/fl/cbcustom.cpp?ds=sidebyside diff --git a/contrib/src/fl/cbcustom.cpp b/contrib/src/fl/cbcustom.cpp index a8e8c5f441..42dd52651d 100644 --- a/contrib/src/fl/cbcustom.cpp +++ b/contrib/src/fl/cbcustom.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ - #pragma implementation "cbcustom.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -34,8 +30,6 @@ public: cbSimpleCustomizationPlugin* mpBackRef; public: - void OnMenuCommand( wxCommandEvent& evt ); - void OnCommandEvents( wxCommandEvent& evt ); DECLARE_EVENT_TABLE() @@ -49,12 +43,12 @@ public: BEGIN_EVENT_TABLE( cbContextMenuHandler, wxEvtHandler ) - // FIXME:: what is the right range for these ids ? so that they + // FIXME:: what is the right range for these ids ? so that they // would not collide with user commands? EVT_COMMAND_RANGE( CB_CUSTOMIZE_MENU_FIRST_ITEM_ID, - CB_CUSTOMIZE_MENU_FIRST_ITEM_ID + 300, - wxEVT_COMMAND_MENU_SELECTED, + CB_CUSTOMIZE_MENU_FIRST_ITEM_ID + 300, + wxEVT_COMMAND_MENU_SELECTED, cbContextMenuHandler::OnCommandEvents ) END_EVENT_TABLE() @@ -125,7 +119,7 @@ void cbSimpleCustomizationPlugin::OnCustomizeLayout( cbCustomizeLayoutEvent& eve #if 0 pMenu->AppendSeparator(); pMenu->Append( id, "Customize...", "Show layout customization dialog", false ); -#endif +#endif mCustMenuItemId = id; cbContextMenuHandler* pHandler = new cbContextMenuHandler(); @@ -194,9 +188,8 @@ void cbSimpleCustomizationPlugin::OnMenuItemSelected( wxCommandEvent& event ) mpLayout->SetBarState( pBar, newState, true ); if ( newState == wxCBAR_FLOATING ) - mpLayout->RepositionFloatedBar( pBar ); + mpLayout->RepositionFloatedBar( pBar ); } // menu-item-selected event is "eaten" } -