Browse Source

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

newinvert
Roberto Fernandez Bautista 2 years ago
parent
commit
86368abba2
  1. 2
      qa/tools/pns/logviewer.fbp
  2. 1
      qa/tools/pns/pns_log_viewer_frame.cpp
  3. 2
      qa/tools/pns/pns_log_viewer_frame_base.cpp

2
qa/tools/pns/logviewer.fbp

@ -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>

1
qa/tools/pns/pns_log_viewer_frame.cpp

@ -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;
}
}

2
qa/tools/pns/pns_log_viewer_frame_base.cpp

@ -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 );

Loading…
Cancel
Save