mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
first commit
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
#ifndef APPSWIDGET_H
|
||||
#define APPSWIDGET_H
|
||||
|
||||
#include <QComboBox>
|
||||
#include <QDialog>
|
||||
#include <QFile>
|
||||
#include <QFrame>
|
||||
#include <QGridLayout>
|
||||
#include <QHBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QLineEdit>
|
||||
#include <QProcess>
|
||||
#include <QProgressBar>
|
||||
#include <QPushButton>
|
||||
#include <QRegularExpression>
|
||||
#include <QScrollArea>
|
||||
#include <QTimer>
|
||||
#include <QVBoxLayout>
|
||||
#include <QWidget>
|
||||
|
||||
class LoginDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit LoginDialog(QWidget *parent = nullptr);
|
||||
QString getEmail() const;
|
||||
QString getPassword() const;
|
||||
|
||||
private:
|
||||
QLineEdit *m_emailEdit;
|
||||
QLineEdit *m_passwordEdit;
|
||||
};
|
||||
|
||||
class AppsWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AppsWidget(QWidget *parent = nullptr);
|
||||
|
||||
private slots:
|
||||
void onLoginClicked();
|
||||
void onAppCardClicked(const QString &appName, const QString &description);
|
||||
void onDownloadIpaClicked(const QString &name);
|
||||
|
||||
private:
|
||||
void setupUI();
|
||||
void createAppCard(const QString &name, const QString &description,
|
||||
const QString &iconPath, QGridLayout *gridLayout,
|
||||
int row, int col);
|
||||
QScrollArea *m_scrollArea;
|
||||
QWidget *m_contentWidget;
|
||||
QPushButton *m_loginButton;
|
||||
QLabel *m_statusLabel;
|
||||
bool m_isLoggedIn;
|
||||
};
|
||||
|
||||
#endif // APPSWIDGET_H
|
||||
Reference in New Issue
Block a user