git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56239
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
/** Returns number of buttons.
*/
/** Returns number of buttons.
*/
- int GetCount() const { return m_buttons.Count(); }
+ unsigned int GetCount() const { return (unsigned int) m_buttons.size(); }
void Add( const wxString& label, int id = -2 );
#if wxUSE_BMPBUTTON
void Add( const wxString& label, int id = -2 );
#if wxUSE_BMPBUTTON
~wxPGAttributeStorage();
void Set( const wxString& name, const wxVariant& value );
~wxPGAttributeStorage();
void Set( const wxString& name, const wxVariant& value );
- size_t GetCount() const { return m_map.size(); }
+ unsigned int GetCount() const { return (unsigned int) m_map.size(); }
wxVariant FindValue( const wxString& name ) const
{
wxPGHashMapS2P::const_iterator it = m_map.find(name);
wxVariant FindValue( const wxString& name ) const
{
wxPGHashMapS2P::const_iterator it = m_map.find(name);
if ( index == -1 )
{
it = m_items.end();
if ( index == -1 )
{
it = m_items.end();
- index = m_items.size();
+ index = (int) m_items.size();
// Delete all entries
void Clear();
// Delete all entries
void Clear();
- size_t GetCount() const { return m_items.size(); }
+ unsigned int GetCount() const
+ {
+ return (unsigned int) m_items.size();
+ }
wxPGChoiceEntry* Item( unsigned int i ) const
{
wxPGChoiceEntry* Item( unsigned int i ) const
{
/** Gets a unsigned number identifying this list. */
wxPGChoicesId GetId() const { return (wxPGChoicesId) m_data; };
/** Gets a unsigned number identifying this list. */
wxPGChoicesId GetId() const { return (wxPGChoicesId) m_data; };
- const wxString& GetLabel( size_t ind ) const
+ const wxString& GetLabel( unsigned int ind ) const
{
return Item(ind).GetText();
}
{
return Item(ind).GetText();
}
- size_t GetCount () const
+ unsigned int GetCount () const
{
if ( !m_data )
return 0;
{
if ( !m_data )
return 0;
return m_data->GetCount();
}
return m_data->GetCount();
}
- int GetValue( size_t ind ) const { return Item(ind).GetValue(); }
+ int GetValue( unsigned int ind ) const { return Item(ind).GetValue(); }
/** Returns array of values matching the given strings. Unmatching strings
result in wxPG_INVALID_VALUE entry in array.
/** Returns array of values matching the given strings. Unmatching strings
result in wxPG_INVALID_VALUE entry in array.
int GetChildrenHeight( int lh, int iMax = -1 ) const;
/** Returns number of child properties */
int GetChildrenHeight( int lh, int iMax = -1 ) const;
/** Returns number of child properties */
- unsigned int GetChildCount() const { return m_children.size(); }
+ unsigned int GetChildCount() const
+ {
+ return (unsigned int) m_children.size();
+ }
/** Returns sub-property at index i. */
/** Returns sub-property at index i. */
- wxPGProperty* Item( size_t i ) const
+ wxPGProperty* Item( unsigned int i ) const
{ return m_children[i]; }
/** Returns last sub-property.
{ return m_children[i]; }
/** Returns last sub-property.
void Empty();
// Puts correct indexes to children
void Empty();
// Puts correct indexes to children
- void FixIndexesOfChildren( size_t starthere = 0 );
+ void FixIndexesOfChildren( unsigned int starthere = 0 );
#ifndef SWIG
// Returns wxPropertyGridPageState in which this property resides.
#ifndef SWIG
// Returns wxPropertyGridPageState in which this property resides.
/**
Returns number of columns currently on grid.
*/
/**
Returns number of columns currently on grid.
*/
- int GetColumnCount() const
+ unsigned int GetColumnCount() const
- return m_pState->m_colWidths.size();
+ return (unsigned int) m_pState->m_colWidths.size();
}
/** Returns colour of empty space below properties. */
}
/** Returns colour of empty space below properties. */
*/
unsigned int GetCommonValueCount() const
{
*/
unsigned int GetCommonValueCount() const
{
- return m_commonValues.size();
+ return (unsigned int) m_commonValues.size();
}
/** Returns label of given common value.
}
/** Returns label of given common value.
{
wxPropertyGrid* pg = GetGrid();
if ( pg )
{
wxPropertyGrid* pg = GetGrid();
if ( pg )
- return pg->GetCommonValueCount();
+ return (int) pg->GetCommonValueCount();
unsigned int GetColumnCount() const
{
unsigned int GetColumnCount() const
{
- return m_colWidths.size();
+ return (unsigned int) m_colWidths.size();
}
wxPGProperty* GetSelection() const
}
wxPGProperty* GetSelection() const
/**
Returns number of buttons.
*/
/**
Returns number of buttons.
*/
+ unsigned int GetCount();
/**
Returns size of primary editor control, as appropriately
/**
Returns size of primary editor control, as appropriately
/**
Returns child property at index i.
*/
/**
Returns child property at index i.
*/
- wxPGProperty* Item( size_t i ) const;
+ wxPGProperty* Item( unsigned int i ) const;
/**
If property's editor is active, then update it's value.
/**
If property's editor is active, then update it's value.
/**
Returns labe of item.
*/
/**
Returns labe of item.
*/
- const wxString& GetLabel( size_t ind ) const;
+ const wxString& GetLabel( unsigned int ind ) const;
/**
Returns number of items.
*/
/**
Returns number of items.
*/
- size_t GetCount () const;
+ unsigned int GetCount() const;
/**
Returns value of item;
*/
/**
Returns value of item;
*/
- int GetValue( size_t ind ) const;
+ int GetValue( unsigned int ind ) const;
/**
Returns array of values matching the given strings. Unmatching strings
/**
Returns array of values matching the given strings. Unmatching strings
/**
Returns number of columns currently on grid.
*/
/**
Returns number of columns currently on grid.
*/
- int GetColumnCount() const;
+ unsigned int GetColumnCount() const;
/**
Returns colour of empty space below properties.
/**
Returns colour of empty space below properties.
Move( pos.x + m_fullEditorSize.x - m_buttonsWidth, pos.y );
// Connect event handling
Move( pos.x + m_fullEditorSize.x - m_buttonsWidth, pos.y );
// Connect event handling
- for ( int i=0; i<GetCount(); i++ )
+ for ( unsigned int i=0; i<GetCount(); i++ )
{
wxWindowID id = GetButtonId(i);
propGrid->Connect(id, wxEVT_COMMAND_BUTTON_CLICKED,
{
wxWindowID id = GetButtonId(i);
propGrid->Connect(id, wxEVT_COMMAND_BUTTON_CLICKED,