Develop and Download Open Source Software

Browse CVS Repository

Diff of /malonnote/mnModel.cpp

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

revision 1.33 by maloninc, Fri Oct 20 11:58:52 2006 UTC revision 1.36 by maloninc, Tue Oct 24 06:46:32 2006 UTC
# Line 110  bool mnModel::matchWithToken(wxString* f Line 110  bool mnModel::matchWithToken(wxString* f
110          return ans;          return ans;
111  }  }
112    
113  void mnModel::readAll(wxString* title, bool progBarFlag)  void mnModel::readAll(bool progBarFlag)
114  {  {
115          int         fileCount = 0;          int         fileCount = 0;
116          wxDir*      dir;          wxDir*      dir;
# Line 118  void mnModel::readAll(wxString* title, b Line 118  void mnModel::readAll(wxString* title, b
118      wxString*   fileName = new wxString();      wxString*   fileName = new wxString();
119          char*       tokenList[MAX_TOKEN];          char*       tokenList[MAX_TOKEN];
120          bool        cont;          bool        cont;
121          wxProgressDialog* progBar;          wxProgressDialog* progBar = NULL;
122    
123          memset(tokenList, 0, sizeof(char*)*MAX_TOKEN);          memset(tokenList, 0, sizeof(char*)*MAX_TOKEN);
124          tokenList[0] = "";          tokenList[0] = "";
# Line 137  void mnModel::readAll(wxString* title, b Line 137  void mnModel::readAll(wxString* title, b
137                          fileCount++;                          fileCount++;
138                          cont = dir->GetNext(fileName);                          cont = dir->GetNext(fileName);
139                  }                  }
140                  progBar = new wxProgressDialog(wxT("Loading Data"), (wxT("Now loading... ") + *title), fileCount);                  progBar = new wxProgressDialog(wxT("Searching Data"), (wxT("Now searching... ") + *wikiDataDir), fileCount);
141          }          }
142    
143          fileCount = 0;          fileCount = 0;
# Line 149  void mnModel::readAll(wxString* title, b Line 149  void mnModel::readAll(wxString* title, b
149          cont = dir->GetNext(fileName);          cont = dir->GetNext(fileName);
150          }          }
151    
152          delete progBar;          if (progBarFlag) {
153                    delete progBar;
154            }
155          delete dir;          delete dir;
156          delete fileName;          delete fileName;
157  }  }

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.36

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