X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5dbe15d0bacde245539f54c4d97af6b4696f01f..333e57d578e9e0fb6555452b5a53698ffd85ee69:/include/wx/gtk/dataview.h diff --git a/include/wx/gtk/dataview.h b/include/wx/gtk/dataview.h index c9e544bb91..197a8e713d 100644 --- a/include/wx/gtk/dataview.h +++ b/include/wx/gtk/dataview.h @@ -20,6 +20,7 @@ // --------------------------------------------------------- class WXDLLIMPEXP_FWD_CORE wxDataViewCtrl; +class WXDLLIMPEXP_FWD_CORE wxDataViewCtrlInternal; // --------------------------------------------------------- @@ -304,21 +305,31 @@ public: virtual bool AssociateModel( wxDataViewModel *model ); virtual bool AppendColumn( wxDataViewColumn *col ); - + // selection code + virtual wxDataViewItem GetSelection(); + static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); - GtkWidget *GtkGetTreeView() { return m_treeview; } wxWindow *GetMainWindow() { return (wxWindow*) this; } + GtkWidget *GtkGetTreeView() { return m_treeview; } + wxDataViewCtrlInternal* GtkGetInternal() { return m_internal; } + +protected: + virtual void DoSetExpanderColumn(); + virtual void DoSetIndent(); + private: friend class wxDataViewCtrlDC; friend class wxDataViewColumn; friend class wxGtkDataViewModelNotifier; GtkWidget *m_treeview; wxDataViewModelNotifier *m_notifier; + wxDataViewCtrlInternal *m_internal; + virtual void OnInternalIdle();