void MemoryImpl::LoadSymbolTable( wxFileDirPickerEvent& event ) { // Open the file parse as : // "Label",": equ ","value" // And create an hashmap from that // Also fill in the label selector wxTextFile f(event.GetPath()); f.Open(); ChoiceLabels->Clear(); for (unsigned int i = 0; i < f.GetLineCount(); i++) { // Parse each line and insert it in the hashmap wxString label = f[i].BeforeFirst(':'); unsigned long adr; f[i].AfterLast(' ').ToULong(&adr, 0); if (adr) // filter out all these stupid labels that point to 0 { lhm[label]=adr; ChoiceLabels->Append(label); } } }
void PluginWizard::OnProjectPathChanged(wxFileDirPickerEvent& event) { wxFileName project(event.GetPath(), m_textCtrlName->GetValue()); project.SetExt("project"); project.AppendDir(m_textCtrlName->GetValue()); m_textCtrlPreview->ChangeValue( project.GetFullPath() ); }
void wxFileDirPickerCtrlBase::OnFileDirChange(wxFileDirPickerEvent &ev) { UpdateTextCtrlFromPicker(); // the wxFilePickerWidget sent us a colour-change notification. // forward this event to our parent wxFileDirPickerEvent event(GetEventType(), this, GetId(), ev.GetPath()); GetEventHandler()->ProcessEvent(event); }
void t4p::FindInFilesDialogClass::OnDirChanged(wxFileDirPickerEvent& event) { wxString path = event.GetPath(); // add the selected directory, but only if its not already in the list int index = Directory->FindString(path); if (wxNOT_FOUND != index && !path.IsEmpty()) { Directory->SetSelection(index); } else { int newIndex = Directory->Append(path); Directory->SetSelection(newIndex); } }
void GRIBUIDialog::OnFileDirChange( wxFileDirPickerEvent &event ) { m_pRecordTree->DeleteAllItems(); delete m_pRecordTree->m_file_id_array; m_RecordTree_root_id = m_pRecordTree->AddRoot( _T ( "GRIBs" ) ); PopulateTreeControl(); m_pRecordTree->Expand( m_RecordTree_root_id ); pPlugIn->GetGRIBOverlayFactory()->Reset(); Refresh(); m_grib_dir = event.GetPath(); }
void SpriteImportDialog::onFileChange(wxFileDirPickerEvent& event) { m_hasfile = 1; // Attempt to load sd_vga_image_free(&m_img); int ret = sd_vga_image_from_png(&m_img, (char*)event.GetPath().mb_str().data()); if(ret != SD_SUCCESS) { sd_vga_image_create(&m_img, 320, 200); wxMessageDialog md( this, wxString::Format("Error while attempting to load image. Make sure the image is a 8bit paletted PNG file smaller than 320x200 pixels."), _("Error"), wxICON_ERROR|wxOK); md.ShowModal(); return; } updateImage(); }
void MainFrame::OnFileChanged( wxFileDirPickerEvent& event ) { wxString path = event.GetPath(); Control::getInstance()->setTargetPath(path.char_str()); //show the source image this->source_image->SetBitmap(wxBitmap(path)); // process the image Control::getInstance()->process(); //show the result image; this->processed_image->SetBitmap(Control::getInstance()->getResult()); if (Control::getInstance()->isLoaded()) { this->m_slider->Enable(); this->color_button->Enable(); } }
void Addr2LineUIDialog::OnCrashLogFile(wxFileDirPickerEvent& event) { mCrashLog = event.GetPath(); wxTextFile file(mCrashLog); if (file.Open()) { mCrashLogFileContent.Clear(); txtCrashLogContent->Clear(); for (wxString line = file.GetFirstLine(); !file.Eof(); line = file.GetNextLine()) { mCrashLogFileContent.Add(line); txtCrashLogContent->AppendText(line + wxT("\n")); } if (mCrashLogFileContent.Count()>0) btnOperate->Enable(); else btnOperate->Disable(); } else wxMessageBox(wxT("Error: File could not be opened."), wxT("Addr2LineUI"), wxOK|wxICON_ERROR, this); }
void panTaskLogo::OnFilectrlFilePickerChanged( wxFileDirPickerEvent& event ) { c_pgvVisionImage->gvIMG_LoadImage(event.GetPath()); }
void App::OnDevChange(wxFileDirPickerEvent& event) { mDB.mComPort = event.GetPath(); }
void mainFrameImp::romSelected( wxFileDirPickerEvent& event ){ gameManager::gm->romSelected(event.GetPath().ToStdString()); }
// ID_BOOK_PICKER void BookDialog::OnFilePicked( wxFileDirPickerEvent& event ) { wxString file = event.GetPath(); dat.m_file = file; }
//------------------------------------------------------------------- void NewProjectDialog::onLocationPicked(wxFileDirPickerEvent& event) { _locationEntry->SetValue(event.GetPath()); }
void Addr2LineUIDialog::OnDirPrependDir(wxFileDirPickerEvent& event) { mDirPrepend = event.GetPath(); }
void Addr2LineUIDialog::OnAddr2LineFile(wxFileDirPickerEvent& event) { mAddr2Line = event.GetPath(); }
void tcToolPanel::OnCSVDirSelect(wxFileDirPickerEvent& event) { lastCSVPath = event.GetPath(); }