Develop and Download Open Source Software

Browse CVS Repository

Diff of /malonnote/mnFrame.cpp

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

revision 1.4 by maloninc, Sat Jul 30 20:30:01 2005 UTC revision 1.5 by maloninc, Sun Jul 31 06:54:12 2005 UTC
# Line 28  mnFrame::mnFrame(wxWindow* parent, int i Line 28  mnFrame::mnFrame(wxWindow* parent, int i
28      wxMenu* tmp_menu_1 = new wxMenu();      wxMenu* tmp_menu_1 = new wxMenu();
29      tmp_menu_1->Append(ID_MenuFileNew, _("New\tCtrl+N"), wxT(""), wxITEM_NORMAL);      tmp_menu_1->Append(ID_MenuFileNew, _("New\tCtrl+N"), wxT(""), wxITEM_NORMAL);
30      tmp_menu_1->Append(ID_MenuFileEdit, _("Edit\tCtrl+E"), wxT(""), wxITEM_NORMAL);      tmp_menu_1->Append(ID_MenuFileEdit, _("Edit\tCtrl+E"), wxT(""), wxITEM_NORMAL);
     tmp_menu_1->Append(ID_MenuFileSave, _("Save\tCtrl+S"), wxT(""), wxITEM_NORMAL);  
31      tmp_menu_1->Append(ID_MenuFileRemove, _("Remove\tCtrl+R"), wxT(""), wxITEM_NORMAL);      tmp_menu_1->Append(ID_MenuFileRemove, _("Remove\tCtrl+R"), wxT(""), wxITEM_NORMAL);
32          tmp_menu_1->AppendSeparator();          tmp_menu_1->AppendSeparator();
33      tmp_menu_1->Append(ID_MenuFileConfig, _("Configure..."), wxT(""), wxITEM_NORMAL);      tmp_menu_1->Append(ID_MenuFileConfig, _("Configure..."), wxT(""), wxITEM_NORMAL);
# Line 56  mnFrame::mnFrame(wxWindow* parent, int i Line 55  mnFrame::mnFrame(wxWindow* parent, int i
55          newItemRoot = searchTree->AppendItem(searchItemRoot, wxT(LABEL_NEW_ITEM), -1, -1, NULL);          newItemRoot = searchTree->AppendItem(searchItemRoot, wxT(LABEL_NEW_ITEM), -1, -1, NULL);
56  }  }
57    
58  void mnFrame::showPlainTextCtrl()  int mnFrame::showDataEntryDialog(mnWikiDataEntryDialog* dlg)
59  {  {
60          mnWikiDataEntryDialog* dlg = new mnWikiDataEntryDialog(this, -1, wxT("Malon Note"));          return wxID_CANCEL;
         dlg->ShowModal();  
61  }  }
62    
63  void mnFrame::hidePlainTextCtrl()  int mnFrame::showDataEditDialog(mnWikiDataEntryDialog* dlg)
64  {  {
65            wxTreeItemData* itemData = getSelectedItem();
66            wxString        subject  = getSelectedLabel();
67            
68            if(itemData == NULL) return wxID_CANCEL;
69            const wxString* wikiText = ((WikiData*)(itemData))->getText();
70    
71            dlg->setSubject(subject);
72            dlg->setPlainText(*wikiText);
73            return dlg->ShowModal();
74  }  }
75    
76    

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

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