/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or the license accompanying this file. Do not * remove or modify any license notices. This file is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ #pragma once #if !defined(Q_MOC_RUN) #include #include #include #include #include #endif namespace Ui { class PlatformSelectionWidget; } namespace AssetBundler { class PlatformSelectionWidget : public QWidget { Q_OBJECT public: explicit PlatformSelectionWidget(QWidget* parent); virtual ~PlatformSelectionWidget() {} void Init(const AzFramework::PlatformFlags& enabledPlatforms, const QString& disabledPatformMessageOverride = ""); void SetSelectedPlatforms( const AzFramework::PlatformFlags& selectedPlatforms, const AzFramework::PlatformFlags& partiallySelectedPlatforms); AzFramework::PlatformFlags GetSelectedPlatforms(); AzFramework::PlatformFlags GetPartiallySelectedPlatforms(); Q_SIGNALS: void PlatformsSelected(AzFramework::PlatformFlags selectedPlatforms, AzFramework::PlatformFlags partiallySelectedPlatforms); private: void OnPlatformSelectionChanged(); QSharedPointer m_ui; AZStd::unique_ptr m_platformHelper; QVector> m_platformCheckBoxes; AZStd::vector m_platformList; AzFramework::PlatformFlags m_selectedPlatforms; AzFramework::PlatformFlags m_partiallySelectedPlatforms; }; } // namespace AssetBundler