本文整理汇总了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);
}
}
}
示例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() );
}
示例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);
}
}
示例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();
}
示例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();
}
示例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();
}
}
示例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);
}
示例8: OnFilectrlFilePickerChanged
void panTaskLogo::OnFilectrlFilePickerChanged( wxFileDirPickerEvent& event )
{
c_pgvVisionImage->gvIMG_LoadImage(event.GetPath());
}
示例9: OnDevChange
void App::OnDevChange(wxFileDirPickerEvent& event)
{
mDB.mComPort = event.GetPath();
}
示例10: romSelected
void mainFrameImp::romSelected( wxFileDirPickerEvent& event ){
gameManager::gm->romSelected(event.GetPath().ToStdString());
}
示例11: OnFilePicked
// ID_BOOK_PICKER
void BookDialog::OnFilePicked( wxFileDirPickerEvent& event )
{
wxString file = event.GetPath();
dat.m_file = file;
}
示例12:
//-------------------------------------------------------------------
void
NewProjectDialog::onLocationPicked(wxFileDirPickerEvent& event)
{
_locationEntry->SetValue(event.GetPath());
}
示例13:
void Addr2LineUIDialog::OnDirPrependDir(wxFileDirPickerEvent& event)
{
mDirPrepend = event.GetPath();
}
示例14: OnCSVDirSelect
void tcToolPanel::OnCSVDirSelect(wxFileDirPickerEvent& event)
{
lastCSVPath = event.GetPath();
}