#if defined(__WXGTK20__)
// for testing
-// #define wxUSE_GENERICDATAVIEWCTRL 1
+ #define wxUSE_GENERICDATAVIEWCTRL 1
#elif defined(__WXMAC__)
#define wxUSE_GENERICDATAVIEWCTRL 1
#else
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 );
virtual int GetWidth() = 0;
- virtual void SetFixedWidth( int width ) = 0;
- virtual int GetFixedWidth() = 0;
-
private:
wxDataViewCtrl *m_ctrl;
wxDataViewCell *m_cell;