diff --git a/AppleSAWS.pro b/AppleSAWS.pro index b50017d..93de7c3 100644 --- a/AppleSAWS.pro +++ b/AppleSAWS.pro @@ -22,7 +22,8 @@ SOURCES += src/main.cpp \ src/binaryfile.cxx \ src/catalogwidget.cxx \ src/mainwindow.cxx \ - src/hiresviewwidget.cxx + src/hiresviewwidget.cxx \ + src/applesoftfileviewer.cxx HEADERS += \ src/diskfile.h \ @@ -39,8 +40,10 @@ HEADERS += \ src/binaryfile.h \ src/catalogwidget.h \ src/mainwindow.h \ - src/hiresviewwidget.h + src/hiresviewwidget.h \ + src/applesoftfileviewer.h FORMS += \ src/catalogwidget.ui \ - src/mainwindow.ui + src/mainwindow.ui \ + src/applesoftfileviewer.ui diff --git a/src/applesoftfileviewer.cxx b/src/applesoftfileviewer.cxx new file mode 100644 index 0000000..9ceff97 --- /dev/null +++ b/src/applesoftfileviewer.cxx @@ -0,0 +1,24 @@ +#include "applesoftfileviewer.h" +#include "ui_applesoftfileviewer.h" + +ApplesoftFileViewer::ApplesoftFileViewer(QWidget *parent) : + QWidget(parent), + ui(new Ui::ApplesoftFileViewer) +{ + ui->setupUi(this); +} + +ApplesoftFileViewer::~ApplesoftFileViewer() +{ + delete ui; +} + +void ApplesoftFileViewer::setData(QByteArray data) +{ + ui->textArea->setText(data); +} + +void ApplesoftFileViewer::setText(QString text) +{ + ui->textArea->setHtml(text); +} diff --git a/src/applesoftfileviewer.h b/src/applesoftfileviewer.h new file mode 100644 index 0000000..1ac5323 --- /dev/null +++ b/src/applesoftfileviewer.h @@ -0,0 +1,26 @@ +#ifndef APPLESOFTFILEVIEWER_H +#define APPLESOFTFILEVIEWER_H + +#include + +namespace Ui { +class ApplesoftFileViewer; +} + +class ApplesoftFileViewer : public QWidget +{ + Q_OBJECT + +public: + explicit ApplesoftFileViewer(QWidget *parent = 0); + ~ApplesoftFileViewer(); + +public slots: + void setData(QByteArray data); + void setText(QString text); + +private: + Ui::ApplesoftFileViewer *ui; +}; + +#endif // APPLESOFTFILEVIEWER_H diff --git a/src/applesoftfileviewer.ui b/src/applesoftfileviewer.ui new file mode 100644 index 0000000..fe0baaf --- /dev/null +++ b/src/applesoftfileviewer.ui @@ -0,0 +1,36 @@ + + + ApplesoftFileViewer + + + + 0 + 0 + 857 + 469 + + + + + Century Schoolbook L + + + + Form + + + + + + + Source Code Pro + 10 + + + + + + + + +