/////////////////////////////////////////////////////////////////////////////
// Name: dataview.h
-// Purpose: documentation for wxDataViewIconText class
+// Purpose: interface of wxDataViewIconText
// Author: wxWidgets team
// RCS-ID: $Id$
// Licence: wxWindows license
};
+
/**
@class wxDataViewEvent
@wxheader{dataview.h}
public:
//@{
/**
-
+
*/
wxDataViewEvent(wxEventType commandType = wxEVT_NULL,
int winid = 0);
const wxVariant GetValue() const;
/**
-
+
*/
void SetColumn(int col);
void SetDataViewColumn(wxDataViewColumn* col);
/**
-
+
*/
void SetModel(wxDataViewModel* model);
/**
-
+
*/
void SetValue(const wxVariant& value);
};
+
/**
@class wxDataViewIconTextRenderer
@wxheader{dataview.h}
{
public:
/**
-
+
*/
wxDataViewIconTextRenderer(const wxString& varianttype = "wxDataViewIconText",
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT);
};
+
/**
@class wxDataViewIndexListModel
@wxheader{dataview.h}
/**
Oberride this to indicate that the row has special font attributes.
This only affects the
- wxDataViewTextRendererText renderer.
+ wxDataViewTextRendererText() renderer.
See also wxDataViewItemAttr.
*/
bool GetAttr(unsigned int row, unsigned int col,
};
+
/**
@class wxDataViewModel
@wxheader{dataview.h}
/**
Oberride this to indicate that the item has special font attributes.
This only affects the
- wxDataViewTextRendererText renderer.
+ wxDataViewTextRendererText() renderer.
See also wxDataViewItemAttr.
*/
bool GetAttr(const wxDataViewItem& item, unsigned int col,
};
+
/**
@class wxDataViewCustomRenderer
@wxheader{dataview.h}
/**
Override this to react to double clicks or ENTER.
*/
- virtual bool Activate(wxRect cell, wxDataViewModel* model,
- unsigned int col,
- unsigned int row);
+ virtual bool Activate( wxRect cell,
+ wxDataViewModel* model,
+ const wxDataViewItem & item,
+ unsigned int col );
/**
Override this to create the actual editor control once editing
/**
Overrride this to react to a left click.
*/
- virtual bool LeftClick(wxPoint cursor, wxRect cell,
- wxDataViewModel* model,
- unsigned int col,
- unsigned int row);
+ virtual bool LeftClick( wxPoint cursor,
+ wxRect cell,
+ wxDataViewModel * model,
+ const wxDataViewItem & item,
+ unsigned int col );
/**
Override this to render the cell. Before this is called,
/**
Overrride this to react to a right click.
*/
- virtual bool RightClick(wxPoint cursor, wxRect cell,
+ virtual bool RightClick(wxPoint cursor,
+ wxRect cell,
wxDataViewModel* model,
- unsigned int col,
- unsigned int row);
+ const wxDataViewItem & item,
+ unsigned int col);
/**
Overrride this to start a drag operation.
*/
virtual bool StartDrag(wxPoint cursor, wxRect cell,
wxDataViewModel* model,
- unsigned int col,
- unsigned int row);
+ const wxDataViewItem & item,
+ unsigned int col);
};
+
/**
@class wxDataViewBitmapRenderer
@wxheader{dataview.h}
{
public:
/**
-
+
*/
wxDataViewBitmapRenderer(const wxString& varianttype = "wxBitmap",
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT);
};
+
/**
@class wxDataViewItemAttr
@wxheader{dataview.h}
This class is used to indicate to a wxDataViewCtrl
- that a certain Item has extra font attributes
+ that a certain Item() has extra font attributes
for its renderer. For this, it is required to override
wxDataViewModel::GetAttr.
Attributes are currently only supported by
- wxDataViewTextRendererText.
+ wxDataViewTextRendererText().
@library{wxadv}
@category{FIXME}
};
+
/**
@class wxDataViewItem
@wxheader{dataview.h}
public:
//@{
/**
-
+
*/
wxDataViewItem(void* id = NULL);
wxDataViewItem(const wxDataViewItem& item);
};
+
/**
@class wxDataViewCtrl
@wxheader{dataview.h}
};
+
/**
@class wxDataViewModelNotifier
@wxheader{dataview.h}
};
+
/**
@class wxDataViewRenderer
@wxheader{dataview.h}
};
+
/**
@class wxDataViewTextRenderer
@wxheader{dataview.h}
{
public:
/**
-
+
*/
wxDataViewTextRenderer(const wxString& varianttype = "string",
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT);
};
+
/**
@class wxDataViewProgressRenderer
@wxheader{dataview.h}
{
public:
/**
-
+
*/
wxDataViewProgressRenderer(const wxString& label = wxEmptyString,
const wxString& varianttype = "long",
};
+
/**
@class wxDataViewSpinRenderer
@wxheader{dataview.h}
};
+
/**
@class wxDataViewToggleRenderer
@wxheader{dataview.h}
{
public:
/**
-
+
*/
wxDataViewToggleRenderer(const wxString& varianttype = "bool",
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT);
};
+
/**
@class wxDataViewTreeCtrl
@wxheader{dataview.h}
~wxDataViewTreeCtrl();
/**
-
+
*/
wxDataViewItem AppendContainer(const wxDataViewItem& parent,
const wxString& text,
wxClientData* data = NULL);
/**
-
+
*/
wxDataViewItem AppendItem(const wxDataViewItem& parent,
const wxString& text,
};
+
/**
@class wxDataViewTreeStore
@wxheader{dataview.h}
};
+
/**
@class wxDataViewDateRenderer
@wxheader{dataview.h}
{
public:
/**
-
+
*/
wxDataViewDateRenderer(const wxString& varianttype = "datetime",
wxDataViewCellMode mode = wxDATAVIEW_CELL_ACTIVATABLE);
};
+
/**
@class wxDataViewTextRendererAttr
@wxheader{dataview.h}
{
public:
/**
-
+
*/
wxDataViewTextRendererAttr(const wxString& varianttype = "string",
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
};
+
/**
@class wxDataViewColumn
@wxheader{dataview.h}
*/
void SetTitle(const wxString& title);
};
+