mirror of
https://review.haiku-os.org/haiku
synced 2025-02-07 06:16:11 +01:00
* Started a "View As" feature which will allow you to use the type editor for the file itself - not yet enabled (or working). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23352 a95241bf-73f2-0310-859d-f6bbb57e9c96
79 lines
1.8 KiB
C++
79 lines
1.8 KiB
C++
/*
|
|
* Copyright 2004-2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
* Distributed under the terms of the MIT 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 BMenu;
|
|
|
|
class HeaderView;
|
|
class DataView;
|
|
class EditorLooper;
|
|
|
|
|
|
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 AddSaveMenuItems(BMenu* menu, int32 index);
|
|
void AddPrintMenuItems(BMenu* menu, int32 index);
|
|
void AddViewAsMenuItems();
|
|
|
|
void UpdateSizeLimits();
|
|
bool QuitRequested();
|
|
|
|
DataEditor& Editor() { return fEditor; }
|
|
|
|
private:
|
|
void _UpdateAttributesMenu(BMenu* menu);
|
|
void _UpdateSelectionMenuItems(int64 start, int64 end);
|
|
void _UpdateBookmarkMenuItems();
|
|
void _AddBookmark(off_t position);
|
|
void _RemoveTypeEditor();
|
|
void _SetTypeEditor(int32 index);
|
|
void _CheckClipboard();
|
|
status_t _PageSetup();
|
|
void _Print();
|
|
status_t _Save();
|
|
|
|
DataEditor fEditor;
|
|
EditorLooper* fEditorLooper;
|
|
HeaderView* fHeaderView;
|
|
DataView* fDataView;
|
|
BScrollView* fScrollView;
|
|
BMenuItem* fPasteMenuItem;
|
|
BMenuItem* fUndoMenuItem;
|
|
BMenuItem* fRedoMenuItem;
|
|
BMenuItem* fNativeMenuItem;
|
|
BMenuItem* fSwappedMenuItem;
|
|
BMenuItem* fSaveMenuItem;
|
|
BMessage* fPrintSettings;
|
|
BMenu* fBookmarkMenu;
|
|
BView* fTypeView;
|
|
|
|
BMenuItem* fFindAgainMenuItem;
|
|
const uint8* fLastSearch;
|
|
size_t fLastSearchSize;
|
|
};
|
|
|
|
#endif /* PROBE_VIEW_H */
|