git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38351
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
17 files changed:
// 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 void SetIndent(unsigned int indent);
virtual unsigned int GetIndent() const { return m_indent; }
virtual void SetIndent(unsigned int indent);
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: wx/gtk/treectrl.h
// Purpose: wxTreeCtrl class
// Author: Denis Pershin
// Modified by:
// Purpose: wxTreeCtrl class
// Author: Denis Pershin
// Modified by:
// ---------
// 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
// the parents position. SetIndent() also redraws the control
// 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
// ---------
// 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
// indent is the number of pixels the children are indented relative to
// the parents position. SetIndent() also redraws the control
// accessors
// ---------
//
// accessors
// ---------
//
- size_t GetCount() const;
+ virtual unsigned int GetCount() const;
// indent
int GetIndent() const;
// indent
int GetIndent() const;
// accessors
// ---------
//
// accessors
// ---------
//
- size_t GetCount() const;
+ virtual unsigned int GetCount() const;
// indent
int GetIndent() const;
// indent
int GetIndent() const;
// 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 void SetIndent(unsigned int indent);
virtual unsigned int GetIndent() const;
virtual void SetIndent(unsigned int indent);
//
// 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
// ---------
// 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
// the parents position. SetIndent() also redraws the control
// 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
// ---------
// 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
// indent is the number of pixels the children are indented relative to
// the parents position. SetIndent() also redraws the control
// accessors
// -----------------------------------------------------------------------------
// accessors
// -----------------------------------------------------------------------------
-size_t wxGenericTreeCtrl::GetCount() const
+unsigned int wxGenericTreeCtrl::GetCount() const
- size_t count = m_anchor->GetChildrenCount();
+ unsigned int count = m_anchor->GetChildrenCount();
if ( !HasFlag(wxTR_HIDE_ROOT) )
{
// take the root itself into account
if ( !HasFlag(wxTR_HIDE_ROOT) )
{
// take the root itself into account
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 {
- 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 {
}
unsigned int wxTreeCtrl::GetIndent() const {
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 {
- 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 {
}
unsigned int wxTreeCtrl::GetIndent() const {
-size_t wxTreeCtrl::GetCount() const
+unsigned int wxTreeCtrl::GetCount() const
-size_t wxTreeCtrl::GetCount() const
+unsigned int wxTreeCtrl::GetCount() const
-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
}
} // end of wxTreeCtrl::DoSetItem
}
} // end of wxTreeCtrl::DoSetItem
-size_t wxTreeCtrl::GetCount () const
+unsigned int wxTreeCtrl::GetCount () const
::WinSendMsg( GetHWND()
,CM_QUERYCNRINFO
,MPFROMP(&vCnrInfo)
,(MPARAM)(USHORT)sizeof(CNRINFO)
);
::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
} // end of wxTreeCtrl::GetCount
unsigned int wxTreeCtrl::GetIndent () const
-size_t wxTreeCtrl::GetCount() const
+unsigned int wxTreeCtrl::GetCount() const