Mercurial > mercurial > hgweb_searcher03.cgi
comparison src/index.cpp @ 10:29021e6e1ebe
Implement thumbnail list in PreviewDialog.
author | pyon@macmini |
---|---|
date | Mon, 28 Apr 2014 18:14:04 +0900 |
parents | 4967d1e2b30c |
children | 52958cd4a073 |
comparison
equal
deleted
inserted
replaced
9:b455f2d8aac9 | 10:29021e6e1ebe |
---|---|
1 // Filename : index.cpp | 1 // Filename : index.cpp |
2 // Last Change: 01-Nov-2013. | 2 // Last Change: 28-Apr-2014. |
3 // | 3 // |
4 | 4 |
5 #include "index.h" | 5 #include "index.h" |
6 #include "db.h" | 6 #include "db.h" |
7 #include "wx/wxsqlite3.h" | 7 #include "wx/wxsqlite3.h" |
115 m_listCtrl->DeleteAllItems(); | 115 m_listCtrl->DeleteAllItems(); |
116 | 116 |
117 wxString buf; | 117 wxString buf; |
118 for ( int i = 0; i < ccn.GetCount(); i++ ) { | 118 for ( int i = 0; i < ccn.GetCount(); i++ ) { |
119 m_listCtrl->InsertItem( i, -1 ); | 119 m_listCtrl->InsertItem( i, -1 ); |
120 buf.Printf( wxT("%02d"), i + 1 ); | 120 buf.Printf( wxT("%03d"), i + 1 ); |
121 m_listCtrl->SetItem( i, 0, buf, -1 ); // No | 121 m_listCtrl->SetItem( i, 0, buf, -1 ); // No |
122 | 122 |
123 wxArrayString ary = wxSplit( ccn[i], '_', '\\' ); // hhsno, path, date | 123 wxArrayString ary = wxSplit( ccn[i], '_', '\\' ); // hhsno, path, date |
124 buf = GetHhsInfoByHhsNo( ary[0] ); | 124 buf = GetHhsInfoByHhsNo( ary[0] ); |
125 wxString name = buf.BeforeFirst( '_' ); | 125 wxString name = buf.BeforeFirst( '_' ); |