From 1f7211f99baf20f3c43244cbdc90f2ac969c4e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 1 Apr 2009 19:53:14 +0000 Subject: [PATCH] Integrate a BColumnListView... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29855 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kits/interface/look/Jamfile | 4 +++- src/tests/kits/interface/look/Look.cpp | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/tests/kits/interface/look/Jamfile b/src/tests/kits/interface/look/Jamfile index 4c6e63cd36..35e10ae74a 100644 --- a/src/tests/kits/interface/look/Jamfile +++ b/src/tests/kits/interface/look/Jamfile @@ -1,6 +1,8 @@ SubDir HAIKU_TOP src tests kits interface look ; +UsePrivateHeaders interface ; + SimpleTest LookTest : Look.cpp - : be tracker + : be tracker libcolumnlistview.a ; diff --git a/src/tests/kits/interface/look/Look.cpp b/src/tests/kits/interface/look/Look.cpp index 87f9bb7a57..e6e138fbd4 100644 --- a/src/tests/kits/interface/look/Look.cpp +++ b/src/tests/kits/interface/look/Look.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -266,6 +267,7 @@ main(int argc, char** argv) // create some controls + // BListView BListView* listView = new BListView(); for (int32 i = 0; i < 20; i++) { BString itemLabel("List Item "); @@ -276,6 +278,16 @@ main(int argc, char** argv) true, true); scrollView->SetExplicitMinSize(BSize(300, 140)); + // BColumnListView + BColumnListView* columnListView = new BColumnListView("clv", 0, + B_FANCY_BORDER); +// for (int32 i = 0; i < 20; i++) { +// BString itemLabel("List Item "); +// itemLabel << i + 1; +// columnListView->AddItem(new BStringItem(itemLabel.String())); +// } + + BGridView* controls = new BGridView(kInset, kInset); BGridLayout* layout = controls->GridLayout(); controls->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNLIMITED)); @@ -296,6 +308,7 @@ main(int argc, char** argv) BTabView* tabView = new BTabView("tab view", B_WIDTH_FROM_WIDEST); BView* content = BGroupLayoutBuilder(B_VERTICAL, kInset) .Add(scrollView) + .Add(columnListView) .Add(controls) .SetInsets(kInset, kInset, kInset, kInset);