| 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); |
| 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 |
|
|