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.7 - (show annotations) (download) (as text)
Wed Dec 28 12:38:18 2005 UTC (18 years, 2 months ago) by maloninc
Branch: MAIN
CVS Tags: rel_1_7_1, dev_1_6-0005, dev_1_6-0004, HEAD
Changes since 1.6: +2 -0 lines
File MIME type: text/x-c++src
Error occurred while calculating annotation data.
Fixed bugs.
1. Call SetPosition.
2. For https:// and ftp://

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 wikiPlainTextCtrl->ShowPosition(0);
36 wikiPlainTextCtrl->SetInsertionPoint(0);
37 }
38
39 wxString mnWikiDataEntryDialog::getPlainText()
40 {
41 return wikiPlainTextCtrl->GetValue();
42 }
43
44

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