Files
o3de/Gems/AudioSystem/Code/Source/Editor/InspectorPanel.h
T
Steve Pham 38261d0800 Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
2021-07-16 15:25:48 -07:00

77 lines
2.0 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 <ATLControlsModel.h>
#include <AudioControl.h>
#include <IAudioSystemEditor.h>
#include <QConnectionsWidget.h>
#include <QWidget>
#include <QMenu>
#include <QListWidget>
#include <Source/Editor/ui_InspectorPanel.h>
#endif
namespace AudioControls
{
class CATLControl;
//-------------------------------------------------------------------------------------------//
class CInspectorPanel
: public QWidget
, public Ui::InspectorPanel
, public IATLControlModelListener
{
Q_OBJECT
public:
explicit CInspectorPanel(CATLControlsModel* atlControlsModel);
~CInspectorPanel();
void Reload();
public slots:
void SetSelectedControls(const ControlList& selectedControls);
void UpdateInspector();
private slots:
void SetControlName(QString name);
void SetControlScope(QString scope);
void SetAutoLoadForCurrentControl(bool isAutoLoad);
void FinishedEditingName();
private:
void UpdateNameControl();
void UpdateScopeControl();
void UpdateAutoLoadControl();
void UpdateConnectionListControl();
void UpdateConnectionData();
void UpdateScopeData();
void HideScope(bool hide);
void HideAutoLoad(bool hide);
//////////////////////////////////////////////////////////
// IATLControlModelListener implementation
void OnControlModified(CATLControl* control) override;
//////////////////////////////////////////////////////////
CATLControlsModel* m_atlControlsModel;
EACEControlType m_selectedType;
AZStd::vector<CATLControl*> m_selectedControls;
bool m_allControlsSameType;
QColor m_notFoundColor;
};
} // namespace AudioControls