// Author: Robert Roebling
// Maintainer: Otto Wyss
// Created: 01/02/97
-// RCS-ID: $Id: treelistctrl.cpp,v 1.1 2008/09/26 14:15:48 guigues Exp $
+// RCS-ID: $Id: treelistctrl.cpp,v 1.4 2009/03/20 14:43:12 davila Exp $
// Copyright: (c) 2004 Robert Roebling, Julian Smart, Alberto Griggio,
// Vadim Zeitlin, Otto Wyss
// Licence: wxWindows
#pragma implementation "treelistctrl.h"
#endif
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
#include <wx/treebase.h>
// get all the items currently selected, return count of items
size_t GetSelections(wxArrayTreeItemIds&) const;
+ // returns the number of currently selected items
+ size_t GetSelectionSize() const;
+
// get the parent of this item (may return NULL if root)
wxTreeItemId GetItemParent(const wxTreeItemId& item) const;
dc->DrawRectangle( x, y+h, w+1, 1 ); // bottom (outer)
#if defined( __WXMAC__ )
- wxPen pen( wxColour( 0x88 , 0x88 , 0x88 ), 1, wxSOLID );
+
+ // EED
+ // wxPen pen( wxColour( 0x88 , 0x88 , 0x88 ), 1, wxSOLID );
+ pen.SetColour( wxColour( 0x88 , 0x88 , 0x88 ) );
+
#endif
dc->SetPen( pen );
dc->DrawLine( x+w-m_corner, y, x+w-1, y+h ); // right (inner)
}
}
+
+// returns the number of currently selected items
+ size_t wxTreeListMainWindow::GetSelectionSize() const
+ {
+ return m_selected.GetCount();
+ }
+
size_t wxTreeListMainWindow::GetSelections (wxArrayTreeItemIds &array) const {
/*
LG : NOT OK AS IS NOT IN TREE ORDER
//{ return m_main_win->GetSelection(); }
wxTreeItemId wxTreeListCtrl::GetCurrent() const
{ return m_main_win->GetCurrent(); }
+
+ // returns the number of currently selected items
+ size_t wxTreeListCtrl::GetSelectionSize() const
+ { return m_main_win->GetSelectionSize(); }
size_t wxTreeListCtrl::GetSelections(wxArrayTreeItemIds& arr) const
{ return m_main_win->GetSelections(arr); }