| 1 |
// -*- C++ -*- generated by wxGlade 0.3.5.1 on Sat Jul 30 19:30:39 2005 |
// -*- C++ -*- generated by wxGlade 0.3.5.1 on Sat Jul 30 19:30:39 2005 |
| 2 |
|
|
| 3 |
#include "mnDialog.h" |
#include "mnDialog.h" |
| 4 |
|
#include "mnTextCtrl.h" |
| 5 |
|
|
| 6 |
|
|
| 7 |
mnWikiDataEntryDialog::mnWikiDataEntryDialog(wxWindow* parent, int id, const wxString& title, const wxPoint& pos, const wxSize& size, long style): |
mnWikiDataEntryDialog::mnWikiDataEntryDialog(wxWindow* parent, int id, const wxString& title, const wxPoint& pos, const wxSize& size, long style): |
| 10 |
// begin wxGlade: mnWikiDataEntryDialog::mnWikiDataEntryDialog |
// begin wxGlade: mnWikiDataEntryDialog::mnWikiDataEntryDialog |
| 11 |
label_3 = new wxStaticText(this, -1, wxT("Subject: ")); |
label_3 = new wxStaticText(this, -1, wxT("Subject: ")); |
| 12 |
subjectTextCtrl = new wxTextCtrl(this, -1, wxT("")); |
subjectTextCtrl = new wxTextCtrl(this, -1, wxT("")); |
| 13 |
wikiPlainTextCtrl = new wxTextCtrl(this, -1, wxT(""), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE); |
//wikiPlainTextCtrl = new wxTextCtrl(this, -1, wxT(""), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxHSCROLL); |
| 14 |
okButton = new wxButton(this, -1, wxT("OK")); |
wikiPlainTextCtrl = new mnTextCtrl(this, -1, wxT(""), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxHSCROLL); |
| 15 |
cancelButton = new wxButton(this, -1, wxT("Cancel")); |
okButton = new wxButton(this, wxID_OK, wxT("OK")); |
| 16 |
|
cancelButton = new wxButton(this, wxID_CANCEL, wxT("Cancel")); |
| 17 |
|
|
| 18 |
set_properties(); |
set_properties(); |
| 19 |
do_layout(); |
do_layout(); |
| 28 |
SetSize(wxSize(728, 521)); |
SetSize(wxSize(728, 521)); |
| 29 |
subjectTextCtrl->SetSize(wxSize(650, -1)); |
subjectTextCtrl->SetSize(wxSize(650, -1)); |
| 30 |
wikiPlainTextCtrl->SetSize(wxSize(513, 430)); |
wikiPlainTextCtrl->SetSize(wxSize(513, 430)); |
| 31 |
|
wikiPlainTextCtrl->SetFocus(); |
| 32 |
// end wxGlade |
// end wxGlade |
| 33 |
} |
} |
| 34 |
|
|
| 53 |
// end wxGlade |
// end wxGlade |
| 54 |
} |
} |
| 55 |
|
|
| 56 |
|
void mnWikiDataEntryDialog::setSubject(const wxString& subject) |
| 57 |
|
{ |
| 58 |
|
subjectTextCtrl->Clear(); |
| 59 |
|
subjectTextCtrl->AppendText(subject); |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
wxString mnWikiDataEntryDialog::getSubject() |
| 63 |
|
{ |
| 64 |
|
return subjectTextCtrl->GetValue(); |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
|
| 68 |
|
void mnWikiDataEntryDialog::setPlainText(const wxString& subject) |
| 69 |
|
{ |
| 70 |
|
wikiPlainTextCtrl->Clear(); |
| 71 |
|
wikiPlainTextCtrl->AppendText(subject); |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
wxString mnWikiDataEntryDialog::getPlainText() |
| 75 |
|
{ |
| 76 |
|
return wikiPlainTextCtrl->GetValue(); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
|