1 /*******************************************************************************
2 TPI - flexible but useless plug-in framework.
3 Copyright (C) 2002-2009 Silky
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)
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
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
19 $Id: cls_listctrl.h,v 1.3 2009/08/20 11:51:49 sirakaba Exp $
20 *******************************************************************************/
22 #ifndef H_LOADED_CLS_LC
23 #define H_LOADED_CLS_LC
25 class myListCtrl: public wxListView
28 virtual wxString OnGetItemText(long, long) const;
29 virtual int OnGetItemImage(long) const;
30 virtual wxListItemAttr * OnGetItemAttr(long) const;
31 void OnColClick(wxListEvent&);
33 ArrayTPI_FILEINFO showFileInfo;
34 wxListItemAttr atDangerItem;
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){}
39 DECLARE_DYNAMIC_CLASS(myListCtrl)
43 int ListCtrlCompareProc(TPI_FILEINFO **, TPI_FILEINFO **);
44 extern wxImageList g_hIconLL, g_hIconLS;
45 extern int g_nSortColumn;
46 extern bool g_fSortAscend;