39 lines
887 B
C++
39 lines
887 B
C++
/*
|
|
* Copyright 2004-2018, Axel Dörfler, axeld@pinc-software.de.
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
|
*/
|
|
#ifndef TYPE_EDITORS_H
|
|
#define TYPE_EDITORS_H
|
|
|
|
|
|
#include <View.h>
|
|
|
|
|
|
class DataEditor;
|
|
|
|
|
|
class TypeEditorView : public BView {
|
|
public:
|
|
TypeEditorView(BRect rect, const char* name,
|
|
uint32 resizingMode, uint32 flags,
|
|
DataEditor& editor);
|
|
TypeEditorView(const char* name, uint32 flags,
|
|
DataEditor& editor);
|
|
virtual ~TypeEditorView();
|
|
|
|
virtual void CommitChanges();
|
|
virtual bool TypeMatches();
|
|
|
|
protected:
|
|
DataEditor& fEditor;
|
|
};
|
|
|
|
|
|
extern TypeEditorView* GetTypeEditorFor(BRect rect, DataEditor& editor);
|
|
extern status_t GetNthTypeEditor(int32 index, const char** _name);
|
|
extern TypeEditorView* GetTypeEditorAt(int32 index, BRect rect,
|
|
DataEditor& editor);
|
|
|
|
|
|
#endif /* TYPE_EDITORS_H */
|