]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/xrc/xh_listc.h
added a timer updating a counter in the background to be able to easily check visuall...
[wxWidgets.git] / include / wx / xrc / xh_listc.h
index 8bd27632b1cdb3e5275020bba1d4cd1648525699..5ca936f28bb1382ae8dfe35a4881647077aea254 100644 (file)
@@ -1,6 +1,6 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        xh_listc.h
-// Purpose:     XML resource handler for wxCalendarCtrl
+// Name:        wx/xrc/xh_listc.h
+// Purpose:     XML resource handler for wxListCtrl
 // Author:      Brian Gavin
 // Created:     2000/09/09
 // RCS-ID:      $Id$
 #ifndef _WX_XH_LISTC_H_
 #define _WX_XH_LISTC_H_
 
-#ifdef __GNUG__
-#pragma interface "xh_listc.h"
-#endif
-
 #include "wx/xrc/xmlres.h"
 
-class WXXMLDLLEXPORT wxListCtrlXmlHandler : public wxXmlResourceHandler
+#if wxUSE_XRC && wxUSE_LISTCTRL
+
+class WXDLLIMPEXP_FWD_CORE wxListCtrl;
+
+class WXDLLIMPEXP_XRC wxListCtrlXmlHandler : public wxXmlResourceHandler
 {
 public:
     wxListCtrlXmlHandler();
     virtual wxObject *DoCreateResource();
     virtual bool CanHandle(wxXmlNode *node);
+
+private:
+    long Handle_wxListItem();
+    wxObject* Handle_wxListCtrl();
+
+    // gets the items image index in the corresponding image list (normal if
+    // which is wxIMAGE_LIST_NORMAL or small if it is wxIMAGE_LIST_SMALL)
+    long GetImageIndex(wxListCtrl *listctrl, int which);
+
+    DECLARE_DYNAMIC_CLASS(wxListCtrlXmlHandler)
 };
 
+#endif // wxUSE_XRC && wxUSE_LISTCTRL
 
 #endif // _WX_XH_LISTC_H_