xref: /haiku/src/apps/diskprobe/TypeEditors.h (revision e85413ad6cca690cadd97dd407455e1de24600ba)
1 /*
2  * Copyright 2004-2018, Axel Dörfler, axeld@pinc-software.de.
3  * All rights reserved. Distributed under the terms of the MIT license.
4  */
5 #ifndef TYPE_EDITORS_H
6 #define TYPE_EDITORS_H
7 
8 
9 #include <View.h>
10 
11 
12 class DataEditor;
13 
14 
15 class TypeEditorView : public BView {
16 public:
17 								TypeEditorView(BRect rect, const char* name,
18 									uint32 resizingMode, uint32 flags,
19 									DataEditor& editor);
20 								TypeEditorView(const char* name, uint32 flags,
21 									DataEditor& editor);
22 	virtual						~TypeEditorView();
23 
24 	virtual	void				CommitChanges();
25 	virtual	bool				TypeMatches();
26 
27 protected:
28 			DataEditor&			fEditor;
29 };
30 
31 
32 extern TypeEditorView* GetTypeEditorFor(BRect rect, DataEditor& editor);
33 extern status_t GetNthTypeEditor(int32 index, const char** _name);
34 extern TypeEditorView* GetTypeEditorAt(int32 index, BRect rect,
35 	DataEditor& editor);
36 
37 
38 #endif	/* TYPE_EDITORS_H */
39