Develop and Download Open Source Software

Browse CVS Repository

Contents of /malonnote/mnFrame.cpp

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


Revision 1.26 - (show annotations) (download) (as text)
Thu Oct 6 05:29:01 2005 UTC (18 years, 6 months ago) by maloninc
Branch: MAIN
Changes since 1.25: +3 -0 lines
File MIME type: text/x-c++src
fixed for mac

1 #include <wx/regex.h>
2 #include <wx/tokenzr.h>
3 #include <wx/xrc/xmlres.h>
4 #include "mnDef.h"
5 #include "mnFrame.h"
6 #include "mnNotePanel.h"
7 #include "mnNotePanelController.h"
8
9
10 mnFrame::mnFrame(wxWindow* parent)
11 {
12 wxXmlResource::Get()->LoadFrame(this, parent, wxT("mnFrame"));
13
14 #ifdef __WXMSW__
15 wxIcon icon(wxT(APP_ICON_NAME), wxBITMAP_TYPE_ICO_RESOURCE);
16 SetIcon(icon);
17 #endif
18
19 /* init members */
20 searchTextCtrl = XRCCTRL(*this, "searchTextCtrl", wxTextCtrl);
21 noteBook = XRCCTRL(*this, "noteBook", wxNotebook);
22
23
24
25 }
26
27 void mnFrame::addNotePanel(wxString* dirName)
28 {
29 mnNotePanel* panel = new mnNotePanel(noteBook, dirName);
30 noteBook->AddPage(panel, *dirName, true);
31
32 searchTextCtrl->SetFocus();
33 }
34
35 void mnFrame::removeSelectedNotePanel()
36 {
37 noteBook->DeletePage(noteBook->GetSelection());
38 }
39
40 mnNotePanel* mnFrame::getNotePanel()
41 {
42 int selection = noteBook->GetSelection();
43
44 return (mnNotePanel*)noteBook->GetPage(selection);
45 }
46
47 wxNotebook* mnFrame::getNotebook()
48 {
49 return noteBook;
50 }

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