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
12class DataEditor;
13
14
15class TypeEditorView : public BView {
16public:
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
27protected:
28			DataEditor&			fEditor;
29};
30
31
32extern TypeEditorView* GetTypeEditorFor(BRect rect, DataEditor& editor);
33extern status_t GetNthTypeEditor(int32 index, const char** _name);
34extern TypeEditorView* GetTypeEditorAt(int32 index, BRect rect,
35	DataEditor& editor);
36
37
38#endif	/* TYPE_EDITORS_H */
39