]> git.saurik.com Git - wxWidgets.git/blob - contrib/include/wx/fl/updatesmgr.h
src/common/wxchar.cpps/wxConvLocal/wxConvLibs/g as otherwise we may fail to convert...
[wxWidgets.git] / contrib / include / wx / fl / updatesmgr.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: updatesmgr.h
3 // Purpose: cbSimpleUpdatesMgr class declaration
4 // Author: Aleksandras Gluchovas (@Lithuania)
5 // Modified by:
6 // Created: 19/10/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Aleksandras Gluchovas
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef __UPDATESMGR_G__
13 #define __UPDATESMGR_G__
14
15 #if defined(__GNUG__) && !defined(__APPLE__)
16 #pragma interface "updatesmgr.h"
17 #endif
18
19 #include "wx/fl/controlbar.h"
20
21 /*
22 This class implements slightly optimized logic for refreshing
23 the areas of frame layout that actually need to be updated.
24 */
25
26 class WXDLLIMPEXP_FL cbSimpleUpdatesMgr : public cbUpdatesManagerBase
27 {
28 DECLARE_DYNAMIC_CLASS( cbSimpleUpdatesMgr )
29 protected:
30
31 // Helper function.
32 bool WasChanged( cbUpdateMgrData& data, wxRect& currentBounds );
33
34 public:
35 // Default constructor.
36 cbSimpleUpdatesMgr() {}
37
38 // Constructor taking frame layout panel.
39 cbSimpleUpdatesMgr( wxFrameLayout* pPanel );
40
41 // Notification received from Frame Layout in the order in which
42 // they would usually be invoked.
43 virtual void OnStartChanges();
44
45 // Notification received from Frame Layout in the order in which
46 // they would usually be invoked.
47 virtual void OnRowWillChange( cbRowInfo* pRow, cbDockPane* pInPane );
48
49 // Notification received from Frame Layout in the order in which
50 // they would usually be invoked.
51 virtual void OnBarWillChange( cbBarInfo* pBar, cbRowInfo* pInRow, cbDockPane* pInPane );
52
53 // Notification received from Frame Layout in the order in which
54 // they would usually be invoked.
55 virtual void OnPaneMarginsWillChange( cbDockPane* pPane );
56
57 // Notification received from Frame Layout in the order in which
58 // they would usually be invoked.
59 virtual void OnPaneWillChange( cbDockPane* pPane );
60
61 // Notification received from Frame Layout in the order in which
62 // they would usually be invoked.
63 virtual void OnFinishChanges();
64
65 // Refreshes the parts of the frame layoutthat need an update.
66 virtual void UpdateNow();
67 };
68
69 #endif /* __UPDATESMGR_G__ */
70