virtual void SetSortOrder( bool ascending );
virtual void SetAsSortKey(bool sort = true);
- virtual void SetResizeable( bool resizeable );
+ virtual void SetResizeable( bool resizable );
virtual void SetHidden( bool hidden );
virtual void SetMinWidth( int minWidth );
virtual int GetFlags() const { return GetFromIndividualFlags(); }
// implementation
- GtkWidget* GetGtkHandle() { return m_column; }
- GtkWidget* GetConstGtkHandle() const { return m_column; }
+ GtkWidget* GetGtkHandle() const { return m_column; }
private:
// holds the GTK handle
virtual wxRect GetItemRect( const wxDataViewItem &item,
const wxDataViewColumn *column = NULL ) const;
+ virtual bool SetRowHeight( int rowHeight );
+
+ virtual void StartEditor( const wxDataViewItem & item, unsigned int column );
+
virtual void Expand( const wxDataViewItem & item );
virtual void Collapse( const wxDataViewItem & item );
virtual bool IsExpanded( const wxDataViewItem & item ) const;
virtual void OnInternalIdle();
+ int GTKGetUniformRowHeight() const { return m_uniformRowHeight; }
+
protected:
virtual void DoSetExpanderColumn();
virtual void DoSetIndent();
virtual wxDataViewItem DoGetCurrentItem() const;
virtual void DoSetCurrentItem(const wxDataViewItem& item);
+ // Return wxDataViewColumn matching the given GtkTreeViewColumn.
+ //
+ // If the input argument is NULL, return NULL too. Otherwise we must find
+ // the matching column and assert if we didn't.
+ wxDataViewColumn* FromGTKColumn(GtkTreeViewColumn *gtk_col) const;
+
friend class wxDataViewCtrlDCImpl;
friend class wxDataViewColumn;
- friend class wxGtkDataViewModelNotifier;
friend class wxDataViewCtrlInternal;
GtkWidget *m_treeview;
- wxDataViewModelNotifier *m_notifier;
wxDataViewCtrlInternal *m_internal;
wxDataViewColumnList m_cols;
+ wxDataViewItem m_ensureVisibleDefered;
+
+ // By default this is set to -1 and the height of the rows is determined by
+ // GetRect() methods of the renderers but this can be set to a positive
+ // value to force the height of all rows to the given value.
+ int m_uniformRowHeight;
virtual void AddChildGTK(wxWindowGTK* child);
void GtkEnableSelectionEvents();