mirror of
https://github.com/markdavidlong/AppleSAWS.git
synced 2024-12-21 22:29:30 +00:00
Removed some extraneous qDebugs
This commit is contained in:
parent
804a21b665
commit
37f450fd95
@ -1,6 +1,5 @@
|
|||||||
#include "charsetviewer.h"
|
#include "charsetviewer.h"
|
||||||
|
|
||||||
#include <QDebug>
|
|
||||||
|
|
||||||
CharSetViewer::CharSetViewer(QWidget *parent) : QWidget(parent)
|
CharSetViewer::CharSetViewer(QWidget *parent) : QWidget(parent)
|
||||||
{
|
{
|
||||||
@ -23,7 +22,6 @@ void CharSetViewer::setFile(BinaryFile *file)
|
|||||||
int ypos = 0;
|
int ypos = 0;
|
||||||
foreach (CharSetCharacter csc, m_charset.allCharacters())
|
foreach (CharSetCharacter csc, m_charset.allCharacters())
|
||||||
{
|
{
|
||||||
qDebug() << "CSC: " << csc.asciiVal();
|
|
||||||
CharacterWidget *cw = new CharacterWidget(this,csc,4);
|
CharacterWidget *cw = new CharacterWidget(this,csc,4);
|
||||||
cw->showGrid(true);
|
cw->showGrid(true);
|
||||||
cw->enableBitShift(true);
|
cw->enableBitShift(true);
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
#include <QSize>
|
#include <QSize>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QBitArray>
|
#include <QBitArray>
|
||||||
#include <QDebug>
|
|
||||||
|
|
||||||
CharacterWidget::CharacterWidget(QWidget *parent, CharSetCharacter ch, int scale)
|
CharacterWidget::CharacterWidget(QWidget *parent, CharSetCharacter ch, int scale)
|
||||||
: QWidget(parent), m_character(ch), m_scale(scale)
|
: QWidget(parent), m_character(ch), m_scale(scale)
|
||||||
@ -26,7 +25,6 @@ CharacterWidget::CharacterWidget(QWidget *parent, CharSetCharacter ch, int scale
|
|||||||
|
|
||||||
void CharacterWidget::doRepaint()
|
void CharacterWidget::doRepaint()
|
||||||
{
|
{
|
||||||
qDebug() << "doRepaint() begin";
|
|
||||||
m_pixmap.fill(m_bgcolor);
|
m_pixmap.fill(m_bgcolor);
|
||||||
QPainter painter(&m_pixmap);
|
QPainter painter(&m_pixmap);
|
||||||
|
|
||||||
@ -34,7 +32,6 @@ void CharacterWidget::doRepaint()
|
|||||||
painter.setBrush(m_fgcolor);
|
painter.setBrush(m_fgcolor);
|
||||||
|
|
||||||
QByteArray chardata = m_character.data();
|
QByteArray chardata = m_character.data();
|
||||||
qDebug() << chardata;
|
|
||||||
|
|
||||||
for (quint8 yval = 0; yval < 8; yval++)
|
for (quint8 yval = 0; yval < 8; yval++)
|
||||||
{
|
{
|
||||||
@ -51,7 +48,6 @@ void CharacterWidget::doRepaint()
|
|||||||
bits.setBit(5,(line & 0x20));
|
bits.setBit(5,(line & 0x20));
|
||||||
bits.setBit(6,(line & 0x40));
|
bits.setBit(6,(line & 0x40));
|
||||||
|
|
||||||
qDebug() << "Bits: " << bits;
|
|
||||||
int shiftval = 0;
|
int shiftval = 0;
|
||||||
painter.setBrush(m_fgcolor);
|
painter.setBrush(m_fgcolor);
|
||||||
if (m_dobitshift && (line & 0x80)) {
|
if (m_dobitshift && (line & 0x80)) {
|
||||||
@ -91,7 +87,6 @@ void CharacterWidget::doRepaint()
|
|||||||
}
|
}
|
||||||
|
|
||||||
repaint();
|
repaint();
|
||||||
qDebug() << "end";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CharacterWidget::paintEvent(QPaintEvent *)
|
void CharacterWidget::paintEvent(QPaintEvent *)
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#include "charset.h"
|
#include "charset.h"
|
||||||
#include <QDebug>
|
|
||||||
|
|
||||||
|
|
||||||
CharSetCharacter::CharSetCharacter(quint8 asciival, QByteArray bytes)
|
CharSetCharacter::CharSetCharacter(quint8 asciival, QByteArray bytes)
|
||||||
@ -35,12 +34,10 @@ void CharacterSet::buildSetFromSetBlob(QByteArray data)
|
|||||||
qWarning("Unexpected character set size: %d (not 768). Resizing.",data.size());
|
qWarning("Unexpected character set size: %d (not 768). Resizing.",data.size());
|
||||||
data.resize(768);
|
data.resize(768);
|
||||||
}
|
}
|
||||||
qDebug() << "BuildSet: " << data;
|
|
||||||
int val = 32;
|
int val = 32;
|
||||||
for (int idx = 0; idx < 768; idx+=8)
|
for (int idx = 0; idx < 768; idx+=8)
|
||||||
{
|
{
|
||||||
QByteArray ch = data.mid(idx,8);
|
QByteArray ch = data.mid(idx,8);
|
||||||
qDebug() << "Added character " << idx / 8 << "Data: " << ch;
|
|
||||||
|
|
||||||
CharSetCharacter csc = CharSetCharacter(val,ch);
|
CharSetCharacter csc = CharSetCharacter(val,ch);
|
||||||
m_charmap.insert(val,csc);
|
m_charmap.insert(val,csc);
|
||||||
@ -50,7 +47,6 @@ qDebug() << "BuildSet: " << data;
|
|||||||
|
|
||||||
QList<CharSetCharacter> CharacterSet::allCharacters() const
|
QList<CharSetCharacter> CharacterSet::allCharacters() const
|
||||||
{
|
{
|
||||||
qDebug() << "allCharacters: " << m_charmap.values().count();
|
|
||||||
return m_charmap.values();
|
return m_charmap.values();
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user