UEFITool/UEFITool/hexviewdialog.h
Nikolaj Schlej 5d08b128d2 UT NE A31
- Added "Hex view..." action and dialog to preview the selected tree
item as hex without extracting it. Uses QHexEdit2 library by Simsys.
2016-07-10 11:07:36 +02:00

39 lines
967 B
C++

/* hexviewdialog.h
Copyright (c) 2016, Nikolaj Schlej. All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
*/
#ifndef HEXVIEWDIALOG_H
#define HEXVIEWDIALOG_H
#include <QDialog>
#include "../common/treemodel.h"
#include "../qhexedit2/qhexedit.h"
#include "ui_hexviewdialog.h"
class HexViewDialog : public QDialog
{
Q_OBJECT
public:
HexViewDialog(QWidget *parent = 0);
~HexViewDialog();
Ui::HexViewDialog* ui;
void setItem(const UModelIndex & index);
void setFont(const QFont &font);
private:
QHexEdit * hexView;
};
#endif // HEXVIEWDIALOG_H