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.23 - (show annotations) (download) (as text)
Tue Oct 4 12:45:02 2005 UTC (18 years, 5 months ago) by maloninc
Branch: MAIN
Changes since 1.22: +10 -279 lines
File MIME type: text/x-c++src
implement TAB function. But not complete.

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 void mnFrame::addNotePanel(wxString* dirName)
25 {
26 mnNotePanel* panel = new mnNotePanel(noteBook, dirName);
27 noteBook->AddPage(panel, *dirName, false);
28
29 searchTextCtrl->SetFocus();
30 }
31
32 mnNotePanel* mnFrame::getNotePanel()
33 {
34 int selection = noteBook->GetSelection();
35
36 return (mnNotePanel*)noteBook->GetPage(selection);
37 }

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