OfficeAssistant_Win10/OfficeAssistant_msvc/mainwindowlayout.h

45 lines
962 B
C
Raw Normal View History

2023-07-26 19:48:14 +08:00
//
// Created by HW on 2023/07/26.
//
#ifndef OFFICEASSISTANT_MAINWINDOWLAYOUT_H
#define OFFICEASSISTANT_MAINWINDOWLAYOUT_H
#include <QWidget>
#include <QVBoxLayout>
#include "navbar.h"
2023-07-27 13:44:54 +08:00
#include "mainscreen.h"
2023-07-30 01:06:42 +08:00
#include "netio.h"
2023-07-30 10:26:41 +08:00
class NavBar;
2023-07-26 19:48:14 +08:00
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindowLayout; }
QT_END_NAMESPACE
class MainWindowLayout : public QWidget {
Q_OBJECT
2023-07-30 10:26:41 +08:00
signals:
void clickButton1(QString text, QString url);
2023-07-26 19:48:14 +08:00
public:
explicit MainWindowLayout(QWidget *parent = nullptr);
~MainWindowLayout() override;
2023-07-30 10:26:41 +08:00
public slots:
void clickButton(QString text, QString url);
2023-07-27 13:44:54 +08:00
protected:
void resizeEvent(QResizeEvent *event) override;
//void paintEvent(QPaintEvent *event) override;
2023-07-26 19:48:14 +08:00
private:
Ui::MainWindowLayout *ui;
QVBoxLayout *layout;
2023-07-30 13:57:54 +08:00
//QList<ButtonStruct *> list;
2023-07-26 19:48:14 +08:00
NavBar *navBar;
ButtonStruct *buttons;
2023-07-27 13:44:54 +08:00
MainScreen *mainScreen;
2023-07-31 19:06:37 +08:00
ConfigResponse *configResponse;
2023-07-26 19:48:14 +08:00
};
#endif //OFFICEASSISTANT_MAINWINDOWLAYOUT_H