• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ wxFileDirPickerEvent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: OnPhpFileSelected

void CodeFormatterDlg::OnPhpFileSelected(wxFileDirPickerEvent& event)
{
    m_isDirty = true;
    m_options.SetPhpExecutable(m_filePickerPhpExec->GetPath());
    CallAfter(&CodeFormatterDlg::UpdatePreview);
    event.Skip();
}
开发者ID:Alexpux,项目名称:codelite,代码行数:7,代码来源:codeformatterdlg.cpp


示例2: OnPharFileSelected

void CodeFormatterDlg::OnPharFileSelected(wxFileDirPickerEvent& event)
{
    m_isDirty = true;
    m_options.SetPHPCSFixerPhar(m_filePickerPHPCsFixerPhar->GetPath());
    CallAfter(&CodeFormatterDlg::UpdatePreview);
    event.Skip();
}
开发者ID:Alexpux,项目名称:codelite,代码行数:7,代码来源:codeformatterdlg.cpp


示例3: 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


示例4: 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


示例5:

/* 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();
}
开发者ID:mauzerX,项目名称:universal-translators-tool,代码行数:11,代码来源:createdlgimpl.cpp


示例6:

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


示例7: 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


示例8: 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


示例9: 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


示例10: 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


示例11:

void Panels::BaseSelectorPanel::OnFolderChanged( wxFileDirPickerEvent& evt )
{
	evt.Skip();
	OnShown();
}
开发者ID:docbray,项目名称:pcsx2-online,代码行数:5,代码来源:BiosSelectorPanel.cpp


示例12:

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


示例13: OnFilectrlFilePickerChanged

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


示例14: OnDevChange

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


示例15: ListFilesEvtHdl

void SerialConfigurator::ListFilesEvtHdl( wxFileDirPickerEvent& event )
{
   ListFiles();
   event.Skip(); 
}
开发者ID:devemouse,项目名称:serialConfigurator,代码行数:5,代码来源:signal.cpp


示例16: OnFilePickerChanged

void EasySplitMainFrame::OnFilePickerChanged(wxFileDirPickerEvent& event)
{
    if (event.GetEventObject() == m_pInputFilePicker)
        m_pOutputFilePicker->SetPath(m_pInputFilePicker->GetPath());
}
开发者ID:BackupTheBerlios,项目名称:easyflash,代码行数:5,代码来源:EasySplitMainFrame.cpp


示例17: OnPathChange

void CMemcardManager::OnPathChange(wxFileDirPickerEvent& event)
{
	ChangePath(event.GetId() - ID_MEMCARDPATH_A);
}
开发者ID:KoreanFoodComics,项目名称:dolphin,代码行数:4,代码来源:MemcardManager.cpp


示例18: romSelected

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


示例19: 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


示例20:

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ wxFileName类代码示例发布时间:2022-05-31
下一篇:
C++ wxFileConfig类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap