]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
check for existance of output files
[wxWidgets.git] / src / generic / listctrl.cpp
index 889007ba509afe92ff0201ec47bd0ee73282bff9..bdb873316985fd0631ca6c164419bed598513e23 100644 (file)
@@ -2261,8 +2261,6 @@ wxListLineData *wxListMainWindow::GetDummyLine() const
 
 wxCoord wxListMainWindow::GetLineHeight() const
 {
-    wxASSERT_MSG( HasFlag(wxLC_REPORT), _T("only works in report mode") );
-
     // we cache the line height as calling GetTextExtent() is slow
     if ( !m_lineHeight )
     {
@@ -4535,6 +4533,17 @@ wxGenericListCtrl::wxGenericListCtrl()
     m_headerHeight = 0;
 }
 
+wxGenericListCtrl::wxGenericListCtrl(wxWindow *parent,
+                                     wxWindowID winid,
+                                     const wxPoint &pos,
+                                     const wxSize &size,
+                                     long style,
+                                     const wxValidator& validator,
+                                     const wxString &name)
+{
+    Create(parent, winid, pos, size, style, validator, name);
+}
+
 wxGenericListCtrl::~wxGenericListCtrl()
 {
     if (m_ownsImageListNormal)
@@ -4597,6 +4606,8 @@ bool wxGenericListCtrl::Create(wxWindow *parent,
     m_mainWin = (wxListMainWindow*) NULL;
     m_headerWin = (wxListHeaderWindow*) NULL;
 
+    m_headerHeight = 0;
+
     if ( !(style & wxLC_MASK_TYPE) )
     {
         style = style | wxLC_LIST;
@@ -5382,5 +5393,39 @@ void wxGenericListCtrl::Thaw()
     m_mainWin->Thaw();
 }
 
+#if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__)
+
+wxListCtrl::wxListCtrl()
+{
+}
+
+wxListCtrl::wxListCtrl(wxWindow *parent,
+                       wxWindowID winid,
+                       const wxPoint& pos,
+                       const wxSize& size,
+                       long style,
+                       const wxValidator &validator,
+                       const wxString &name)
+                       : wxGenericListCtrl(parent, winid, pos, size, style, validator, name)
+{
+}
+
+#endif // !__WXMSW__ || __WIN16__ || __WXUNIVERSAL__
+
+wxListView::wxListView()
+{
+}
+
+wxListView::wxListView(wxWindow *parent,
+                       wxWindowID winid,
+                       const wxPoint& pos,
+                       const wxSize& size,
+                       long style,
+                       const wxValidator& validator,
+                       const wxString &name)
+{
+    Create(parent, winid, pos, size, style, validator, name);
+}
+
 #endif // wxUSE_LISTCTRL