Develop and Download Open Source Software

Browse CVS Repository

Contents of /malonnote/mnDialog.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download) (as text)
Fri Sep 30 11:44:59 2005 UTC (18 years, 5 months ago) by maloninc
Branch: MAIN
CVS Tags: rel_1_4, dev_1_5-0002, dev_1_5-0001, dev_1_5-0004, dev_1_4-0005, dev_1_4-0006, dev_1_6-0003, dev_1_6-0002, dev_1_6-0001
Changes since 1.5: +7 -44 lines
File MIME type: text/x-c++src
add mnDialog resource

1 // -*- C++ -*- generated by wxGlade 0.3.5.1 on Sat Jul 30 19:30:39 2005
2
3 #include <wx/xrc/xmlres.h>
4 #include "mnDialog.h"
5 #include "mnTextCtrl.h"
6
7 IMPLEMENT_DYNAMIC_CLASS(mnWikiDataEntryDialog, wxDialog)
8
9 mnWikiDataEntryDialog::mnWikiDataEntryDialog(wxWindow* parent)
10 {
11 wxXmlResource::Get()->LoadDialog(this, parent, wxT("mnDialog"));
12
13 /* init members */
14 subjectTextCtrl = XRCCTRL(*this, "subjectTextCtrl", wxTextCtrl);
15 wikiPlainTextCtrl = XRCCTRL(*this, "wikiPlainTextCtrl", wxTextCtrl);
16 }
17
18
19 void mnWikiDataEntryDialog::setSubject(const wxString& subject)
20 {
21 subjectTextCtrl->Clear();
22 subjectTextCtrl->AppendText(subject);
23 }
24
25 wxString mnWikiDataEntryDialog::getSubject()
26 {
27 return subjectTextCtrl->GetValue();
28 }
29
30
31 void mnWikiDataEntryDialog::setPlainText(const wxString& subject)
32 {
33 wikiPlainTextCtrl->Clear();
34 wikiPlainTextCtrl->AppendText(subject);
35 }
36
37 wxString mnWikiDataEntryDialog::getPlainText()
38 {
39 return wikiPlainTextCtrl->GetValue();
40 }
41
42

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26