OriginalWnd.h 1009 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef ORIGINALWND_H
  2. #define ORIGINALWND_H
  3. #include <QMainWindow>
  4. #include "treeviewmanager.h"
  5. QT_BEGIN_NAMESPACE
  6. namespace Ui { class OriginalWnd; }
  7. QT_END_NAMESPACE
  8. class OriginalWnd : public QMainWindow
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit OriginalWnd(QWidget *parent = nullptr);
  13. ~OriginalWnd();
  14. QWidget* getWidgetLeft() const; // 访问 widget 的接口
  15. void switchToHomeConfig();
  16. void switchToProductionConfig();
  17. void switchToSystemConfig();
  18. void switchToModuleConfig();
  19. void switchToProgramConfig();
  20. void switchToDispositionConfig();
  21. void switchToDiagnosisConfig();
  22. protected:
  23. bool eventFilter(QObject *obj,QEvent *event);
  24. private slots:
  25. void on_ChartButton_clicked();
  26. void on_DoubleImageButton_clicked();
  27. void on_SingleImageButton_clicked();
  28. void updateTime();
  29. private:
  30. Ui::OriginalWnd *ui;
  31. TreeViewManager *treeViewManager; // 树视图管理器
  32. void initForm(); // 初始化表单控件
  33. };
  34. #endif // ORIGINALWND_H