#pragma once #include #include "../common/diality_keys.h" class QLineEdit; class QTextEdit; class QLabel; class QPushButton; class MainWindow final : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget* parent = nullptr); private slots: void onReloadKeysClicked(); void onScanEntered(); private: bool ensureKeysLoaded(); QLineEdit* m_scanEdit = nullptr; QTextEdit* m_output = nullptr; QLabel* m_keysStatus = nullptr; QPushButton* m_reloadKeysBtn = nullptr; diality::Keys m_keys; bool m_keysLoaded = false; QString m_keysPath; };