void MainPropGrid::OnCellValueChanged(wxGridEvent& ev) { if(CurrentElement) { //On appel l'événement de l'Element int rowVal=ev.GetRow(); for(int i=0;i<this->dataItems.size();i++) { if(this->dataItems[i].rowNumber==rowVal) { this->dataItems[i].elementItem->OnValueChanged(ev,this); break; // on sort de la recherche } } // L'element peut demander la réouverture de la feuille de propriété if(CurrentElement->IsAskPropReload()) { reloadElement=true; return; } // Peut etre que la modification de ce champ a altéré d'autres champs // RefreshValues(); } }
void WatchesTable::OnDisplayFormat(wxCommandEvent& event) { wxUnusedVar(event); // refresh the table RefreshValues(); }
void WatchesTable::OnNewWatch_Iternal(wxCommandEvent& event) { wxString expr = event.GetString(); if( expr.empty() == false ){ AddExpression(expr); RefreshValues(); } }
void WatchesTable::OnNewWatch(wxCommandEvent &event) { wxUnusedVar(event); wxString expr = wxGetTextFromUser(wxT("Expression to watch:"), wxT("New watch")); if (expr.IsEmpty() == false) { AddExpression(expr); RefreshValues(); } }
void WatchesTable::OnMenuDerefExpr(wxCommandEvent &event) { wxUnusedVar(event); if (m_selectedId != wxNOT_FOUND) { wxString curvalue = GetColumnText(m_selectedId, 0); curvalue.Prepend(wxT("*")); SetColumnText(m_selectedId, 0, curvalue); RefreshValues(); } }
void WatchesTable::OnMenuEditExpr(wxCommandEvent &event) { wxUnusedVar(event); if (m_selectedId != wxNOT_FOUND) { wxString curvalue = GetColumnText(m_selectedId, 0); wxString newValue = wxGetTextFromUser(wxT("Edit expression:"), wxT("Edit"), curvalue); if (newValue.IsEmpty() == false) { SetColumnText(m_selectedId, 0, newValue); RefreshValues(); } } }
HRESULT StaticSourcePage::OnApplyChanges(void) { if (this->m_bDirty && this->m_staticSourceParams != NULL) { this->m_staticSourceParams->SetFrameRate(GetValue(IDC_EDIT_RATE)); wchar_t path[MAX_PATH]; Static_GetText(GetDlgItem(this->m_Dlg, IDC_EDIT_PATH), path, MAX_PATH); if (SetBitmapFile(path) != S_OK) Static_SetText(GetDlgItem(this->m_Dlg, IDC_EDIT_PATH), L""); RefreshValues(); } return S_OK; }
bool TelemetryAdvancedOptionsDialog::Create (wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style){ SetExtraStyle(wxWS_EX_BLOCK_EVENTS); if (! wxDialog::Create (parent, id, caption, pos, size, style)) return false; CreateControls(); RefreshValues(); GetSizer()->Fit(this); GetSizer()->SetSizeHints(this); Center(); return true; }
void WatchesTable::OnListEditLabelEnd(wxListEvent &event) { wxUnusedVar(event); RefreshValues(); }
HRESULT StaticSourcePage::OnActivate(void) { RefreshValues(); return S_OK; }