Browse CVS Repository
Diff of /malonnote/mnController.cpp
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 152 |
wxString newSubject = event.GetLabel(); |
wxString newSubject = event.GetLabel(); |
| 153 |
wxTreeItemData* item = frame->getSelectedItem(); |
wxTreeItemData* item = frame->getSelectedItem(); |
| 154 |
|
|
|
event.Veto(); |
|
|
|
|
| 155 |
saveData(); |
saveData(); |
| 156 |
|
|
| 157 |
if(item == NULL) return ; |
if(item == NULL) return ; |
| 158 |
|
|
| 159 |
if(newSubject.Len() == 0) { |
if(newSubject.Len() == 0) { |
| 160 |
|
event.Veto(); |
| 161 |
frame->showSearchResult(wiki); |
frame->showSearchResult(wiki); |
| 162 |
return; |
return; |
| 163 |
} |
} |
| 164 |
|
|
| 165 |
((WikiData*)(item))->modSubject(&newSubject); |
((WikiData*)(item))->modSubject(&newSubject); |
| 166 |
|
if(frame->isNewItem(event.GetItem())){ |
| 167 |
|
return; |
| 168 |
|
} |
| 169 |
|
|
| 170 |
|
event.Veto(); |
| 171 |
frame->showSearchResult(wiki); |
frame->showSearchResult(wiki); |
| 172 |
} |
} |
| 173 |
|
|
| 185 |
|
|
| 186 |
void mnController::handleAbout(wxCommandEvent& event) |
void mnController::handleAbout(wxCommandEvent& event) |
| 187 |
{ |
{ |
| 188 |
wxMessageBox(wxT("MalonNote Ver0.9"), wxT("Abount MalonNote"), wxOK|wxICON_INFORMATION); |
wxMessageBox(wxT(MN_APP_VERSION), wxT("Abount MalonNote"), wxOK|wxICON_INFORMATION); |
| 189 |
} |
} |
| 190 |
|
|
| 191 |
|
|
|
|
Legend:
| Removed from v.1.1.1.1 |
|
| changed lines |
| |
Added in v.1.1.1.1.2.1 |
|
|
|