implemented cbCommonPaneProperties copy constructor and assignment operator

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Gilles Depeyrot
2002-05-08 12:36:12 +00:00
parent 2a66db28a9
commit 69b8ed1bbc
2 changed files with 32 additions and 0 deletions

View File

@@ -1026,6 +1026,14 @@ class cbCommonPaneProperties : public wxObject
// Default constructor.
cbCommonPaneProperties(void);
// Copy constructor
cbCommonPaneProperties(const cbCommonPaneProperties&);
// Assignment operator
cbCommonPaneProperties& operator=(const cbCommonPaneProperties&);
};
/*

View File

@@ -2060,6 +2060,30 @@ cbCommonPaneProperties::cbCommonPaneProperties(void)
mResizeHandleSize( 4 )
{}
cbCommonPaneProperties::cbCommonPaneProperties(const cbCommonPaneProperties& props)
: wxObject(),
mRealTimeUpdatesOn (props.mRealTimeUpdatesOn),
mOutOfPaneDragOn (props.mOutOfPaneDragOn),
mExactDockPredictionOn(props.mExactDockPredictionOn),
mNonDestructFrictionOn(props.mNonDestructFrictionOn),
mShow3DPaneBorderOn (props.mShow3DPaneBorderOn),
mBarFloatingOn (props.mBarFloatingOn),
mRowProportionsOn (props.mRowProportionsOn),
mColProportionsOn (props.mColProportionsOn),
mBarCollapseIconsOn (props.mBarCollapseIconsOn),
mBarDragHintsOn (props.mBarDragHintsOn),
mMinCBarDim(props.mMinCBarDim),
mResizeHandleSize(props.mResizeHandleSize)
{}
cbCommonPaneProperties& cbCommonPaneProperties::operator=(const cbCommonPaneProperties& props)
{
(*this) = props;
return *this;
}
/***** Implementation for class cbRowInfo *****/
IMPLEMENT_DYNAMIC_CLASS( cbRowInfo, wxObject )