ProjectView.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef PROJECTVIEW_H
  2. #define PROJECTVIEW_H
  3. #include <QWidget>
  4. class ProjectListWidget;
  5. class ConfigExpertWidget;
  6. class RenameWidget;
  7. class LineEdit;
  8. class ToolButton;
  9. class QVBoxLayout;
  10. class QHBoxLayout;
  11. class QLabel;
  12. /// 工程视图
  13. /// 可以查看和编辑指标体系、配置专家
  14. class ProjectView : public QWidget
  15. {
  16. Q_OBJECT
  17. public:
  18. explicit ProjectView(QWidget *parent = nullptr);
  19. signals:
  20. private:
  21. void initialize();
  22. void initLayout();
  23. void connectSiganlsAndSlots();
  24. void showRenameWidget();
  25. private:
  26. QHBoxLayout *m_hBoxLayout = nullptr;
  27. QWidget *m_listWidget = nullptr;
  28. QVBoxLayout *m_listLayout = nullptr;
  29. QHBoxLayout *m_buttonLayout = nullptr;
  30. LineEdit *m_searchLineEdit = nullptr;
  31. ToolButton *m_renameButton = nullptr;
  32. ToolButton *m_newProjButton = nullptr;
  33. ToolButton *m_deleteButton = nullptr;
  34. ProjectListWidget *m_projListWidget = nullptr;
  35. QWidget *m_projDetailWidget = nullptr;
  36. QVBoxLayout *m_projLayout = nullptr;
  37. QLabel *m_projNameLabel = nullptr;
  38. ConfigExpertWidget *m_configExpWidget = nullptr;
  39. RenameWidget *m_renameWidget = nullptr;
  40. };
  41. #endif // PROJECTVIEW_H