Develop and Download Open Source Software

Browse CVS Repository

Diff of /malonnote/mnFrame.cpp

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

revision 1.27 by maloninc, Fri Oct 7 10:19:46 2005 UTC revision 1.28 by maloninc, Fri Oct 7 12:49:26 2005 UTC
# Line 1  Line 1 
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"
# Line 20  mnFrame::mnFrame(wxWindow* parent) Line 22  mnFrame::mnFrame(wxWindow* parent)
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()
# Line 32  void mnFrame::setFocusToSearchTextCtrl() Line 33  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

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