Browse CVS Repository
Diff of /malonnote/mnDialog.cpp
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 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(); |
| 50 |
// end wxGlade |
// end wxGlade |
| 51 |
} |
} |
| 52 |
|
|
| 53 |
|
void mnWikiDataEntryDialog::setSubject(const wxString& subject) |
| 54 |
|
{ |
| 55 |
|
subjectTextCtrl->Clear(); |
| 56 |
|
subjectTextCtrl->AppendText(subject); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
wxString mnWikiDataEntryDialog::getSubject() |
| 60 |
|
{ |
| 61 |
|
return subjectTextCtrl->GetValue(); |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
|
| 65 |
|
void mnWikiDataEntryDialog::setPlainText(const wxString& subject) |
| 66 |
|
{ |
| 67 |
|
wikiPlainTextCtrl->Clear(); |
| 68 |
|
wikiPlainTextCtrl->AppendText(subject); |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
wxString mnWikiDataEntryDialog::getPlainText() |
| 72 |
|
{ |
| 73 |
|
return wikiPlainTextCtrl->GetValue(); |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
|
|
|
Legend:
| Removed from v.1.1 |
|
| changed lines |
| |
Added in v.1.2 |
|
|
| |