1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
/*
$Id: treeview.cpp,v 1.14 2002/01/04 15:20:43 sphair Exp $
ClanGUI, copyrights by various people. Have a look in the CREDITS file.
This sourcecode is distributed using the Library GNU Public Licence,
version 2 or (at your option) any later version. Please read LICENSE
for details.
*/
#include "precomp.h"
#ifdef WIN32
#pragma warning (disable:4355)
#endif
#include "API/GUI/stylemanager.h"
#include "treeview_generic.h"
/////////////////////////////////////////////////////////////////////////////
// Construction:
CL_TreeView::CL_TreeView(
CL_Component *parent,
CL_StyleManager *style)
: CL_Component(parent, style), CL_TreeView_Node(this), impl(NULL)
{
impl = new CL_TreeView_Generic(this);
get_style_manager()->connect_styles("treeview", this);
}
CL_TreeView::CL_TreeView(
const CL_Rect &pos,
CL_Component *parent,
CL_StyleManager *style)
:
CL_Component(pos, parent, style),
CL_TreeView_Node(this),
impl(NULL)
{
impl = new CL_TreeView_Generic(this);
get_style_manager()->connect_styles("treeview", this);
}
CL_TreeView::~CL_TreeView()
{
delete impl;
}
/////////////////////////////////////////////////////////////////////////////
// Attributes:
CL_Component *CL_TreeView::get_client_area() const
{
return impl->client_area;
}
/////////////////////////////////////////////////////////////////////////////
// Signals:
CL_Signal_v1<const CL_TreeView_Node &> &CL_TreeView::sig_selection_changed()
{
return impl->sig_selection_changed;
}
|