AppleSAWS/src/ui/viewers/applesoftfileviewer.h

53 lines
1.1 KiB
C
Raw Normal View History

2015-12-04 21:45:27 -06:00
#ifndef APPLESOFTFILEVIEWER_H
#define APPLESOFTFILEVIEWER_H
#include <QWidget>
2016-10-15 10:13:53 -05:00
#include <QMenu>
#include <QAction>
#include "applesoftfile.h"
#include "applesoftformatter.h"
#include "viewerbase.h"
2015-12-04 21:45:27 -06:00
namespace Ui {
class ApplesoftFileViewer;
}
class ApplesoftFileViewer : public FileViewerInterface
2015-12-04 21:45:27 -06:00
{
Q_OBJECT
public:
ApplesoftFileViewer(QWidget *parent = 0);
2015-12-04 21:45:27 -06:00
~ApplesoftFileViewer();
// void setFormatter(ApplesoftFormatter *formatter);
2016-10-15 10:13:53 -05:00
virtual bool optionsMenuItems(QMenu *menu);
2015-12-04 21:45:27 -06:00
public slots:
void setFile(GenericFile *file);
void setFile(ApplesoftFile *m_file);
2015-12-04 21:45:27 -06:00
void setData(QByteArray data);
void setText(QString text);
void findText();
2015-12-04 21:45:27 -06:00
protected slots:
2016-10-15 16:01:26 -05:00
void toggleWordWrap(bool enabled);
void setIndentCode(bool enabled);
void setIntsAsHex(bool enabled);
void launchVarBrowser();
void reformatText();
2015-12-04 21:45:27 -06:00
private:
2016-10-15 10:13:53 -05:00
bool makeMenuOptions(QMenu *menu);
ApplesoftFile *m_file;
ApplesoftFormatter *m_formatter;
bool m_isFirstFind;
2015-12-04 21:45:27 -06:00
Ui::ApplesoftFileViewer *ui;
};
#endif // APPLESOFTFILEVIEWER_H