Develop and Download Open Source Software

Browse CVS Repository

Diff of /malonnote/mnNotePanel.cpp

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

revision 1.1 by maloninc, Tue Oct 4 12:45:02 2005 UTC revision 1.3 by maloninc, Fri Oct 7 10:19:46 2005 UTC
# Line 29  mnNotePanelController* mnNotePanel::getC Line 29  mnNotePanelController* mnNotePanel::getC
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;
# Line 76  void mnNotePanel::updateSearchResult(mnM Line 75  void mnNotePanel::updateSearchResult(mnM
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)
# Line 112  void mnNotePanel::addSearchResult(mnMode Line 110  void mnNotePanel::addSearchResult(mnMode
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();
# Line 160  void mnNotePanel::makeHtml(WikiData* wik Line 157  void mnNotePanel::makeHtml(WikiData* wik
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);
# Line 239  void mnNotePanel::highlightSelectedItem( Line 240  void mnNotePanel::highlightSelectedItem(
240          }          }
241  }  }
242    
243    
244  void mnNotePanel::expandAllTree()  void mnNotePanel::expandAllTree()
245  {  {
246          wxTreeItemIdValue cookie;          wxTreeItemIdValue cookie;
# Line 311  bool mnNotePanel::isEditableTreeLabel(wx Line 313  bool mnNotePanel::isEditableTreeLabel(wx
313          }          }
314  }  }
315    
 #endif  

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

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