vanilla/app/syncdialog.h
2024-08-04 10:53:03 -07:00

37 lines
No EOL
667 B
C++

#ifndef SYNC_DIALOG_H
#define SYNC_DIALOG_H
#include <QDialog>
#include <QHBoxLayout>
#include <QLabel>
#include "backend.h"
class SyncDialog : public QDialog
{
Q_OBJECT
public:
SyncDialog(QWidget *parent = nullptr);
void setup(Backend *backend);
private:
void updateLabels();
QPushButton *createButton(const QString &text, int id);
void launchSync();
static const int g_symbolCount = 4;
static QString g_symbols[g_symbolCount];
QLabel *m_labels[g_symbolCount];
int8_t m_code[g_symbolCount];
QHBoxLayout *m_buttonLayout;
Backend *m_backend;
private slots:
void buttonClicked();
};
#endif // SYNC_DIALOG_H