1#include "ATPFileEditorForm.h"
2#include <wx/textfile.h>
4ATPFileEditorForm::ATPFileEditorForm(wxWindow* parent, wxString path)
5 : ATPFileEditorFormBase(parent), m_path(path)
9 m_stcATPFile->AppendText(file.GetFirstLine() +
"\n");
12 m_stcATPFile->AppendText(file.GetNextLine() +
"\n");
15 m_stcATPFile->StyleClearAll();
16 m_stcATPFile->SetLexer(wxSTC_LEX_F77);
24 m_stcATPFile->StyleSetForeground(wxSTC_F_COMMENT, wxColour(0, 100, 25));
28 m_stcATPFile->SetEdgeColumn(80);
29 m_stcATPFile->SetEdgeMode(wxSTC_EDGE_LINE);
34ATPFileEditorForm::~ATPFileEditorForm()
38void ATPFileEditorForm::OnCancelClick(wxCommandEvent& event)
40 EndModal(wxID_CANCEL);
42void ATPFileEditorForm::OnOKClick(wxCommandEvent& event)
47 file.AddLine(m_stcATPFile->GetText());