Exemplo n.º 1
0
void CodeFormatterDlg::OnPhpFileSelected(wxFileDirPickerEvent& event)
{
    m_isDirty = true;
    m_options.SetPhpExecutable(m_filePickerPhpExec->GetPath());
    CallAfter(&CodeFormatterDlg::UpdatePreview);
    event.Skip();
}
Exemplo n.º 2
0
void CodeFormatterDlg::OnPharFileSelected(wxFileDirPickerEvent& event)
{
    m_isDirty = true;
    m_options.SetPHPCSFixerPhar(m_filePickerPHPCsFixerPhar->GetPath());
    CallAfter(&CodeFormatterDlg::UpdatePreview);
    event.Skip();
}
Exemplo n.º 3
0
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() );
}
Exemplo n.º 4
0
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);
		}
	}
}
Exemplo n.º 5
0
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);
}
/* virtual */ void CreateProjectDlg::OnProjectFileNameChanged( wxFileDirPickerEvent& event )
{
	if (mDirDlg->GetPath().IsEmpty() && mFileDlg->GetPath().length() > 2)
	{
		wxString path, name, ext;
		wxFileName::SplitPath( mFileDlg->GetPath(), &path, &name, &ext );
		mDirDlg->SetDirName( path.Append(wxFileName::GetPathSeparator( wxPATH_NATIVE )) );
	}

	event.Skip();
}
Exemplo n.º 7
0
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);
    }
}
Exemplo n.º 8
0
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();
}
Exemplo n.º 9
0
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();
}
Exemplo n.º 10
0
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();
  }
}
Exemplo n.º 11
0
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);
}
Exemplo n.º 12
0
void Panels::BaseSelectorPanel::OnFolderChanged( wxFileDirPickerEvent& evt )
{
	evt.Skip();
	OnShown();
}
Exemplo n.º 13
0
void Addr2LineUIDialog::OnAddr2LineFile(wxFileDirPickerEvent& event)
{
    mAddr2Line = event.GetPath();
}
Exemplo n.º 14
0
void panTaskLogo::OnFilectrlFilePickerChanged( wxFileDirPickerEvent& event )
{
	c_pgvVisionImage->gvIMG_LoadImage(event.GetPath());
}
Exemplo n.º 15
0
void App::OnDevChange(wxFileDirPickerEvent& event)
{
	mDB.mComPort = event.GetPath();
}
Exemplo n.º 16
0
void SerialConfigurator::ListFilesEvtHdl( wxFileDirPickerEvent& event )
{
   ListFiles();
   event.Skip(); 
}
void EasySplitMainFrame::OnFilePickerChanged(wxFileDirPickerEvent& event)
{
    if (event.GetEventObject() == m_pInputFilePicker)
        m_pOutputFilePicker->SetPath(m_pInputFilePicker->GetPath());
}
Exemplo n.º 18
0
void CMemcardManager::OnPathChange(wxFileDirPickerEvent& event)
{
	ChangePath(event.GetId() - ID_MEMCARDPATH_A);
}
Exemplo n.º 19
0
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;
}
Exemplo n.º 21
0
//-------------------------------------------------------------------
void
NewProjectDialog::onLocationPicked(wxFileDirPickerEvent& event)
{
    _locationEntry->SetValue(event.GetPath());
}
Exemplo n.º 22
0
void GESaveViewDlgImpl::CheckInput( wxFileDirPickerEvent& event )
{
      DoCheckInput();
      event.Skip();
}
Exemplo n.º 23
0
void Addr2LineUIDialog::OnDirPrependDir(wxFileDirPickerEvent& event)
{
    mDirPrepend = event.GetPath();
}
void DIALOG_SELECT_PRETTY_LIB::OnSelectFolder( wxFileDirPickerEvent& event )
{
    m_libName->SetValue( m_dirCtrl->GetPath() );

    event.Skip();
}
Exemplo n.º 25
0
void tcToolPanel::OnCSVDirSelect(wxFileDirPickerEvent& event)
{
    lastCSVPath = event.GetPath();
}