mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 15:49:50 -06:00
wxWidgets3: update to svn r70933
This commit is contained in:
29
Externals/wxWidgets3/include/wx/gtk/dataview.h
vendored
29
Externals/wxWidgets3/include/wx/gtk/dataview.h
vendored
@ -2,7 +2,7 @@
|
||||
// Name: wx/gtk/dataview.h
|
||||
// Purpose: wxDataViewCtrl GTK+2 implementation header
|
||||
// Author: Robert Roebling
|
||||
// Id: $Id: dataview.h 65562 2010-09-17 19:07:02Z RR $
|
||||
// Id: $Id: dataview.h 70377 2012-01-17 14:05:17Z VS $
|
||||
// Copyright: (c) 1998 Robert Roebling
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
@ -44,9 +44,8 @@ public:
|
||||
|
||||
virtual void SetSortable( bool sortable );
|
||||
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 );
|
||||
@ -76,8 +75,7 @@ public:
|
||||
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
|
||||
@ -143,7 +141,7 @@ public:
|
||||
|
||||
virtual wxDataViewColumn *GetSortingColumn() const;
|
||||
|
||||
virtual wxDataViewItem GetSelection() const;
|
||||
virtual int GetSelectedItemsCount() const;
|
||||
virtual int GetSelections( wxDataViewItemArray & sel ) const;
|
||||
virtual void SetSelections( const wxDataViewItemArray & sel );
|
||||
virtual void Select( const wxDataViewItem & item );
|
||||
@ -160,6 +158,10 @@ public:
|
||||
virtual wxRect GetItemRect( const wxDataViewItem &item,
|
||||
const wxDataViewColumn *column = NULL ) const;
|
||||
|
||||
virtual bool SetRowHeight( int rowHeight );
|
||||
|
||||
virtual void EditItem(const wxDataViewItem& item, const wxDataViewColumn *column);
|
||||
|
||||
virtual void Expand( const wxDataViewItem & item );
|
||||
virtual void Collapse( const wxDataViewItem & item );
|
||||
virtual bool IsExpanded( const wxDataViewItem & item ) const;
|
||||
@ -167,6 +169,8 @@ public:
|
||||
virtual bool EnableDragSource( const wxDataFormat &format );
|
||||
virtual bool EnableDropTarget( const wxDataFormat &format );
|
||||
|
||||
virtual wxDataViewColumn *GetCurrentColumn() const;
|
||||
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
|
||||
@ -181,6 +185,8 @@ public:
|
||||
|
||||
virtual void OnInternalIdle();
|
||||
|
||||
int GTKGetUniformRowHeight() const { return m_uniformRowHeight; }
|
||||
|
||||
protected:
|
||||
virtual void DoSetExpanderColumn();
|
||||
virtual void DoSetIndent();
|
||||
@ -193,6 +199,12 @@ private:
|
||||
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 wxDataViewCtrlInternal;
|
||||
@ -202,6 +214,11 @@ private:
|
||||
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();
|
||||
void GtkDisableSelectionEvents();
|
||||
|
Reference in New Issue
Block a user