// implement base class pure virtuals
// ----------------------------------
- virtual size_t GetCount() const;
+ virtual unsigned int GetCount() const;
virtual unsigned int GetIndent() const { return m_indent; }
virtual void SetIndent(unsigned int indent);
/////////////////////////////////////////////////////////////////////////////
-// Name: treectrl.h
+// Name: wx/gtk/treectrl.h
// Purpose: wxTreeCtrl class
// Author: Denis Pershin
// Modified by:
// ---------
// 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
// the parents position. SetIndent() also redraws 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
// the parents position. SetIndent() also redraws the control
// accessors
// ---------
//
- size_t GetCount() const;
+ virtual unsigned int GetCount() const;
// indent
int GetIndent() const;
// accessors
// ---------
//
- size_t GetCount() const;
+ virtual unsigned int GetCount() const;
// indent
int GetIndent() const;
// implement base class pure virtuals
// ----------------------------------
- virtual size_t GetCount() const;
+ virtual unsigned int GetCount() const;
virtual unsigned int GetIndent() const;
virtual void SetIndent(unsigned int indent);
//
// 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
// ---------
// 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
// the parents position. SetIndent() also redraws 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
// the parents position. SetIndent() also redraws the control
// accessors
// -----------------------------------------------------------------------------
-size_t wxGenericTreeCtrl::GetCount() const
+unsigned int wxGenericTreeCtrl::GetCount() const
{
if ( !m_anchor )
{
return 0;
}
- size_t count = m_anchor->GetChildrenCount();
+ unsigned int count = m_anchor->GetChildrenCount();
if ( !HasFlag(wxTR_HIDE_ROOT) )
{
// take the root itself into account
gtk_container_foreach(GTK_CONTAINER(widget), gtk_treectrl_count_callback, data);
}
-size_t wxTreeCtrl::GetCount() const {
- int count = 0;
+unsigned int wxTreeCtrl::GetCount() const
+{
+ int count = 0;
+
+ if (m_anchor != NULL)
+ gtk_treectrl_count_callback(GTK_WIDGET(m_anchor), &count);
- if (m_anchor != NULL)
- gtk_treectrl_count_callback(GTK_WIDGET(m_anchor), &count);
- return count;
+ return (unsigned int)count;
}
unsigned int wxTreeCtrl::GetIndent() const {
gtk_container_foreach(GTK_CONTAINER(widget), gtk_treectrl_count_callback, data);
}
-size_t wxTreeCtrl::GetCount() const {
- int count = 0;
+unsigned int wxTreeCtrl::GetCount() const
+{
+ int count = 0;
+
+ if (m_anchor != NULL)
+ gtk_treectrl_count_callback(GTK_WIDGET(m_anchor), &count);
- if (m_anchor != NULL)
- gtk_treectrl_count_callback(GTK_WIDGET(m_anchor), &count);
- return count;
+ return (unsigned int)count;
}
unsigned int wxTreeCtrl::GetIndent() const {
}
// Attributes
-size_t wxTreeCtrl::GetCount() const
+unsigned int wxTreeCtrl::GetCount() const
{
// TODO
return 0;
}
// Attributes
-size_t wxTreeCtrl::GetCount() const
+unsigned int wxTreeCtrl::GetCount() const
{
// TODO
return 0;
}
}
-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
}
} // end of wxTreeCtrl::DoSetItem
-size_t wxTreeCtrl::GetCount () const
+unsigned int wxTreeCtrl::GetCount () const
{
- CNRINFO vCnrInfo;
+ CNRINFO vCnrInfo;
::WinSendMsg( GetHWND()
,CM_QUERYCNRINFO
,MPFROMP(&vCnrInfo)
,(MPARAM)(USHORT)sizeof(CNRINFO)
);
- return (size_t)vCnrInfo.cRecords;
+
+ return (unsigned int)vCnrInfo.cRecords;
} // end of wxTreeCtrl::GetCount
unsigned int wxTreeCtrl::GetIndent () const
{
}
-size_t wxTreeCtrl::GetCount() const
+unsigned int wxTreeCtrl::GetCount() const
{
+ // TODO
return 0;
}