2001-07-24 11:27:12 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2002-01-21 17:34:42 -05:00
|
|
|
// Name: updatesmgr.h
|
|
|
|
// Purpose: cbSimpleUpdatesMgr class declaration
|
2001-07-24 11:27:12 -04:00
|
|
|
// Author: Aleksandras Gluchovas (@Lithuania)
|
|
|
|
// Modified by:
|
|
|
|
// Created: 19/10/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Aleksandras Gluchovas
|
2004-06-07 12:02:23 -04:00
|
|
|
// Licence: wxWindows licence
|
2001-07-24 11:27:12 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __UPDATESMGR_G__
|
|
|
|
#define __UPDATESMGR_G__
|
|
|
|
|
|
|
|
#include "wx/fl/controlbar.h"
|
|
|
|
|
|
|
|
/*
|
2002-01-21 17:34:42 -05:00
|
|
|
This class implements slightly optimized logic for refreshing
|
|
|
|
the areas of frame layout that actually need to be updated.
|
|
|
|
*/
|
2001-07-24 11:27:12 -04:00
|
|
|
|
2003-07-08 16:47:17 -04:00
|
|
|
class WXDLLIMPEXP_FL cbSimpleUpdatesMgr : public cbUpdatesManagerBase
|
2001-07-24 11:27:12 -04:00
|
|
|
{
|
2002-01-21 17:34:42 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS( cbSimpleUpdatesMgr )
|
2001-07-24 11:27:12 -04:00
|
|
|
protected:
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
// Helper function.
|
|
|
|
bool WasChanged( cbUpdateMgrData& data, wxRect& currentBounds );
|
2001-07-24 11:27:12 -04:00
|
|
|
|
|
|
|
public:
|
2002-01-21 17:34:42 -05:00
|
|
|
// Default constructor.
|
|
|
|
cbSimpleUpdatesMgr() {}
|
2001-07-24 11:27:12 -04:00
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
// Constructor taking frame layout panel.
|
|
|
|
cbSimpleUpdatesMgr( wxFrameLayout* pPanel );
|
2001-07-24 11:27:12 -04:00
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
// Notification received from Frame Layout in the order in which
|
|
|
|
// they would usually be invoked.
|
|
|
|
virtual void OnStartChanges();
|
2001-07-24 11:27:12 -04:00
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
// Notification received from Frame Layout in the order in which
|
|
|
|
// they would usually be invoked.
|
|
|
|
virtual void OnRowWillChange( cbRowInfo* pRow, cbDockPane* pInPane );
|
2001-07-24 11:27:12 -04:00
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
// Notification received from Frame Layout in the order in which
|
|
|
|
// they would usually be invoked.
|
|
|
|
virtual void OnBarWillChange( cbBarInfo* pBar, cbRowInfo* pInRow, cbDockPane* pInPane );
|
2001-07-24 11:27:12 -04:00
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
// Notification received from Frame Layout in the order in which
|
|
|
|
// they would usually be invoked.
|
|
|
|
virtual void OnPaneMarginsWillChange( cbDockPane* pPane );
|
2001-07-24 11:27:12 -04:00
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
// Notification received from Frame Layout in the order in which
|
|
|
|
// they would usually be invoked.
|
|
|
|
virtual void OnPaneWillChange( cbDockPane* pPane );
|
2001-07-24 11:27:12 -04:00
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
// Notification received from Frame Layout in the order in which
|
|
|
|
// they would usually be invoked.
|
|
|
|
virtual void OnFinishChanges();
|
|
|
|
|
|
|
|
// Refreshes the parts of the frame layoutthat need an update.
|
|
|
|
virtual void UpdateNow();
|
2001-07-24 11:27:12 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __UPDATESMGR_G__ */
|
|
|
|
|