Browse CVS Repository
Diff of /malonnote/mnFrame.cpp
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 1 |
|
#include <wx/wx.h> |
| 2 |
#include <wx/regex.h> |
#include <wx/regex.h> |
| 3 |
|
#include <wx/tooltip.h> |
| 4 |
#include <wx/tokenzr.h> |
#include <wx/tokenzr.h> |
| 5 |
#include <wx/xrc/xmlres.h> |
#include <wx/xrc/xmlres.h> |
| 6 |
#include "mnDef.h" |
#include "mnDef.h" |
| 22 |
searchTextCtrl = XRCCTRL(*this, "searchTextCtrl", wxTextCtrl); |
searchTextCtrl = XRCCTRL(*this, "searchTextCtrl", wxTextCtrl); |
| 23 |
noteBook = XRCCTRL(*this, "noteBook", wxNotebook); |
noteBook = XRCCTRL(*this, "noteBook", wxNotebook); |
| 24 |
|
|
| 25 |
|
CreateStatusBar(); |
|
|
|
| 26 |
} |
} |
| 27 |
|
|
| 28 |
void mnFrame::setFocusToSearchTextCtrl() |
void mnFrame::setFocusToSearchTextCtrl() |
| 33 |
void mnFrame::addNotePanel(wxString* dirName) |
void mnFrame::addNotePanel(wxString* dirName) |
| 34 |
{ |
{ |
| 35 |
mnNotePanel* panel = new mnNotePanel(noteBook, dirName); |
mnNotePanel* panel = new mnNotePanel(noteBook, dirName); |
| 36 |
noteBook->AddPage(panel, *dirName, true); |
wxFileName fileName(*dirName); |
| 37 |
|
|
| 38 |
|
noteBook->AddPage(panel, fileName.GetName(), true); // only filename as page title |
| 39 |
|
|
| 40 |
setFocusToSearchTextCtrl(); |
setFocusToSearchTextCtrl(); |
| 41 |
} |
} |
|
|
Legend:
| Removed from v.1.27 |
|
| changed lines |
| |
Added in v.1.28 |
|
|
| |