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
|
2002-01-21 17:34:42 -05:00
|
|
|
// Licence: wxWindows licence
|
2001-07-24 11:27:12 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __UPDATESMGR_G__
|
|
|
|
#define __UPDATESMGR_G__
|
|
|
|
|
2002-09-07 08:28:46 -04:00
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
2001-07-24 11:27:12 -04:00
|
|
|
#pragma interface "updatesmgr.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#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
|
|
|
|
2002-12-04 09:11:26 -05:00
|
|
|
class WXFL_DECLSPEC 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__ */
|
|
|
|
|