2020-11-24 19:01:25 +00:00
|
|
|
/*
|
2022-12-31 21:19:15 +00:00
|
|
|
* Copyright (C) 2020-2023 Gavin MacGregor
|
2020-11-24 19:01:25 +00:00
|
|
|
*
|
|
|
|
|
* This file is part of QTeletextMaker.
|
|
|
|
|
*
|
|
|
|
|
* QTeletextMaker is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* QTeletextMaker is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with QTeletextMaker. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef LOADSAVE_H
|
|
|
|
|
#define LOADSAVE_H
|
|
|
|
|
|
2020-11-27 20:57:21 +00:00
|
|
|
#include <QByteArray>
|
2020-11-29 15:41:26 +00:00
|
|
|
#include <QFile>
|
2020-11-24 19:01:25 +00:00
|
|
|
#include <QSaveFile>
|
2020-11-27 20:57:21 +00:00
|
|
|
#include <QString>
|
2020-11-29 15:41:26 +00:00
|
|
|
#include <QTextStream>
|
2020-11-24 19:01:25 +00:00
|
|
|
|
|
|
|
|
#include "document.h"
|
2020-11-29 11:48:08 +00:00
|
|
|
#include "levelonepage.h"
|
2020-11-24 19:01:25 +00:00
|
|
|
#include "pagebase.h"
|
|
|
|
|
|
2023-08-27 14:25:16 +01:00
|
|
|
void loadTTI(QFile *inFile, TeletextDocument *document);
|
|
|
|
|
void importT42(QFile *inFile, TeletextDocument *document);
|
2020-11-29 15:41:26 +00:00
|
|
|
|
2023-08-27 14:25:16 +01:00
|
|
|
int controlBitsToPS(PageBase *subPage);
|
2020-11-27 20:57:21 +00:00
|
|
|
|
2023-08-27 14:25:16 +01:00
|
|
|
void saveTTI(QSaveFile &file, const TeletextDocument &document);
|
|
|
|
|
void exportT42File(QSaveFile &file, const TeletextDocument &document);
|
|
|
|
|
void exportM29File(QSaveFile &file, const TeletextDocument &document);
|
2020-11-24 19:01:25 +00:00
|
|
|
|
2023-08-27 14:25:16 +01:00
|
|
|
QByteArray rowPacketAlways(PageBase *subPage, int packetNumber);
|
2020-11-29 11:48:08 +00:00
|
|
|
|
2023-08-27 14:25:16 +01:00
|
|
|
QString exportHashStringPage(LevelOnePage *subPage);
|
2020-11-29 11:48:08 +00:00
|
|
|
QString exportHashStringPackets(LevelOnePage *subPage);
|
|
|
|
|
|
2020-11-24 19:01:25 +00:00
|
|
|
#endif
|