haiku/src/apps/diskprobe/AttributeWindow.h
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

32 lines
746 B
C++

/*
** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
#ifndef ATTRIBUTE_WINDOW_H
#define ATTRIBUTE_WINDOW_H
#include "ProbeWindow.h"
class ProbeView;
class TypeEditorView;
class AttributeWindow : public ProbeWindow {
public:
AttributeWindow(BRect rect, entry_ref *ref, const char *attribute = NULL,
const BMessage *settings = NULL);
virtual ~AttributeWindow();
virtual void MessageReceived(BMessage *message);
virtual bool QuitRequested();
virtual bool Contains(const entry_ref &ref, const char *attribute);
private:
ProbeView *fProbeView;
TypeEditorView *fTypeEditorView;
char *fAttribute;
};
#endif /* ATTRIBUTE_WINDOW_H */