| 29 |
return panelController; |
return panelController; |
| 30 |
} |
} |
| 31 |
|
|
|
#if 0 |
|
| 32 |
void mnNotePanel::updateSearchResult(mnModel* wiki, wxString* searchStr, bool isExpand) |
void mnNotePanel::updateSearchResult(mnModel* wiki, wxString* searchStr, bool isExpand) |
| 33 |
{ |
{ |
| 34 |
wxTreeItemIdValue cookie1, cookie2; |
wxTreeItemIdValue cookie1, cookie2; |
| 75 |
searchTree->Collapse(searchStrId); |
searchTree->Collapse(searchStrId); |
| 76 |
} |
} |
| 77 |
} |
} |
|
#endif |
|
| 78 |
|
|
| 79 |
|
|
| 80 |
void mnNotePanel::addSearchResult(mnModel* wiki, wxString* searchStr, bool isExpand) |
void mnNotePanel::addSearchResult(mnModel* wiki, wxString* searchStr, bool isExpand) |
| 110 |
} |
} |
| 111 |
} |
} |
| 112 |
|
|
|
#if 0 |
|
| 113 |
void mnNotePanel::makeHtml(WikiData* wikiData, bool isHighlight) |
void mnNotePanel::makeHtml(WikiData* wikiData, bool isHighlight) |
| 114 |
{ |
{ |
| 115 |
const wxString* fileName = wikiData->getFileName(); |
const wxString* fileName = wikiData->getFileName(); |
| 157 |
exp8.Replace(&htmlText, wxT("<a href=mndoc:\\1>\\1</a>")); |
exp8.Replace(&htmlText, wxT("<a href=mndoc:\\1>\\1</a>")); |
| 158 |
|
|
| 159 |
/* table */ |
/* table */ |
| 160 |
wxRegEx exp10(wxT(",([^,\n]+)"), wxRE_DEFAULT); |
wxRegEx exp10(wxT("^,([^,]+)"), wxRE_NEWLINE|wxRE_DEFAULT); |
| 161 |
exp10.Replace(&htmlText, wxT("<td>\\1</td>")); |
exp10.Replace(&htmlText, wxT("<td>\\1</td>")); |
| 162 |
|
for(int i = 0; i < 10; i++){ // It's not good. :P |
| 163 |
|
wxRegEx exp16(wxT("</td>,([^,\n]+)"), wxRE_DEFAULT); |
| 164 |
|
exp16.Replace(&htmlText, wxT("</td><td>\\1</td>")); |
| 165 |
|
} |
| 166 |
wxRegEx exp11(wxT("^<td>"), wxRE_NEWLINE|wxRE_DEFAULT); |
wxRegEx exp11(wxT("^<td>"), wxRE_NEWLINE|wxRE_DEFAULT); |
| 167 |
exp11.Replace(&htmlText, wxT("<tr><td>")); |
exp11.Replace(&htmlText, wxT("<tr><td>")); |
| 168 |
wxRegEx exp12(wxT("</td>$"), wxRE_NEWLINE|wxRE_DEFAULT); |
wxRegEx exp12(wxT("</td>$"), wxRE_NEWLINE|wxRE_DEFAULT); |
| 240 |
} |
} |
| 241 |
} |
} |
| 242 |
|
|
| 243 |
|
|
| 244 |
void mnNotePanel::expandAllTree() |
void mnNotePanel::expandAllTree() |
| 245 |
{ |
{ |
| 246 |
wxTreeItemIdValue cookie; |
wxTreeItemIdValue cookie; |
| 313 |
} |
} |
| 314 |
} |
} |
| 315 |
|
|
|
#endif |
|