git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38019
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual void ClearStyleStack();
/// Get the size of the style stack, for example to check correct nesting
virtual void ClearStyleStack();
/// Get the size of the style stack, for example to check correct nesting
- virtual int GetStyleStackSize() const { return m_attributeStack.GetCount(); }
+ virtual size_t GetStyleStackSize() const { return m_attributeStack.GetCount(); }
/// Begin using bold
bool BeginBold();
/// Begin using bold
bool BeginBold();
// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
- m_windowId = (id == -1) ? NewControlId() : id;
+ m_windowId = (id == wxID_ANY) ? NewControlId() : id;
if (parent)
parent->AddChild(this);
if (parent)
parent->AddChild(this);
-int wxTreeCtrl::GetCount() const
+size_t wxTreeCtrl::GetCount() const
m_code = 0;
m_oldItem = 0;
}
m_code = 0;
m_oldItem = 0;
}
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/mac/classic/treectrl.cpp
// Purpose: wxTreeCtrl. See also Robert's generic wxTreeCtrl.
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Purpose: wxTreeCtrl. See also Robert's generic wxTreeCtrl.
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/stubs/textctrl.h"
/////////////////////////////////////////////////////////////////////////////
#include "wx/stubs/textctrl.h"
- m_windowId = (id == -1) ? NewControlId() : id;
+ m_windowId = (id == wxID_ANY) ? NewControlId() : id;
if (parent) parent->AddChild(this);
// TODO create tree control
if (parent) parent->AddChild(this);
// TODO create tree control
}
wxTreeCtrl::~wxTreeCtrl()
}
wxTreeCtrl::~wxTreeCtrl()
-int wxTreeCtrl::GetCount() const
+size_t wxTreeCtrl::GetCount() const
bool wxTreeCtrl::ItemHasChildren(long item) const
{
// TODO
bool wxTreeCtrl::ItemHasChildren(long item) const
{
// TODO
}
long wxTreeCtrl::GetChild(long item) const
}
long wxTreeCtrl::GetChild(long item) const
bool wxTreeCtrl::GetItem(wxTreeItem& info) const
{
// TODO
bool wxTreeCtrl::GetItem(wxTreeItem& info) const
{
// TODO
}
bool wxTreeCtrl::SetItem(wxTreeItem& info)
{
// TODO
}
bool wxTreeCtrl::SetItem(wxTreeItem& info)
{
// TODO
}
int wxTreeCtrl::GetItemState(long item, long stateMask) const
}
int wxTreeCtrl::GetItemState(long item, long stateMask) const
info.m_itemId = item;
if (!GetItem(info))
info.m_itemId = item;
if (!GetItem(info))
bool wxTreeCtrl::GetItemRect(long item, wxRect& rect, bool textOnly) const
{
// TODO
bool wxTreeCtrl::GetItemRect(long item, wxRect& rect, bool textOnly) const
{
// TODO
}
wxTextCtrl* wxTreeCtrl::GetEditControl() const
}
wxTextCtrl* wxTreeCtrl::GetEditControl() const
bool wxTreeCtrl::DeleteItem(long item)
{
// TODO
bool wxTreeCtrl::DeleteItem(long item)
{
// TODO
}
bool wxTreeCtrl::ExpandItem(long item, int action)
}
bool wxTreeCtrl::ExpandItem(long item, int action)
{
case wxTREE_EXPAND_EXPAND:
break;
{
case wxTREE_EXPAND_EXPAND:
break;
case wxTREE_EXPAND_COLLAPSE:
break;
case wxTREE_EXPAND_COLLAPSE:
break;
case wxTREE_EXPAND_COLLAPSE_RESET:
break;
case wxTREE_EXPAND_COLLAPSE_RESET:
break;
case wxTREE_EXPAND_TOGGLE:
break;
case wxTREE_EXPAND_TOGGLE:
break;
default:
wxFAIL_MSG("unknown action in wxTreeCtrl::ExpandItem");
}
default:
wxFAIL_MSG("unknown action in wxTreeCtrl::ExpandItem");
}
-
- bool bOk = FALSE; // TODO expand item
-
+
+ bool bOk = false; // TODO expand item
+
// May not send messages, so emulate them
if ( bOk ) {
wxTreeEvent event(wxEVT_NULL, m_windowId);
// May not send messages, so emulate them
if ( bOk ) {
wxTreeEvent event(wxEVT_NULL, m_windowId);
event.m_item.m_mask =
event.m_item.m_stateMask = 0xffff; // get all
GetItem(event.m_item);
event.m_item.m_mask =
event.m_item.m_stateMask = 0xffff; // get all
GetItem(event.m_item);
bool bIsExpanded = (event.m_item.m_state & wxTREE_STATE_EXPANDED) != 0;
bool bIsExpanded = (event.m_item.m_state & wxTREE_STATE_EXPANDED) != 0;
event.m_code = action;
event.SetEventObject(this);
event.m_code = action;
event.SetEventObject(this);
// @@@ return values of {EXPAND|COLLAPS}ING event handler is discarded
event.SetEventType(bIsExpanded ? wxEVT_COMMAND_TREE_ITEM_EXPANDING
: wxEVT_COMMAND_TREE_ITEM_COLLAPSING);
GetEventHandler()->ProcessEvent(event);
// @@@ return values of {EXPAND|COLLAPS}ING event handler is discarded
event.SetEventType(bIsExpanded ? wxEVT_COMMAND_TREE_ITEM_EXPANDING
: wxEVT_COMMAND_TREE_ITEM_COLLAPSING);
GetEventHandler()->ProcessEvent(event);
event.SetEventType(bIsExpanded ? wxEVT_COMMAND_TREE_ITEM_EXPANDED
: wxEVT_COMMAND_TREE_ITEM_COLLAPSED);
GetEventHandler()->ProcessEvent(event);
}
event.SetEventType(bIsExpanded ? wxEVT_COMMAND_TREE_ITEM_EXPANDED
: wxEVT_COMMAND_TREE_ITEM_COLLAPSED);
GetEventHandler()->ProcessEvent(event);
}
bool wxTreeCtrl::SelectItem(long item)
{
// TODO
bool wxTreeCtrl::SelectItem(long item)
{
// TODO
}
bool wxTreeCtrl::ScrollTo(long item)
{
// TODO
}
bool wxTreeCtrl::ScrollTo(long item)
{
// TODO
}
bool wxTreeCtrl::DeleteAllItems()
{
// TODO
}
bool wxTreeCtrl::DeleteAllItems()
{
// TODO
}
wxTextCtrl* wxTreeCtrl::EditLabel(long item, wxClassInfo* textControlClass)
}
wxTextCtrl* wxTreeCtrl::EditLabel(long item, wxClassInfo* textControlClass)
bool wxTreeCtrl::EndEditLabel(bool cancel)
{
// TODO
bool wxTreeCtrl::EndEditLabel(bool cancel)
{
// TODO
}
long wxTreeCtrl::HitTest(const wxPoint& point, int& flags)
}
long wxTreeCtrl::HitTest(const wxPoint& point, int& flags)
bool wxTreeCtrl::SortChildren(long item)
{
// TODO
bool wxTreeCtrl::SortChildren(long item)
{
// TODO
}
bool wxTreeCtrl::EnsureVisible(long item)
{
// TODO
}
bool wxTreeCtrl::EnsureVisible(long item)
{
// TODO
m_code = 0;
m_oldItem = 0;
}
m_code = 0;
m_oldItem = 0;
}
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/mac/corefoundation/hid.cpp
// Purpose: DARWIN HID layer for WX Implementation
// Author: Ryan Norton
// Modified by:
// Purpose: DARWIN HID layer for WX Implementation
// Author: Ryan Norton
// Modified by:
return true;
}//end Create()
return true;
}//end Create()
-int wxHIDDevice::GetCount (int nClass, int nType)
+size_t wxHIDDevice::GetCount (int nClass, int nType)
//Now we iterate through them
io_object_t pObject;
//Now we iterate through them
io_object_t pObject;
while ( (pObject = IOIteratorNext(pIterator)) != 0)
++nCount;
while ( (pObject = IOIteratorNext(pIterator)) != 0)
++nCount;