Files
haiku-beta6/src/apps/diskprobe/AttributeEditors.h
T
Axel Dörfler fa78c88efa The attribute editors are now subclassing TypeEditorView which has a
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
2004-02-27 22:26:37 +00:00

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 */