Integrate a BColumnListView...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29855 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
db9de5de43
commit
1f7211f99b
@ -1,6 +1,8 @@
|
||||
SubDir HAIKU_TOP src tests kits interface look ;
|
||||
|
||||
UsePrivateHeaders interface ;
|
||||
|
||||
SimpleTest LookTest :
|
||||
Look.cpp
|
||||
: be tracker
|
||||
: be tracker libcolumnlistview.a
|
||||
;
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include <ChannelSlider.h>
|
||||
#include <CheckBox.h>
|
||||
#include <ColorControl.h>
|
||||
#include <ColumnListView.h>
|
||||
#include <ControlLook.h>
|
||||
#include <FilePanel.h>
|
||||
#include <GridLayoutBuilder.h>
|
||||
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user