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.6 by maloninc, Fri Oct 7 12:49:26 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 182  bool mnFrameController::isExistConfig(wx Line 183  bool mnFrameController::isExistConfig(wx
183    
184          return false;          return false;
185  }  }
186    
187    
188    void mnFrameController::handlePageChange(wxNotebookEvent& event)
189    {
190            wxNotebook* notebook;
191            mnNotePanel* panel;
192    
193            notebook = frame->getNotebook();
194            panel = (mnNotePanel*)notebook->GetPage(event.GetSelection());
195            const wxString* dataDir = panel->getController()->getWikiDataDir();
196    
197            frame->GetStatusBar()->SetStatusText(*dataDir);
198    }

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

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