2016-10-12 22:52:13 +00:00
|
|
|
#ifndef APPLESOFTFILEDETAILVIEWER_H
|
|
|
|
#define APPLESOFTFILEDETAILVIEWER_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include "applesoftline.h"
|
|
|
|
#include "applesofttoken.h"
|
2017-06-29 05:21:45 +00:00
|
|
|
#include "applesoftfile.h"
|
2016-10-30 16:59:03 +00:00
|
|
|
#include <QDebug>
|
2016-10-12 22:52:13 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ApplesoftFileDetailViewer;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ApplesoftFileDetailViewer : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-06-29 05:21:45 +00:00
|
|
|
explicit ApplesoftFileDetailViewer(ApplesoftFile *file, QWidget *parent = 0);
|
2016-10-12 22:52:13 +00:00
|
|
|
~ApplesoftFileDetailViewer();
|
|
|
|
|
2016-10-14 22:27:28 +00:00
|
|
|
void setLineData(QVector<ApplesoftLine> lineData);
|
2016-10-30 16:59:03 +00:00
|
|
|
void foo() { qDebug() << "AFDV::foo!"; }
|
2017-06-29 05:21:45 +00:00
|
|
|
|
|
|
|
bool save();
|
|
|
|
bool load();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
QString shortenName(QString name);
|
2016-10-12 22:52:13 +00:00
|
|
|
private:
|
|
|
|
void process();
|
|
|
|
|
|
|
|
Ui::ApplesoftFileDetailViewer *ui;
|
|
|
|
QVector<ApplesoftLine> m_lines;
|
2017-06-29 05:21:45 +00:00
|
|
|
|
|
|
|
QMap<QString,QString> m_notes;
|
|
|
|
|
|
|
|
ApplesoftFile *m_file;
|
2016-10-12 22:52:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // APPLESOFTFILEDETAILVIEWER_H
|