| 63 |
MN_FATAL_ERROR(wxT("wxDir has faild\n")); |
MN_FATAL_ERROR(wxT("wxDir has faild\n")); |
| 64 |
return NULL; |
return NULL; |
| 65 |
} |
} |
| 66 |
bool cont = dir->GetFirst(fileName, wxEmptyString, wxDIR_FILES); |
bool cont = dir->GetFirst(fileName, wxT("*.txt"), wxDIR_FILES); |
| 67 |
while(cont){ |
while(cont){ |
| 68 |
fullPathName = *wikiDataDir + wxT("/") + *fileName; |
fullPathName = *wikiDataDir + wxT("/") + *fileName; |
| 69 |
fp = fopen((const char*)fullPathName.mb_str(), "r"); |
fp = fopen((const char*)fullPathName.mb_str(), "r"); |
| 118 |
itemStr.sprintf(wxT("%s"), newStr->c_str()); |
itemStr.sprintf(wxT("%s"), newStr->c_str()); |
| 119 |
} |
} |
| 120 |
} |
} |
| 121 |
|
const wxString* mnModel::getWikiDataDir() |
| 122 |
|
{ |
| 123 |
|
return wikiDataDir; |
| 124 |
|
} |
| 125 |
|
|
| 126 |
const wxArrayString* mnModel::getSearchStrList() |
const wxArrayString* mnModel::getSearchStrList() |
| 127 |
{ |
{ |
| 320 |
|
|
| 321 |
void WikiData::modText(wxString* intext) |
void WikiData::modText(wxString* intext) |
| 322 |
{ |
{ |
| 323 |
|
wxCSConv conv(wxT(CODE_SET_SYSTEM)); |
| 324 |
delete text; |
delete text; |
| 325 |
text = new wxString(intext->c_str()); |
//text = new wxString(intext->c_str()); |
| 326 |
|
text = new wxString(*intext); |
| 327 |
|
//text = new wxString(intext->mb_str(), conv); |
| 328 |
} |
} |
| 329 |
|
|
| 330 |
void WikiData::removeDataFile() |
void WikiData::removeDataFile() |