+getListBox / +PreExpandHandler
This commit is contained in:
parent
a492b4191c
commit
424427e8cf
2 changed files with 38 additions and 6 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: dbtreeview.cxx,v $
|
||||
*
|
||||
* $Revision: 1.3 $
|
||||
* $Revision: 1.4 $
|
||||
*
|
||||
* last change: $Author: fs $ $Date: 2000-11-06 17:44:28 $
|
||||
* last change: $Author: fs $ $Date: 2000-11-09 07:36:15 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -104,17 +104,30 @@ DBTreeView::~DBTreeView()
|
|||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
void DBTreeView::SetPreExpandHandler(const Link& _rHdl)
|
||||
{
|
||||
m_pTreeListBox->SetPreExpandHandler(_rHdl);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
Link DBTreeView::GetPreExpandHandler() const
|
||||
{
|
||||
return m_pTreeListBox->GetPreExpandHandler();
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
void DBTreeView::Resize()
|
||||
{
|
||||
Window::Resize();
|
||||
m_pTreeListBox->SetPosSizePixel(Point(0,0),GetOutputSizePixel());
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
DBTreeListModel* DBTreeView::getModel()
|
||||
DBTreeListModel* DBTreeView::getModel() const
|
||||
{
|
||||
return (DBTreeListModel*)m_pTreeListBox->GetModel();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
void DBTreeView::setModel(DBTreeListModel* _pTreeModel)
|
||||
{
|
||||
|
@ -122,10 +135,18 @@ void DBTreeView::setModel(DBTreeListModel* _pTreeModel)
|
|||
_pTreeModel->InsertView(m_pTreeListBox);
|
||||
m_pTreeListBox->SetModel(_pTreeModel);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
SvTreeListBox* DBTreeView::getListBox() const
|
||||
{
|
||||
return m_pTreeListBox;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
void DBTreeView::setSelectHdl(const Link& _rHdl)
|
||||
{
|
||||
m_pTreeListBox->SetSelectHdl(_rHdl);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: dbtreeview.hxx,v $
|
||||
*
|
||||
* $Revision: 1.1 $
|
||||
* $Revision: 1.2 $
|
||||
*
|
||||
* last change: $Author: oj $ $Date: 2000-10-26 14:41:11 $
|
||||
* last change: $Author: fs $ $Date: 2000-11-09 07:36:15 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -66,6 +66,7 @@
|
|||
#include <vcl/window.hxx>
|
||||
#endif
|
||||
|
||||
class SvTreeListBox;
|
||||
namespace dbaui
|
||||
{
|
||||
class DBTreeListBox;
|
||||
|
@ -86,9 +87,19 @@ namespace dbaui
|
|||
DBTreeView( Window* pParent, WinBits nBits );
|
||||
~DBTreeView();
|
||||
|
||||
DBTreeListModel* getModel();
|
||||
/** sets a handler which is called when an list box entry is to be expanded.
|
||||
<p>When calling the link, the parameter is an SvLBoxEntry marking the entry to be expanded.
|
||||
</p>
|
||||
*/
|
||||
void SetPreExpandHandler(const Link& _rHdl);
|
||||
/// gets the currently set NodeExpansionHandler
|
||||
Link GetPreExpandHandler() const;
|
||||
|
||||
DBTreeListModel* getModel() const;
|
||||
void setModel(DBTreeListModel* _pTreeModel);
|
||||
void setSelectHdl(const Link& _rHdl);
|
||||
|
||||
SvTreeListBox* getListBox() const;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue