/*******************************************************************************
  TPI - flexible but useless plug-in framework.
  Copyright (C) 2002-2009 Silky

  This library is free software; you can redistribute it and/or modify it under
  the terms of the GNU Lesser General Public License as published by the Free
  Software Foundation; either version 2.1 of the License, or (at your option)
  any later version.

  This library is distributed in the hope that it will be useful, but WITHOUT
  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
  for more details.

  You should have received a copy of the GNU Lesser General Public License along
  with this library; if not, write to the Free Software Foundation, Inc.,
  51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

  $Id: cls_listctrl.h 125 2009-11-19 14:17:38Z sirakaba $
*******************************************************************************/

#ifndef H_LOADED_CLS_LC
#define H_LOADED_CLS_LC

class myListCtrl: public wxListView
{
public:
	virtual wxString OnGetItemText(long, long) const;
	virtual int OnGetItemImage(long) const;
	virtual wxListItemAttr * OnGetItemAttr(long) const;
	void OnColClick(wxListEvent&);

	ArrayTPI_FILEINFO showFileInfo;
	wxListItemAttr atDangerItem;

	myListCtrl(): wxListView(){}
	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){}

	DECLARE_DYNAMIC_CLASS(myListCtrl)
    DECLARE_EVENT_TABLE()
};

int ListCtrlCompareProc(TPI_FILEINFO **, TPI_FILEINFO **);
extern wxImageList g_hIconLL, g_hIconLS;
extern int g_nSortColumn;
extern bool g_fSortAscend;

#endif
