Minor doc updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-10-17 07:56:19 +00:00
parent e807896d46
commit 729a8b9b44
3 changed files with 9 additions and 6 deletions

View File

@@ -165,7 +165,7 @@ created in the function or NULL on failure.
\func{virtual bool}{AssociateModel}{\param{wxDataViewModel* }{model}} \func{virtual bool}{AssociateModel}{\param{wxDataViewModel* }{model}}
Associates a \helpref{wxDataViewModel}{wxdataviewmodel} with the Associates a \helpref{wxDataViewModel}{wxdataviewmodel} with the
control. control. This increases the reference count of the model by 1.
\membersection{wxDataViewCtrl::Create}\label{wxdataviewctrlcreate} \membersection{wxDataViewCtrl::Create}\label{wxdataviewctrlcreate}

View File

@@ -72,12 +72,10 @@ associating the model with a control like this:
{\small% {\small%
\begin{verbatim} \begin{verbatim}
wxDataViewCtrl *musicCtrl = new wxDataViewCtrl( this, ID_MUSIC_CTRL, wxDefaultPosition, wxDataViewCtrl *musicCtrl = new wxDataViewCtrl( this, ID_MUSIC_CTRL );
wxDefaultSize, wxDV_MULTIPLE );
wxDataViewModel *musicModel = new MyMusicModel; wxDataViewModel *musicModel = new MyMusicModel;
m_musicCtrl->AssociateModel( musicModel ); m_musicCtrl->AssociateModel( musicModel );
musicModel->DecRef(); // avoid memory leak !! musicModel->DecRef(); // avoid memory leak !!
// add columns now // add columns now
\end{verbatim} \end{verbatim}
}% }%

View File

@@ -4,8 +4,8 @@
wxDataViewTreeStore is a specialised \helpref{wxDataViewModel}{wxdataviewmodel} wxDataViewTreeStore is a specialised \helpref{wxDataViewModel}{wxdataviewmodel}
for displaying simple trees very much like \helpref{wxTreeCtrl}{wxtreectrl} for displaying simple trees very much like \helpref{wxTreeCtrl}{wxtreectrl}
does and it offers a similar API. This class actually stores the entire does and it offers a similar API. This class actually stores the entire
tree (therefore its name) and implements all virtual from the base class tree (therefore its name) and implements all virtual methods from the base
so it can be used directly without having to derive any class from it. class so it can be used directly without having to derive any class from it.
This comes at the price of much reduced flexibility. This comes at the price of much reduced flexibility.
\wxheading{Derived from} \wxheading{Derived from}
@@ -16,6 +16,11 @@ This comes at the price of much reduced flexibility.
<dataview.h> <dataview.h>
\wxheading{Library}
\helpref{wxAdv}{librarieslist}
\membersection{wxDataViewTreeStore::wxDataViewTreeStore}\label{wxdataviewtreestorewxdataviewtreestore} \membersection{wxDataViewTreeStore::wxDataViewTreeStore}\label{wxdataviewtreestorewxdataviewtreestore}
\func{}{wxDataViewTreeStore}{\void} \func{}{wxDataViewTreeStore}{\void}