2008-09-12 16:57:41 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2016-07-02 17:20:11 -04:00
|
|
|
// Name: propgridpagestate.h
|
2008-09-12 16:57:41 -04:00
|
|
|
// Purpose: interface of wxPGProperty
|
|
|
|
// Author: wxWidgets team
|
2010-07-13 09:29:13 -04:00
|
|
|
// Licence: wxWindows licence
|
2008-09-12 16:57:41 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
2008-10-22 16:48:31 -04:00
|
|
|
/**
|
|
|
|
@section propgrid_hittestresult wxPropertyGridHitTestResult
|
2008-09-12 16:57:41 -04:00
|
|
|
|
|
|
|
A return value from wxPropertyGrid::HitTest(),
|
|
|
|
contains all you need to know about an arbitrary location on the grid.
|
|
|
|
*/
|
2016-07-02 17:20:11 -04:00
|
|
|
class wxPropertyGridHitTestResult
|
2008-09-12 16:57:41 -04:00
|
|
|
{
|
2016-07-02 17:20:11 -04:00
|
|
|
friend class wxPropertyGridPageState;
|
2008-09-12 16:57:41 -04:00
|
|
|
public:
|
2016-07-02 17:20:11 -04:00
|
|
|
wxPropertyGridHitTestResult();
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
~wxPropertyGridHitTestResult();
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
Returns column hit. -1 for margin.
|
|
|
|
*/
|
|
|
|
int GetColumn() const;
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
Returns property hit. NULL if empty space below
|
|
|
|
properties was hit instead.
|
|
|
|
*/
|
|
|
|
wxPGProperty* GetProperty() const;
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
Returns index of splitter hit, -1 for none.
|
|
|
|
*/
|
|
|
|
int GetSplitter() const;
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
If splitter hit, then this member function
|
|
|
|
returns offset to the exact splitter position.
|
|
|
|
*/
|
|
|
|
int GetSplitterHitOffset() const;
|
2008-09-12 16:57:41 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
#define wxPG_IT_CHILDREN(A) ((A)<<16)
|
2008-09-12 16:57:41 -04:00
|
|
|
|
|
|
|
/** @section propgrid_iterator_flags wxPropertyGridIterator Flags
|
|
|
|
@{
|
|
|
|
|
|
|
|
NOTES: At lower 16-bits, there are flags to check if item will be included. At higher
|
|
|
|
16-bits, there are same flags, but to instead check if children will be included.
|
|
|
|
*/
|
|
|
|
|
|
|
|
enum wxPG_ITERATOR_FLAGS
|
|
|
|
{
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
Iterate through 'normal' property items (does not include children of
|
|
|
|
aggregate or hidden items by default).
|
|
|
|
@hideinitializer
|
2008-09-12 16:57:41 -04:00
|
|
|
*/
|
2016-07-02 17:20:11 -04:00
|
|
|
wxPG_ITERATE_PROPERTIES = wxPG_PROP_PROPERTY |
|
|
|
|
wxPG_PROP_MISC_PARENT |
|
|
|
|
wxPG_PROP_AGGREGATE |
|
|
|
|
wxPG_PROP_COLLAPSED |
|
|
|
|
wxPG_IT_CHILDREN(wxPG_PROP_MISC_PARENT) |
|
|
|
|
wxPG_IT_CHILDREN(wxPG_PROP_CATEGORY),
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
Iterate children of collapsed parents, and individual items that are hidden.
|
|
|
|
@hideinitializer
|
2008-09-12 16:57:41 -04:00
|
|
|
*/
|
2016-07-02 17:20:11 -04:00
|
|
|
wxPG_ITERATE_HIDDEN = wxPG_PROP_HIDDEN |
|
|
|
|
wxPG_IT_CHILDREN(wxPG_PROP_COLLAPSED),
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
Iterate children of parent that is an aggregate property (ie has fixed
|
|
|
|
children).
|
|
|
|
@hideinitializer
|
2008-09-12 16:57:41 -04:00
|
|
|
*/
|
2016-07-02 17:20:11 -04:00
|
|
|
wxPG_ITERATE_FIXED_CHILDREN = wxPG_IT_CHILDREN(wxPG_PROP_AGGREGATE) |
|
|
|
|
wxPG_ITERATE_PROPERTIES,
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/** Iterate categories.
|
|
|
|
Note that even without this flag, children of categories are still iterated
|
|
|
|
through.
|
|
|
|
@hideinitializer
|
2008-09-12 16:57:41 -04:00
|
|
|
*/
|
2016-07-02 17:20:11 -04:00
|
|
|
wxPG_ITERATE_CATEGORIES = wxPG_PROP_CATEGORY |
|
|
|
|
wxPG_IT_CHILDREN(wxPG_PROP_CATEGORY) |
|
|
|
|
wxPG_PROP_COLLAPSED,
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
@hideinitializer
|
|
|
|
*/
|
|
|
|
wxPG_ITERATE_ALL_PARENTS = wxPG_PROP_MISC_PARENT |
|
|
|
|
wxPG_PROP_AGGREGATE |
|
|
|
|
wxPG_PROP_CATEGORY,
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
@hideinitializer
|
|
|
|
*/
|
|
|
|
wxPG_ITERATE_ALL_PARENTS_RECURSIVELY = wxPG_ITERATE_ALL_PARENTS |
|
|
|
|
wxPG_IT_CHILDREN(
|
|
|
|
wxPG_ITERATE_ALL_PARENTS),
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
@hideinitializer
|
|
|
|
*/
|
|
|
|
wxPG_ITERATOR_FLAGS_ALL = wxPG_PROP_PROPERTY |
|
|
|
|
wxPG_PROP_MISC_PARENT |
|
|
|
|
wxPG_PROP_AGGREGATE |
|
|
|
|
wxPG_PROP_HIDDEN |
|
|
|
|
wxPG_PROP_CATEGORY |
|
|
|
|
wxPG_PROP_COLLAPSED,
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
@hideinitializer
|
|
|
|
*/
|
|
|
|
wxPG_ITERATOR_MASK_OP_ITEM = wxPG_ITERATOR_FLAGS_ALL,
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
// (wxPG_PROP_MISC_PARENT|wxPG_PROP_AGGREGATE|wxPG_PROP_CATEGORY)
|
|
|
|
/**
|
|
|
|
@hideinitializer
|
|
|
|
*/
|
|
|
|
wxPG_ITERATOR_MASK_OP_PARENT = wxPG_ITERATOR_FLAGS_ALL,
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
Combines all flags needed to iterate through visible properties
|
2016-11-22 13:49:58 -05:00
|
|
|
(i.e. hidden properties and children of collapsed parents are skipped).
|
2016-07-02 17:20:11 -04:00
|
|
|
@hideinitializer
|
2008-09-12 16:57:41 -04:00
|
|
|
*/
|
2016-07-02 17:20:11 -04:00
|
|
|
wxPG_ITERATE_VISIBLE = wxPG_ITERATE_PROPERTIES |
|
|
|
|
wxPG_PROP_CATEGORY |
|
|
|
|
wxPG_IT_CHILDREN(wxPG_PROP_AGGREGATE),
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
Iterate all items.
|
|
|
|
@hideinitializer
|
2008-09-12 16:57:41 -04:00
|
|
|
*/
|
2016-07-02 17:20:11 -04:00
|
|
|
wxPG_ITERATE_ALL = wxPG_ITERATE_VISIBLE |
|
|
|
|
wxPG_ITERATE_HIDDEN,
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
Iterate through individual properties (ie categories and children of
|
2008-09-12 16:57:41 -04:00
|
|
|
aggregate properties are skipped).
|
2016-07-02 17:20:11 -04:00
|
|
|
@hideinitializer
|
2008-09-12 16:57:41 -04:00
|
|
|
*/
|
2016-07-02 17:20:11 -04:00
|
|
|
wxPG_ITERATE_NORMAL = wxPG_ITERATE_PROPERTIES |
|
|
|
|
wxPG_ITERATE_HIDDEN,
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
Default iterator flags.
|
|
|
|
@hideinitializer
|
2008-09-12 16:57:41 -04:00
|
|
|
*/
|
2016-07-02 17:20:11 -04:00
|
|
|
wxPG_ITERATE_DEFAULT = wxPG_ITERATE_NORMAL
|
2008-09-12 16:57:41 -04:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/** @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2008-10-22 16:48:31 -04:00
|
|
|
/**
|
|
|
|
@section propgrid_iterator_class wxPropertyGridIterator
|
2008-09-12 16:57:41 -04:00
|
|
|
|
|
|
|
Preferable way to iterate through contents of wxPropertyGrid,
|
|
|
|
wxPropertyGridManager, and wxPropertyGridPage.
|
|
|
|
|
|
|
|
See wxPropertyGridInterface::GetIterator() for more information about usage.
|
|
|
|
|
|
|
|
@library{wxpropgrid}
|
|
|
|
@category{propgrid}
|
2016-07-02 17:20:11 -04:00
|
|
|
|
|
|
|
@{
|
2008-09-12 16:57:41 -04:00
|
|
|
*/
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
Base for wxPropertyGridIterator classes.
|
|
|
|
*/
|
|
|
|
class wxPropertyGridIteratorBase
|
2008-09-12 16:57:41 -04:00
|
|
|
{
|
|
|
|
public:
|
2016-07-02 17:20:11 -04:00
|
|
|
wxPropertyGridIteratorBase();
|
2008-09-12 16:57:41 -04:00
|
|
|
|
|
|
|
void Assign( const wxPropertyGridIteratorBase& it );
|
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
bool AtEnd() const;
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2008-10-22 16:48:31 -04:00
|
|
|
/**
|
|
|
|
Get current property.
|
2008-09-12 16:57:41 -04:00
|
|
|
*/
|
2016-07-02 17:20:11 -04:00
|
|
|
wxPGProperty* GetProperty() const;
|
|
|
|
|
|
|
|
void Init( wxPropertyGridPageState* state,
|
|
|
|
int flags,
|
|
|
|
wxPGProperty* property,
|
|
|
|
int dir = 1 );
|
|
|
|
|
|
|
|
void Init( wxPropertyGridPageState* state,
|
|
|
|
int flags,
|
|
|
|
int startPos = wxTOP,
|
|
|
|
int dir = 0 );
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2008-10-22 16:48:31 -04:00
|
|
|
/**
|
|
|
|
Iterate to the next property.
|
2008-09-12 16:57:41 -04:00
|
|
|
*/
|
|
|
|
void Next( bool iterateChildren = true );
|
|
|
|
|
2008-10-22 16:48:31 -04:00
|
|
|
/**
|
|
|
|
Iterate to the previous property.
|
2008-09-12 16:57:41 -04:00
|
|
|
*/
|
|
|
|
void Prev();
|
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
Set base parent, i.e. a property when, in which iteration returns,
|
|
|
|
it ends.
|
|
|
|
|
|
|
|
Default base parent is the root of the used wxPropertyGridPageState.
|
|
|
|
*/
|
|
|
|
void SetBaseParent( wxPGProperty* baseParent );
|
|
|
|
};
|
|
|
|
|
|
|
|
class wxPropertyGridIterator : public wxPropertyGridIteratorBase
|
|
|
|
{
|
|
|
|
public:
|
2018-02-09 17:40:41 -05:00
|
|
|
wxPropertyGridIterator();
|
|
|
|
wxPropertyGridIterator( wxPropertyGridPageState* state,
|
2019-01-30 11:28:08 -05:00
|
|
|
int flags = wxPG_ITERATE_DEFAULT,
|
2018-02-09 17:40:41 -05:00
|
|
|
wxPGProperty* property = NULL, int dir = 1 );
|
|
|
|
wxPropertyGridIterator( wxPropertyGridPageState* state,
|
|
|
|
int flags, int startPos, int dir = 0 );
|
|
|
|
wxPropertyGridIterator( const wxPropertyGridIterator& it );
|
|
|
|
~wxPropertyGridIterator();};
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
/**
|
|
|
|
Const version of wxPropertyGridIterator.
|
|
|
|
*/
|
|
|
|
class wxPropertyGridConstIterator : public wxPropertyGridIteratorBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
Additional copy constructor.
|
|
|
|
*/
|
|
|
|
wxPropertyGridConstIterator( const wxPropertyGridIterator& other );
|
|
|
|
|
|
|
|
/**
|
|
|
|
Additional assignment operator.
|
|
|
|
*/
|
|
|
|
const wxPropertyGridConstIterator& operator=( const wxPropertyGridIterator& it );
|
2018-02-09 17:40:41 -05:00
|
|
|
|
|
|
|
wxPropertyGridConstIterator();
|
|
|
|
wxPropertyGridConstIterator( const wxPropertyGridPageState* state,
|
2019-01-30 11:28:08 -05:00
|
|
|
int flags = wxPG_ITERATE_DEFAULT,
|
2018-02-09 17:40:41 -05:00
|
|
|
const wxPGProperty* property = NULL, int dir = 1 );
|
|
|
|
wxPropertyGridConstIterator( wxPropertyGridPageState* state,
|
|
|
|
int flags, int startPos, int dir = 0 );
|
|
|
|
wxPropertyGridConstIterator( const wxPropertyGridConstIterator& it );
|
|
|
|
~wxPropertyGridConstIterator();
|
2016-07-02 17:20:11 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
/** @}
|
|
|
|
*/
|
|
|
|
|
2008-09-12 16:57:41 -04:00
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
2008-10-22 16:48:31 -04:00
|
|
|
/**
|
|
|
|
@section propgrid_viterator_class wxPGVIterator
|
2008-09-12 16:57:41 -04:00
|
|
|
|
|
|
|
Abstract implementation of a simple iterator. Can only be used
|
|
|
|
to iterate in forward order, and only through the entire container.
|
|
|
|
Used to have functions dealing with all properties work with both
|
|
|
|
wxPropertyGrid and wxPropertyGridManager.
|
|
|
|
*/
|
|
|
|
class wxPGVIterator
|
|
|
|
{
|
|
|
|
public:
|
2016-07-02 17:20:11 -04:00
|
|
|
wxPGVIterator();
|
|
|
|
wxPGVIterator( wxPGVIteratorBase* obj );
|
|
|
|
~wxPGVIterator();
|
|
|
|
void UnRef();
|
|
|
|
wxPGVIterator( const wxPGVIterator& it );
|
|
|
|
const wxPGVIterator& operator=( const wxPGVIterator& it );
|
|
|
|
void Next();
|
|
|
|
bool AtEnd() const;
|
|
|
|
wxPGProperty* GetProperty() const;
|
2008-09-12 16:57:41 -04:00
|
|
|
};
|
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
/** @class wxPropertyGridPageState
|
|
|
|
|
|
|
|
Contains low-level property page information (properties, column widths,
|
|
|
|
etc.) of a single wxPropertyGrid or single wxPropertyGridPage. Generally you
|
|
|
|
should not use this class directly, but instead member functions in
|
|
|
|
wxPropertyGridInterface, wxPropertyGrid, wxPropertyGridPage, and
|
|
|
|
wxPropertyGridManager.
|
|
|
|
|
|
|
|
@remarks
|
2019-05-12 10:20:40 -04:00
|
|
|
Currently this class is not implemented in wxPython.
|
2016-07-02 17:20:11 -04:00
|
|
|
|
|
|
|
@library{wxpropgrid}
|
|
|
|
@category{propgrid}
|
|
|
|
*/
|
|
|
|
class wxPropertyGridPageState
|
|
|
|
{
|
|
|
|
friend class wxPropertyGrid;
|
|
|
|
friend class wxPropertyGridInterface;
|
|
|
|
friend class wxPropertyGridPage;
|
|
|
|
friend class wxPropertyGridManager;
|
|
|
|
public:
|
|
|
|
|
|
|
|
/**
|
|
|
|
Default constructor.
|
|
|
|
*/
|
|
|
|
wxPropertyGridPageState();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Destructor.
|
|
|
|
*/
|
|
|
|
virtual ~wxPropertyGridPageState();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Makes sure all columns have minimum width.
|
|
|
|
*/
|
|
|
|
void CheckColumnWidths( int widthChange = 0 );
|
|
|
|
|
|
|
|
/**
|
|
|
|
Override this member function to add custom behaviour on property
|
|
|
|
deletion.
|
|
|
|
*/
|
|
|
|
virtual void DoDelete( wxPGProperty* item, bool doDelete = true );
|
|
|
|
|
|
|
|
wxSize DoFitColumns( bool allowGridResize = false );
|
|
|
|
|
|
|
|
wxPGProperty* DoGetItemAtY( int y ) const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Override this member function to add custom behaviour on property
|
|
|
|
insertion.
|
|
|
|
*/
|
|
|
|
virtual wxPGProperty* DoInsert( wxPGProperty* parent,
|
|
|
|
int index,
|
|
|
|
wxPGProperty* property );
|
|
|
|
|
|
|
|
/**
|
|
|
|
This needs to be overridden in grid used the manager so that splitter
|
|
|
|
changes can be propagated to other pages.
|
|
|
|
*/
|
|
|
|
virtual void DoSetSplitterPosition( int pos,
|
|
|
|
int splitterColumn = 0,
|
|
|
|
int flags = 0 );
|
|
|
|
|
|
|
|
bool EnableCategories( bool enable );
|
|
|
|
|
|
|
|
/**
|
|
|
|
Make sure virtual height is up-to-date.
|
|
|
|
*/
|
|
|
|
void EnsureVirtualHeight();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns (precalculated) height of contained visible properties.
|
|
|
|
*/
|
|
|
|
unsigned int GetVirtualHeight() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns (precalculated) height of contained visible properties.
|
|
|
|
*/
|
|
|
|
unsigned int GetVirtualHeight();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns actual height of contained visible properties.
|
|
|
|
@remarks
|
|
|
|
Mostly used for internal diagnostic purposes.
|
|
|
|
*/
|
|
|
|
inline unsigned int GetActualVirtualHeight() const;
|
|
|
|
|
2020-12-10 16:13:18 -05:00
|
|
|
unsigned int GetColumnCount() const;
|
2016-07-02 17:20:11 -04:00
|
|
|
|
|
|
|
int GetColumnMinWidth( int column ) const;
|
|
|
|
|
|
|
|
int GetColumnWidth( unsigned int column ) const;
|
|
|
|
|
|
|
|
wxPropertyGrid* GetGrid() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns last item which could be iterated using given flags.
|
|
|
|
@param flags
|
|
|
|
@ref propgrid_iterator_flags
|
|
|
|
*/
|
|
|
|
wxPGProperty* GetLastItem( int flags = wxPG_ITERATE_DEFAULT );
|
|
|
|
|
|
|
|
const wxPGProperty* GetLastItem( int flags = wxPG_ITERATE_DEFAULT ) const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns currently selected property.
|
|
|
|
*/
|
|
|
|
wxPGProperty* GetSelection() const;
|
|
|
|
|
|
|
|
void DoSetSelection( wxPGProperty* prop );
|
|
|
|
|
|
|
|
bool DoClearSelection();
|
|
|
|
|
|
|
|
void DoRemoveFromSelection( wxPGProperty* prop );
|
|
|
|
|
|
|
|
void DoSetColumnProportion( unsigned int column, int proportion );
|
|
|
|
|
|
|
|
int DoGetColumnProportion( unsigned int column ) const;
|
|
|
|
|
|
|
|
void ResetColumnSizes( int setSplitterFlags );
|
|
|
|
|
|
|
|
wxPropertyCategory* GetPropertyCategory( const wxPGProperty* p ) const;
|
|
|
|
|
|
|
|
wxVariant DoGetPropertyValues( const wxString& listname,
|
|
|
|
wxPGProperty* baseparent,
|
|
|
|
long flags ) const;
|
|
|
|
|
|
|
|
wxPGProperty* DoGetRoot() const;
|
|
|
|
|
|
|
|
void DoSetPropertyName( wxPGProperty* p, const wxString& newName );
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns combined width of margin and all the columns.
|
|
|
|
*/
|
|
|
|
int GetVirtualWidth() const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns minimal width for given column so that all images and texts
|
|
|
|
will fit entirely.
|
|
|
|
|
|
|
|
Used by SetSplitterLeft() and DoFitColumns().
|
|
|
|
*/
|
|
|
|
int GetColumnFitWidth(wxClientDC& dc,
|
|
|
|
wxPGProperty* pwc,
|
|
|
|
unsigned int col,
|
|
|
|
bool subProps) const;
|
|
|
|
|
|
|
|
int GetColumnFullWidth(wxClientDC &dc, wxPGProperty *p, unsigned int col);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns information about arbitrary position in the grid.
|
|
|
|
|
|
|
|
@param pt
|
|
|
|
Logical coordinates in the virtual grid space. Use
|
|
|
|
wxScrolled<T>::CalcUnscrolledPosition() if you need to
|
|
|
|
translate a scrolled position into a logical one.
|
|
|
|
*/
|
|
|
|
wxPropertyGridHitTestResult HitTest( const wxPoint& pt ) const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns true if page is visibly displayed.
|
|
|
|
*/
|
|
|
|
inline bool IsDisplayed() const;
|
|
|
|
|
|
|
|
bool IsInNonCatMode() const;
|
|
|
|
|
|
|
|
void DoLimitPropertyEditing( wxPGProperty* p, bool limit = true );
|
|
|
|
|
|
|
|
bool DoSelectProperty( wxPGProperty* p, unsigned int flags = 0 );
|
|
|
|
|
|
|
|
/**
|
|
|
|
widthChange is non-client.
|
|
|
|
*/
|
|
|
|
void OnClientWidthChange( int newWidth,
|
|
|
|
int widthChange,
|
|
|
|
bool fromOnResize = false );
|
|
|
|
|
|
|
|
/**
|
|
|
|
Recalculates m_virtualHeight.
|
|
|
|
*/
|
|
|
|
void RecalculateVirtualHeight();
|
|
|
|
|
|
|
|
void SetColumnCount( int colCount );
|
|
|
|
|
|
|
|
void PropagateColSizeDec( int column, int decrease, int dir );
|
|
|
|
|
|
|
|
bool DoHideProperty( wxPGProperty* p, bool hide, int flags = wxPG_RECURSE );
|
|
|
|
|
|
|
|
bool DoSetPropertyValueString( wxPGProperty* p, const wxString& value );
|
|
|
|
|
|
|
|
bool DoSetPropertyValue( wxPGProperty* p, wxVariant& value );
|
|
|
|
|
|
|
|
bool DoSetPropertyValueWxObjectPtr( wxPGProperty* p, wxObject* value );
|
|
|
|
void DoSetPropertyValues( const wxVariantList& list,
|
|
|
|
wxPGProperty* default_category );
|
|
|
|
|
|
|
|
void SetSplitterLeft( bool subProps = false );
|
|
|
|
|
|
|
|
/**
|
|
|
|
Set virtual width for this particular page.
|
|
|
|
*/
|
|
|
|
void SetVirtualWidth( int width );
|
|
|
|
|
|
|
|
void DoSortChildren( wxPGProperty* p, int flags = 0 );
|
|
|
|
void DoSort( int flags = 0 );
|
|
|
|
|
|
|
|
bool PrepareAfterItemsAdded();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Called after virtual height needs to be recalculated.
|
|
|
|
*/
|
|
|
|
void VirtualHeightChanged();
|
|
|
|
|
|
|
|
/**
|
|
|
|
Base append.
|
|
|
|
*/
|
|
|
|
wxPGProperty* DoAppend( wxPGProperty* property );
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns property by its name.
|
|
|
|
*/
|
|
|
|
wxPGProperty* BaseGetPropertyByName( const wxString& name ) const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Called in, for example, wxPropertyGrid::Clear.
|
|
|
|
*/
|
|
|
|
void DoClear();
|
|
|
|
|
|
|
|
bool DoIsPropertySelected( wxPGProperty* prop ) const;
|
|
|
|
|
|
|
|
bool DoCollapse( wxPGProperty* p );
|
|
|
|
|
|
|
|
bool DoExpand( wxPGProperty* p );
|
2008-09-12 16:57:41 -04:00
|
|
|
|
2016-07-02 17:20:11 -04:00
|
|
|
void CalculateFontAndBitmapStuff( int vspacing );
|
2020-12-10 16:13:18 -05:00
|
|
|
};
|