1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
#ifndef ALPHABETTABLE_H
#define ALPHABETTABLE_H
#include <QDialog>
#include <QVector>
#include <QLabel>
#include <QSettings>
#include <QKeyEvent>
#include "LoaderAbcFormats.h"
namespace Ui {
class AlphabetTable;
}
class AlphabetTable : public QDialog
{
Q_OBJECT
public:
explicit AlphabetTable(QWidget *parent = nullptr);
~AlphabetTable() override;
private:
Ui::AlphabetTable *ui;
QSettings *confSettings;
ABC_CONFIG config_current;
QVector<QLabel*> listLabelLetters;
void setPalette(QLabel *label, bool fill);
void playLetter(QLabel *label);
bool isKeypressLetter(QString letter, QString key);
void readLetterVariants();
bool isPlayLetter;
QMap<QString,QVector<QString>> listLetterVariants;
protected:
bool eventFilter(QObject *obj, QEvent *event) override;
void keyPressEvent(QKeyEvent *event) override;
};
#endif // ALPHABETTABLE_H
|