Implemented layout-friendly constructors. Also added MaxSize(), though it

only invokes the BView version. Didn't know what to do with MinSize() and
PreferredSize(). ATM they return fixed, hard-coded values. It might make
sense to compute something depending on the font size, for instance.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21380 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-06-10 16:52:42 +00:00
parent f0a98802e4
commit 9eae7400a4
2 changed files with 26 additions and 0 deletions
+5
View File
@@ -26,6 +26,10 @@ class BListView : public BView, public BInvoker {
list_view_type type = B_SINGLE_SELECTION_LIST,
uint32 resizeMask = B_FOLLOW_LEFT | B_FOLLOW_TOP,
uint32 flags = B_WILL_DRAW | B_FRAME_EVENTS | B_NAVIGABLE);
BListView(const char* name,
list_view_type type = B_SINGLE_SELECTION_LIST,
uint32 flags = B_WILL_DRAW | B_FRAME_EVENTS | B_NAVIGABLE);
BListView(list_view_type type = B_SINGLE_SELECTION_LIST);
BListView(BMessage* data);
virtual ~BListView() ;
@@ -119,6 +123,7 @@ class BListView : public BView, public BInvoker {
virtual void AllDetached();
virtual BSize MinSize();
virtual BSize MaxSize();
virtual BSize PreferredSize();
protected: