void SetSpacing(unsigned int spacing);
// image list: these functions allow to associate an image list with
- // the control and retrieve it. Note that when assigned with
+ // the control and retrieve it. Note that when assigned with
// SetImageList, the control does _not_ delete
// the associated image list when it's deleted in order to allow image
- // lists to be shared between different controls. If you use
+ // lists to be shared between different controls. If you use
// AssignImageList, the control _does_ delete the image list.
//
// The normal image list is for the icons which correspond to the
// Only for internal use right now, but should probably be public
wxTreeItemId GetNext(const wxTreeItemId& item) const;
- wxTreeItemId GetPrev(const wxTreeItemId& item) const;
// operations
// ----------
// implementation only from now on
+ // overridden base class virtuals
+ virtual bool SetBackgroundColour(const wxColour& colour);
+ virtual bool SetForegroundColour(const wxColour& colour);
+
// callbacks
void OnPaint( wxPaintEvent &event );
void OnSetFocus( wxFocusEvent &event );
unsigned short m_spacing;
int m_lineHeight;
wxPen m_dottedPen;
- wxBrush *m_hilightBrush;
+ wxBrush *m_hilightBrush,
+ *m_hilightUnfocusedBrush;
bool m_hasFocus;
bool m_dirty;
- bool m_ownsImageListNormal,
+ bool m_ownsImageListNormal,
m_ownsImageListState,
m_ownsImageListButtons;
bool m_isDragging; // true between BEGIN/END drag events
wxTimer *m_renameTimer;
wxString m_renameRes;
+
+ wxBitmap *m_arrowRight,*m_arrowDown;
// the common part of all ctors
void Init();
void RefreshSubtree( wxGenericTreeItem *item );
void RefreshLine( wxGenericTreeItem *item );
+ // redraw all selected items
+ void RefreshSelected();
+
+ // RefreshSelected() recursive helper
+ void RefreshSelectedUnder(wxGenericTreeItem *item);
+
void OnRenameTimer();
void OnRenameAccept();