Develop and Download Open Source Software

Browse CVS Repository

Diff of /malonnote/mnFrameController.cpp

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

revision 1.5 by maloninc, Fri Oct 7 10:19:46 2005 UTC revision 1.7 by maloninc, Tue Oct 11 09:05:15 2005 UTC
# Line 25  BEGIN_EVENT_TABLE(mnFrameController, wxE Line 25  BEGIN_EVENT_TABLE(mnFrameController, wxE
25          EVT_MENU(XRCID("Quit"), mnFrameController::handleExit)          EVT_MENU(XRCID("Quit"), mnFrameController::handleExit)
26          EVT_MENU(wxID_ABOUT, mnFrameController::handleAbout)          EVT_MENU(wxID_ABOUT, mnFrameController::handleAbout)
27          EVT_CLOSE(mnFrameController::handleClose)          EVT_CLOSE(mnFrameController::handleClose)
28            EVT_NOTEBOOK_PAGE_CHANGED(XRCID("noteBook"), mnFrameController::handlePageChange)
29  END_EVENT_TABLE()  END_EVENT_TABLE()
30    
31  mnFrameController::mnFrameController(mnFrame* inframe)  mnFrameController::mnFrameController(mnFrame* inframe)
# Line 137  void mnFrameController::updateConfig() Line 138  void mnFrameController::updateConfig()
138    
139          wxConfig* config = new wxConfig(wxT(CONF_APP_NAME));          wxConfig* config = new wxConfig(wxT(CONF_APP_NAME));
140          config->DeleteAll();          config->DeleteAll();
141            delete config;
142            config = new wxConfig(wxT(CONF_APP_NAME)); // recreate config object
143          notebook = frame->getNotebook();          notebook = frame->getNotebook();
144          int count = notebook->GetPageCount();          int count = notebook->GetPageCount();
145          for(int i = 0; i < count; i++) {          for(int i = 0; i < count; i++) {
# Line 182  bool mnFrameController::isExistConfig(wx Line 185  bool mnFrameController::isExistConfig(wx
185    
186          return false;          return false;
187  }  }
188    
189    
190    void mnFrameController::handlePageChange(wxNotebookEvent& event)
191    {
192            wxNotebook* notebook;
193            mnNotePanel* panel;
194    
195            notebook = frame->getNotebook();
196            panel = (mnNotePanel*)notebook->GetPage(event.GetSelection());
197            const wxString* dataDir = panel->getController()->getWikiDataDir();
198    
199            frame->GetStatusBar()->SetStatusText(*dataDir);
200    }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.7

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