7 Commits

Author SHA1 Message Date
G.K.MacGregor
2da8da8c8e Tag version 0.5.2-alpha 2021-12-28 12:33:58 +00:00
G.K.MacGregor
c2057e979d Fix SC incorrectly saved as hexadecimal 2021-12-28 12:22:29 +00:00
G.K.MacGregor
f5402d216a Show filename when asking about unsaved changes 2021-12-14 22:06:18 +00:00
G.K.MacGregor
43e3155a08 Tag version 0.5.1-alpha 2021-11-16 17:48:26 +00:00
G.K.MacGregor
fa29f25c91 Fix object definitions stuck on Level 2.5 only 2021-11-10 09:16:24 +00:00
G.K.MacGregor
dab124cf80 Remove unused variable 2021-09-15 14:42:03 +01:00
G.K.MacGregor
2f23c83d49 Clarify that font style is Level 3.5 only 2021-09-10 21:18:06 +01:00
6 changed files with 7 additions and 8 deletions

View File

@@ -437,7 +437,7 @@ void saveTTI(QSaveFile &file, const TeletextDocument &document)
for (p=0; p<document.numberOfSubPages(); p++) { for (p=0; p<document.numberOfSubPages(); p++) {
// Page number // Page number
outStream << QString("PN,%1%2").arg(document.pageNumber(), 3, 16, QChar('0')).arg(subPageNumber & 0xff, 2, 16, QChar('0')); outStream << QString("PN,%1%2").arg(document.pageNumber(), 3, 16, QChar('0')).arg(subPageNumber & 0xff, 2, 10, QChar('0'));
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
outStream << Qt::endl; outStream << Qt::endl;
#else #else
@@ -447,7 +447,7 @@ void saveTTI(QSaveFile &file, const TeletextDocument &document)
// Subpage // Subpage
// Magazine Organisation Table and Magazine Inventory Page don't have subpages // Magazine Organisation Table and Magazine Inventory Page don't have subpages
if (document.pageFunction() != TeletextDocument::PFMOT && document.pageFunction() != TeletextDocument::PFMIP) { if (document.pageFunction() != TeletextDocument::PFMOT && document.pageFunction() != TeletextDocument::PFMIP) {
outStream << QString("SC,%1").arg(subPageNumber, 4, 16, QChar('0')); outStream << QString("SC,%1").arg(subPageNumber, 4, 10, QChar('0'));
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) #if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
outStream << Qt::endl; outStream << Qt::endl;
#else #else

View File

@@ -30,7 +30,7 @@ int main(int argc, char *argv[])
QApplication::setApplicationDisplayName(QApplication::applicationName()); QApplication::setApplicationDisplayName(QApplication::applicationName());
QApplication::setOrganizationName("gkmac.co.uk"); QApplication::setOrganizationName("gkmac.co.uk");
QApplication::setOrganizationDomain("gkmac.co.uk"); QApplication::setOrganizationDomain("gkmac.co.uk");
QApplication::setApplicationVersion("0.5-alpha"); QApplication::setApplicationVersion("0.5.2-alpha");
QCommandLineParser parser; QCommandLineParser parser;
parser.setApplicationDescription(QApplication::applicationName()); parser.setApplicationDescription(QApplication::applicationName());
parser.addHelpOption(); parser.addHelpOption();

View File

@@ -865,7 +865,7 @@ bool MainWindow::maybeSave()
{ {
if (m_textWidget->document()->undoStack()->isClean()) if (m_textWidget->document()->undoStack()->isClean())
return true; return true;
const QMessageBox::StandardButton ret = QMessageBox::warning(this, QApplication::applicationDisplayName(), tr("The document has been modified.\nDo you want to save your changes?"), QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel); const QMessageBox::StandardButton ret = QMessageBox::warning(this, QApplication::applicationDisplayName(), tr("The document \"%1\" has been modified.\nDo you want to save your changes or discard them?").arg(QFileInfo(m_curFile).fileName()), QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel);
switch (ret) { switch (ret) {
case QMessageBox::Save: case QMessageBox::Save:
return save(); return save();

View File

@@ -251,7 +251,6 @@ void TeletextPageRender::buildEnhanceMap(TextLayer *enhanceLayer, int tripletNum
void TeletextPageRender::decodePage() void TeletextPageRender::decodePage()
{ {
QPainter pixmapPainter;
int currentFullRowColour, downwardsFullRowColour; int currentFullRowColour, downwardsFullRowColour;
int renderedFullScreenColour; int renderedFullScreenColour;

View File

@@ -114,7 +114,7 @@ private:
"Display attributes", "Display attributes",
"DRCS character", "DRCS character",
"Font style", "Font style, level 3.5",
"G2 supplementary character", "G2 supplementary character",
"G0 character no diacritical", "G0 character no diacritical",

View File

@@ -53,7 +53,7 @@ void X26Triplet::setAddressColumn(int addressColumn)
void X26Triplet::setObjectLocalDesignationCode(int i) void X26Triplet::setObjectLocalDesignationCode(int i)
{ {
m_address = 0x28 | (i >> 3); m_address = (m_address & 0x38) | (i >> 3);
m_data = (m_data & 0x0f) | ((i & 0x07) << 4); m_data = (m_data & 0x0f) | ((i & 0x07) << 4);
} }
@@ -64,7 +64,7 @@ void X26Triplet::setObjectLocalTripletNumber(int i)
void X26Triplet::setObjectLocalIndex(int i) void X26Triplet::setObjectLocalIndex(int i)
{ {
m_address = 0x28 + (i >= 104); // Set bit 0 of address if triplet >= 8 m_address = (m_address & 0x38) + (i >= 104); // Set bit 0 of address if triplet >= 8
m_data = (((i / 13) & 0x07) << 4) | (i % 13); m_data = (((i / 13) & 0x07) << 4) | (i % 13);
} }