mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-23 17:23:44 +08:00
7756fb0739
* simple arry for keyboard layout * revert some changes old-commit-hash: f7957f681d2b2d336d7d4ad443f08f668af2da64
33 lines
545 B
C++
33 lines
545 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include <QFrame>
|
|
#include <QString>
|
|
#include <QWidget>
|
|
#include <QStackedLayout>
|
|
#include <QAbstractButton>
|
|
|
|
class KeyboardLayout : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit KeyboardLayout(QWidget* parent, const std::vector<QVector<QString>>& layout);
|
|
};
|
|
|
|
class Keyboard : public QFrame {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Keyboard(QWidget *parent = 0);
|
|
|
|
private:
|
|
QStackedLayout* main_layout;
|
|
|
|
private slots:
|
|
void handleButton(QAbstractButton* m_button);
|
|
|
|
signals:
|
|
void emitButton(const QString &s);
|
|
};
|