mirror of
https://review.haiku-os.org/haiku
synced 2025-02-07 06:16:11 +01:00
fa78c88efa
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
32 lines
746 B
C++
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 */
|