1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: cbSimpleUpdatesMgr class declaration
4 // Author: Aleksandras Gluchovas (@Lithuania)
8 // Copyright: (c) Aleksandras Gluchovas
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __UPDATESMGR_G__
13 #define __UPDATESMGR_G__
15 #include "wx/fl/controlbar.h"
18 This class implements slightly optimized logic for refreshing
19 the areas of frame layout that actually need to be updated.
22 class WXDLLIMPEXP_FL cbSimpleUpdatesMgr
: public cbUpdatesManagerBase
24 DECLARE_DYNAMIC_CLASS( cbSimpleUpdatesMgr
)
28 bool WasChanged( cbUpdateMgrData
& data
, wxRect
& currentBounds
);
31 // Default constructor.
32 cbSimpleUpdatesMgr() {}
34 // Constructor taking frame layout panel.
35 cbSimpleUpdatesMgr( wxFrameLayout
* pPanel
);
37 // Notification received from Frame Layout in the order in which
38 // they would usually be invoked.
39 virtual void OnStartChanges();
41 // Notification received from Frame Layout in the order in which
42 // they would usually be invoked.
43 virtual void OnRowWillChange( cbRowInfo
* pRow
, cbDockPane
* pInPane
);
45 // Notification received from Frame Layout in the order in which
46 // they would usually be invoked.
47 virtual void OnBarWillChange( cbBarInfo
* pBar
, cbRowInfo
* pInRow
, cbDockPane
* pInPane
);
49 // Notification received from Frame Layout in the order in which
50 // they would usually be invoked.
51 virtual void OnPaneMarginsWillChange( cbDockPane
* pPane
);
53 // Notification received from Frame Layout in the order in which
54 // they would usually be invoked.
55 virtual void OnPaneWillChange( cbDockPane
* pPane
);
57 // Notification received from Frame Layout in the order in which
58 // they would usually be invoked.
59 virtual void OnFinishChanges();
61 // Refreshes the parts of the frame layoutthat need an update.
62 virtual void UpdateNow();
65 #endif /* __UPDATESMGR_G__ */