2 * Copyright 2004-2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
9 #include "DataEditor.h"
25 class ProbeView
: public BView
{
27 ProbeView(entry_ref
* ref
, const char* attribute
= NULL
,
28 const BMessage
* settings
= NULL
);
31 virtual void DetachedFromWindow();
32 virtual void AttachedToWindow();
33 virtual void AllAttached();
34 virtual void WindowActivated(bool active
);
35 virtual void MessageReceived(BMessage
* message
);
37 void AddSaveMenuItems(BMenu
* menu
, int32 index
);
38 void AddPrintMenuItems(BMenu
* menu
, int32 index
);
39 void AddViewAsMenuItems();
43 DataEditor
& Editor() { return fEditor
; }
46 void _UpdateAttributesMenu(BMenu
* menu
);
47 void _UpdateSelectionMenuItems(int64 start
, int64 end
);
48 void _UpdateBookmarkMenuItems();
49 void _AddBookmark(off_t position
);
50 void _RemoveTypeEditor();
51 void _SetTypeEditor(int32 index
);
52 void _CheckClipboard();
53 status_t
_PageSetup();
58 EditorLooper
* fEditorLooper
;
59 HeaderView
* fHeaderView
;
61 BScrollView
* fScrollView
;
62 BMenuItem
* fPasteMenuItem
;
63 BMenuItem
* fUndoMenuItem
;
64 BMenuItem
* fRedoMenuItem
;
65 BMenuItem
* fNativeMenuItem
;
66 BMenuItem
* fSwappedMenuItem
;
67 BMenuItem
* fSaveMenuItem
;
68 BMessage
* fPrintSettings
;
72 BMenuItem
* fFindAgainMenuItem
;
73 const uint8
* fLastSearch
;
74 size_t fLastSearchSize
;
77 #endif /* PROBE_VIEW_H */