| 10 |
label_3 = new wxStaticText(this, -1, wxT("Subject: ")); |
label_3 = new wxStaticText(this, -1, wxT("Subject: ")); |
| 11 |
subjectTextCtrl = new wxTextCtrl(this, -1, wxT("")); |
subjectTextCtrl = new wxTextCtrl(this, -1, wxT("")); |
| 12 |
wikiPlainTextCtrl = new wxTextCtrl(this, -1, wxT(""), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE); |
wikiPlainTextCtrl = new wxTextCtrl(this, -1, wxT(""), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE); |
| 13 |
okButton = new wxButton(this, -1, wxT("OK")); |
okButton = new wxButton(this, wxID_OK, wxT("OK")); |
| 14 |
cancelButton = new wxButton(this, -1, wxT("Cancel")); |
cancelButton = new wxButton(this, wxID_CANCEL, wxT("Cancel")); |
| 15 |
|
|
| 16 |
set_properties(); |
set_properties(); |
| 17 |
do_layout(); |
do_layout(); |
| 26 |
SetSize(wxSize(728, 521)); |
SetSize(wxSize(728, 521)); |
| 27 |
subjectTextCtrl->SetSize(wxSize(650, -1)); |
subjectTextCtrl->SetSize(wxSize(650, -1)); |
| 28 |
wikiPlainTextCtrl->SetSize(wxSize(513, 430)); |
wikiPlainTextCtrl->SetSize(wxSize(513, 430)); |
| 29 |
|
wikiPlainTextCtrl->SetFocus(); |
| 30 |
// end wxGlade |
// end wxGlade |
| 31 |
} |
} |
| 32 |
|
|
| 51 |
// end wxGlade |
// end wxGlade |
| 52 |
} |
} |
| 53 |
|
|
| 54 |
|
void mnWikiDataEntryDialog::setSubject(const wxString& subject) |
| 55 |
|
{ |
| 56 |
|
subjectTextCtrl->Clear(); |
| 57 |
|
subjectTextCtrl->AppendText(subject); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
wxString mnWikiDataEntryDialog::getSubject() |
| 61 |
|
{ |
| 62 |
|
return subjectTextCtrl->GetValue(); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
|
| 66 |
|
void mnWikiDataEntryDialog::setPlainText(const wxString& subject) |
| 67 |
|
{ |
| 68 |
|
wikiPlainTextCtrl->Clear(); |
| 69 |
|
wikiPlainTextCtrl->AppendText(subject); |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
wxString mnWikiDataEntryDialog::getPlainText() |
| 73 |
|
{ |
| 74 |
|
return wikiPlainTextCtrl->GetValue(); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
|