Show character bitmaps in X/26 table and comboboxes

G0 and G2 bitmaps in those widgets are stuck on Latin at the moment.
This commit is contained in:
G.K.MacGregor
2021-06-23 16:18:12 +01:00
parent 38746c7f38
commit a54385b8f5
4 changed files with 91 additions and 5 deletions

View File

@@ -20,6 +20,7 @@
#ifndef X26DOCKWIDGET_H
#define X26DOCKWIDGET_H
#include <QAbstractListModel>
#include <QCheckBox>
#include <QComboBox>
#include <QDockWidget>
@@ -31,8 +32,25 @@
#include <QTableView>
#include "mainwidget.h"
#include "render.h"
#include "x26model.h"
class CharacterListModel : public QAbstractListModel
{
Q_OBJECT
public:
CharacterListModel(QObject *parent = 0);
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
void setCharacterSet(int);
private:
TeletextFontBitmap m_fontBitmap;
int m_characterSet;
};
class X26DockWidget : public QDockWidget
{
Q_OBJECT
@@ -63,6 +81,7 @@ public slots:
protected:
void keyPressEvent(QKeyEvent *event) override;
CharacterListModel m_characterListModel;
private:
QTableView *m_x26View;