a wxVariant.
@library{wxbase}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewIconText : public wxObject
{
wxDataViewEvent - the event class for the wxDataViewCtrl notifications
@library{wxadv}
- @category{FIXME}
+ @category{events,dvc}
*/
class wxDataViewEvent : public wxNotifyEvent
{
-/**
- @class wxDataViewIconTextRenderer
- @wxheader{dataview.h}
-
- The wxDataViewIconTextRenderer class is used to display text with
- a small icon next to it as it is typically done in a file manager.
- This classes uses the wxDataViewIconText
- helper class to store its data. wxDataViewIonText can be converted
- to a from a wxVariant using the left shift
- operator.
-
- @library{wxadv}
- @category{FIXME}
-*/
-class wxDataViewIconTextRenderer : public wxDataViewRenderer
-{
-public:
- /**
-
- */
- wxDataViewIconTextRenderer(const wxString& varianttype = "wxDataViewIconText",
- wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT);
-};
-
-
-
/**
@class wxDataViewModel
@wxheader{dataview.h}
@library{wxadv}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewModel : public wxObjectRefData
{
-
/**
@class wxDataViewIndexListModel
@wxheader{dataview.h}
use a virtual control.
@library{wxbase}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewIndexListModel : public wxDataViewModel
{
@see wxDataViewIndexListModel for the API.
@library{wxbase}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewVirtualListModel : public wxDataViewModel
{
Constructor.
*/
wxDataViewVirtualListModel(unsigned int initial_size = 0);
-}
-
-
+};
wxDataViewTextRendererText().
@library{wxadv}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewItemAttr
{
wxDataViewModel::GetChildren.
@library{wxadv}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewItem
{
Display fine rules between row if supported.
@style{wxDV_VERT_RULES}
Display fine rules between columns is supported.
+ @style{wxDV_VARIABLE_LINE_HEIGHT}
+ Allow variable line heights. This can be inefficient when displaying large number of items.
@endStyleTable
@library{wxadv}
- @category{ctrl}
- @appearance{dataviewctrl.png}
+ @category{ctrl,dvc}
+ <!-- @appearance{dataviewctrl.png} -->
*/
class wxDataViewCtrl : public wxControl
{
public:
- //@{
/**
- Constructor. Calls Create().
+ Default Constructor.
*/
wxDataViewCtrl();
+
+ /**
+ Constructor. Calls Create().
+ */
wxDataViewCtrl(wxWindow* parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator);
- //@}
/**
Destructor.
~wxDataViewCtrl();
/**
- Add a wxDataViewColumn to the control. Returns
- @e @true on success.
+ Appends a wxDataViewColumn to the control. Returns @true on success.
Note that there is a number of short cut methods which implicitly create
a wxDataViewColumn and a wxDataViewRenderer for it (see below).
*/
virtual bool AppendColumn(wxDataViewColumn* col);
+ /**
+ Prepends a wxDataViewColumn to the control. Returns @true on success.
+ Note that there is a number of short cut methods which implicitly create
+ a wxDataViewColumn and a wxDataViewRenderer for it.
+ */
+ virtual bool PrependColumn(wxDataViewColumn* col);
+
+ /**
+ Inserts a wxDataViewColumn to the control. Returns @true on success.
+ */
+ virtual bool InsertColumn(unsigned int pos, wxDataViewColumn* col);
+
//@{
/**
Appends a column for rendering a bitmap. Returns the wxDataViewColumn
information.
@library{wxbase}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewModelNotifier
{
/**
Get owning wxDataViewModel.
*/
- wxDataViewModel* GetOwner();
+ wxDataViewModel* GetOwner() const;
/**
Called by owning model.
wxDataViewDateRenderer.
wxDataViewSpinRenderer.
- Note that the @e alignment parameter is ignored under OS X and
- the alignment is controlled by wxDataViewColumn::GetAlignment()
- so that under OS X, column header alignment and column content
- alignment are always the same and cannot be set independently.
-
Additionally, the user can write own renderers by deriving from
wxDataViewCustomRenderer.
@library{wxadv}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewRenderer : public wxObject
{
*/
wxDataViewRenderer(const wxString& varianttype,
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
- int align = wxALIGN_LEFT|wxALIGN_CENTRE_VERTICAL);
+ int align = wxDVR_DEFAULT_ALIGNMENT );
/**
- Returns the alignment.
+ Returns the alignment. See SetAlignment()
*/
virtual int GetAlignment() const;
/**
Returns pointer to the owning wxDataViewColumn.
*/
- virtual wxDataViewColumn* GetOwner();
+ virtual wxDataViewColumn* GetOwner() const;
/**
This methods retrieves the value from the renderer in order to
virtual wxString GetVariantType();
/**
- Sets the alignment.
+ Sets the alignment of the renderer's content. The default value
+ of wxDVR_DEFAULT_ALIGMENT indicates that the content should
+ have the same alignment as the column header. The method is
+ not implemented under OS X and the renderer always aligns its
+ contents as the column header on that platform. The other platforms
+ support both vertical and horizontal alignment.
*/
virtual void SetAlignment( int align );
/**
in-place editing if desired.
@library{wxadv}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewTextRenderer : public wxDataViewRenderer
{
+/**
+ @class wxDataViewIconTextRenderer
+ @wxheader{dataview.h}
+
+ The wxDataViewIconTextRenderer class is used to display text with
+ a small icon next to it as it is typically done in a file manager.
+ This classes uses the wxDataViewIconText
+ helper class to store its data. wxDataViewIonText can be converted
+ to a from a wxVariant using the left shift
+ operator.
+
+ @library{wxadv}
+ @category{dvc}
+*/
+class wxDataViewIconTextRenderer : public wxDataViewRenderer
+{
+public:
+ /**
+
+ */
+ wxDataViewIconTextRenderer(const wxString& varianttype = "wxDataViewIconText",
+ wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
+ int align = wxDVR_DEFAULT_ALIGNMENT );
+};
+
+
+
/**
@class wxDataViewProgressRenderer
@wxheader{dataview.h}
wxDataViewProgressRenderer
@library{wxadv}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewProgressRenderer : public wxDataViewRenderer
{
The renderer only support variants of type @e long.
@library{wxbase}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewSpinRenderer : public wxDataViewCustomRenderer
{
wxDataViewToggleRenderer
@library{wxadv}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewToggleRenderer : public wxDataViewRenderer
{
wxDataViewDateRenderer
@library{wxadv}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewDateRenderer : public wxDataViewRenderer
{
wxDataViewItemAttr.
@library{wxadv}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewTextRendererAttr : public wxDataViewTextRenderer
{
};
+
/**
@class wxDataViewCustomRenderer
@wxheader{dataview.h}
in order to end the editing.
@library{wxadv}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewCustomRenderer : public wxDataViewRenderer
{
wxDataViewBitmapRenderer
@library{wxadv}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewBitmapRenderer : public wxDataViewRenderer
{
-
/**
@class wxDataViewColumn
@wxheader{dataview.h}
this class to render its data.
@library{wxadv}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewColumn : public wxObject
{
/**
Returns the owning wxDataViewCtrl.
*/
- wxDataViewCtrl* GetOwner();
+ wxDataViewCtrl* GetOwner() const;
/**
Returns the renderer of this wxDataViewColumn.
to the wxDataViewCtrl class simpler.
@library{wxbase}
- @category{ctrl}
- @appearance{dataviewtreectrl.png}
+ @category{ctrl,dvc}
+ <!-- @appearance{dataviewtreectrl.png} -->
*/
class wxDataViewTreeCtrl : public wxDataViewCtrl
{
This comes at the price of much reduced flexibility.
@library{wxadv}
- @category{FIXME}
+ @category{dvc}
*/
class wxDataViewTreeStore : public wxDataViewModel
{
void SetItemIcon(const wxDataViewItem& item, const wxIcon& icon);
};
-
-