2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef ABSTRACT_GENERAL_PAGE_H
6 #define ABSTRACT_GENERAL_PAGE_H
9 #include <StringView.h>
15 class LabelView
: public BStringView
{
17 LabelView(const char* text
)
19 BStringView(NULL
, text
)
21 SetExplicitAlignment(BAlignment(B_ALIGN_RIGHT
,
22 B_ALIGN_VERTICAL_CENTER
));
27 class TextDataView
: public BStringView
{
33 SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED
, B_SIZE_UNSET
));
36 TextDataView(const char* text
)
38 BStringView(NULL
, text
)
40 SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED
, B_SIZE_UNSET
));
45 class AbstractGeneralPage
: public BGroupView
{
47 AbstractGeneralPage();
48 virtual ~AbstractGeneralPage();
51 TextDataView
* AddDataView(const char* label
,
52 const char* text
= NULL
);
60 #endif // ABSTRACT_GENERAL_PAGE_H