56 lines
1.1 KiB
C++
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 */
|