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.10 by maloninc, Sat Aug 13 06:12:05 2005 UTC revision 1.12 by maloninc, Sat Aug 27 01:19:57 2005 UTC
# Line 15  BEGIN_EVENT_TABLE(mnController, wxEvtHan Line 15  BEGIN_EVENT_TABLE(mnController, wxEvtHan
15          EVT_TREE_END_LABEL_EDIT(ID_SearchTree, mnController::handleEndLabelEdit)          EVT_TREE_END_LABEL_EDIT(ID_SearchTree, mnController::handleEndLabelEdit)
16          EVT_MENU(ID_MenuFileNew, mnController::handleNewButton)          EVT_MENU(ID_MenuFileNew, mnController::handleNewButton)
17          EVT_MENU(ID_MenuFileRemove, mnController::handleRemoveButton)          EVT_MENU(ID_MenuFileRemove, mnController::handleRemoveButton)
18            EVT_MENU(ID_MenuFileHighlight, mnController::handleHighlightButton)
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)
# Line 137  void mnController::handleRemoveButton(wx Line 138  void mnController::handleRemoveButton(wx
138          frame->showSearchResult(wiki);          frame->showSearchResult(wiki);
139  }  }
140    
141    void mnController::handleHighlightButton(wxCommandEvent& event)
142    {
143            frame->highlightSelectedItem();
144    }
145    
146    
147  void mnController::handleTreeItemSelect(wxTreeEvent& event)  void mnController::handleTreeItemSelect(wxTreeEvent& event)
148  {  {
149          frame->showSelectedItemText(event);          frame->showSelectedItemText(event);
# Line 262  void mnController::openUrl(wxString& url Line 269  void mnController::openUrl(wxString& url
269  #endif  #endif
270    
271  #ifdef __WXGTK__  #ifdef __WXGTK__
272          wxLogMessage(wxT("Ooops!, I don't know how to launch %s"), url.c_str());          cmd.sprintf(wxT("gnome-open %s"), url.c_str());
         return;  
273  #endif  #endif
274    
275          //wxExecute(argv);          //wxExecute(argv);
# Line 287  void mnController::openDoc(wxString& doc Line 293  void mnController::openDoc(wxString& doc
293  #endif  #endif
294    
295  #ifdef __WXGTK__  #ifdef __WXGTK__
296          wxLogMessage(wxT("Ooops!, I don't know how to launch %s"), doc.c_str());          cmd.sprintf(wxT("gnome-open %s"), doc.c_str());
         return;  
297  #endif  #endif
298    
         //wxExecute(argv);  
299          wxExecute(cmd);          wxExecute(cmd);
300  }  }

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.12

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