1219820Sjeff/* 2219820Sjeff * Copyright 2004-2018, Axel D��rfler, axeld@pinc-software.de. 3219820Sjeff * All rights reserved. Distributed under the terms of the MIT license. 4219820Sjeff */ 5219820Sjeff#ifndef TYPE_EDITORS_H 6219820Sjeff#define TYPE_EDITORS_H 7219820Sjeff 8219820Sjeff 9219820Sjeff#include <View.h> 10219820Sjeff 11219820Sjeff 12219820Sjeffclass DataEditor; 13219820Sjeff 14219820Sjeff 15219820Sjeffclass TypeEditorView : public BView { 16219820Sjeffpublic: 17219820Sjeff TypeEditorView(BRect rect, const char* name, 18219820Sjeff uint32 resizingMode, uint32 flags, 19219820Sjeff DataEditor& editor); 20219820Sjeff TypeEditorView(const char* name, uint32 flags, 21219820Sjeff DataEditor& editor); 22219820Sjeff virtual ~TypeEditorView(); 23219820Sjeff 24219820Sjeff virtual void CommitChanges(); 25219820Sjeff virtual bool TypeMatches(); 26219820Sjeff 27219820Sjeffprotected: 28219820Sjeff DataEditor& fEditor; 29219820Sjeff}; 30219820Sjeff 31219820Sjeff 32219820Sjeffextern TypeEditorView* GetTypeEditorFor(BRect rect, DataEditor& editor); 33219820Sjeffextern status_t GetNthTypeEditor(int32 index, const char** _name); 34219820Sjeffextern TypeEditorView* GetTypeEditorAt(int32 index, BRect rect, 35 DataEditor& editor); 36 37 38#endif /* TYPE_EDITORS_H */ 39