ProjectView.h 1.2 KB

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