]>
git.saurik.com Git - wxWidgets.git/blob - utils/framelayout/src/updatesmgr.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Contrib. demo
4 // Author: Aleksandras Gluchovas (@Lithuania)
8 // Copyright: (c) Aleksandras Gluchovas
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __UPDATESMGR_G__
13 #define __UPDATESMGR_G__
15 #include "controlbar.h"
18 * class implements slightly optimized logic for refreshing
19 * areas of frame layout - which actually need to be updated.
22 class cbSimpleUpdatesMgr
: public cbUpdatesManagerBase
24 DECLARE_DYNAMIC_CLASS( cbSimpleUpdatesMgr
)
27 bool WasChanged( cbUpdateMgrData
& data
, wxRect
& currentBounds
);
31 cbSimpleUpdatesMgr(void) {}
33 cbSimpleUpdatesMgr( wxFrameLayout
* pPanel
);
35 // notificiactions received from Frame Layout (in the order, in which
36 // they usually would be invoked)
38 virtual void OnStartChanges();
40 virtual void OnRowWillChange( cbRowInfo
* pRow
, cbDockPane
* pInPane
);
41 virtual void OnBarWillChange( cbBarInfo
* pBar
, cbRowInfo
* pInRow
, cbDockPane
* pInPane
);
42 virtual void OnPaneMarginsWillChange( cbDockPane
* pPane
);
43 virtual void OnPaneWillChange( cbDockPane
* pPane
);
45 virtual void OnFinishChanges();
47 // refreshes parts of the frame layout, which need an update
48 virtual void UpdateNow();