2011-03-20 18:05:19 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/generic/treectlg.h
|
|
|
|
// Purpose: wxTreeCtrl class
|
|
|
|
// Author: Robert Roebling
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// Copyright: (c) 1997,1998 Robert Roebling
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _GENERIC_TREECTRL_H_
|
|
|
|
#define _GENERIC_TREECTRL_H_
|
|
|
|
|
|
|
|
#if wxUSE_TREECTRL
|
|
|
|
|
|
|
|
#include "wx/scrolwin.h"
|
|
|
|
#include "wx/pen.h"
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// forward declaration
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxGenericTreeItem;
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxTreeItemData;
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxTreeRenameTimer;
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxTreeFindTimer;
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxTreeTextCtrl;
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxTextCtrl;
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
// wxGenericTreeCtrl - the tree control
|
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxGenericTreeCtrl : public wxTreeCtrlBase,
|
|
|
|
public wxScrollHelper
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// creation
|
|
|
|
// --------
|
|
|
|
|
|
|
|
wxGenericTreeCtrl() : wxTreeCtrlBase(), wxScrollHelper(this) { Init(); }
|
|
|
|
|
|
|
|
wxGenericTreeCtrl(wxWindow *parent, wxWindowID id = wxID_ANY,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxTR_DEFAULT_STYLE,
|
|
|
|
const wxValidator &validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxTreeCtrlNameStr)
|
|
|
|
: wxTreeCtrlBase(),
|
|
|
|
wxScrollHelper(this)
|
|
|
|
{
|
|
|
|
Init();
|
|
|
|
Create(parent, id, pos, size, style, validator, name);
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual ~wxGenericTreeCtrl();
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent, wxWindowID id = wxID_ANY,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxTR_DEFAULT_STYLE,
|
|
|
|
const wxValidator &validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxTreeCtrlNameStr);
|
|
|
|
|
|
|
|
// implement base class pure virtuals
|
|
|
|
// ----------------------------------
|
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual unsigned int GetCount() const wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual unsigned int GetIndent() const wxOVERRIDE { return m_indent; }
|
|
|
|
virtual void SetIndent(unsigned int indent) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual void SetImageList(wxImageList *imageList) wxOVERRIDE;
|
|
|
|
virtual void SetStateImageList(wxImageList *imageList) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual wxString GetItemText(const wxTreeItemId& item) const wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
virtual int GetItemImage(const wxTreeItemId& item,
|
2016-06-26 05:25:29 +00:00
|
|
|
wxTreeItemIcon which = wxTreeItemIcon_Normal) const wxOVERRIDE;
|
|
|
|
virtual wxTreeItemData *GetItemData(const wxTreeItemId& item) const wxOVERRIDE;
|
|
|
|
virtual wxColour GetItemTextColour(const wxTreeItemId& item) const wxOVERRIDE;
|
|
|
|
virtual wxColour GetItemBackgroundColour(const wxTreeItemId& item) const wxOVERRIDE;
|
|
|
|
virtual wxFont GetItemFont(const wxTreeItemId& item) const wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual void SetItemText(const wxTreeItemId& item, const wxString& text) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
virtual void SetItemImage(const wxTreeItemId& item,
|
|
|
|
int image,
|
2016-06-26 05:25:29 +00:00
|
|
|
wxTreeItemIcon which = wxTreeItemIcon_Normal) wxOVERRIDE;
|
|
|
|
virtual void SetItemData(const wxTreeItemId& item, wxTreeItemData *data) wxOVERRIDE;
|
|
|
|
|
|
|
|
virtual void SetItemHasChildren(const wxTreeItemId& item, bool has = true) wxOVERRIDE;
|
|
|
|
virtual void SetItemBold(const wxTreeItemId& item, bool bold = true) wxOVERRIDE;
|
|
|
|
virtual void SetItemDropHighlight(const wxTreeItemId& item, bool highlight = true) wxOVERRIDE;
|
|
|
|
virtual void SetItemTextColour(const wxTreeItemId& item, const wxColour& col) wxOVERRIDE;
|
|
|
|
virtual void SetItemBackgroundColour(const wxTreeItemId& item, const wxColour& col) wxOVERRIDE;
|
|
|
|
virtual void SetItemFont(const wxTreeItemId& item, const wxFont& font) wxOVERRIDE;
|
|
|
|
|
|
|
|
virtual bool IsVisible(const wxTreeItemId& item) const wxOVERRIDE;
|
|
|
|
virtual bool ItemHasChildren(const wxTreeItemId& item) const wxOVERRIDE;
|
|
|
|
virtual bool IsExpanded(const wxTreeItemId& item) const wxOVERRIDE;
|
|
|
|
virtual bool IsSelected(const wxTreeItemId& item) const wxOVERRIDE;
|
|
|
|
virtual bool IsBold(const wxTreeItemId& item) const wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
virtual size_t GetChildrenCount(const wxTreeItemId& item,
|
2016-06-26 05:25:29 +00:00
|
|
|
bool recursively = true) const wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
// navigation
|
|
|
|
// ----------
|
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual wxTreeItemId GetRootItem() const wxOVERRIDE { return m_anchor; }
|
|
|
|
virtual wxTreeItemId GetSelection() const wxOVERRIDE
|
2011-03-20 18:05:19 +00:00
|
|
|
{
|
|
|
|
wxASSERT_MSG( !HasFlag(wxTR_MULTIPLE),
|
|
|
|
wxT("must use GetSelections() with this control") );
|
|
|
|
|
|
|
|
return m_current;
|
|
|
|
}
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual size_t GetSelections(wxArrayTreeItemIds&) const wxOVERRIDE;
|
|
|
|
virtual wxTreeItemId GetFocusedItem() const wxOVERRIDE { return m_current; }
|
2011-03-20 18:05:19 +00:00
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual void ClearFocusedItem() wxOVERRIDE;
|
|
|
|
virtual void SetFocusedItem(const wxTreeItemId& item) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual wxTreeItemId GetItemParent(const wxTreeItemId& item) const wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
virtual wxTreeItemId GetFirstChild(const wxTreeItemId& item,
|
2016-06-26 05:25:29 +00:00
|
|
|
wxTreeItemIdValue& cookie) const wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
virtual wxTreeItemId GetNextChild(const wxTreeItemId& item,
|
2016-06-26 05:25:29 +00:00
|
|
|
wxTreeItemIdValue& cookie) const wxOVERRIDE;
|
|
|
|
virtual wxTreeItemId GetLastChild(const wxTreeItemId& item) const wxOVERRIDE;
|
|
|
|
virtual wxTreeItemId GetNextSibling(const wxTreeItemId& item) const wxOVERRIDE;
|
|
|
|
virtual wxTreeItemId GetPrevSibling(const wxTreeItemId& item) const wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual wxTreeItemId GetFirstVisibleItem() const wxOVERRIDE;
|
|
|
|
virtual wxTreeItemId GetNextVisible(const wxTreeItemId& item) const wxOVERRIDE;
|
|
|
|
virtual wxTreeItemId GetPrevVisible(const wxTreeItemId& item) const wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
// operations
|
|
|
|
// ----------
|
|
|
|
|
|
|
|
virtual wxTreeItemId AddRoot(const wxString& text,
|
|
|
|
int image = -1, int selectedImage = -1,
|
2016-06-26 05:25:29 +00:00
|
|
|
wxTreeItemData *data = NULL) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual void Delete(const wxTreeItemId& item) wxOVERRIDE;
|
|
|
|
virtual void DeleteChildren(const wxTreeItemId& item) wxOVERRIDE;
|
|
|
|
virtual void DeleteAllItems() wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual void Expand(const wxTreeItemId& item) wxOVERRIDE;
|
|
|
|
virtual void Collapse(const wxTreeItemId& item) wxOVERRIDE;
|
|
|
|
virtual void CollapseAndReset(const wxTreeItemId& item) wxOVERRIDE;
|
|
|
|
virtual void Toggle(const wxTreeItemId& item) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual void Unselect() wxOVERRIDE;
|
|
|
|
virtual void UnselectAll() wxOVERRIDE;
|
|
|
|
virtual void SelectItem(const wxTreeItemId& item, bool select = true) wxOVERRIDE;
|
|
|
|
virtual void SelectChildren(const wxTreeItemId& parent) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual void EnsureVisible(const wxTreeItemId& item) wxOVERRIDE;
|
|
|
|
virtual void ScrollTo(const wxTreeItemId& item) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
virtual wxTextCtrl *EditLabel(const wxTreeItemId& item,
|
2016-06-26 05:25:29 +00:00
|
|
|
wxClassInfo* textCtrlClass = wxCLASSINFO(wxTextCtrl)) wxOVERRIDE;
|
|
|
|
virtual wxTextCtrl *GetEditControl() const wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
virtual void EndEditLabel(const wxTreeItemId& item,
|
2016-06-26 05:25:29 +00:00
|
|
|
bool discardChanges = false) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual void EnableBellOnNoMatch(bool on = true) wxOVERRIDE;
|
2013-09-22 22:44:55 +00:00
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual void SortChildren(const wxTreeItemId& item) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
// items geometry
|
|
|
|
// --------------
|
|
|
|
|
|
|
|
virtual bool GetBoundingRect(const wxTreeItemId& item,
|
|
|
|
wxRect& rect,
|
2016-06-26 05:25:29 +00:00
|
|
|
bool textOnly = false) const wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
// this version specific methods
|
|
|
|
// -----------------------------
|
|
|
|
|
|
|
|
wxImageList *GetButtonsImageList() const { return m_imageListButtons; }
|
|
|
|
void SetButtonsImageList(wxImageList *imageList);
|
|
|
|
void AssignButtonsImageList(wxImageList *imageList);
|
|
|
|
|
|
|
|
void SetDropEffectAboveItem( bool above = false ) { m_dropEffectAboveItem = above; }
|
|
|
|
bool GetDropEffectAboveItem() const { return m_dropEffectAboveItem; }
|
|
|
|
|
|
|
|
wxTreeItemId GetNext(const wxTreeItemId& item) const;
|
|
|
|
|
|
|
|
// implementation only from now on
|
|
|
|
|
|
|
|
// overridden base class virtuals
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual bool SetBackgroundColour(const wxColour& colour) wxOVERRIDE;
|
|
|
|
virtual bool SetForegroundColour(const wxColour& colour) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual void Refresh(bool eraseBackground = true, const wxRect *rect = NULL) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual bool SetFont( const wxFont &font ) wxOVERRIDE;
|
|
|
|
virtual void SetWindowStyleFlag(long styles) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
// callbacks
|
|
|
|
void OnPaint( wxPaintEvent &event );
|
|
|
|
void OnSetFocus( wxFocusEvent &event );
|
|
|
|
void OnKillFocus( wxFocusEvent &event );
|
|
|
|
void OnKeyDown( wxKeyEvent &event );
|
|
|
|
void OnChar( wxKeyEvent &event );
|
|
|
|
void OnMouse( wxMouseEvent &event );
|
|
|
|
void OnGetToolTip( wxTreeEvent &event );
|
|
|
|
void OnSize( wxSizeEvent &event );
|
2016-06-26 05:25:29 +00:00
|
|
|
void OnInternalIdle( ) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual wxVisualAttributes GetDefaultAttributes() const wxOVERRIDE
|
2011-03-20 18:05:19 +00:00
|
|
|
{
|
|
|
|
return GetClassDefaultAttributes(GetWindowVariant());
|
|
|
|
}
|
|
|
|
|
|
|
|
static wxVisualAttributes
|
|
|
|
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
|
|
|
|
|
|
|
// implementation helpers
|
|
|
|
void AdjustMyScrollbars();
|
|
|
|
|
|
|
|
WX_FORWARD_TO_SCROLL_HELPER()
|
|
|
|
|
|
|
|
protected:
|
|
|
|
friend class wxGenericTreeItem;
|
|
|
|
friend class wxTreeRenameTimer;
|
|
|
|
friend class wxTreeFindTimer;
|
|
|
|
friend class wxTreeTextCtrl;
|
|
|
|
|
|
|
|
wxFont m_normalFont;
|
|
|
|
wxFont m_boldFont;
|
|
|
|
|
|
|
|
wxGenericTreeItem *m_anchor;
|
|
|
|
wxGenericTreeItem *m_current,
|
|
|
|
*m_key_current,
|
|
|
|
// A hint to select a parent item after deleting a child
|
|
|
|
*m_select_me;
|
|
|
|
unsigned short m_indent;
|
|
|
|
int m_lineHeight;
|
|
|
|
wxPen m_dottedPen;
|
|
|
|
wxBrush *m_hilightBrush,
|
|
|
|
*m_hilightUnfocusedBrush;
|
|
|
|
bool m_hasFocus;
|
|
|
|
bool m_dirty;
|
|
|
|
bool m_ownsImageListButtons;
|
|
|
|
bool m_isDragging; // true between BEGIN/END drag events
|
|
|
|
bool m_lastOnSame; // last click on the same item as prev
|
|
|
|
wxImageList *m_imageListButtons;
|
|
|
|
|
|
|
|
int m_dragCount;
|
|
|
|
wxPoint m_dragStart;
|
|
|
|
wxGenericTreeItem *m_dropTarget;
|
|
|
|
wxCursor m_oldCursor; // cursor is changed while dragging
|
|
|
|
wxGenericTreeItem *m_oldSelection;
|
|
|
|
wxGenericTreeItem *m_underMouse; // for visual effects
|
|
|
|
|
|
|
|
enum { NoEffect, BorderEffect, AboveEffect, BelowEffect } m_dndEffect;
|
|
|
|
wxGenericTreeItem *m_dndEffectItem;
|
|
|
|
|
|
|
|
wxTreeTextCtrl *m_textCtrl;
|
|
|
|
|
|
|
|
|
|
|
|
wxTimer *m_renameTimer;
|
|
|
|
|
|
|
|
// incremental search data
|
|
|
|
wxString m_findPrefix;
|
|
|
|
wxTimer *m_findTimer;
|
2013-09-22 22:44:55 +00:00
|
|
|
// This flag is set to 0 if the bell is disabled, 1 if it is enabled and -1
|
|
|
|
// if it is globally enabled but has been temporarily disabled because we
|
|
|
|
// had already beeped for this particular search.
|
|
|
|
int m_findBell;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
bool m_dropEffectAboveItem;
|
|
|
|
|
|
|
|
// the common part of all ctors
|
|
|
|
void Init();
|
|
|
|
|
|
|
|
// overridden wxWindow methods
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual void DoThaw() wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
// misc helpers
|
|
|
|
void SendDeleteEvent(wxGenericTreeItem *itemBeingDeleted);
|
|
|
|
|
|
|
|
void DrawBorder(const wxTreeItemId& item);
|
|
|
|
void DrawLine(const wxTreeItemId& item, bool below);
|
|
|
|
void DrawDropEffect(wxGenericTreeItem *item);
|
|
|
|
|
|
|
|
void DoSelectItem(const wxTreeItemId& id,
|
|
|
|
bool unselect_others = true,
|
|
|
|
bool extended_select = false);
|
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual int DoGetItemState(const wxTreeItemId& item) const wxOVERRIDE;
|
|
|
|
virtual void DoSetItemState(const wxTreeItemId& item, int state) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
virtual wxTreeItemId DoInsertItem(const wxTreeItemId& parent,
|
|
|
|
size_t previous,
|
|
|
|
const wxString& text,
|
|
|
|
int image,
|
|
|
|
int selectedImage,
|
2016-06-26 05:25:29 +00:00
|
|
|
wxTreeItemData *data) wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
virtual wxTreeItemId DoInsertAfter(const wxTreeItemId& parent,
|
|
|
|
const wxTreeItemId& idPrevious,
|
|
|
|
const wxString& text,
|
|
|
|
int image = -1, int selImage = -1,
|
2016-06-26 05:25:29 +00:00
|
|
|
wxTreeItemData *data = NULL) wxOVERRIDE;
|
|
|
|
virtual wxTreeItemId DoTreeHitTest(const wxPoint& point, int& flags) const wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
// called by wxTextTreeCtrl when it marks itself for deletion
|
|
|
|
void ResetTextControl();
|
|
|
|
|
|
|
|
// find the first item starting with the given prefix after the given item
|
|
|
|
wxTreeItemId FindItem(const wxTreeItemId& id, const wxString& prefix) const;
|
|
|
|
|
|
|
|
bool HasButtons() const { return HasFlag(wxTR_HAS_BUTTONS); }
|
|
|
|
|
|
|
|
void CalculateLineHeight();
|
|
|
|
int GetLineHeight(wxGenericTreeItem *item) const;
|
|
|
|
void PaintLevel( wxGenericTreeItem *item, wxDC& dc, int level, int &y );
|
|
|
|
void PaintItem( wxGenericTreeItem *item, wxDC& dc);
|
|
|
|
|
|
|
|
void CalculateLevel( wxGenericTreeItem *item, wxDC &dc, int level, int &y );
|
|
|
|
void CalculatePositions();
|
|
|
|
|
|
|
|
void RefreshSubtree( wxGenericTreeItem *item );
|
|
|
|
void RefreshLine( wxGenericTreeItem *item );
|
|
|
|
|
|
|
|
// redraw all selected items
|
|
|
|
void RefreshSelected();
|
|
|
|
|
|
|
|
// RefreshSelected() recursive helper
|
|
|
|
void RefreshSelectedUnder(wxGenericTreeItem *item);
|
|
|
|
|
|
|
|
void OnRenameTimer();
|
|
|
|
bool OnRenameAccept(wxGenericTreeItem *item, const wxString& value);
|
|
|
|
void OnRenameCancelled(wxGenericTreeItem *item);
|
|
|
|
|
|
|
|
void FillArray(wxGenericTreeItem*, wxArrayTreeItemIds&) const;
|
|
|
|
void SelectItemRange( wxGenericTreeItem *item1, wxGenericTreeItem *item2 );
|
|
|
|
bool TagAllChildrenUntilLast(wxGenericTreeItem *crt_item, wxGenericTreeItem *last_item, bool select);
|
|
|
|
bool TagNextChildren(wxGenericTreeItem *crt_item, wxGenericTreeItem *last_item, bool select);
|
|
|
|
void UnselectAllChildren( wxGenericTreeItem *item );
|
|
|
|
void ChildrenClosing(wxGenericTreeItem* item);
|
|
|
|
|
|
|
|
void DoDirtyProcessing();
|
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
private:
|
2013-09-22 22:44:55 +00:00
|
|
|
// Reset the state of the last find (i.e. keyboard incremental search)
|
|
|
|
// operation.
|
|
|
|
void ResetFindState();
|
|
|
|
|
2016-06-26 05:25:29 +00:00
|
|
|
wxDECLARE_EVENT_TABLE();
|
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxGenericTreeCtrl);
|
2011-03-20 18:05:19 +00:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxGenericTreeCtrl);
|
|
|
|
};
|
|
|
|
|
|
|
|
#if !defined(__WXMSW__) || defined(__WXUNIVERSAL__)
|
|
|
|
/*
|
|
|
|
* wxTreeCtrl has to be a real class or we have problems with
|
|
|
|
* the run-time information.
|
|
|
|
*/
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxTreeCtrl: public wxGenericTreeCtrl
|
|
|
|
{
|
2016-06-26 05:25:29 +00:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxTreeCtrl);
|
2011-03-20 18:05:19 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
wxTreeCtrl() {}
|
|
|
|
|
|
|
|
wxTreeCtrl(wxWindow *parent, wxWindowID id = wxID_ANY,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxTR_DEFAULT_STYLE,
|
|
|
|
const wxValidator &validator = wxDefaultValidator,
|
|
|
|
const wxString& name = wxTreeCtrlNameStr)
|
|
|
|
: wxGenericTreeCtrl(parent, id, pos, size, style, validator, name)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
};
|
|
|
|
#endif // !__WXMSW__ || __WXUNIVERSAL__
|
|
|
|
|
|
|
|
#endif // wxUSE_TREECTRL
|
|
|
|
|
|
|
|
#endif // _GENERIC_TREECTRL_H_
|