void wxGISToolExecuteView::OnActivated(wxListEvent& event)
{
    //event.Skip();
    wxGxObject* pObject = m_pCatalog->GetRegisterObject(event.GetData());
    if(!pObject)
        return;

    IGxObjectWizard* pGxObjectWizard = dynamic_cast<IGxObjectWizard*>(pObject);
    if(pGxObjectWizard != NULL)
        pGxObjectWizard->Invoke(this);
}
Esempio n. 2
0
void wxGxContentView::OnActivated(wxListEvent& event)
{
	//event.Skip();
	LPITEMDATA pItemData = (LPITEMDATA)event.GetData();
	if(pItemData == NULL)
		return;

    wxGxObject* pGxObject = m_pCatalog->GetRegisterObject(pItemData->nObjectID);
	IGxObjectWizard* pGxObjectWizard = dynamic_cast<IGxObjectWizard*>(pGxObject);
	if(pGxObjectWizard != NULL)
		if(!pGxObjectWizard->Invoke(this))
			return;

    if(pGxObject->IsKindOf(wxCLASSINFO(wxGxObjectContainer)))
	{
		m_pSelection->Select(pItemData->nObjectID, false, GetId());
	}
}
Esempio n. 3
0
void wxGxTreeView::OnActivated(wxTreeEvent& event)
{
    event.Skip();

	wxTreeItemId item = event.GetItem();

	if(!item.IsOk())
		return;

	wxGxTreeItemData* pData = (wxGxTreeItemData*)GetItemData(item);
	if(pData == NULL)
		return;

    wxGxObject* pGxObject = m_pCatalog->GetRegisterObject(pData->m_nObjectID);
	IGxObjectWizard* pGxObjectWizard = dynamic_cast<IGxObjectWizard*>(pGxObject);
	if(pGxObjectWizard != NULL)
		if(!pGxObjectWizard->Invoke(this))
			return;

}
Esempio n. 4
0
void wxGxDialogContentView::OnActivated(wxListEvent& event)
{
	//event.Skip();
	//dbl click
	LPITEMDATA pItemData = (LPITEMDATA)event.GetData();
	if(pItemData == NULL)
		return;

    wxGxObject* pGxObject = m_pCatalog->GetRegisterObject(pItemData->nObjectID);
	wxGxObjectContainer* pGxObjectContainer = wxDynamicCast(pGxObject, wxGxObjectContainer);
	if(pGxObjectContainer != NULL )
	{
	    IGxObjectWizard* pGxObjectWizard = dynamic_cast<IGxObjectWizard*>(pGxObjectContainer);
	    if(pGxObjectWizard != NULL)
		    if(!pGxObjectWizard->Invoke(this))
			    return;
        m_pSelection->Select(pItemData->nObjectID, false, wxGxSelection::INIT_ALL);//GetId()
		return;
	}

	wxCommandEvent butevent( wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK );
    GetParent()->GetEventHandler()->ProcessEvent( butevent );
}