Definition at line 5 of file ATPFileEditorForm.h.
◆ ATPFileEditorForm()
| ATPFileEditorForm::ATPFileEditorForm |
( |
wxWindow * |
parent, |
|
|
wxString |
path |
|
) |
| |
Definition at line 4 of file ATPFileEditorForm.cpp.
5 : ATPFileEditorFormBase(parent), m_path(path)
6{
7 wxTextFile file;
8 file.Open(m_path);
9 m_stcATPFile->AppendText(file.GetFirstLine() + "\n");
10 while (!file.Eof())
11 {
12 m_stcATPFile->AppendText(file.GetNextLine() + "\n");
13 }
14 file.Close();
15 m_stcATPFile->StyleClearAll();
16 m_stcATPFile->SetLexer(wxSTC_LEX_F77);
17
18
19
20
21
22
23
24 m_stcATPFile->StyleSetForeground(wxSTC_F_COMMENT, wxColour(0, 100, 25));
25
26
27
28 m_stcATPFile->SetEdgeColumn(80);
29 m_stcATPFile->SetEdgeMode(wxSTC_EDGE_LINE);
30
31
32}
◆ ~ATPFileEditorForm()
| ATPFileEditorForm::~ATPFileEditorForm |
( |
| ) |
|
|
virtual |
◆ OnCancelClick()
| void ATPFileEditorForm::OnCancelClick |
( |
wxCommandEvent & |
event | ) |
|
|
protectedvirtual |
◆ OnOKClick()
| void ATPFileEditorForm::OnOKClick |
( |
wxCommandEvent & |
event | ) |
|
|
protectedvirtual |
Definition at line 42 of file ATPFileEditorForm.cpp.
43{
44 wxTextFile file;
45 file.Open(m_path);
46 file.Clear();
47 file.AddLine(m_stcATPFile->GetText());
48 file.Write();
49 file.Close();
50 EndModal(wxID_OK);
51}
◆ m_path
| wxString ATPFileEditorForm::m_path |
|
protected |
The documentation for this class was generated from the following files: