Removed some irritating flags.
Implmented the remaining ones under GTK. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		| @@ -253,18 +253,11 @@ enum wxDataViewColumnFlags | ||||
|     wxDATAVIEW_COL_HIDDEN     = 4 | ||||
| }; | ||||
|  | ||||
| enum wxDataViewColumnSizing | ||||
| { | ||||
|     wxDATAVIEW_COL_WIDTH_FIXED, | ||||
|     wxDATAVIEW_COL_WIDTH_AUTO, | ||||
|     wxDATAVIEW_COL_WIDTH_GROW | ||||
| }; | ||||
|  | ||||
| class WXDLLIMPEXP_ADV wxDataViewColumnBase: public wxObject | ||||
| { | ||||
| public: | ||||
|     wxDataViewColumnBase( const wxString &title, wxDataViewCell *cell, size_t model_column, | ||||
|         int fixed_width = 80, wxDataViewColumnSizing sizing = wxDATAVIEW_COL_WIDTH_FIXED, int flags = 0 ); | ||||
|         int width = 80, int flags = wxDATAVIEW_COL_RESIZABLE ); | ||||
|     virtual ~wxDataViewColumnBase(); | ||||
|  | ||||
|     virtual void SetTitle( const wxString &title ); | ||||
| @@ -279,9 +272,6 @@ public: | ||||
|  | ||||
|     virtual int GetWidth() = 0; | ||||
|  | ||||
|     virtual void SetFixedWidth( int width ) = 0; | ||||
|     virtual int GetFixedWidth() = 0; | ||||
|  | ||||
| private: | ||||
|     wxDataViewCtrl          *m_ctrl; | ||||
|     wxDataViewCell          *m_cell; | ||||
|   | ||||
| @@ -215,19 +215,15 @@ class WXDLLIMPEXP_ADV wxDataViewColumn: public wxDataViewColumnBase | ||||
| { | ||||
| public: | ||||
|     wxDataViewColumn( const wxString &title, wxDataViewCell *cell, size_t model_column,  | ||||
|         int fixed_width = 80, wxDataViewColumnSizing sizing = wxDATAVIEW_COL_WIDTH_FIXED, int flags = 0 ); | ||||
|         int width = 80, int flags = wxDATAVIEW_COL_RESIZABLE ); | ||||
|     virtual ~wxDataViewColumn(); | ||||
|  | ||||
|     virtual void SetTitle( const wxString &title ); | ||||
|  | ||||
|     virtual int GetWidth(); | ||||
|  | ||||
|     virtual void SetFixedWidth( int width ); | ||||
|     virtual int GetFixedWidth(); | ||||
|      | ||||
| private: | ||||
|     int                      m_width; | ||||
|     wxDataViewColumnSizing   m_sizing; | ||||
|     int                      m_fixedWidth; | ||||
|  | ||||
| protected: | ||||
|   | ||||
| @@ -189,7 +189,7 @@ class WXDLLIMPEXP_CORE wxDataViewColumn: public wxDataViewColumnBase | ||||
| { | ||||
| public: | ||||
|     wxDataViewColumn( const wxString &title, wxDataViewCell *cell, size_t model_column, | ||||
|         int fixed_width = 80, wxDataViewColumnSizing sizing = wxDATAVIEW_COL_WIDTH_FIXED, int flags = 0 ); | ||||
|         int width = 80, int flags = wxDATAVIEW_COL_RESIZABLE ); | ||||
|     virtual ~wxDataViewColumn(); | ||||
|  | ||||
|     virtual void SetTitle( const wxString &title ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user