OSDN Git Service

DTVや拡張子偽装などの可能性のあるファイルを含む書庫を開く際に警告を表示するよう変更。
[tpi/lychee.git] / src / frontend / cls_listctrl.h
1 /*******************************************************************************
2   TPI - flexible but useless plug-in framework.
3   Copyright (C) 2002-2009 Silky
4
5   This library is free software; you can redistribute it and/or modify it under
6   the terms of the GNU Lesser General Public License as published by the Free
7   Software Foundation; either version 2.1 of the License, or (at your option)
8   any later version.
9
10   This library is distributed in the hope that it will be useful, but WITHOUT
11   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
12   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
13   for more details.
14
15   You should have received a copy of the GNU Lesser General Public License along
16   with this library; if not, write to the Free Software Foundation, Inc.,
17   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
18
19   $Id: cls_listctrl.h,v 1.3 2009/08/20 11:51:49 sirakaba Exp $
20 *******************************************************************************/
21
22 #ifndef H_LOADED_CLS_LC
23 #define H_LOADED_CLS_LC
24
25 class myListCtrl: public wxListCtrl
26 {
27 public:
28         virtual wxString OnGetItemText(long, long) const;
29         virtual int OnGetItemImage(long) const;
30         void OnColClick(wxListEvent&);
31
32         ArrayTPI_FILEINFO showFileInfo;
33
34         myListCtrl(): wxListCtrl(){}
35         myListCtrl(wxWindow * parent, wxWindowID id, const wxPoint & pos = wxDefaultPosition, const wxSize & size = wxDefaultSize, long style = wxLC_ICON, const wxValidator & validator = wxDefaultValidator, const wxString & name = wxListCtrlNameStr): wxListCtrl(parent, id, pos, size, style, validator, name){}
36
37         DECLARE_DYNAMIC_CLASS(myListCtrl)
38     DECLARE_EVENT_TABLE()
39 };
40
41 int ListCtrlCompareProc(TPI_FILEINFO **, TPI_FILEINFO **);
42 extern wxImageList g_hIconLL, g_hIconLS;
43 extern int g_nSortingColumn;
44
45 #endif