OSDN Git Service

Lycheeにリネーム。
[tpi/lychee.git] / src / lychee / 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 wxListView
26 {
27 public:
28         virtual wxString OnGetItemText(long, long) const;
29         virtual int OnGetItemImage(long) const;
30         virtual wxListItemAttr * OnGetItemAttr(long) const;
31         void OnColClick(wxListEvent&);
32
33         ArrayTPI_FILEINFO showFileInfo;
34         wxListItemAttr atDangerItem;
35
36         myListCtrl(): wxListView(){}
37         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): wxListView(parent, id, pos, size, style, validator, name){}
38
39         DECLARE_DYNAMIC_CLASS(myListCtrl)
40     DECLARE_EVENT_TABLE()
41 };
42
43 int ListCtrlCompareProc(TPI_FILEINFO **, TPI_FILEINFO **);
44 extern wxImageList g_hIconLL, g_hIconLS;
45 extern int g_nSortColumn;
46 extern bool g_fSortAscend;
47
48 #endif