btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / debuganalyzer / gui / AbstractGeneralPage.h
blobd27ff6c743264525b44a6b16000d384b6a01036c
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef ABSTRACT_GENERAL_PAGE_H
6 #define ABSTRACT_GENERAL_PAGE_H
8 #include <GroupView.h>
9 #include <StringView.h>
12 class BGridView;
15 class LabelView : public BStringView {
16 public:
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 {
28 public:
29 TextDataView()
31 BStringView(NULL, "")
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 {
46 public:
47 AbstractGeneralPage();
48 virtual ~AbstractGeneralPage();
50 protected:
51 TextDataView* AddDataView(const char* label,
52 const char* text = NULL);
54 protected:
55 BGridView* fDataView;
60 #endif // ABSTRACT_GENERAL_PAGE_H