#ifndef PROJECTVIEW_H #define PROJECTVIEW_H #include class ProjectListWidget; class ConfigExpertWidget; class RenameWidget; class LineEdit; class ToolButton; class QVBoxLayout; class QHBoxLayout; class QLabel; /// 工程视图 /// 可以查看和编辑指标体系、配置专家 class ProjectView : public QWidget { Q_OBJECT public: explicit ProjectView(QWidget *parent = nullptr); void showEvent(QShowEvent *event) override; void hideEvent(QHideEvent *event) override; signals: private: void initialize(); void initLayout(); void connectSigalsAndSlots(); void showRenameWidget(); private: bool m_initilized = false; QHBoxLayout *m_hBoxLayout = nullptr; QWidget *m_listWidget = nullptr; QVBoxLayout *m_listLayout = nullptr; QHBoxLayout *m_buttonLayout = nullptr; LineEdit *m_searchLineEdit = nullptr; ToolButton *m_renameButton = nullptr; ToolButton *m_newProjButton = nullptr; ToolButton *m_deleteButton = nullptr; ProjectListWidget *m_projListWidget = nullptr; QWidget *m_projDetailWidget = nullptr; QVBoxLayout *m_projLayout = nullptr; QLabel *m_projNameLabel = nullptr; QWidget *m_separator = nullptr; ConfigExpertWidget *m_configExpWidget = nullptr; RenameWidget *m_renameWidget = nullptr; }; #endif // PROJECTVIEW_H