Back to unsigned int count in wxTreeCtrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -69,7 +69,7 @@ public:
|
|||||||
// implement base class pure virtuals
|
// implement base class pure virtuals
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
|
|
||||||
virtual size_t GetCount() const;
|
virtual unsigned int GetCount() const;
|
||||||
|
|
||||||
virtual unsigned int GetIndent() const { return m_indent; }
|
virtual unsigned int GetIndent() const { return m_indent; }
|
||||||
virtual void SetIndent(unsigned int indent);
|
virtual void SetIndent(unsigned int indent);
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: treectrl.h
|
// Name: wx/gtk/treectrl.h
|
||||||
// Purpose: wxTreeCtrl class
|
// Purpose: wxTreeCtrl class
|
||||||
// Author: Denis Pershin
|
// Author: Denis Pershin
|
||||||
// Modified by:
|
// Modified by:
|
||||||
@@ -154,7 +154,7 @@ public:
|
|||||||
// ---------
|
// ---------
|
||||||
|
|
||||||
// get the total number of items in the control
|
// get the total number of items in the control
|
||||||
size_t GetCount() const;
|
virtual unsigned int GetCount() const;
|
||||||
|
|
||||||
// indent is the number of pixels the children are indented relative to
|
// indent is the number of pixels the children are indented relative to
|
||||||
// the parents position. SetIndent() also redraws the control
|
// the parents position. SetIndent() also redraws the control
|
||||||
|
@@ -154,7 +154,7 @@ public:
|
|||||||
// ---------
|
// ---------
|
||||||
|
|
||||||
// get the total number of items in the control
|
// get the total number of items in the control
|
||||||
size_t GetCount() const;
|
virtual unsigned int GetCount() const;
|
||||||
|
|
||||||
// indent is the number of pixels the children are indented relative to
|
// indent is the number of pixels the children are indented relative to
|
||||||
// the parents position. SetIndent() also redraws the control
|
// the parents position. SetIndent() also redraws the control
|
||||||
|
@@ -137,7 +137,7 @@ public:
|
|||||||
// accessors
|
// accessors
|
||||||
// ---------
|
// ---------
|
||||||
//
|
//
|
||||||
size_t GetCount() const;
|
virtual unsigned int GetCount() const;
|
||||||
|
|
||||||
// indent
|
// indent
|
||||||
int GetIndent() const;
|
int GetIndent() const;
|
||||||
|
@@ -137,7 +137,7 @@ public:
|
|||||||
// accessors
|
// accessors
|
||||||
// ---------
|
// ---------
|
||||||
//
|
//
|
||||||
size_t GetCount() const;
|
virtual unsigned int GetCount() const;
|
||||||
|
|
||||||
// indent
|
// indent
|
||||||
int GetIndent() const;
|
int GetIndent() const;
|
||||||
|
@@ -78,7 +78,7 @@ public:
|
|||||||
// implement base class pure virtuals
|
// implement base class pure virtuals
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
|
|
||||||
virtual size_t GetCount() const;
|
virtual unsigned int GetCount() const;
|
||||||
|
|
||||||
virtual unsigned int GetIndent() const;
|
virtual unsigned int GetIndent() const;
|
||||||
virtual void SetIndent(unsigned int indent);
|
virtual void SetIndent(unsigned int indent);
|
||||||
|
@@ -90,7 +90,7 @@ public:
|
|||||||
//
|
//
|
||||||
// Get the total number of items in the control
|
// Get the total number of items in the control
|
||||||
//
|
//
|
||||||
size_t GetCount(void) const;
|
virtual unsigned int GetCount(void) const;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Indent is the number of pixels the children are indented relative to
|
// Indent is the number of pixels the children are indented relative to
|
||||||
|
@@ -73,7 +73,7 @@ public:
|
|||||||
// ---------
|
// ---------
|
||||||
|
|
||||||
// get the total number of items in the control
|
// get the total number of items in the control
|
||||||
size_t GetCount() const;
|
virtual unsigned int GetCount() const;
|
||||||
|
|
||||||
// indent is the number of pixels the children are indented relative to
|
// indent is the number of pixels the children are indented relative to
|
||||||
// the parents position. SetIndent() also redraws the control
|
// the parents position. SetIndent() also redraws the control
|
||||||
|
@@ -50,7 +50,7 @@ public:
|
|||||||
// ---------
|
// ---------
|
||||||
|
|
||||||
// get the total number of items in the control
|
// get the total number of items in the control
|
||||||
virtual size_t GetCount() const = 0;
|
virtual unsigned int GetCount() const = 0;
|
||||||
|
|
||||||
// indent is the number of pixels the children are indented relative to
|
// indent is the number of pixels the children are indented relative to
|
||||||
// the parents position. SetIndent() also redraws the control
|
// the parents position. SetIndent() also redraws the control
|
||||||
|
@@ -863,7 +863,7 @@ wxGenericTreeCtrl::~wxGenericTreeCtrl()
|
|||||||
// accessors
|
// accessors
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
||||||
size_t wxGenericTreeCtrl::GetCount() const
|
unsigned int wxGenericTreeCtrl::GetCount() const
|
||||||
{
|
{
|
||||||
if ( !m_anchor )
|
if ( !m_anchor )
|
||||||
{
|
{
|
||||||
@@ -871,7 +871,7 @@ size_t wxGenericTreeCtrl::GetCount() const
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t count = m_anchor->GetChildrenCount();
|
unsigned int count = m_anchor->GetChildrenCount();
|
||||||
if ( !HasFlag(wxTR_HIDE_ROOT) )
|
if ( !HasFlag(wxTR_HIDE_ROOT) )
|
||||||
{
|
{
|
||||||
// take the root itself into account
|
// take the root itself into account
|
||||||
|
@@ -152,12 +152,14 @@ static void gtk_treectrl_count_callback (GtkWidget *widget, gpointer data) {
|
|||||||
gtk_container_foreach(GTK_CONTAINER(widget), gtk_treectrl_count_callback, data);
|
gtk_container_foreach(GTK_CONTAINER(widget), gtk_treectrl_count_callback, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t wxTreeCtrl::GetCount() const {
|
unsigned int wxTreeCtrl::GetCount() const
|
||||||
int count = 0;
|
{
|
||||||
|
int count = 0;
|
||||||
|
|
||||||
if (m_anchor != NULL)
|
if (m_anchor != NULL)
|
||||||
gtk_treectrl_count_callback(GTK_WIDGET(m_anchor), &count);
|
gtk_treectrl_count_callback(GTK_WIDGET(m_anchor), &count);
|
||||||
return count;
|
|
||||||
|
return (unsigned int)count;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int wxTreeCtrl::GetIndent() const {
|
unsigned int wxTreeCtrl::GetIndent() const {
|
||||||
|
@@ -152,12 +152,14 @@ static void gtk_treectrl_count_callback (GtkWidget *widget, gpointer data) {
|
|||||||
gtk_container_foreach(GTK_CONTAINER(widget), gtk_treectrl_count_callback, data);
|
gtk_container_foreach(GTK_CONTAINER(widget), gtk_treectrl_count_callback, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t wxTreeCtrl::GetCount() const {
|
unsigned int wxTreeCtrl::GetCount() const
|
||||||
int count = 0;
|
{
|
||||||
|
int count = 0;
|
||||||
|
|
||||||
if (m_anchor != NULL)
|
if (m_anchor != NULL)
|
||||||
gtk_treectrl_count_callback(GTK_WIDGET(m_anchor), &count);
|
gtk_treectrl_count_callback(GTK_WIDGET(m_anchor), &count);
|
||||||
return count;
|
|
||||||
|
return (unsigned int)count;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int wxTreeCtrl::GetIndent() const {
|
unsigned int wxTreeCtrl::GetIndent() const {
|
||||||
|
@@ -57,7 +57,7 @@ wxTreeCtrl::~wxTreeCtrl()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Attributes
|
// Attributes
|
||||||
size_t wxTreeCtrl::GetCount() const
|
unsigned int wxTreeCtrl::GetCount() const
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
return 0;
|
return 0;
|
||||||
|
@@ -55,7 +55,7 @@ wxTreeCtrl::~wxTreeCtrl()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Attributes
|
// Attributes
|
||||||
size_t wxTreeCtrl::GetCount() const
|
unsigned int wxTreeCtrl::GetCount() const
|
||||||
{
|
{
|
||||||
// TODO
|
// TODO
|
||||||
return 0;
|
return 0;
|
||||||
|
@@ -817,9 +817,9 @@ void wxTreeCtrl::DoSetItem(wxTreeViewItem* tvItem)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t wxTreeCtrl::GetCount() const
|
unsigned int wxTreeCtrl::GetCount() const
|
||||||
{
|
{
|
||||||
return (size_t)TreeView_GetCount(GetHwnd());
|
return (unsigned int)TreeView_GetCount(GetHwnd());
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int wxTreeCtrl::GetIndent() const
|
unsigned int wxTreeCtrl::GetIndent() const
|
||||||
|
@@ -492,16 +492,17 @@ void wxTreeCtrl::DoSetItem (
|
|||||||
}
|
}
|
||||||
} // end of wxTreeCtrl::DoSetItem
|
} // end of wxTreeCtrl::DoSetItem
|
||||||
|
|
||||||
size_t wxTreeCtrl::GetCount () const
|
unsigned int wxTreeCtrl::GetCount () const
|
||||||
{
|
{
|
||||||
CNRINFO vCnrInfo;
|
CNRINFO vCnrInfo;
|
||||||
|
|
||||||
::WinSendMsg( GetHWND()
|
::WinSendMsg( GetHWND()
|
||||||
,CM_QUERYCNRINFO
|
,CM_QUERYCNRINFO
|
||||||
,MPFROMP(&vCnrInfo)
|
,MPFROMP(&vCnrInfo)
|
||||||
,(MPARAM)(USHORT)sizeof(CNRINFO)
|
,(MPARAM)(USHORT)sizeof(CNRINFO)
|
||||||
);
|
);
|
||||||
return (size_t)vCnrInfo.cRecords;
|
|
||||||
|
return (unsigned int)vCnrInfo.cRecords;
|
||||||
} // end of wxTreeCtrl::GetCount
|
} // end of wxTreeCtrl::GetCount
|
||||||
|
|
||||||
unsigned int wxTreeCtrl::GetIndent () const
|
unsigned int wxTreeCtrl::GetIndent () const
|
||||||
|
@@ -210,8 +210,9 @@ void wxTreeCtrl::DoSetItem(wxTreeViewItem* tvItem)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t wxTreeCtrl::GetCount() const
|
unsigned int wxTreeCtrl::GetCount() const
|
||||||
{
|
{
|
||||||
|
// TODO
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user