UserConfigDlg.h 784 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef USERCONFIGDLG_H
  2. #define USERCONFIGDLG_H
  3. #include <QDialog>
  4. class QListWidgetItem;
  5. class EngineerInfo;
  6. namespace Ui {
  7. class UserConfigDlg;
  8. }
  9. class UserConfigDlg : public QDialog
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit UserConfigDlg(QWidget *parent = nullptr);
  14. ~UserConfigDlg();
  15. private slots:
  16. void userItemClicked(QListWidgetItem *item);
  17. void addNewUserItem();
  18. void deleteUserItem();
  19. void engineerCombChanged(int index);
  20. void saveCurrentRow();
  21. void userListMenuRequested(const QPoint &pos);
  22. void deleteUserAction();
  23. private:
  24. Ui::UserConfigDlg *ui;
  25. QList<EngineerInfo *> m_engineerInfos;
  26. bool rollback = false;
  27. void init();
  28. void refreshUserList();
  29. void refreshConfigTable(int userId);
  30. };
  31. #endif // USERCONFIGDLG_H