ConnectionEditDialog.h 903 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 <QModelIndex>
  11. #include <QPersistentModelIndex>
  12. #include <AzQtComponents/Components/StyledDialog.h>
  13. #endif
  14. class ConnectionManager;
  15. class QLineEdit;
  16. namespace AzQtComponents
  17. {
  18. class SpinBox;
  19. }
  20. class ConnectionEditDialog : public AzQtComponents::StyledDialog
  21. {
  22. Q_OBJECT // AUTOMOC
  23. public:
  24. ConnectionEditDialog(ConnectionManager* connectionManager, const QModelIndex& connectionIndex, QWidget* parent = nullptr);
  25. void accept() override;
  26. private:
  27. ConnectionManager* m_connectionManager;
  28. QPersistentModelIndex m_index;
  29. QLineEdit* m_id;
  30. QLineEdit* m_ipAddress;
  31. AzQtComponents::SpinBox* m_port;
  32. };