mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2025-01-22 08:11:47 -05:00
37 lines
No EOL
667 B
C++
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
|