Files
haiku-beta6/src/apps/diskprobe/ProbeView.h
T
Axel Dörfler d426c2b9ea Now maintains the state of the undo/redo menu items.
Fixed the size limits when the view is buried a bit deeper in the hierarchy.
Tried to disable the slider when it's of no use, but it has no effect...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6735 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-24 16:59:15 +00:00

56 lines
1.1 KiB
C++

/*
** Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
#ifndef PROBE_VIEW_H
#define PROBE_VIEW_H
#include "DataEditor.h"
#include <View.h>
#include <String.h>
#include <Path.h>
class BScrollView;
class BMenuItem;
class HeaderView;
class DataView;
class UpdateLooper;
class ProbeView : public BView {
public:
ProbeView(BRect rect, entry_ref *ref, const char *attribute = NULL,
const BMessage *settings = NULL);
virtual ~ProbeView();
virtual void DetachedFromWindow();
virtual void AttachedToWindow();
virtual void AllAttached();
virtual void WindowActivated(bool active);
virtual void MessageReceived(BMessage *message);
void AddFileMenuItems(BMenu *menu, int32 index);
void UpdateSizeLimits();
DataEditor &Editor() { return fEditor; }
private:
void UpdateAttributesMenu(BMenu *menu);
void CheckClipboard();
DataEditor fEditor;
UpdateLooper *fUpdateLooper;
HeaderView *fHeaderView;
DataView *fDataView;
BScrollView *fScrollView;
BMenuItem *fPasteMenuItem;
BMenuItem *fUndoMenuItem, *fRedoMenuItem;
};
#endif /* PROBE_VIEW_H */