Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members

chmlistctrl.h

00001 /*
00002 
00003   Copyright (C) 2003  Razvan Cojocaru <razvanco@gmx.net>
00004   ListDirty() patch contributed by Iulian Dragos
00005   <dragosiulian@users.sourceforge.net>
00006  
00007   This program is free software; you can redistribute it and/or modify
00008   it under the terms of the GNU General Public License as published by
00009   the Free Software Foundation; either version 2 of the License, or
00010   (at your option) any later version.
00011   
00012   This program is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015   GNU General Public License for more details.
00016   
00017   You should have received a copy of the GNU General Public License
00018   along with this program; if not, write to the Free Software
00019   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020 
00021 */
00022 
00023 
00024 #ifndef __CHMLISTCTRL_H_
00025 #define __CHMLISTCTRL_H_
00026 
00027 #include <wx/listbox.h>
00028 #include <wx/listctrl.h>
00029 #include <wx/string.h>
00030 
00031 
00032 // Forward declarations.
00033 class CHMHtmlWindow;
00034 
00035 
00042 
00043 class CHMListCtrl : public wxListCtrl {
00044 
00045 public:
00054         CHMListCtrl(wxWindow *parent, CHMHtmlWindow *html,
00055                     wxWindowID id = -1);
00056 
00057 public:
00059         void Reset();
00060 
00068         void AddPairItem(const wxString& title, const wxString& url);
00069         
00071         void LoadSelected();
00072 
00074         void UpdateUI();
00075   
00080         void ListDirty();
00081 
00086         void FindBestMatch(const wxString& title);
00087 
00088 protected:
00090         void OnSize(wxSizeEvent& event);
00091         
00092 private:
00093         wxArrayString _urls;
00094         CHMHtmlWindow *_html;
00095         int _currentSize;
00096 
00097 private:
00098         DECLARE_EVENT_TABLE()
00099 };
00100 
00101 
00102 #endif // __CHMLISTCTRL_H_
00103 

Generated on Mon Feb 21 11:08:37 2005 for xCHM by  doxygen 1.4.0