virtual int GetWidth() const { return m_width; }
virtual bool IsHidden() const { return false; } // TODO
virtual bool IsSortOrderAscending() const { return m_ascending; }
+ virtual bool IsSortKey() const;
virtual void SetAlignment(wxAlignment align);
virtual void SetBitmap (wxBitmap const& bitmap);
virtual void SetSortOrder (bool ascending);
virtual void SetTitle (wxString const& title);
virtual void SetWidth (int width);
+ virtual void SetAsSortKey(bool sort = true);
// implementation only
WXDataBrowserPropertyID GetPropertyID() const
{
this->Init();
}
- wxDataViewCtrl(wxWindow *parent, wxWindowID id, wxPoint const& pos = wxDefaultPosition, wxSize const& size = wxDefaultSize, long style = 0,
- wxValidator const& validator = wxDefaultValidator)
+ wxDataViewCtrl(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0,
+ const wxValidator& validator = wxDefaultValidator)
{
this->Init();
this->Create(parent, id, pos, size, style, validator );
~wxDataViewCtrl();
// explicit control creation
- bool Create(wxWindow *parent, wxWindowID id, wxPoint const& pos=wxDefaultPosition, wxSize const& size=wxDefaultSize, long style=0,
- wxValidator const& validator=wxDefaultValidator);
+ bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize, long style=0,
+ const wxValidator& validator=wxDefaultValidator);
virtual wxControl* GetMainWindow() // should disappear as it is not of any use for the native implementation
{
virtual bool AppendColumn(wxDataViewColumn* columnPtr);
virtual bool PrependColumn(wxDataViewColumn* columnPtr);
- virtual bool InsertColumn( unsigned int pos, wxDataViewColumn *col );
+ virtual bool InsertColumn(unsigned int pos, wxDataViewColumn *col);
virtual bool ClearColumns();
virtual bool DeleteColumn(wxDataViewColumn* columnPtr);
virtual wxDataViewColumn* GetColumn(unsigned int pos) const;
virtual unsigned int GetColumnCount() const;
- virtual int GetColumnPosition(wxDataViewColumn const* columnPtr) const;
+ virtual int GetColumnPosition(const wxDataViewColumn* columnPtr) const;
- virtual void Collapse(wxDataViewItem const& item);
- virtual void EnsureVisible(wxDataViewItem const& item, wxDataViewColumn const* columnPtr=NULL);
- virtual void Expand(wxDataViewItem const& item);
+ virtual void Collapse( const wxDataViewItem& item);
+ virtual void EnsureVisible(const wxDataViewItem& item, const wxDataViewColumn* columnPtr=NULL);
+ virtual void Expand(const wxDataViewItem& item);
+ virtual bool IsExpanded(const wxDataViewItem & item) const;
virtual wxDataViewColumn* GetSortingColumn() const;
virtual unsigned int GetCount() const;
- virtual wxRect GetItemRect(wxDataViewItem const& item, wxDataViewColumn const* columnPtr) const;
+ virtual wxRect GetItemRect(const wxDataViewItem& item, const wxDataViewColumn* columnPtr) const;
virtual wxDataViewItem GetSelection() const;
virtual int GetSelections(wxDataViewItemArray& sel) const;
- virtual void HitTest(wxPoint const& point, wxDataViewItem& item, wxDataViewColumn*& columnPtr) const;
+ virtual void HitTest(const wxPoint& point, wxDataViewItem& item, wxDataViewColumn*& columnPtr) const;
- virtual bool IsSelected(wxDataViewItem const& item) const;
+ virtual bool IsSelected(const wxDataViewItem& item) const;
virtual void SelectAll();
- virtual void Select(wxDataViewItem const& item);
- virtual void SetSelections(wxDataViewItemArray const& sel);
+ virtual void Select(const wxDataViewItem& item);
+ virtual void SetSelections(const wxDataViewItemArray& sel);
- virtual void Unselect(wxDataViewItem const& item);
+ virtual void Unselect(const wxDataViewItem& item);
virtual void UnselectAll();
//
// implementation
//
+ virtual wxSize DoGetBestSize() const;
+
// adds all children of the passed parent to the control; if 'parentItem' is invalid the root(s) is/are added:
void AddChildrenLevel(wxDataViewItem const& parentItem);
// event handling:
void OnSize(wxSizeEvent &event);
+ void OnMouse(wxMouseEvent &event);
private:
// type definitions:
// wxWidget internal stuff:
DECLARE_DYNAMIC_CLASS(wxDataViewCtrl)
- DECLARE_NO_COPY_CLASS(wxDataViewCtrl)
+ wxDECLARE_NO_COPY_CLASS(wxDataViewCtrl);
DECLARE_EVENT_TABLE()
};