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 7 8 9#include <View.h> 10 11class DataEditor; 12 13 14class TypeEditorView : public BView { 15 public: 16 TypeEditorView(BRect rect, const char* name, uint32 resizingMode, 17 uint32 flags, DataEditor& editor); 18 ~TypeEditorView(); 19 20 virtual void CommitChanges(); 21 virtual bool TypeMatches(); 22 23 protected: 24 DataEditor& fEditor; 25}; 26 27extern TypeEditorView* GetTypeEditorFor(BRect rect, DataEditor& editor); 28extern status_t GetNthTypeEditor(int32 index, const char** _name); 29extern TypeEditorView* GetTypeEditorAt(int32 index, BRect rect, 30 DataEditor& editor); 31 32#endif /* TYPE_EDITORS_H */ 33