TVEventsDialog.h 980 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #if !defined(Q_MOC_RUN)
  10. #include <IMovieSystem.h>
  11. #include <QDialog>
  12. #endif
  13. namespace Ui
  14. {
  15. class TVEventsDialog;
  16. }
  17. // CTVEventsDialog dialog
  18. class CTVEventsDialog
  19. : public QDialog
  20. {
  21. Q_OBJECT
  22. public:
  23. CTVEventsDialog(QWidget* pParent = nullptr); // standard constructor
  24. virtual ~CTVEventsDialog();
  25. void OnBnClickedButtonAddEvent();
  26. void OnBnClickedButtonRemoveEvent();
  27. void OnBnClickedButtonRenameEvent();
  28. void OnBnClickedButtonUpEvent();
  29. void OnBnClickedButtonDownEvent();
  30. void OnListItemChanged();
  31. const QString& GetLastAddedEvent();
  32. protected:
  33. void OnInitDialog();
  34. void UpdateButtons();
  35. private:
  36. QScopedPointer<Ui::TVEventsDialog> m_ui;
  37. QString m_lastAddedEvent;
  38. };