You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
291 lines
16 KiB
291 lines
16 KiB
/********************************************************************************
|
|
** Form generated from reading UI file 'i2c_keyboard_detection.ui'
|
|
**
|
|
** Created by: Qt User Interface Compiler version 5.9.5
|
|
**
|
|
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
********************************************************************************/
|
|
|
|
#ifndef UI_I2C_KEYBOARD_DETECTION_H
|
|
#define UI_I2C_KEYBOARD_DETECTION_H
|
|
|
|
#include <QtCore/QVariant>
|
|
#include <QtWidgets/QAction>
|
|
#include <QtWidgets/QApplication>
|
|
#include <QtWidgets/QButtonGroup>
|
|
#include <QtWidgets/QCheckBox>
|
|
#include <QtWidgets/QComboBox>
|
|
#include <QtWidgets/QHeaderView>
|
|
#include <QtWidgets/QLabel>
|
|
#include <QtWidgets/QLineEdit>
|
|
#include <QtWidgets/QListWidget>
|
|
#include <QtWidgets/QMainWindow>
|
|
#include <QtWidgets/QMenuBar>
|
|
#include <QtWidgets/QPushButton>
|
|
#include <QtWidgets/QRadioButton>
|
|
#include <QtWidgets/QSpinBox>
|
|
#include <QtWidgets/QStatusBar>
|
|
#include <QtWidgets/QTabWidget>
|
|
#include <QtWidgets/QTableWidget>
|
|
#include <QtWidgets/QTextBrowser>
|
|
#include <QtWidgets/QToolBar>
|
|
#include <QtWidgets/QWidget>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class Ui_i2c_keyboard_detection
|
|
{
|
|
public:
|
|
QWidget *centralWidget;
|
|
QTabWidget *tabWidget;
|
|
QWidget *tabKbdConnectionsDetection;
|
|
QTextBrowser *kbdReport;
|
|
QComboBox *comList;
|
|
QLabel *labelKeyboardStatus;
|
|
QPushButton *comRefleshList;
|
|
QCheckBox *enSendKeyToReport;
|
|
QPushButton *comConnect;
|
|
QPushButton *saveKbdReport;
|
|
QPushButton *clearKbdReport;
|
|
QWidget *tabMatrixGenerator;
|
|
QPushButton *openConnectionsFile;
|
|
QTableWidget *generatedMatrixTable;
|
|
QRadioButton *normalMatrixMode;
|
|
QRadioButton *fnMatrixMode;
|
|
QPushButton *swapColumnsAndRows;
|
|
QPushButton *setFnKey;
|
|
QComboBox *mergingVariants;
|
|
QPushButton *mergeRows;
|
|
QLabel *label_matrixInfo;
|
|
QPushButton *openMatrixFile;
|
|
QPushButton *saveMatrixFile;
|
|
QPushButton *openQmkKbd;
|
|
QComboBox *diodeDirection;
|
|
QWidget *tabFirmwareBilder;
|
|
QPushButton *openMatrixKbdFile;
|
|
QPushButton *generateFwBinFile;
|
|
QLineEdit *fpgaProjectPath;
|
|
QRadioButton *generateBinApio;
|
|
QRadioButton *generateBinArachne;
|
|
QRadioButton *generateBinNextPnr;
|
|
QPushButton *burnFileToFpga;
|
|
QTextBrowser *fpgaCommandOutput;
|
|
QSpinBox *newKeyCode;
|
|
QListWidget *keyList;
|
|
QLabel *labelKeyName;
|
|
QPushButton *addNewKey;
|
|
QLineEdit *newKeyName;
|
|
QLabel *label_keyComment;
|
|
QMenuBar *menuBar;
|
|
QToolBar *mainToolBar;
|
|
QStatusBar *statusBar;
|
|
|
|
void setupUi(QMainWindow *i2c_keyboard_detection)
|
|
{
|
|
if (i2c_keyboard_detection->objectName().isEmpty())
|
|
i2c_keyboard_detection->setObjectName(QStringLiteral("i2c_keyboard_detection"));
|
|
i2c_keyboard_detection->resize(1312, 781);
|
|
i2c_keyboard_detection->setFocusPolicy(Qt::TabFocus);
|
|
centralWidget = new QWidget(i2c_keyboard_detection);
|
|
centralWidget->setObjectName(QStringLiteral("centralWidget"));
|
|
tabWidget = new QTabWidget(centralWidget);
|
|
tabWidget->setObjectName(QStringLiteral("tabWidget"));
|
|
tabWidget->setGeometry(QRect(220, 10, 1081, 691));
|
|
tabKbdConnectionsDetection = new QWidget();
|
|
tabKbdConnectionsDetection->setObjectName(QStringLiteral("tabKbdConnectionsDetection"));
|
|
kbdReport = new QTextBrowser(tabKbdConnectionsDetection);
|
|
kbdReport->setObjectName(QStringLiteral("kbdReport"));
|
|
kbdReport->setGeometry(QRect(280, 50, 651, 591));
|
|
comList = new QComboBox(tabKbdConnectionsDetection);
|
|
comList->setObjectName(QStringLiteral("comList"));
|
|
comList->setGeometry(QRect(50, 10, 111, 31));
|
|
labelKeyboardStatus = new QLabel(tabKbdConnectionsDetection);
|
|
labelKeyboardStatus->setObjectName(QStringLiteral("labelKeyboardStatus"));
|
|
labelKeyboardStatus->setGeometry(QRect(10, 40, 261, 31));
|
|
comRefleshList = new QPushButton(tabKbdConnectionsDetection);
|
|
comRefleshList->setObjectName(QStringLiteral("comRefleshList"));
|
|
comRefleshList->setGeometry(QRect(10, 10, 31, 31));
|
|
enSendKeyToReport = new QCheckBox(tabKbdConnectionsDetection);
|
|
enSendKeyToReport->setObjectName(QStringLiteral("enSendKeyToReport"));
|
|
enSendKeyToReport->setGeometry(QRect(280, 10, 311, 29));
|
|
comConnect = new QPushButton(tabKbdConnectionsDetection);
|
|
comConnect->setObjectName(QStringLiteral("comConnect"));
|
|
comConnect->setGeometry(QRect(170, 10, 97, 31));
|
|
saveKbdReport = new QPushButton(tabKbdConnectionsDetection);
|
|
saveKbdReport->setObjectName(QStringLiteral("saveKbdReport"));
|
|
saveKbdReport->setGeometry(QRect(650, 10, 121, 31));
|
|
clearKbdReport = new QPushButton(tabKbdConnectionsDetection);
|
|
clearKbdReport->setObjectName(QStringLiteral("clearKbdReport"));
|
|
clearKbdReport->setGeometry(QRect(780, 10, 97, 31));
|
|
tabWidget->addTab(tabKbdConnectionsDetection, QString());
|
|
tabMatrixGenerator = new QWidget();
|
|
tabMatrixGenerator->setObjectName(QStringLiteral("tabMatrixGenerator"));
|
|
openConnectionsFile = new QPushButton(tabMatrixGenerator);
|
|
openConnectionsFile->setObjectName(QStringLiteral("openConnectionsFile"));
|
|
openConnectionsFile->setGeometry(QRect(10, 10, 341, 31));
|
|
generatedMatrixTable = new QTableWidget(tabMatrixGenerator);
|
|
generatedMatrixTable->setObjectName(QStringLiteral("generatedMatrixTable"));
|
|
generatedMatrixTable->setGeometry(QRect(10, 90, 1061, 551));
|
|
normalMatrixMode = new QRadioButton(tabMatrixGenerator);
|
|
normalMatrixMode->setObjectName(QStringLiteral("normalMatrixMode"));
|
|
normalMatrixMode->setGeometry(QRect(930, 0, 141, 29));
|
|
normalMatrixMode->setChecked(true);
|
|
fnMatrixMode = new QRadioButton(tabMatrixGenerator);
|
|
fnMatrixMode->setObjectName(QStringLiteral("fnMatrixMode"));
|
|
fnMatrixMode->setGeometry(QRect(930, 20, 91, 21));
|
|
swapColumnsAndRows = new QPushButton(tabMatrixGenerator);
|
|
swapColumnsAndRows->setObjectName(QStringLiteral("swapColumnsAndRows"));
|
|
swapColumnsAndRows->setGeometry(QRect(230, 50, 191, 31));
|
|
setFnKey = new QPushButton(tabMatrixGenerator);
|
|
setFnKey->setObjectName(QStringLiteral("setFnKey"));
|
|
setFnKey->setGeometry(QRect(10, 50, 211, 31));
|
|
mergingVariants = new QComboBox(tabMatrixGenerator);
|
|
mergingVariants->setObjectName(QStringLiteral("mergingVariants"));
|
|
mergingVariants->setGeometry(QRect(430, 50, 151, 31));
|
|
mergeRows = new QPushButton(tabMatrixGenerator);
|
|
mergeRows->setObjectName(QStringLiteral("mergeRows"));
|
|
mergeRows->setGeometry(QRect(590, 50, 111, 31));
|
|
label_matrixInfo = new QLabel(tabMatrixGenerator);
|
|
label_matrixInfo->setObjectName(QStringLiteral("label_matrixInfo"));
|
|
label_matrixInfo->setGeometry(QRect(710, 52, 221, 31));
|
|
openMatrixFile = new QPushButton(tabMatrixGenerator);
|
|
openMatrixFile->setObjectName(QStringLiteral("openMatrixFile"));
|
|
openMatrixFile->setGeometry(QRect(360, 10, 151, 31));
|
|
saveMatrixFile = new QPushButton(tabMatrixGenerator);
|
|
saveMatrixFile->setObjectName(QStringLiteral("saveMatrixFile"));
|
|
saveMatrixFile->setGeometry(QRect(750, 10, 141, 31));
|
|
openQmkKbd = new QPushButton(tabMatrixGenerator);
|
|
openQmkKbd->setObjectName(QStringLiteral("openQmkKbd"));
|
|
openQmkKbd->setGeometry(QRect(520, 10, 221, 31));
|
|
diodeDirection = new QComboBox(tabMatrixGenerator);
|
|
diodeDirection->setObjectName(QStringLiteral("diodeDirection"));
|
|
diodeDirection->setGeometry(QRect(940, 50, 131, 31));
|
|
tabWidget->addTab(tabMatrixGenerator, QString());
|
|
tabFirmwareBilder = new QWidget();
|
|
tabFirmwareBilder->setObjectName(QStringLiteral("tabFirmwareBilder"));
|
|
openMatrixKbdFile = new QPushButton(tabFirmwareBilder);
|
|
openMatrixKbdFile->setObjectName(QStringLiteral("openMatrixKbdFile"));
|
|
openMatrixKbdFile->setGeometry(QRect(10, 10, 271, 31));
|
|
generateFwBinFile = new QPushButton(tabFirmwareBilder);
|
|
generateFwBinFile->setObjectName(QStringLiteral("generateFwBinFile"));
|
|
generateFwBinFile->setEnabled(false);
|
|
generateFwBinFile->setGeometry(QRect(10, 50, 171, 31));
|
|
fpgaProjectPath = new QLineEdit(tabFirmwareBilder);
|
|
fpgaProjectPath->setObjectName(QStringLiteral("fpgaProjectPath"));
|
|
fpgaProjectPath->setGeometry(QRect(290, 10, 641, 31));
|
|
generateBinApio = new QRadioButton(tabFirmwareBilder);
|
|
generateBinApio->setObjectName(QStringLiteral("generateBinApio"));
|
|
generateBinApio->setEnabled(false);
|
|
generateBinApio->setGeometry(QRect(190, 50, 61, 29));
|
|
generateBinApio->setChecked(true);
|
|
generateBinArachne = new QRadioButton(tabFirmwareBilder);
|
|
generateBinArachne->setObjectName(QStringLiteral("generateBinArachne"));
|
|
generateBinArachne->setEnabled(false);
|
|
generateBinArachne->setGeometry(QRect(260, 50, 171, 29));
|
|
generateBinNextPnr = new QRadioButton(tabFirmwareBilder);
|
|
generateBinNextPnr->setObjectName(QStringLiteral("generateBinNextPnr"));
|
|
generateBinNextPnr->setEnabled(false);
|
|
generateBinNextPnr->setGeometry(QRect(440, 50, 141, 29));
|
|
burnFileToFpga = new QPushButton(tabFirmwareBilder);
|
|
burnFileToFpga->setObjectName(QStringLiteral("burnFileToFpga"));
|
|
burnFileToFpga->setEnabled(false);
|
|
burnFileToFpga->setGeometry(QRect(580, 50, 351, 31));
|
|
fpgaCommandOutput = new QTextBrowser(tabFirmwareBilder);
|
|
fpgaCommandOutput->setObjectName(QStringLiteral("fpgaCommandOutput"));
|
|
fpgaCommandOutput->setGeometry(QRect(10, 90, 921, 551));
|
|
tabWidget->addTab(tabFirmwareBilder, QString());
|
|
newKeyCode = new QSpinBox(centralWidget);
|
|
newKeyCode->setObjectName(QStringLiteral("newKeyCode"));
|
|
newKeyCode->setGeometry(QRect(10, 670, 201, 32));
|
|
newKeyCode->setMinimum(1);
|
|
newKeyCode->setMaximum(254);
|
|
newKeyCode->setValue(254);
|
|
newKeyCode->setDisplayIntegerBase(16);
|
|
keyList = new QListWidget(centralWidget);
|
|
keyList->setObjectName(QStringLiteral("keyList"));
|
|
keyList->setGeometry(QRect(10, 10, 201, 551));
|
|
keyList->setAlternatingRowColors(true);
|
|
labelKeyName = new QLabel(centralWidget);
|
|
labelKeyName->setObjectName(QStringLiteral("labelKeyName"));
|
|
labelKeyName->setGeometry(QRect(10, 640, 51, 31));
|
|
addNewKey = new QPushButton(centralWidget);
|
|
addNewKey->setObjectName(QStringLiteral("addNewKey"));
|
|
addNewKey->setGeometry(QRect(10, 600, 201, 31));
|
|
addNewKey->setCursor(QCursor(Qt::WaitCursor));
|
|
addNewKey->setFocusPolicy(Qt::ClickFocus);
|
|
newKeyName = new QLineEdit(centralWidget);
|
|
newKeyName->setObjectName(QStringLiteral("newKeyName"));
|
|
newKeyName->setGeometry(QRect(60, 640, 151, 31));
|
|
label_keyComment = new QLabel(centralWidget);
|
|
label_keyComment->setObjectName(QStringLiteral("label_keyComment"));
|
|
label_keyComment->setGeometry(QRect(10, 560, 201, 23));
|
|
i2c_keyboard_detection->setCentralWidget(centralWidget);
|
|
menuBar = new QMenuBar(i2c_keyboard_detection);
|
|
menuBar->setObjectName(QStringLiteral("menuBar"));
|
|
menuBar->setGeometry(QRect(0, 0, 1312, 25));
|
|
i2c_keyboard_detection->setMenuBar(menuBar);
|
|
mainToolBar = new QToolBar(i2c_keyboard_detection);
|
|
mainToolBar->setObjectName(QStringLiteral("mainToolBar"));
|
|
i2c_keyboard_detection->addToolBar(Qt::TopToolBarArea, mainToolBar);
|
|
statusBar = new QStatusBar(i2c_keyboard_detection);
|
|
statusBar->setObjectName(QStringLiteral("statusBar"));
|
|
i2c_keyboard_detection->setStatusBar(statusBar);
|
|
|
|
retranslateUi(i2c_keyboard_detection);
|
|
|
|
tabWidget->setCurrentIndex(1);
|
|
|
|
|
|
QMetaObject::connectSlotsByName(i2c_keyboard_detection);
|
|
} // setupUi
|
|
|
|
void retranslateUi(QMainWindow *i2c_keyboard_detection)
|
|
{
|
|
i2c_keyboard_detection->setWindowTitle(QApplication::translate("i2c_keyboard_detection", "i2c_keyboard_detection", Q_NULLPTR));
|
|
labelKeyboardStatus->setText(QApplication::translate("i2c_keyboard_detection", "Status: no keys pressed", Q_NULLPTR));
|
|
comRefleshList->setText(QApplication::translate("i2c_keyboard_detection", "R", Q_NULLPTR));
|
|
enSendKeyToReport->setText(QApplication::translate("i2c_keyboard_detection", "Wait selected key and add it to report", Q_NULLPTR));
|
|
comConnect->setText(QApplication::translate("i2c_keyboard_detection", "Connect", Q_NULLPTR));
|
|
saveKbdReport->setText(QApplication::translate("i2c_keyboard_detection", "Save to file", Q_NULLPTR));
|
|
clearKbdReport->setText(QApplication::translate("i2c_keyboard_detection", "Clear", Q_NULLPTR));
|
|
tabWidget->setTabText(tabWidget->indexOf(tabKbdConnectionsDetection), QApplication::translate("i2c_keyboard_detection", "Keyboard connections detection", Q_NULLPTR));
|
|
openConnectionsFile->setText(QApplication::translate("i2c_keyboard_detection", "Open connections file and generate matrix", Q_NULLPTR));
|
|
normalMatrixMode->setText(QApplication::translate("i2c_keyboard_detection", "&Normal matrix", Q_NULLPTR));
|
|
fnMatrixMode->setText(QApplication::translate("i2c_keyboard_detection", "FN m&ode", Q_NULLPTR));
|
|
swapColumnsAndRows->setText(QApplication::translate("i2c_keyboard_detection", "Swap columns and rows", Q_NULLPTR));
|
|
setFnKey->setText(QApplication::translate("i2c_keyboard_detection", "Set Fn key code from table", Q_NULLPTR));
|
|
mergeRows->setText(QApplication::translate("i2c_keyboard_detection", "Connect rows", Q_NULLPTR));
|
|
label_matrixInfo->setText(QString());
|
|
openMatrixFile->setText(QApplication::translate("i2c_keyboard_detection", "Open matrix file", Q_NULLPTR));
|
|
saveMatrixFile->setText(QApplication::translate("i2c_keyboard_detection", "Save matrix file", Q_NULLPTR));
|
|
openQmkKbd->setText(QApplication::translate("i2c_keyboard_detection", "Open QMK keyboard folder", Q_NULLPTR));
|
|
diodeDirection->clear();
|
|
diodeDirection->insertItems(0, QStringList()
|
|
<< QApplication::translate("i2c_keyboard_detection", "No diodes", Q_NULLPTR)
|
|
<< QApplication::translate("i2c_keyboard_detection", "Col2Row", Q_NULLPTR)
|
|
<< QApplication::translate("i2c_keyboard_detection", "Row2Col", Q_NULLPTR)
|
|
);
|
|
tabWidget->setTabText(tabWidget->indexOf(tabMatrixGenerator), QApplication::translate("i2c_keyboard_detection", "Matrix Generator", Q_NULLPTR));
|
|
openMatrixKbdFile->setText(QApplication::translate("i2c_keyboard_detection", "Open matrix_kbd.v and modify it", Q_NULLPTR));
|
|
generateFwBinFile->setText(QApplication::translate("i2c_keyboard_detection", "Generate bin file", Q_NULLPTR));
|
|
generateBinApio->setText(QApplication::translate("i2c_keyboard_detection", "&Apio", Q_NULLPTR));
|
|
generateBinArachne->setText(QApplication::translate("i2c_keyboard_detection", "&Yosys+Arachne-pnr", Q_NULLPTR));
|
|
generateBinNextPnr->setText(QApplication::translate("i2c_keyboard_detection", "Yosys+&Nextpnr", Q_NULLPTR));
|
|
burnFileToFpga->setText(QApplication::translate("i2c_keyboard_detection", "Open file and program FPGA", Q_NULLPTR));
|
|
tabWidget->setTabText(tabWidget->indexOf(tabFirmwareBilder), QApplication::translate("i2c_keyboard_detection", "Firmware generator", Q_NULLPTR));
|
|
newKeyCode->setPrefix(QApplication::translate("i2c_keyboard_detection", "Code ", Q_NULLPTR));
|
|
labelKeyName->setText(QApplication::translate("i2c_keyboard_detection", "Name", Q_NULLPTR));
|
|
addNewKey->setText(QApplication::translate("i2c_keyboard_detection", "Add new key", Q_NULLPTR));
|
|
label_keyComment->setText(QApplication::translate("i2c_keyboard_detection", "Key comment", Q_NULLPTR));
|
|
} // retranslateUi
|
|
|
|
};
|
|
|
|
namespace Ui {
|
|
class i2c_keyboard_detection: public Ui_i2c_keyboard_detection {};
|
|
} // namespace Ui
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // UI_I2C_KEYBOARD_DETECTION_H
|