diff options
| author | hrydgard <hrydgard@gmail.com> | 2008-08-24 21:54:59 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2008-08-24 21:54:59 +0000 |
| commit | a47f8cbe9a8ee0270fab60fd3a3fa6f206a203f2 (patch) | |
| tree | 6b86cb7bc0b1e0930c93389d03ce1314b91413a7 /Source/Core/DebuggerWX/src/CodeWindow.cpp | |
| parent | 4871626af8ced7aeb12e6ddcc87ea0f0cb5822c7 (diff) | |
more fixes, prefix filter for export symbols
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@304 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/src/CodeWindow.cpp')
| -rw-r--r-- | Source/Core/DebuggerWX/src/CodeWindow.cpp | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/Source/Core/DebuggerWX/src/CodeWindow.cpp b/Source/Core/DebuggerWX/src/CodeWindow.cpp index d18ca64b0c..4e502030f3 100644 --- a/Source/Core/DebuggerWX/src/CodeWindow.cpp +++ b/Source/Core/DebuggerWX/src/CodeWindow.cpp @@ -348,15 +348,20 @@ void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event) break;
case IDM_CREATESIGNATUREFILE:
{
- wxString path = wxFileSelector(
- _T("Save signature as"), wxEmptyString, wxEmptyString, wxEmptyString,
- _T("Dolphin Signature File (*.dsy)|*.dsy;"), wxFD_SAVE,
- this);
- if (path) {
- SignatureDB db;
- db.Initialize(&g_symbolDB);
- std::string filename(path.ToAscii()); // PPCAnalyst::SaveSignatureDB(
- db.Save(path.ToAscii());
+ wxTextEntryDialog input_prefix(this, wxString::FromAscii("Only export symbols with prefix:"), wxGetTextFromUserPromptStr, ".");
+ if (input_prefix.ShowModal() == wxID_OK) {
+ std::string prefix = input_prefix.GetValue().mb_str();
+
+ wxString path = wxFileSelector(
+ _T("Save signature as"), wxEmptyString, wxEmptyString, wxEmptyString,
+ _T("Dolphin Signature File (*.dsy)|*.dsy;"), wxFD_SAVE,
+ this);
+ if (path) {
+ SignatureDB db;
+ db.Initialize(&g_symbolDB, prefix.c_str());
+ std::string filename(path.ToAscii()); // PPCAnalyst::SaveSignatureDB(
+ db.Save(path.ToAscii());
+ }
}
}
break;
|
