Files
yacreader/YACReaderLibrary/server_config_dialog.h
luisangelsm 3709b6e737
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled
Build / Publish YACReader10 Pre-release Builds (push) Has been cancelled
Format includes using clang-format
2026-03-13 18:21:38 +01:00

51 lines
1.0 KiB
C++

#ifndef __SERVER_CONFIG_DIALOG_H
#define __SERVER_CONFIG_DIALOG_H
#include "themable.h"
#include <QCheckBox>
#include <QComboBox>
#include <QDialog>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
class ServerConfigDialog : public QDialog, protected Themable
{
Q_OBJECT
public:
ServerConfigDialog(QWidget *parent = 0);
void showEvent(QShowEvent *event) override;
protected:
void applyTheme(const Theme &theme) override;
private:
QComboBox *ip;
QLineEdit *port;
QCheckBox *check;
QPushButton *close;
QPushButton *accept;
QLabel *qrCode;
// Labels for themable styling
QLabel *titleLabel;
QLabel *qrMessageLabel;
QLabel *propagandaLabel;
QLabel *ipLabel;
QLabel *portLabel;
QLabel *backgroundDecoration;
public slots:
void generateQR();
void generateQR(const QString &serverAddress);
void regenerateQR(const QString &ip);
void enableServer(int status);
void updatePort();
signals:
void portChanged(QString port);
};
#endif