You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.0 KiB
C++
65 lines
2.0 KiB
C++
/*
|
|
* 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 <AzCore/std/smart_ptr/unique_ptr.h>
|
|
#include <AzFramework/Platform/PlatformDefaults.h>
|
|
|
|
#include <QCheckBox>
|
|
#include <QSharedPointer>
|
|
#include <QWidget>
|
|
#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<Ui::PlatformSelectionWidget> m_ui;
|
|
AZStd::unique_ptr<AzFramework::PlatformHelper> m_platformHelper;
|
|
|
|
QVector<QSharedPointer<QCheckBox>> m_platformCheckBoxes;
|
|
AZStd::vector<AzFramework::PlatformFlags> m_platformList;
|
|
|
|
AzFramework::PlatformFlags m_selectedPlatforms;
|
|
AzFramework::PlatformFlags m_partiallySelectedPlatforms;
|
|
};
|
|
} // namespace AssetBundler
|