Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

void wxsPropertyGridManager::StoreSelected ( SelectionData Data = 0 ) [private]

Storing currently selected property.

Parameters:
Dataplace where selection should be stored, if NULL, selection will be stored in internal variable

Definition at line 249 of file wxspropertygridmanager.cpp.

References wxPropertyContainerMethods::GetPropertyName(), wxPropertyGridManager::GetSelectedPage(), wxPropertyGridManager::GetSelectedProperty(), wxPropertyGridManager::GetSelection(), and LastSelection.

{
    if ( !Data )
    {
        Data = &LastSelection;
    }

    Data->m_PageIndex = GetSelectedPage();

    #if wxCHECK_VERSION(2, 9, 0)
    wxPGId Selected = GetSelection();
    if ( Selected != NULL )
    #else
    wxPGId Selected = GetSelectedProperty();
    if ( wxPGIdIsOk(Selected) )
    #endif
    {
        Data->m_PropertyName = GetPropertyName(Selected);
    }
    else
    {
        Data->m_PropertyName.Clear();
    }
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index