当前位置: 首页>>代码示例>>C++>>正文


C++ wxFileDirPickerEvent::GetPath方法代码示例

本文整理汇总了C++中wxFileDirPickerEvent::GetPath方法的典型用法代码示例。如果您正苦于以下问题:C++ wxFileDirPickerEvent::GetPath方法的具体用法?C++ wxFileDirPickerEvent::GetPath怎么用?C++ wxFileDirPickerEvent::GetPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在wxFileDirPickerEvent的用法示例。


在下文中一共展示了wxFileDirPickerEvent::GetPath方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: LoadSymbolTable

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);
		}
	}
}
开发者ID:ColinPitrat,项目名称:cpctools,代码行数:27,代码来源:MemoryImpl.cpp

示例2: OnProjectPathChanged

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() );
}
开发者ID:292388900,项目名称:codelite,代码行数:7,代码来源:PluginWizard.cpp

示例3:

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);
    }
}
开发者ID:62BRAINS,项目名称:triumph4php,代码行数:12,代码来源:FindInFilesViewClass.cpp

示例4: OnFileDirChange

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();
}
开发者ID:IgorMikhal,项目名称:OpenCPN,代码行数:15,代码来源:GribUIDialog.cpp

示例5: onFileChange

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();
}
开发者ID:omf2097,项目名称:wxomftools,代码行数:19,代码来源:spriteimportdialog.cpp

示例6: OnFileChanged

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();
  }
}
开发者ID:snyh,项目名称:toy,代码行数:19,代码来源:MainFrame.cpp

示例7: file

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);
}
开发者ID:stahta01,项目名称:codeblocks_backup,代码行数:21,代码来源:Addr2LineUIMain.cpp

示例8: OnFilectrlFilePickerChanged

void panTaskLogo::OnFilectrlFilePickerChanged( wxFileDirPickerEvent& event )
{
	c_pgvVisionImage->gvIMG_LoadImage(event.GetPath());
}
开发者ID:dmccskylove,项目名称:src,代码行数:4,代码来源:pantasklogo.cpp

示例9: OnDevChange

void App::OnDevChange(wxFileDirPickerEvent& event)
{
	mDB.mComPort = event.GetPath();
}
开发者ID:skopein,项目名称:Skopein,代码行数:4,代码来源:App.cpp

示例10: romSelected

void mainFrameImp::romSelected( wxFileDirPickerEvent& event ){
    gameManager::gm->romSelected(event.GetPath().ToStdString());
}
开发者ID:mkwong98,项目名称:HDNes,代码行数:3,代码来源:mainFrameImp.cpp

示例11: OnFilePicked

// ID_BOOK_PICKER
void BookDialog::OnFilePicked( wxFileDirPickerEvent& event )
{
    wxString file = event.GetPath();
    dat.m_file = file;
}
开发者ID:billforsternz,项目名称:old-tarrasch-chess-gui,代码行数:6,代码来源:BookDialog.cpp

示例12:

//-------------------------------------------------------------------
void
NewProjectDialog::onLocationPicked(wxFileDirPickerEvent& event)
{
    _locationEntry->SetValue(event.GetPath());
}
开发者ID:kyuu,项目名称:gamegears,代码行数:6,代码来源:NewProjectDialog.cpp

示例13:

void Addr2LineUIDialog::OnDirPrependDir(wxFileDirPickerEvent& event)
{
    mDirPrepend = event.GetPath();
}
开发者ID:stahta01,项目名称:codeblocks_backup,代码行数:4,代码来源:Addr2LineUIMain.cpp

示例14: OnCSVDirSelect

void tcToolPanel::OnCSVDirSelect(wxFileDirPickerEvent& event)
{
    lastCSVPath = event.GetPath();
}
开发者ID:WarfareCode,项目名称:gcblue,代码行数:4,代码来源:ToolPanel.cpp


注:本文中的wxFileDirPickerEvent::GetPath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。