// Created: 2008-08-24
// RCS-ID: $Id$
// Copyright: (c) Jaakko Salli
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_PROPGRID_PROPGRIDPAGESTATE_H_
#define _WX_PROPGRID_PROPGRIDPAGESTATE_H_
+#include "wx/defs.h"
+
#if wxUSE_PROPGRID
#include "wx/propgrid/property.h"
void CheckColumnWidths( int widthChange = 0 );
/**
- Override this member function to add custom behavior on property
+ Override this member function to add custom behaviour on property
deletion.
*/
virtual void DoDelete( wxPGProperty* item, bool doDelete = true );
wxPGProperty* DoGetItemAtY( int y ) const;
/**
- Override this member function to add custom behavior on property
+ Override this member function to add custom behaviour on property
insertion.
*/
virtual wxPGProperty* DoInsert( wxPGProperty* parent,
}
}
- /** Enables or disables given property and its subproperties. */
- bool DoEnableProperty( wxPGProperty* p, bool enable );
-
/** Returns (precalculated) height of contained visible properties.
*/
unsigned int GetVirtualHeight() const
void DoRemoveFromSelection( wxPGProperty* prop );
+ void DoSetColumnProportion( unsigned int column, int proportion );
+
+ int DoGetColumnProportion( unsigned int column ) const
+ {
+ return m_columnProportions[column];
+ }
+
+ void ResetColumnSizes( int setSplitterFlags );
+
wxPropertyCategory* GetPropertyCategory( const wxPGProperty* p ) const;
wxPGProperty* GetPropertyByLabel( const wxString& name,
@param pt
Logical coordinates in the virtual grid space. Use
- wxScrolledWindow::CalcUnscrolledPosition() if you need to
+ wxScrolled<T>::CalcUnscrolledPosition() if you need to
translate a scrolled position into a logical one.
*/
wxPropertyGridHitTestResult HitTest( const wxPoint& pt ) const;
/** List of indices of columns the user can edit by clicking it. */
wxArrayInt m_editableColumns;
+ /** Column proportions */
+ wxArrayInt m_columnProportions;
+
double m_fSplitterX;
/** Most recently added category. */