first commit
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
#ifndef WIDGET_H
|
||||
#define WIDGET_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui { class Widget; }
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class DashboardPage;
|
||||
class QLabel;
|
||||
class QListWidget;
|
||||
class LogPage;
|
||||
class QStackedWidget;
|
||||
class QVBoxLayout;
|
||||
|
||||
class Widget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Widget(QWidget *parent = nullptr);
|
||||
~Widget();
|
||||
|
||||
private:
|
||||
void setupStyle();
|
||||
void setupTopBar(QVBoxLayout *rootLayout);
|
||||
void setupMainArea(QVBoxLayout *rootLayout);
|
||||
void appendLog(const QString &type, const QString &module, const QString &action,
|
||||
const QString &content, const QString &status);
|
||||
|
||||
Ui::Widget *ui;
|
||||
QListWidget *navList;
|
||||
QStackedWidget *pageStack;
|
||||
DashboardPage *dashboardPage;
|
||||
LogPage *logPage;
|
||||
QLabel *systemStateLabel;
|
||||
QLabel *currentOrderLabel;
|
||||
QLabel *currentWorkpieceLabel;
|
||||
QLabel *currentStepLabel;
|
||||
};
|
||||
|
||||
#endif // WIDGET_H
|
||||
Reference in New Issue
Block a user