fat: Greatly simplify and clean up dosfs_get_file_map().
[haiku.git] / src / preferences / filetypes / StringView.h
blob6ba21588482670e72d1ca83943241a85f5e6148b
1 /*
2 * Copyright 2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef STRING_VIEW_H
6 #define STRING_VIEW_H
9 class BLayoutItem;
10 class BGroupView;
11 class BStringView;
13 class StringView {
14 public:
15 StringView(const char* label,
16 const char* text);
18 void SetEnabled(bool enabled);
20 void SetLabel(const char* label);
21 const char* Label() const;
22 void SetText(const char* text);
23 const char* Text() const;
25 BLayoutItem* GetLabelLayoutItem();
26 BView* LabelView();
27 BLayoutItem* GetTextLayoutItem();
28 BView* TextView();
30 operator BView*();
32 private:
34 BGroupView* fView;
35 BStringView* fLabel;
36 BLayoutItem* fLabelItem;
37 BStringView* fText;
38 BLayoutItem* fTextItem;
42 #endif // STRING_VIEW_H