X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b02a6dc2b6e10302272af502a12b249681df40d6..822e690b221486b63895b5f14a7fbee2bc966fe5:/contrib/src/fl/controlbar.cpp?ds=sidebyside diff --git a/contrib/src/fl/controlbar.cpp b/contrib/src/fl/controlbar.cpp index ab23f7e10e..e12eb3a240 100644 --- a/contrib/src/fl/controlbar.cpp +++ b/contrib/src/fl/controlbar.cpp @@ -258,10 +258,6 @@ BEGIN_EVENT_TABLE( wxFrameLayout, wxEvtHandler ) EVT_LEFT_DCLICK( wxFrameLayout::OnLDblClick ) EVT_IDLE ( wxFrameLayout::OnIdle ) - EVT_SET_FOCUS ( wxFrameLayout::OnSetFocus ) - EVT_KILL_FOCUS ( wxFrameLayout::OnKillFocus ) - - EVT_ACTIVATE ( wxFrameLayout::OnActivate ) EVT_ERASE_BACKGROUND( wxFrameLayout::OnEraseBackground ) @@ -355,6 +351,8 @@ bool wxFrameLayout::CanReparent() { #ifdef __WXMSW__ return true; +#elif defined(__WXGTK20__) + return TRUE; #elif defined (__WXGTK__) //return true; return false; @@ -390,6 +388,10 @@ void wxFrameLayout::ReparentWindow( wxWindow* pChild, wxWindow* pNewParent ) #endif pChild->Reparent(pNewParent); + return; +#elif defined(__WXGTK20__) + pChild->Reparent(pNewParent); + return; #elif defined(__WXGTK__) || defined(__WXX11__) // FOR NOW:: floating with wxGtk still very buggy @@ -598,6 +600,7 @@ void wxFrameLayout::AddBar( wxWindow* pBarWnd, pInfo->mName = name; pInfo->mpBarWnd = pBarWnd; pInfo->mDimInfo = dimInfo; + pInfo->mDimInfo.mLRUPane = alignment; pInfo->mState = state; pInfo->mAlignment = alignment; pInfo->mRowNo = rowNo; @@ -945,6 +948,7 @@ void wxFrameLayout::DoSetBarState( cbBarInfo* pBar ) } pMiniFrm->Show( true ); + RepositionFloatedBar(pMiniFrm->GetBar()); // FIXME:: this is excessive pBar->mpBarWnd->Show(true); @@ -1497,38 +1501,6 @@ void wxFrameLayout::OnIdle( wxIdleEvent& event ) event.Skip(); } - -void wxFrameLayout::OnKillFocus( wxFocusEvent& WXUNUSED(event) ) -{ - //wxMessageBox( "wxFrameLayoutGot Kill Focus!" ); - //ShowFloatedWindows( false ); -} - -void wxFrameLayout::OnSetFocus( wxFocusEvent& WXUNUSED(event) ) -{ - //ShowFloatedWindows( true ); -} - -void wxFrameLayout::OnActivate( wxActivateEvent& WXUNUSED(event) ) -{ -#if 0 - if ( event.GetActive() == false ) - { - wxWindow* focus = wxWindow::FindFocus(); - - if ( !focus || focus == &GetParentFrame() ) - { - mCheckFocusWhenIdle = true; - - if ( !focus ) - - wxMessageBox("Deactivated!" ); - - } - } -#endif -} - void wxFrameLayout::GetPaneProperties( cbCommonPaneProperties& props, int alignment ) { props = mPanes[alignment]->mProps; @@ -1814,7 +1786,8 @@ IMPLEMENT_DYNAMIC_CLASS( cbUpdateMgrData, wxObject ) cbUpdateMgrData::cbUpdateMgrData() : mPrevBounds( -1,-1,0,0 ), - mIsDirty( true ) // inidicate initial change + mIsDirty( true ), // inidicate initial change + mpCustomData(0) {} void cbUpdateMgrData::StoreItemState( const wxRect& boundsInParent )