upload all files
This commit is contained in:
69
dialoglogin.h
Normal file
69
dialoglogin.h
Normal file
@@ -0,0 +1,69 @@
|
||||
#ifndef DIALOGLOGIN_H
|
||||
#define DIALOGLOGIN_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QDialogButtonBox>
|
||||
#include <QPushButton>
|
||||
#include <QCheckBox>
|
||||
#include <QTextEdit>
|
||||
#include <QLabel>
|
||||
#include "Modules/global.h"
|
||||
|
||||
using std::string;
|
||||
|
||||
// struct structCheckBox {
|
||||
// QCheckBox *rememberMe = nullptr;
|
||||
// };
|
||||
// extern structCheckBox checkBox;
|
||||
|
||||
// struct structTextEdit {
|
||||
// QTextEdit *username = nullptr;
|
||||
// QTextEdit *passwd = nullptr;
|
||||
// };
|
||||
// extern structTextEdit textEdit;
|
||||
|
||||
// struct structPushButton {
|
||||
// QPushButton *ok = nullptr;
|
||||
// QPushButton *cancel = nullptr;
|
||||
// };
|
||||
// extern structPushButton pushButton;
|
||||
|
||||
// struct structLabel {
|
||||
// QLabel *connStatus = nullptr;
|
||||
// };
|
||||
// extern structLabel label;
|
||||
|
||||
// namespace Ui {
|
||||
// class DialogLogin;
|
||||
// }
|
||||
|
||||
class DialogLogin : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DialogLogin(QWidget *parent = nullptr);
|
||||
~DialogLogin();
|
||||
void enableAll();
|
||||
|
||||
signals:
|
||||
void loadMainWindow();
|
||||
|
||||
private slots:
|
||||
|
||||
void on_pushButton_ok_clicked();
|
||||
|
||||
void on_pushButton_cancel_clicked();
|
||||
|
||||
bool tryLogin(string userName, string passWd);
|
||||
|
||||
private:
|
||||
Ui::DialogLogin *ui;
|
||||
};
|
||||
|
||||
// struct structCheckBox{} dialogLogin_checkBox;
|
||||
// struct structTextEdit{} dialogLogin_textEdit;
|
||||
// struct structPushButton{} dialogLogin_pushButton;
|
||||
// struct structLabel{} dialogLogin_label;
|
||||
|
||||
#endif // DIALOGLOGIN_H
|
||||
Reference in New Issue
Block a user