33 Q_PROPERTY(QString layoutId READ layoutId WRITE setLayoutId NOTIFY layoutIdChanged)
34 Q_PROPERTY(QString variant READ variant WRITE setVariant NOTIFY variantChanged)
35#if QT_VERSION > QT_VERSION_CHECK(5, 15, 0)
36 Q_PROPERTY(KeyboardRow rowB READ rowB NOTIFY rowBChanged)
37 Q_PROPERTY(KeyboardRow rowC READ rowC NOTIFY rowCChanged)
38 Q_PROPERTY(KeyboardRow rowD READ rowD NOTIFY rowDChanged)
39 Q_PROPERTY(KeyboardRow rowE READ rowE NOTIFY rowEChanged)
41 Q_PROPERTY(QVariantList rowB READ rowB NOTIFY rowBChanged)
42 Q_PROPERTY(QVariantList rowC READ rowC NOTIFY rowCChanged)
43 Q_PROPERTY(QVariantList rowD READ rowD NOTIFY rowDChanged)
44 Q_PROPERTY(QVariantList rowE READ rowE NOTIFY rowEChanged)
58 Finger_LeftLittle = -5,
60 Finger_LeftMiddle = -3,
61 Finger_LeftIndex = -2,
62 Finger_LeftThumb = -1,
63 Finger_RightThumb = 1,
64 Finger_RightIndex = 2,
65 Finger_RightMiddle = 3,
67 Finger_RightLittle = 5
83 QString layoutId(
void);
84 void setLayoutId(QString
id);
85 QString variant(
void);
86 void setVariant(QString variant);
87#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
88 KeyboardRow rowB(
void);
89 KeyboardRow rowC(
void);
90 KeyboardRow rowD(
void);
91 KeyboardRow rowE(
void);
93 QVariantList rowB(
void);
94 QVariantList rowC(
void);
95 QVariantList rowD(
void);
96 QVariantList rowE(
void);
98 Q_INVOKABLE Finger keyFinger(Row row,
int id);
99 Q_INVOKABLE Hand fingerHand(Finger finger);
100#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
101 Q_INVOKABLE KeyboardRow characterKeys(QChar character);
103 Q_INVOKABLE QVariantList characterKeys(QChar character);
108 void loadLayout(QString rawData, QString variantName);
109 QVariantList parse(QString data);
110 QString nestedData(
int *pos, QString data, QString startToken, QString endToken);
111 QPair<QString, QString> keyText(QString
id,
bool *isDead =
nullptr);
112 QPoint keyPos(QString keyId, KeyboardUtils::KeyType *type =
nullptr);
113 void addKey(
Key key,
int x,
int y);
114 Key findKeyInRow(QChar character, KeyboardRow row,
int *
id =
nullptr,
bool *isShifted =
nullptr,
bool *ok =
nullptr);
115 Key findKey(QChar character, Row *row =
nullptr,
int *
id =
nullptr,
bool *isShifted =
nullptr,
bool *ok =
nullptr);
116 KeyboardUtils::KeyType getShiftKey(Row row,
int id);
125 void layoutIdChanged(QString
id);
126 void variantChanged(QString variant);
127 void rowBChanged(KeyboardRow row);
128 void rowCChanged(KeyboardRow row);
129 void rowDChanged(KeyboardRow row);
130 void rowEChanged(KeyboardRow row);