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.11 by maloninc, Fri Aug 26 11:17:51 2005 UTC revision 1.13 by maloninc, Tue Sep 13 00:40:08 2005 UTC
# Line 130  void mnController::handleRemoveButton(wx Line 130  void mnController::handleRemoveButton(wx
130          wxTreeItemData* item = frame->getSelectedItem();          wxTreeItemData* item = frame->getSelectedItem();
131    
132          if(item){          if(item){
133                  ((WikiData*)(item))->removeDataFile();                  if(wxMessageBox(frame->getSelectedLabel(), wxT("Do you realy remove this memo?"), wxYES_NO|wxICON_QUESTION) == wxYES){
134                            ((WikiData*)(item))->removeDataFile();
135                    }
136          }          }
137          else {          else {
138                  wiki->removeSearchStr(frame->getSelectedLabel());                  wiki->removeSearchStr(frame->getSelectedLabel());
# Line 269  void mnController::openUrl(wxString& url Line 271  void mnController::openUrl(wxString& url
271  #endif  #endif
272    
273  #ifdef __WXGTK__  #ifdef __WXGTK__
274          wxLogMessage(wxT("Ooops!, I don't know how to launch %s"), url.c_str());          cmd.sprintf(wxT("gnome-open %s"), url.c_str());
         return;  
275  #endif  #endif
276    
277          //wxExecute(argv);          //wxExecute(argv);
# Line 294  void mnController::openDoc(wxString& doc Line 295  void mnController::openDoc(wxString& doc
295  #endif  #endif
296    
297  #ifdef __WXGTK__  #ifdef __WXGTK__
298          wxLogMessage(wxT("Ooops!, I don't know how to launch %s"), doc.c_str());          cmd.sprintf(wxT("gnome-open %s"), doc.c_str());
         return;  
299  #endif  #endif
300    
         //wxExecute(argv);  
301          wxExecute(cmd);          wxExecute(cmd);
302  }  }

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

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