Browse Source

系统资源管理

chengxr 1 year ago
parent
commit
3426ba2711

+ 8 - 6
QFD/QFD.pro

@@ -82,6 +82,8 @@ SOURCES += \
     common/QFDIcon.cpp \
     main.cpp \
     view/AboutView.cpp \
+    view/AlgorithmManageView.cpp \
+    view/AlgorithmView.cpp \
     view/EvaluateView.cpp \
     view/ExpertManageView.cpp \
     view/HomeView.cpp \
@@ -90,9 +92,9 @@ SOURCES += \
     view/PlotView.cpp \
     view/ProjectView.cpp \
     view/SettingView.cpp \
+    view/StandardManageView.cpp \
     view/UserView.cpp \
     widgets/AddSchemeWidget.cpp \
-    widgets/AlgorithmWidget.cpp \
     widgets/AppInfoWidget.cpp \
     widgets/ConfigExpertWidget.cpp \
     widgets/CreateProjWidget.cpp \
@@ -116,8 +118,7 @@ SOURCES += \
     widgets/RegisterWidget.cpp \
     widgets/RenameWidget.cpp \
     widgets/SchemeOptionWidget.cpp \
-    widgets/SchemeWidget.cpp \
-    widgets/StandardWidget.cpp
+    widgets/SchemeWidget.cpp
 
 HEADERS += \
     algorithm/AverageMethod.h \
@@ -137,6 +138,8 @@ HEADERS += \
     common/QFDConfig.h \
     common/QFDIcon.h \
     view/AboutView.h \
+    view/AlgorithmManageView.h \
+    view/AlgorithmView.h \
     view/EvaluateView.h \
     view/ExpertManageView.h \
     view/HomeView.h \
@@ -145,9 +148,9 @@ HEADERS += \
     view/PlotView.h \
     view/ProjectView.h \
     view/SettingView.h \
+    view/StandardManageView.h \
     view/UserView.h \
     widgets/AddSchemeWidget.h \
-    widgets/AlgorithmWidget.h \
     widgets/AppInfoWidget.h \
     widgets/ConfigExpertWidget.h \
     widgets/CreateProjWidget.h \
@@ -171,8 +174,7 @@ HEADERS += \
     widgets/RegisterWidget.h \
     widgets/RenameWidget.h \
     widgets/SchemeOptionWidget.h \
-    widgets/SchemeWidget.h \
-    widgets/StandardWidget.h
+    widgets/SchemeWidget.h
 
 
 include(./CCanvas/CCanvas.pri)

+ 6 - 0
QFD/view/AlgorithmManageView.cpp

@@ -0,0 +1,6 @@
+#include "AlgorithmManageView.h"
+
+AlgorithmManageView::AlgorithmManageView(QWidget *parent) : QWidget(parent)
+{
+
+}

+ 16 - 0
QFD/view/AlgorithmManageView.h

@@ -0,0 +1,16 @@
+#ifndef ALGORITHMMANAGEVIEW_H
+#define ALGORITHMMANAGEVIEW_H
+
+#include <QWidget>
+
+class AlgorithmManageView : public QWidget
+{
+    Q_OBJECT
+public:
+    explicit AlgorithmManageView(QWidget *parent = nullptr);
+
+signals:
+
+};
+
+#endif // ALGORITHMMANAGEVIEW_H

+ 6 - 0
QFD/view/AlgorithmView.cpp

@@ -0,0 +1,6 @@
+#include "AlgorithmView.h"
+
+AlgorithmView::AlgorithmView(QWidget *parent) : QWidget(parent)
+{
+
+}

+ 16 - 0
QFD/view/AlgorithmView.h

@@ -0,0 +1,16 @@
+#ifndef ALGORITHMVIEW_H
+#define ALGORITHMVIEW_H
+
+#include <QWidget>
+
+class AlgorithmView : public QWidget
+{
+    Q_OBJECT
+public:
+    explicit AlgorithmView(QWidget *parent = nullptr);
+
+signals:
+
+};
+
+#endif // ALGORITHMVIEW_H

+ 4 - 5
QFD/view/SettingView.cpp

@@ -1,9 +1,8 @@
 #include "SettingView.h"
 
 #include "ExpertManageView.h"
-#include "ExpertListWidget.h"
-#include "AlgorithmWidget.h"
-#include "StandardWidget.h"
+#include "AlgorithmManageView.h"
+#include "StandardManageView.h"
 
 #include <QTabWidget>
 #include <QBoxLayout>
@@ -18,8 +17,8 @@ void SettingView::initWidgets()
 {
     m_tab       = new QTabWidget(this);
     m_expert    = new ExpertManageView(this);
-    m_algorithm = new AlgorithmWidget(this);
-    m_standard  = new StandardWidget(this);
+    m_algorithm = new AlgorithmManageView(this);
+    m_standard  = new StandardManageView(this);
 }
 
 void SettingView::initLayout()

+ 5 - 6
QFD/view/SettingView.h

@@ -6,8 +6,8 @@
 class ExpertListWidget;
 
 class ExpertManageView;
-class AlgorithmWidget;
-class StandardWidget;
+class AlgorithmManageView;
+class StandardManageView;
 
 class QTabWidget;
 class QVBoxLayout;
@@ -27,10 +27,9 @@ private:
 private:
     QTabWidget *m_tab = nullptr;
 
-    ExpertManageView *m_expert = nullptr;
-    //    ExpertListWidget *m_expert   = nullptr;
-    AlgorithmWidget *m_algorithm = nullptr;
-    StandardWidget *m_standard   = nullptr;
+    ExpertManageView *m_expert       = nullptr;
+    AlgorithmManageView *m_algorithm = nullptr;
+    StandardManageView *m_standard   = nullptr;
 
     QVBoxLayout *m_layout = nullptr;
 };

+ 6 - 0
QFD/view/StandardManageView.cpp

@@ -0,0 +1,6 @@
+#include "StandardManageView.h"
+
+StandardManageView::StandardManageView(QWidget *parent) : QWidget(parent)
+{
+
+}

+ 16 - 0
QFD/view/StandardManageView.h

@@ -0,0 +1,16 @@
+#ifndef STANDARDMANAGEVIEW_H
+#define STANDARDMANAGEVIEW_H
+
+#include <QWidget>
+
+class StandardManageView : public QWidget
+{
+    Q_OBJECT
+public:
+    explicit StandardManageView(QWidget *parent = nullptr);
+
+signals:
+
+};
+
+#endif // STANDARDMANAGEVIEW_H

+ 0 - 6
QFD/widgets/AlgorithmWidget.cpp

@@ -1,6 +0,0 @@
-#include "AlgorithmWidget.h"
-
-AlgorithmWidget::AlgorithmWidget(QWidget *parent) : QWidget(parent)
-{
-
-}

+ 0 - 16
QFD/widgets/AlgorithmWidget.h

@@ -1,16 +0,0 @@
-#ifndef ALGORITHMWIDGET_H
-#define ALGORITHMWIDGET_H
-
-#include <QWidget>
-
-class AlgorithmWidget : public QWidget
-{
-    Q_OBJECT
-public:
-    explicit AlgorithmWidget(QWidget *parent = nullptr);
-
-signals:
-
-};
-
-#endif // ALGORITHMWIDGET_H

+ 0 - 6
QFD/widgets/StandardWidget.cpp

@@ -1,6 +0,0 @@
-#include "StandardWidget.h"
-
-StandardWidget::StandardWidget(QWidget *parent) : QWidget(parent)
-{
-
-}

+ 0 - 16
QFD/widgets/StandardWidget.h

@@ -1,16 +0,0 @@
-#ifndef STANDARDWIDGET_H
-#define STANDARDWIDGET_H
-
-#include <QWidget>
-
-class StandardWidget : public QWidget
-{
-    Q_OBJECT
-public:
-    explicit StandardWidget(QWidget *parent = nullptr);
-
-signals:
-
-};
-
-#endif // STANDARDWIDGET_H