X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e0062c047ecb5a7d4790b980777dfa70869f4834..333e57d578e9e0fb6555452b5a53698ffd85ee69:/include/wx/gtk/dataview.h?ds=sidebyside diff --git a/include/wx/gtk/dataview.h b/include/wx/gtk/dataview.h index 70dd914559..197a8e713d 100644 --- a/include/wx/gtk/dataview.h +++ b/include/wx/gtk/dataview.h @@ -19,7 +19,8 @@ // classes // --------------------------------------------------------- -class WXDLLIMPEXP_CORE wxDataViewCtrl; +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();