本文整理汇总了C++中wxFileDirPickerEvent类的典型用法代码示例。如果您正苦于以下问题:C++ wxFileDirPickerEvent类的具体用法?C++ wxFileDirPickerEvent怎么用?C++ wxFileDirPickerEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了wxFileDirPickerEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnPhpFileSelected
void CodeFormatterDlg::OnPhpFileSelected(wxFileDirPickerEvent& event)
{
m_isDirty = true;
m_options.SetPhpExecutable(m_filePickerPhpExec->GetPath());
CallAfter(&CodeFormatterDlg::UpdatePreview);
event.Skip();
}
示例2: OnPharFileSelected
void CodeFormatterDlg::OnPharFileSelected(wxFileDirPickerEvent& event)
{
m_isDirty = true;
m_options.SetPHPCSFixerPhar(m_filePickerPHPCsFixerPhar->GetPath());
CallAfter(&CodeFormatterDlg::UpdatePreview);
event.Skip();
}
示例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() );
}
示例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);
}
}
}
示例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();
}
示例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);
}
}
示例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();
}
示例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();
}
示例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();
}
}
示例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);
}
示例11:
void Panels::BaseSelectorPanel::OnFolderChanged( wxFileDirPickerEvent& evt )
{
evt.Skip();
OnShown();
}
示例12:
void Addr2LineUIDialog::OnAddr2LineFile(wxFileDirPickerEvent& event)
{
mAddr2Line = event.GetPath();
}
示例13: OnFilectrlFilePickerChanged
void panTaskLogo::OnFilectrlFilePickerChanged( wxFileDirPickerEvent& event )
{
c_pgvVisionImage->gvIMG_LoadImage(event.GetPath());
}
示例14: OnDevChange
void App::OnDevChange(wxFileDirPickerEvent& event)
{
mDB.mComPort = event.GetPath();
}
示例15: ListFilesEvtHdl
void SerialConfigurator::ListFilesEvtHdl( wxFileDirPickerEvent& event )
{
ListFiles();
event.Skip();
}