]> git.saurik.com Git - wxWidgets.git/blob - contrib/include/wx/fl/updatesmgr.h
added missing refresh when changing focus in wxListCtrl, added test for it in the...
[wxWidgets.git] / contrib / include / wx / fl / updatesmgr.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: No names yet.
3 // Purpose: Contrib. demo
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 license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef __UPDATESMGR_G__
13 #define __UPDATESMGR_G__
14
15 #ifdef __GNUG__
16 #pragma interface "updatesmgr.h"
17 #endif
18
19 #include "wx/fl/controlbar.h"
20
21 /*
22 * class implements slightly optimized logic for refreshing
23 * areas of frame layout - which actually need to be updated.
24 */
25
26 class cbSimpleUpdatesMgr : public cbUpdatesManagerBase
27 {
28 DECLARE_DYNAMIC_CLASS( cbSimpleUpdatesMgr )
29 protected:
30
31 bool WasChanged( cbUpdateMgrData& data, wxRect& currentBounds );
32
33 public:
34
35 cbSimpleUpdatesMgr(void) {}
36
37 cbSimpleUpdatesMgr( wxFrameLayout* pPanel );
38
39 // notificiactions received from Frame Layout (in the order, in which
40 // they usually would be invoked)
41
42 virtual void OnStartChanges();
43
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 );
48
49 virtual void OnFinishChanges();
50
51 // refreshes parts of the frame layout, which need an update
52 virtual void UpdateNow();
53 };
54
55 #endif /* __UPDATESMGR_G__ */
56