File: AlphabetTable.h

package info (click to toggle)
qabcs 1.0.2-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 44,724 kB
  • sloc: cpp: 2,226; sh: 2,001; xml: 25; makefile: 5
file content (46 lines) | stat: -rw-r--r-- 975 bytes parent folder | download | duplicates (3)
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