BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / diskprobe / TypeEditors.h
blobf3c63a0da2b117d34267b6c16048a304dcedd259
1 /*
2 * Copyright 2004-2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef TYPE_EDITORS_H
6 #define TYPE_EDITORS_H
9 #include <View.h>
11 class DataEditor;
14 class TypeEditorView : public BView {
15 public:
16 TypeEditorView(BRect rect, const char* name, uint32 resizingMode,
17 uint32 flags, DataEditor& editor);
18 TypeEditorView(const char* name, uint32 flags, DataEditor& editor);
19 ~TypeEditorView();
21 virtual void CommitChanges();
22 virtual bool TypeMatches();
24 protected:
25 DataEditor& fEditor;
28 extern TypeEditorView* GetTypeEditorFor(BRect rect, DataEditor& editor);
29 extern status_t GetNthTypeEditor(int32 index, const char** _name);
30 extern TypeEditorView* GetTypeEditorAt(int32 index, BRect rect,
31 DataEditor& editor);
33 #endif /* TYPE_EDITORS_H */