Implemented wxDataViewColumn for wxOSX/Cocoa

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2010-06-10 12:43:09 +00:00
parent fb0165dfff
commit f6cb92b81f
3 changed files with 25 additions and 2 deletions

View File

@ -49,14 +49,14 @@ public:
virtual int GetMinWidth() const { return m_minWidth; }
virtual wxString GetTitle() const { return m_title; }
virtual int GetWidth() const;
virtual bool IsHidden() const { return false; } // TODO
virtual bool IsSortOrderAscending() const { return m_ascending; }
virtual bool IsSortKey() const;
virtual bool IsHidden() const;
virtual void SetAlignment (wxAlignment align);
virtual void SetBitmap (wxBitmap const& bitmap);
virtual void SetFlags (int flags) { SetIndividualFlags(flags); }
virtual void SetHidden (bool WXUNUSED(hidden)) { } // TODO
virtual void SetHidden (bool hidden);
virtual void SetMaxWidth (int maxWidth);
virtual void SetMinWidth (int minWidth);
virtual void SetReorderable(bool reorderable);

View File

@ -2750,6 +2750,17 @@ void wxDataViewColumn::SetWidth(int width)
}
}
void wxDataViewColumn::SetHidden(bool WXUNUSED(hidden))
{
// How to do that?
}
bool wxDataViewColumn::IsHidden() const
{
return true;
}
void wxDataViewColumn::SetAsSortKey(bool WXUNUSED(sort))
{
// see wxGTK native wxDataViewColumn implementation

View File

@ -2937,6 +2937,18 @@ void wxDataViewColumn::SetReorderable(bool reorderable)
{
}
void wxDataViewColumn::SetHidden(bool hidden)
{
// How to set flag here?
[m_NativeDataPtr->GetNativeColumnPtr() setHidden:hidden];
}
bool wxDataViewColumn::IsHidden() const
{
return [m_NativeDataPtr->GetNativeColumnPtr() isHidden];
}
void wxDataViewColumn::SetResizeable(bool resizeable)
{
wxDataViewColumnBase::SetResizeable(resizeable);