1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #ifndef PROJECTVIEW_H
- #define PROJECTVIEW_H
- #include <QWidget>
- class ProjectInfo;
- class IndexSystemWidget;
- class EvalSchemeWidget2;
- class DataCollectionWidget;
- class DataProcessingWidget;
- class PushButton;
- class TreeWidget;
- class QVBoxLayout;
- class QHBoxLayout;
- class QLabel;
- class QTreeWidgetItem;
- class QStackedWidget;
- /// 工程视图
- class ProjectView : public QWidget
- {
- Q_OBJECT
- public:
- explicit ProjectView(ProjectInfo *proj = nullptr, QWidget *parent = nullptr);
- void showEvent(QShowEvent *event) override;
- void hideEvent(QHideEvent *event) override;
- ProjectInfo *proj() const;
- void showEvalWidget(int eval, int task);
- signals:
- void sigClose();
- private:
- void initWidgets();
- void initLayout();
- void connectSigalsAndSlots();
- private slots:
- void itemClicked(QTreeWidgetItem *item, int column);
- void exportClicked();
- private:
- ProjectInfo *m_proj = nullptr;
- QVBoxLayout *m_layout = nullptr;
- QHBoxLayout *m_headerLayout = nullptr;
- QHBoxLayout *m_contentLayout = nullptr;
- QLabel *m_title = nullptr;
- PushButton *m_export = nullptr;
- PushButton *m_close = nullptr;
- TreeWidget *m_tree = nullptr;
- QWidget *m_seperator = nullptr;
- QStackedWidget *m_stack = nullptr;
- IndexSystemWidget *m_indexSystem = nullptr;
- EvalSchemeWidget2 *m_evalScheme = nullptr;
- DataCollectionWidget *m_dataCollection = nullptr;
- DataProcessingWidget *m_dataProcessing = nullptr;
- };
- #endif // PROJECTVIEW_H
|