CommitChanges() method. Editors like the MimeTypeEditor will use this to propagate their current content when the window receives QuitRequested(). Brought the StringEditor to a usable state (note, currently, all attribute editors can only change what's there; they cannot change the size of the attribute - this will be fixed at a later point). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6785 a95241bf-73f2-0310-859d-f6bbb57e9c96
28 lines
569 B
C++
28 lines
569 B
C++
/*
|
|
** Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
*/
|
|
#ifndef ATTRIBUTE_EDITORS_H
|
|
#define ATTRIBUTE_EDITORS_H
|
|
|
|
|
|
#include <View.h>
|
|
|
|
class DataEditor;
|
|
|
|
|
|
class TypeEditorView : public BView {
|
|
public:
|
|
TypeEditorView(BRect rect, const char *name, uint32 resizingMode, uint32 flags)
|
|
: BView(rect, name, resizingMode, flags)
|
|
{
|
|
}
|
|
|
|
virtual void CommitChanges() = 0;
|
|
};
|
|
|
|
extern TypeEditorView *GetTypeEditorFor(BRect rect, DataEditor &editor);
|
|
|
|
|
|
#endif /* ATTRIBUTE_EDITORS_H */
|