pns_debug_tool: Add Emacs as IDE option for Wayne, maybe?

This commit is contained in:
Roberto Fernandez Bautista 2024-02-03 10:34:35 +01:00
parent 239cbb4637
commit 86368abba2
3 changed files with 3 additions and 2 deletions

View File

@ -973,7 +973,7 @@
<property name="caption"></property>
<property name="caption_visible">1</property>
<property name="center_pane">0</property>
<property name="choices">&quot;VS Code&quot; &quot;CLion&quot;</property>
<property name="choices">&quot;VS Code&quot; &quot;CLion&quot; &quot;Emacs&quot;</property>
<property name="close_button">1</property>
<property name="context_help"></property>
<property name="context_menu">1</property>

View File

@ -620,6 +620,7 @@ void PNS_LOG_VIEWER_FRAME::onListRightClick( wxMouseEvent& event )
{
case 0: wxExecute( wxString::Format( "code --goto %s:%s", filepath, line ) ); return;
case 1: wxExecute( wxString::Format( "clion --line %s %s", line, filepath ) ); return;
case 2: wxExecute( wxString::Format( "emacsclient +%s %s", line, filepath ) ); return;
default: return;
}
}

View File

@ -93,7 +93,7 @@ PNS_LOG_VIEWER_FRAME_BASE::PNS_LOG_VIEWER_FRAME_BASE( wxWindow* parent, wxWindow
fgSizer3->Add( m_ideLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
wxString m_ideChoiceChoices[] = { wxT("VS Code"), wxT("CLion") };
wxString m_ideChoiceChoices[] = { wxT("VS Code"), wxT("CLion"), wxT("Emacs") };
int m_ideChoiceNChoices = sizeof( m_ideChoiceChoices ) / sizeof( wxString );
m_ideChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_ideChoiceNChoices, m_ideChoiceChoices, 0 );
m_ideChoice->SetSelection( 0 );