b4a2edec6a
* Final update copyright headers to reference license files at the repo root Signed-off-by: spham <spham@amazon.com> * Fix copyright validator unit tests to support the stale O3DE header scenario Signed-off-by: spham <spham@amazon.com>
53 lines
1.3 KiB
C++
53 lines
1.3 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#if !defined(Q_MOC_RUN)
|
|
#include <QDialog>
|
|
#endif
|
|
|
|
namespace Ui
|
|
{
|
|
class EndpointManagerViewWidget;
|
|
}
|
|
|
|
namespace News
|
|
{
|
|
class BuilderResourceManifest;
|
|
class Endpoint;
|
|
class EndpointEntryView;
|
|
class EndpointManager;
|
|
|
|
//! Qt dialog for managing endpoints
|
|
class EndpointManagerView
|
|
: public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
EndpointManagerView(QWidget* parent,
|
|
BuilderResourceManifest& manifest);
|
|
~EndpointManagerView();
|
|
|
|
private:
|
|
QScopedPointer<Ui::EndpointManagerViewWidget> m_ui;
|
|
EndpointManager* m_pManager = nullptr;
|
|
EndpointEntryView* m_pSelectedEndpoint = nullptr;
|
|
QList<EndpointEntryView*> m_endpoints;
|
|
BuilderResourceManifest& m_manifest;
|
|
|
|
EndpointEntryView* AddEndpointEntry(Endpoint* pEndpoint);
|
|
void Update() const;
|
|
|
|
private Q_SLOTS:
|
|
void accept() override;
|
|
void addEndpointSlot();
|
|
void selectEndpointSlot(EndpointEntryView* pEndpoint);
|
|
void deleteEndpointSlot(EndpointEntryView* pEndpoint);
|
|
};
|
|
} // namespace News
|