OfficeAssistant_Win10/OfficeAssistant_msvc/mainscreen.h

52 lines
1018 B
C
Raw Normal View History

2023-07-27 13:44:54 +08:00
//
// Created by HW on 2023/07/27.
//
#ifndef OFFICEASSISTANT_MAINSCREEN_H
#define OFFICEASSISTANT_MAINSCREEN_H
#include <QWidget>
2023-07-30 10:26:41 +08:00
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QPushButton>
2023-07-30 18:57:41 +08:00
#include "wke.h"
#include "qminiblink.h"
2023-07-31 19:06:37 +08:00
class MyThread;
2023-07-27 13:44:54 +08:00
QT_BEGIN_NAMESPACE
namespace Ui { class MainScreen; }
QT_END_NAMESPACE
class MainScreen : public QWidget {
Q_OBJECT
2023-07-30 18:57:41 +08:00
signals:
2023-07-31 19:06:37 +08:00
void started();
void ondestroy();
2023-07-30 18:57:41 +08:00
void changeUrl(QString url);
2023-07-31 19:06:37 +08:00
void initMiniBlink();
2023-07-27 13:44:54 +08:00
public:
explicit MainScreen(QWidget *parent = nullptr);
~MainScreen() override;
2023-07-30 10:26:41 +08:00
public slots:
void clickButton1(QString text, QString url);
2023-07-31 19:06:37 +08:00
void firstUrl(QString url);
2023-07-30 18:57:41 +08:00
protected:
//void resizeEvent(QResizeEvent *event) override;
2023-07-27 13:44:54 +08:00
private:
Ui::MainScreen *ui;
2023-07-30 10:26:41 +08:00
QHBoxLayout *layout;
QVBoxLayout *layout_left;
QPushButton *button;
QIcon *icon;
QWidget *broswer;
2023-07-30 18:57:41 +08:00
static bool isInited();
2023-08-01 09:04:53 +08:00
QWidget *widget;
2023-07-31 19:06:37 +08:00
MyThread *thread;
2023-07-30 18:57:41 +08:00
QMiniBlink *miniblink;
2023-07-31 19:06:37 +08:00
2023-07-30 10:26:41 +08:00
private slots:
void startWeChat();
2023-07-27 13:44:54 +08:00
};
#endif //OFFICEASSISTANT_MAINSCREEN_H