Develop and Download Open Source Software

Browse CVS Repository

Diff of /malonnote/mnController.cpp

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

revision 1.13 by maloninc, Tue Sep 13 00:40:08 2005 UTC revision 1.16 by maloninc, Tue Sep 13 11:17:03 2005 UTC
# Line 19  BEGIN_EVENT_TABLE(mnController, wxEvtHan Line 19  BEGIN_EVENT_TABLE(mnController, wxEvtHan
19          EVT_MENU(ID_MenuFileEdit, mnController::handleEditButton)          EVT_MENU(ID_MenuFileEdit, mnController::handleEditButton)
20          EVT_MENU(ID_MenuFileExit, mnController::handleExit)          EVT_MENU(ID_MenuFileExit, mnController::handleExit)
21          EVT_MENU(ID_MenuFileConfig, mnController::handleConfig)          EVT_MENU(ID_MenuFileConfig, mnController::handleConfig)
22            EVT_MENU(ID_MenuFileGroup, mnController::handleGroup)
23          EVT_MENU(wxID_ABOUT, mnController::handleAbout)          EVT_MENU(wxID_ABOUT, mnController::handleAbout)
24          EVT_CLOSE(mnController::handleClose)          EVT_CLOSE(mnController::handleClose)
25          EVT_COMMAND(ID_HtmlTextCtrl, mnEVT_LINK_CLICK, mnController::handleLinkClick)          EVT_COMMAND(ID_HtmlTextCtrl, mnEVT_LINK_CLICK, mnController::handleLinkClick)
# Line 98  void mnController::handleSearch(wxComman Line 99  void mnController::handleSearch(wxComman
99          frame->showSearchResult(wiki);          frame->showSearchResult(wiki);
100  }  }
101    
102    void mnController::handleGroup(wxCommandEvent& event)
103    {
104            wiki->group();
105            frame->showSearchResult(wiki, false);
106    }
107    
108    
109  void mnController::handleNewButton(wxCommandEvent& event)  void mnController::handleNewButton(wxCommandEvent& event)
110  {  {
111          int             ans;          int             ans;
# Line 130  void mnController::handleRemoveButton(wx Line 138  void mnController::handleRemoveButton(wx
138          wxTreeItemData* item = frame->getSelectedItem();          wxTreeItemData* item = frame->getSelectedItem();
139    
140          if(item){          if(item){
141                  if(wxMessageBox(frame->getSelectedLabel(), wxT("Do you realy remove this memo?"), wxYES_NO|wxICON_QUESTION) == wxYES){                  if(wxMessageBox(wxT("Do you realy remove this memo?\n") + frame->getSelectedLabel(), wxT("Realy?"), wxYES_NO|wxICON_QUESTION) == wxYES){
142                          ((WikiData*)(item))->removeDataFile();                          ((WikiData*)(item))->removeDataFile();
143                  }                  }
144          }          }

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.16

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