int GetSelectedPage() const { return m_selPage; }
/** Shortcut for GetGrid()->GetSelection(). */
- wxPGProperty* GetSelectedProperty() const
+ wxPGProperty* GetSelection() const
{
return m_pPropGrid->GetSelection();
}
- /** Synonyme for GetSelectedPage. */
- int GetSelection() const { return m_selPage; }
-
/** Returns a pointer to the toolbar currently associated with the
wxPropertyGridManager (if any). */
wxToolBar* GetToolBar() const { return m_pToolbar; }
*/
void SetSplitterPosition( int pos, int column = 0 );
- /** Synonyme for SelectPage(name). */
- void SetStringSelection( const wxChar* name )
- {
- SelectPage( GetPageByName(name) );
- }
-
#ifdef SWIG
%pythoncode {
def GetValuesFromPage(self,
void FormMain::OnPropertyGridButtonClick ( wxCommandEvent& )
{
#if wxUSE_STATUSBAR
- wxPGProperty* prop = m_pPropGridManager->GetSelectedProperty();
+ wxPGProperty* prop = m_pPropGridManager->GetSelection();
wxStatusBar* sb = GetStatusBar();
if ( prop )
{
void FormMain::OnEnableCommonValues(wxCommandEvent& WXUNUSED(event))
{
- wxPGProperty* prop = m_pPropGridManager->GetSelectedProperty();
+ wxPGProperty* prop = m_pPropGridManager->GetSelection();
if ( prop )
prop->EnableCommonValue();
else
void FormMain::OnSetSpinCtrlEditorClick( wxCommandEvent& WXUNUSED(event) )
{
#if wxUSE_SPINBTN
- wxPGProperty* pgId = m_pPropGridManager->GetSelectedProperty();
+ wxPGProperty* pgId = m_pPropGridManager->GetSelection();
if ( pgId )
m_pPropGridManager->SetPropertyEditor( pgId, wxPG_EDITOR(SpinCtrl) );
else
void FormMain::OnTestReplaceClick( wxCommandEvent& WXUNUSED(event) )
{
- wxPGProperty* pgId = m_pPropGridManager->GetSelectedProperty();
+ wxPGProperty* pgId = m_pPropGridManager->GetSelection();
if ( pgId )
{
wxPGChoices choices;
else if ( id == ID_COLLAPSE )
{
// Collapses selected.
- wxPGProperty* id = m_pPropGridManager->GetSelectedProperty();
+ wxPGProperty* id = m_pPropGridManager->GetSelection();
if ( id )
{
m_pPropGridManager->Collapse(id);
}
else if ( id == ID_UNSPECIFY )
{
- wxPGProperty* prop = m_pPropGridManager->GetSelectedProperty();
+ wxPGProperty* prop = m_pPropGridManager->GetSelection();
if ( prop )
{
m_pPropGridManager->SetPropertyValueUnspecified(prop);
}
else if ( id == ID_SETCOLOUR )
{
- wxPGProperty* prop = m_pPropGridManager->GetSelectedProperty();
+ wxPGProperty* prop = m_pPropGridManager->GetSelection();
if ( prop )
{
wxColourData data;