]>
git.saurik.com Git - wxWidgets.git/blob - contrib/include/wx/fl/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__
16 #pragma interface "updatesmgr.h"
19 #include "wx/fl/controlbar.h"
22 * class implements slightly optimized logic for refreshing
23 * areas of frame layout - which actually need to be updated.
26 class cbSimpleUpdatesMgr
: public cbUpdatesManagerBase
28 DECLARE_DYNAMIC_CLASS( cbSimpleUpdatesMgr
)
31 bool WasChanged( cbUpdateMgrData
& data
, wxRect
& currentBounds
);
35 cbSimpleUpdatesMgr(void) {}
37 cbSimpleUpdatesMgr( wxFrameLayout
* pPanel
);
39 // notificiactions received from Frame Layout (in the order, in which
40 // they usually would be invoked)
42 virtual void OnStartChanges();
44 virtual void OnRowWillChange( cbRowInfo
* pRow
, cbDockPane
* pInPane
);
45 virtual void OnBarWillChange( cbBarInfo
* pBar
, cbRowInfo
* pInRow
, cbDockPane
* pInPane
);
46 virtual void OnPaneMarginsWillChange( cbDockPane
* pPane
);
47 virtual void OnPaneWillChange( cbDockPane
* pPane
);
49 virtual void OnFinishChanges();
51 // refreshes parts of the frame layout, which need an update
52 virtual void UpdateNow();
55 #endif /* __UPDATESMGR_G__ */