From b331eea9ca54b2df09c719f10a3462b058931b09 Mon Sep 17 00:00:00 2001 From: Terry Michaels Date: Thu, 1 Jul 2021 19:25:08 -0500 Subject: [PATCH] Removed the AmazonStyle executable and files as they are old/invalid (#1733) * signoff Signed-off-by: Terry Michaels --- .../StyleGallery/ConditionGroupWidget.cpp | 145 -- .../StyleGallery/ConditionGroupWidget.h | 36 - .../StyleGallery/ConditionWidget.cpp | 51 - .../StyleGallery/ConditionWidget.h | 30 - .../StyleGallery/DeploymentsWidget.cpp | 57 - .../StyleGallery/DeploymentsWidget.h | 30 - .../AzQtComponents/StyleGallery/MyCombo.cpp | 15 - .../AzQtComponents/StyleGallery/MyCombo.h | 22 - .../StyleGallery/ViewportTitleDlg.cpp | 69 - .../StyleGallery/ViewportTitleDlg.h | 36 - .../StyleGallery/ViewportTitleDlg.ui | 225 -- .../AzQtComponents/StyleGallery/assets.svg | 179 -- .../StyleGallery/deploymentswidget.ui | 176 -- .../AzQtComponents/StyleGallery/main.cpp | 300 --- .../StyleGallery/mainwidget.cpp | 275 --- .../AzQtComponents/StyleGallery/mainwidget.h | 40 - .../AzQtComponents/StyleGallery/mainwidget.ui | 2042 ----------------- .../AzQtComponents/StyleGallery/triangles.svg | 138 -- .../azqtcomponents_style_files.cmake | 25 - Code/Framework/AzQtComponents/CMakeLists.txt | 18 - 20 files changed, 3909 deletions(-) delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ConditionGroupWidget.cpp delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ConditionGroupWidget.h delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ConditionWidget.cpp delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ConditionWidget.h delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/DeploymentsWidget.cpp delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/DeploymentsWidget.h delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/MyCombo.cpp delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/MyCombo.h delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ViewportTitleDlg.cpp delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ViewportTitleDlg.h delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ViewportTitleDlg.ui delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/assets.svg delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/deploymentswidget.ui delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/main.cpp delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/mainwidget.cpp delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/mainwidget.h delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/mainwidget.ui delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/triangles.svg delete mode 100644 Code/Framework/AzQtComponents/AzQtComponents/azqtcomponents_style_files.cmake diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ConditionGroupWidget.cpp b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ConditionGroupWidget.cpp deleted file mode 100644 index ad18668650..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ConditionGroupWidget.cpp +++ /dev/null @@ -1,145 +0,0 @@ -/* - * 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 - * - */ - -#include "ConditionGroupWidget.h" -#include "ConditionWidget.h" -#include -#include -#include -#include -#include -#include -#include - -enum Action { - ActionAdd, - ActionRemove -}; - -class ActionButton : public QToolButton -{ -public: - explicit ActionButton(QWidget *parent = nullptr) - : QToolButton(parent) - { - setAttribute(Qt::WA_Hover); - } - - void paintEvent(QPaintEvent *) - { - QStyleOptionToolButton opt; - initStyleOption(&opt); - auto state = (opt.state & QStyle::State_Sunken) ? QIcon::Active - : ((opt.state & QStyle::State_MouseOver) ? QIcon::Selected - : QIcon::Normal); - - QPixmap pix = icon().pixmap(QSize(16, 16), state); - QPainter p(this); - QRect pixRect = pix.rect(); - pixRect.moveCenter(rect().center()); - pixRect.adjust(-2, 1, -2, 1); - p.drawPixmap(pixRect , pix); - } -}; - -ConditionGroupWidget::ConditionGroupWidget(QWidget *parent) - : QWidget(parent) - , m_layout(new QGridLayout(this)) -{ - m_addIcon.addPixmap(QPixmap(":/stylesheet/img/condition_add.png"), QIcon::Normal); - m_addIcon.addPixmap(QPixmap(":/stylesheet/img/condition_add_hover.png"), QIcon::Selected); - m_addIcon.addPixmap(QPixmap(":/stylesheet/img/condition_add_pressed.png"), QIcon::Active); - - m_delIcon.addPixmap(QPixmap(":/stylesheet/img/condition_remove.png"), QIcon::Normal); - m_delIcon.addPixmap(QPixmap(":/stylesheet/img/condition_remove_hover.png"), QIcon::Selected); - m_delIcon.addPixmap(QPixmap(":/stylesheet/img/condition_remove_pressed.png"), QIcon::Active); - - setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum); - m_layout->setHorizontalSpacing(0); - - // Lets have at least one condition - appendCondition(); -} - -void ConditionGroupWidget::appendCondition() -{ - auto cond = new ConditionWidget(); - connect(cond, SIGNAL(geometryChanged()), this, SLOT(update())); - m_layout->addWidget(cond, count(), 0); - m_layout->addWidget(new ActionButton(), count() - 1, 1); - updateButtons(); -} - -void ConditionGroupWidget::removeCondition(int n) -{ - if (n >= 0 && n < count() && count() > 1) { - m_layout->removeItem(m_layout->itemAtPosition(n, 0)); - m_layout->removeItem(m_layout->itemAtPosition(n, 1)); - updateButtons(); - } -} - -int ConditionGroupWidget::count() const -{ - return m_layout->rowCount(); -} - -void ConditionGroupWidget::paintEvent(QPaintEvent *) -{ - const int c = count(); - for (int i = 0; i < c - 1; ++i) { - ConditionWidget *cond1 = conditionAt(i); - ConditionWidget *cond2 = conditionAt(i + 1); - if (!cond1 || !cond2) - continue; // defensive, doesn't happen - - const int separatorHeight = 3; - const int y = ((cond1->geometry().bottom() + cond2->y()) / 2) - (separatorHeight / 2); - QPainter p(this); - p.setPen(QColor(50, 52, 53)); - p.setBrush(QColor(94, 96, 96)); - p.drawRoundedRect(QRect(0, y, width() - 1, separatorHeight), 1, 1); - } -} - -ConditionWidget *ConditionGroupWidget::conditionAt(int row) const -{ - if (row < 0 || row >= count()) - return nullptr; - - if (auto item = m_layout->itemAtPosition(row, 0)) - return qobject_cast(item->widget()); - - return nullptr; -} - -void ConditionGroupWidget::updateButtons() -{ - update(); - const int n = count(); - for (int i = 0; i < n; ++i) { - if (auto item = m_layout->itemAtPosition(i, 1)) { - if (auto button = qobject_cast(item->widget())) { - bool isLast = i == n - 1; - button->setCheckable(true); - button->setChecked(true); - button->setIcon(isLast ? m_addIcon : m_delIcon); - button->disconnect(); - - if (isLast) { - connect(button, &QToolButton::clicked, this, &ConditionGroupWidget::appendCondition); - } else { - connect(button, &QToolButton::clicked, this, [this, i] { - removeCondition(i); - }); - } - } - } - } -} - -#include "StyleGallery/moc_ConditionGroupWidget.cpp" diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ConditionGroupWidget.h b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ConditionGroupWidget.h deleted file mode 100644 index be0bb76966..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ConditionGroupWidget.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 - * - */ - -#ifndef CONDITIONGROUPWIDGET_H -#define CONDITIONGROUPWIDGET_H - -#if !defined(Q_MOC_RUN) -#include -#include -#endif - -class QGridLayout; -class ConditionWidget; - -class ConditionGroupWidget : public QWidget -{ - Q_OBJECT -public: - explicit ConditionGroupWidget(QWidget *parent = nullptr); - void appendCondition(); - void removeCondition(int n); - int count() const; - void paintEvent(QPaintEvent *) override; -private: - ConditionWidget* conditionAt(int row) const; - void updateButtons(); - QGridLayout *const m_layout; - QIcon m_addIcon; - QIcon m_delIcon; -}; - -#endif diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ConditionWidget.cpp b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ConditionWidget.cpp deleted file mode 100644 index c9b7648eca..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ConditionWidget.cpp +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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 - * - */ - -#include "ConditionWidget.h" -#include -#include -#include -#include - -ConditionWidget::ConditionWidget(QWidget *parent) - : QWidget(parent) -{ - auto layout = new QHBoxLayout(this); - auto checkbox = new QCheckBox(); - auto combo1 = new QComboBox(); - combo1->addItem(QStringLiteral("Asset Type")); - combo1->addItem(QStringLiteral("Asset Name")); - combo1->setProperty("class", "condition"); - auto combo2 = new QComboBox(); - combo2->setFixedWidth(88); - combo2->setProperty("class", "condition"); - combo2->addItem(QStringLiteral("is")); - combo2->addItem(QStringLiteral("is not")); - auto lineedit = new QLineEdit(); - - layout->addWidget(checkbox); - layout->addWidget(combo1); - layout->addWidget(combo2); - layout->addWidget(lineedit); - layout->setSpacing(5); - - setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum); -} - -void ConditionWidget::resizeEvent(QResizeEvent *event) -{ - QWidget::resizeEvent(event); - emit geometryChanged(); -} - -void ConditionWidget::moveEvent(QMoveEvent *event) -{ - QWidget::moveEvent(event); - emit geometryChanged(); -} - -#include "StyleGallery/moc_ConditionWidget.cpp" diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ConditionWidget.h b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ConditionWidget.h deleted file mode 100644 index b921f73da7..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ConditionWidget.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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 - * - */ - - -#ifndef CONDITIONWIDGET_H -#define CONDITIONWIDGET_H - -#if !defined(Q_MOC_RUN) -#include -#endif - -class ConditionWidget : public QWidget -{ - Q_OBJECT -public: - explicit ConditionWidget(QWidget *parent = nullptr); - -signals: - void geometryChanged(); - -protected: - void resizeEvent(QResizeEvent *event) override; - void moveEvent(QMoveEvent *event) override; -}; - -#endif diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/DeploymentsWidget.cpp b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/DeploymentsWidget.cpp deleted file mode 100644 index 9f7c670989..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/DeploymentsWidget.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 - * - */ - -#include "DeploymentsWidget.h" -#include -#include -#include - -using namespace AzQtComponents; - -DeploymentsWidget::DeploymentsWidget(QWidget *parent) - : QWidget(parent) - , ui(new Ui::DeploymentsWidget()) -{ - setFixedSize(263, 238); - ui->setupUi(this); - ui->titlebar->setWindowTitleOverride(tr("Deployments")); - //ui->titlebar->setFrameHackEnabled(true); - ui->titlebar->setForceInactive(true); - ui->deploymentOk->setProperty("class", "Primary"); - ui->contents->setAttribute(Qt::WA_TranslucentBackground); - ui->blueLabel->setProperty("class", "addDeployment"); // Should this label style be more generic ? - ui->blueLabel->installEventFilter(this); - ui->blueLabel->setCursor(Qt::PointingHandCursor); -} - -void DeploymentsWidget::paintEvent(QPaintEvent *) -{ - QPainter p(this); - StyledDockWidget::drawFrame(p, rect(), false); - - p.setPen(QColor(35, 36, 37)); - p.drawLine(1, height()-51, width() - 2, height() - 51); - p.setPen(QColor(66, 67, 68)); - p.drawLine(1, height()-50, width() - 2, height() - 50); -} - -bool DeploymentsWidget::eventFilter(QObject *watched, QEvent *event) -{ - if (event->type() == QEvent::MouseButtonRelease) { - addDeployment(); - return true; - } - - return QWidget::eventFilter(watched, event); -} - -void DeploymentsWidget::addDeployment() -{ - QInputDialog::getText(this, tr("Enter deployment name"), QString()); -} - -#include "StyleGallery/moc_DeploymentsWidget.cpp" diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/DeploymentsWidget.h b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/DeploymentsWidget.h deleted file mode 100644 index e8dc6a1658..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/DeploymentsWidget.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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 - * - */ - -#ifndef DEPLOYMENTSWIDGET_H -#define DEPLOYMENTSWIDGET_H - -#if !defined(Q_MOC_RUN) -#include - -#include -#include -#endif - -class DeploymentsWidget : public QWidget -{ - Q_OBJECT -public: - explicit DeploymentsWidget(QWidget *parent = 0); - void paintEvent(QPaintEvent *event) override; - bool eventFilter(QObject *watched, QEvent *event) override; - void addDeployment(); -private: - QScopedPointer ui; -}; - -#endif diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/MyCombo.cpp b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/MyCombo.cpp deleted file mode 100644 index f5d0095971..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/MyCombo.cpp +++ /dev/null @@ -1,15 +0,0 @@ -/* - * 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 - * - */ -#include "MyCombo.h" - -MyComboBox::MyComboBox(QWidget *parent) - : QComboBox(parent) -{ - -} - -#include "StyleGallery/moc_MyCombo.cpp" diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/MyCombo.h b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/MyCombo.h deleted file mode 100644 index 3c278754cc..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/MyCombo.h +++ /dev/null @@ -1,22 +0,0 @@ -/* - * 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 - * - */ -#ifndef MY_COMBO_H -#define MY_COMBO_H - -#if !defined(Q_MOC_RUN) -#include -#endif - -class MyComboBox : public QComboBox -{ - Q_OBJECT -public: - explicit MyComboBox(QWidget *parent = nullptr); -}; - - -#endif diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ViewportTitleDlg.cpp b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ViewportTitleDlg.cpp deleted file mode 100644 index 573bb4c040..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ViewportTitleDlg.cpp +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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 - * - */ - - -// Description : CViewportTitleDlg implementation file - - -#include "ViewportTitleDlg.h" - -#include -#include - -ViewportTitleDlg::ViewportTitleDlg(QWidget* pParent) - : QWidget(pParent), - m_ui(new Ui::ViewportTitleDlg) -{ - m_ui->setupUi(this); - - OnInitDialog(); - m_ui->m_viewportSearch->setIcon(QIcon(":/stylesheet/img/16x16/Search.png")); - - auto clearAction = new QAction(this); - clearAction->setIcon(QIcon(":/stylesheet/img/16x16/lineedit-clear.png")); - - m_ui->m_viewportSearch->setFixedWidth(190); -} - -ViewportTitleDlg::~ViewportTitleDlg() -{ -} - -void ViewportTitleDlg::OnInitDialog() -{ - m_ui->m_titleBtn->setText(m_title); - m_ui->m_sizeStaticCtrl->setText(QString()); - - connect(m_ui->m_maxBtn, &QToolButton::clicked, this, &ViewportTitleDlg::OnMaximize); - connect(m_ui->m_toggleHelpersBtn, &QToolButton::clicked, this, &ViewportTitleDlg::OnToggleHelpers); - connect(m_ui->m_toggleDisplayInfoBtn, &QToolButton::clicked, this, &ViewportTitleDlg::OnToggleDisplayInfo); - - m_ui->m_maxBtn->setProperty("class", "big"); - m_ui->m_toggleHelpersBtn->setProperty("class", "big"); - m_ui->m_toggleDisplayInfoBtn->setProperty("class", "big"); -} - -void ViewportTitleDlg::SetTitle( const QString &title ) -{ - m_title = title; - m_ui->m_titleBtn->setText(m_title); - m_ui->m_viewportSearch->setVisible(title == QLatin1String("Perspective")); -} - -void ViewportTitleDlg::OnMaximize() -{ -} - -void ViewportTitleDlg::OnToggleHelpers() -{ -} - -void ViewportTitleDlg::OnToggleDisplayInfo() -{ -} - -#include "StyleGallery/moc_ViewportTitleDlg.cpp" diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ViewportTitleDlg.h b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ViewportTitleDlg.h deleted file mode 100644 index 8d9640553d..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ViewportTitleDlg.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 -#endif - -namespace Ui -{ - class ViewportTitleDlg; -} - -class ViewportTitleDlg : public QWidget -{ - Q_OBJECT -public: - ViewportTitleDlg(QWidget* pParent = nullptr); - virtual ~ViewportTitleDlg(); -protected slots: - void OnMaximize(); - void OnToggleHelpers(); - void OnToggleDisplayInfo(); -private: - void OnInitDialog(); - void SetTitle(const QString &title); - - QString m_title = QLatin1String("Perspective"); - QScopedPointer m_ui; -}; diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ViewportTitleDlg.ui b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ViewportTitleDlg.ui deleted file mode 100644 index 066dafe912..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/ViewportTitleDlg.ui +++ /dev/null @@ -1,225 +0,0 @@ - - - ViewportTitleDlg - - - - 0 - 0 - 574 - 29 - - - - - 0 - 0 - - - - - 10 - - - 0 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - Static - - - - - - - - 0 - 0 - - - - - 147 - 22 - - - - - 147 - 22 - - - - - - - - FOV: - - - - - - - - 0 - 0 - - - - 120° - - - - - - - Ratio: - - - - - - - - 0 - 0 - - - - - 40 - 0 - - - - - 40 - 16777215 - - - - 000:000 - - - - - - - - 0 - 0 - - - - - 60 - 0 - - - - - 60 - 16777215 - - - - 0000 x 0000 - - - - - - - - - - Toggle display info - - - - :/stylesheet/img/UI20/Info.svg:/stylesheet/img/UI20/Info.svg - - - true - - - - - - - Toggle display helpers - - - - :/stylesheet/img/UI20/Helpers.svg:/stylesheet/img/UI20/Helpers.svg - - - true - - - - - - - - - - - :/stylesheet/img/16x16/Maximize.png:/stylesheet/img/16x16/Maximize.png - - - - 16 - 16 - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 5 - 5 - - - - - - - - - AzQtComponents::ToolButtonLineEdit - QLineEdit -
AzQtComponents/Components/ToolButtonLineEdit.h
-
- - AzQtComponents::ButtonDivider - QWidget -
AzQtComponents/Components/ButtonDivider.h
- 1 -
-
- - -
diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/assets.svg b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/assets.svg deleted file mode 100644 index a64626e47a..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/assets.svg +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - - - - - - - - - - diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/deploymentswidget.ui b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/deploymentswidget.ui deleted file mode 100644 index f02c215e4f..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/deploymentswidget.ui +++ /dev/null @@ -1,176 +0,0 @@ - - - DeploymentsWidget - - - - 0 - 0 - 263 - 238 - - - - - 0 - 0 - - - - - 263 - 238 - - - - - 263 - 238 - - - - Form - - - - 0 - - - 0 - - - 0 - - - 0 - - - - - 0 - - - 1 - - - 1 - - - - - - - - - - - 10 - - - 12 - - - - - You must select a default deployment where -you would like to add these resurces. - - - - - - - Add a deployment - - - - - - - New deployment name 3 - - - true - - - - - - - Deployment name 2 - - - - - - - Deployment name 1 - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - 0 - - - 5 - - - - - Cancel - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Ok - - - - - - - - - - - - - AzQtComponents::TitleBar - QWidget -
AzQtComponents/Components/Titlebar.h
- 1 -
-
- - -
diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/main.cpp b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/main.cpp deleted file mode 100644 index 4ce21ebf7e..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/main.cpp +++ /dev/null @@ -1,300 +0,0 @@ -/* - * 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 - * - */ -#include "mainwidget.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include "MyCombo.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -using namespace AzQtComponents; - -QToolBar * toolBar() -{ - auto t = new QToolBar(QString()); - QAction *a = nullptr; - QMenu *menu = nullptr; - auto but = new QToolButton(); - menu = new QMenu(); - but->setMenu(menu); - but->setCheckable(true); - but->setPopupMode(QToolButton::MenuButtonPopup); - but->setDefaultAction(new QAction(QStringLiteral("Test"), but)); - but->setIcon(QIcon(":/stylesheet/img/undo.png")); - t->addWidget(but); - - a = t->addAction(QIcon(":/stylesheet/img/select.png"), QString()); - a->setCheckable(true); - t->addSeparator(); - - auto tbcb = new AzQtComponents::ToolButtonComboBox(); - tbcb->setIcon(QIcon(":/stylesheet/img/angle.png")); - tbcb->comboBox()->addItem("1"); - tbcb->comboBox()->addItem("2"); - tbcb->comboBox()->addItem("3"); - tbcb->comboBox()->addItem("4"); - t->addWidget(tbcb); - - auto tble = new AzQtComponents::ToolButtonLineEdit(); - tble->setFixedWidth(130); - tble->setIcon(QIcon(":/stylesheet/img/16x16/Search.png")); - t->addWidget(tble); - - auto combo = new QComboBox(); - combo->addItem("Test1"); - combo->addItem("Test3"); - combo->addItem("Selection,Area"); - t->addWidget(combo); - - const QStringList iconNames = { - "Align_object_to_surface", - "Align_to_grid", - "Align_to_Object", - "Angle", - "Asset_Browser", - "Audio", - "Database_view", - "Delete_named_selection", - "Follow_terrain", - "Freeze", - "Gepetto", - "Get_physics_state", - "Grid", - "layer_editor", - "layers", - "LIghting", - "lineedit-clear", - "LOD_generator", - "LUA", - "Material", - "Maximize", - "Measure", - "Move", - "Object_follow_terrain", - "Object_list", - "Redo", - "Reset_physics_state", - "Scale", - "select_object", - "Select", - "Select_terrain", - "Simulate_Physics_on_selected_objects", - "Substance", - "Terrain", - "Terrain_Texture", - "Texture_browser", - "Time_of_Day", - "Trackview", - "Translate", - "UI_editor", - "undo", - "Unfreeze_all", - "Vertex_snapping" }; - - for (auto name : iconNames) { - auto a2 = t->addAction(QIcon(QString(":/stylesheet/img/16x16/%1.png").arg(name)), nullptr); - a2->setToolTip(name); - a2->setDisabled(name == "Audio"); - } - - combo = new MyComboBox(); - combo->addItem("Test1"); - combo->addItem("Test3"); - combo->addItem("Selection,Area"); - t->addWidget(combo); - - return t; -} - -class MainWindow : public QMainWindow -{ -public: - explicit MainWindow(QWidget *parent = nullptr) - : QMainWindow(parent) - , m_settings("org", "app") - { - setAttribute(Qt::WA_DeleteOnClose); - QVariant geoV = m_settings.value("geo"); - if (geoV.isValid()) { - restoreGeometry(geoV.toByteArray()); - } - } - - ~MainWindow() - { - qDebug() << "Deleted mainwindow"; - auto geo = saveGeometry(); - m_settings.setValue("geo", geo); - } -private: - QSettings m_settings; -}; - -static void addMenu(QMainWindow *w, const QString &name) -{ - auto action = w->menuBar()->addAction(name); - auto menu = new QMenu(); - action->setMenu(menu); - menu->addAction("Item 1"); - menu->addAction("Item 2"); - menu->addAction("Item 3"); - menu->addAction("Longer item 4"); - menu->addAction("Longer item 5"); -} - -int main(int argc, char **argv) -{ - QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); - QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); - QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); - - QApplication app(argc, argv); - AzQtComponents::O3DEStylesheet stylesheet(&app); - AZ::IO::FixedMaxPath engineRootPath; - { - AZ::ComponentApplication componentApplication(argc, argv); - auto settingsRegistry = AZ::SettingsRegistry::Get(); - settingsRegistry->Get(engineRootPath.Native(), AZ::SettingsRegistryMergeUtils::FilePathKey_EngineRootFolder); - } - stylesheet.initialize(&app, engineRootPath); - - auto wrapper = new AzQtComponents::WindowDecorationWrapper(); - QMainWindow *w = new MainWindow(); - w->setWindowTitle("Component Gallery"); - auto widget = new MainWidget(w); - w->resize(550, 900); - w->setMinimumWidth(500); - wrapper->setGuest(w); - wrapper->enableSaveRestoreGeometry("app", "org", "windowGeometry"); - w->setCentralWidget(widget); - w->setWindowFlags(w->windowFlags() | Qt::WindowStaysOnTopHint); - w->show(); - - auto action = w->menuBar()->addAction("Menu 1"); - - auto fileMenu = new QMenu(); - action->setMenu(fileMenu); - auto openDock = fileMenu->addAction("Open dockwidget"); - QObject::connect(openDock, &QAction::triggered, w, [&w] { - auto dock = new AzQtComponents::StyledDockWidget(QLatin1String("O3DE"), w); - auto button = new QPushButton("Click to dock"); - auto wid = new QWidget(); - auto widLayout = new QVBoxLayout(wid); - widLayout->addWidget(button); - wid->resize(300, 200); - QObject::connect(button, &QPushButton::clicked, dock, [dock]{ - dock->setFloating(!dock->isFloating()); - }); - w->addDockWidget(Qt::BottomDockWidgetArea, dock); - dock->setWidget(wid); - dock->resize(300, 200); - dock->setFloating(true); - dock->show(); - }); - - - QAction* newAction = fileMenu->addAction("Test StyledDetailsTableView"); - newAction->setShortcut(QKeySequence::Delete); - QObject::connect(newAction, &QAction::triggered, w, [w]() { - QDialog temp(w); - temp.setWindowTitle("StyleTableWidget Test"); - - QVBoxLayout* layout = new QVBoxLayout(&temp); - - AzQtComponents::StyledDetailsTableModel* tableModel = new AzQtComponents::StyledDetailsTableModel(); - tableModel->AddColumn("Status", AzQtComponents::StyledDetailsTableModel::StatusIcon); - tableModel->AddColumn("Platform"); - tableModel->AddColumn("Message"); - tableModel->AddColumnAlias("message", "Message"); - - tableModel->AddPrioritizedKey("Data3"); - tableModel->AddDeprioritizedKey("Data1"); - - auto table = new AzQtComponents::StyledDetailsTableView(); - table->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); - table->setModel(tableModel); - - { - AzQtComponents::StyledDetailsTableModel::TableEntry entry; - entry.Add("Message", "A very very long first message. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et maximus tortor, ac commodo ante. Maecenas porta posuere mauris, vel consectetur arcu ornare interdum. Praesent rhoncus consequat neque, non volutpat mauris cursus a. Proin a nisl quis dui consectetur malesuada a et diam. Integer finibus luctus nibh nec cursus."); - entry.Add("Platform", "PC"); - entry.Add("Status", AzQtComponents::StyledDetailsTableModel::StatusSuccess); - tableModel->AddEntry(entry); - } - - { - AzQtComponents::StyledDetailsTableModel::TableEntry entry; - entry.Add("Message", "Second message. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus et maximus tortor, ac commodo ante. Maecenas porta posuere mauris, vel consectetur arcu ornare interdum. Praesent rhoncus consequat neque, non volutpat mauris cursus a. Proin a nisl quis dui consectetur malesuada a et diam. Integer finibus luctus nibh nec cursus."); - entry.Add("Platform", "PC"); - entry.Add("Status", AzQtComponents::StyledDetailsTableModel::StatusError); - entry.Add("Data1", "Deprioritized item."); - entry.Add("Data3", "Prioritized item."); - tableModel->AddEntry(entry); - } - - for (int i = 0; i < 4; i++) - { - AzQtComponents::StyledDetailsTableModel::TableEntry entry; - entry.Add("message", "Third message"); - entry.Add("Status", AzQtComponents::StyledDetailsTableModel::StatusWarning); - entry.Add("Platform", "PC"); - entry.Add("Index1", "A smaller detail."); - entry.Add("Index2", "Another small detail."); - entry.Add("Index3", "A final small detail."); - tableModel->AddEntry(entry); - } - - layout->addWidget(table); - - temp.exec(); - }); - - QAction* refreshAction = fileMenu->addAction("Refresh Stylesheet"); - QObject::connect(refreshAction, &QAction::triggered, refreshAction, [&stylesheet]() { - stylesheet.Refresh(); - }); - - - addMenu(w, "Menu 2"); - addMenu(w, "Menu 3"); - addMenu(w, "Menu 4"); - - w->addToolBar(toolBar()); - - QObject::connect(widget, &MainWidget::reloadCSS, widget, [] { - qDebug() << "Reloading CSS"; - qApp->setStyleSheet(QString()); - qApp->setStyleSheet("file:///style.qss"); - }); - - return app.exec(); -} diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/mainwidget.cpp b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/mainwidget.cpp deleted file mode 100644 index 49faac1e19..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/mainwidget.cpp +++ /dev/null @@ -1,275 +0,0 @@ -/* - * 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 - * - */ -#include "mainwidget.h" -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -using namespace AzQtComponents; - -MainWidget::MainWidget(QWidget *parent) : - QWidget(parent), - ui(new Ui::MainWidget) -{ - ui->setupUi(this); - - QStringList stripeButtonsNames = QStringList(); - stripeButtonsNames << "Controls" << "ItemViews" << "Styles" << "Layouts"; - ui->buttonStripe->addButtons(stripeButtonsNames, ui->stackedWidget->currentIndex()); - connect(ui->buttonStripe, &AzQtComponents::ButtonStripe::buttonClicked, - ui->stackedWidget, &QStackedWidget::setCurrentIndex); - - initializeControls(); - initializeItemViews(); - - connect(ui->button1, &QPushButton::clicked, this, []{ - auto mainwindow = new QMainWindow(); - auto menu = new QMenu("File"); - auto mb = new QMenuBar(); - menu->addAction("Action1"); - menu->addAction("Action2"); - menu->addAction("Action3"); - mb->addMenu(menu); - mb->addAction("Edit"); - mb->addMenu("Create"); - mb->addMenu("Select"); - mb->addMenu("Modify"); - mb->addMenu("Display"); - mainwindow->setMenuBar(mb); - mainwindow->resize(400, 400); - mainwindow->show(); - mainwindow->raise(); - }); -} - -MainWidget::~MainWidget() -{ - delete ui; - qDebug() << "Deleted main widget"; -} - -void MainWidget::mouseReleaseEvent(QMouseEvent *event) -{ - if (event->button() == Qt::MiddleButton) { - emit reloadCSS(); - } -} - -void MainWidget::initializeControls() -{ - auto menu = new QMenu(); - menu->addAction("Test 1"); - menu->addAction("Test 2"); - ui->button3->setMenu(menu); - - auto menu2 = new QMenu(); - menu2->addAction("Test 1"); - menu2->addAction("Test 2"); - ui->disabledButton3->setMenu(menu2); - - ui->selectedCheckBox->setCheckState(Qt::Checked); - ui->enabledCheckBox->setCheckState(Qt::Unchecked); - ui->tristateCheckBox->setCheckState(Qt::PartiallyChecked); - - // TODO: Move these into subclass, can't be done from .css - // Nicolas: or do it in the proxy style - // Sergio: css doesn't work well with proxy style , says Qt's docs. - ui->progressBar->setFormat(QString()); - ui->progressBar->setMaximumHeight(8); - ui->progressBarFull->setFormat(QString()); - ui->progressBarFull->setMaximumHeight(8); - - ui->button2->setProperty("class", "Primary"); - ui->disabledButton1->setProperty("class", "Primary"); - - ui->invalidLineEdit->setFlavor(AzQtComponents::StyledLineEdit::Invalid); - ui->validLineEdit->setFlavor(AzQtComponents::StyledLineEdit::Valid); - ui->questionLineEdit->setFlavor(AzQtComponents::StyledLineEdit::Question); - ui->infoLineEdit->setFlavor(AzQtComponents::StyledLineEdit::Information); - - // In order to try out validator impact on flavor - ui->invalidLineEdit->setPlaceholderText("Enter 4 digits"); - ui->invalidLineEdit->setValidator(new QRegExpValidator(QRegExp("[1-9]\\d{3,3}"))); - - ui->disabledVectorEdit->setColors(qRgb(84, 190, 93), qRgb(226, 82, 67), qRgb(66, 133, 244)); - ui->vectorEdit->setColors(qRgb(84, 190, 93), qRgb(226, 82, 67), qRgb(66, 133, 244)); - ui->unknownVectorEdit->setColors(qRgb(84, 190, 93), qRgb(226, 82, 67), qRgb(66, 133, 244)); - ui->warningVectorEdit->setColors(qRgb(84, 190, 93), qRgb(226, 82, 67), qRgb(66, 133, 244)); - ui->warningVectorEdit->setFlavor(AzQtComponents::VectorEditElement::Invalid); - - QStringList rpy = {tr("R"), tr("P"), tr("Y")}; - ui->disabledRPYVectorEdit->setLabels(rpy); - ui->rPYVectorEdit->setLabels(rpy); - ui->unknownRPYVectorEdit->setLabels(rpy); - ui->warningRPYVectorEdit->setLabels(rpy); - - ui->filterNameLineEdit->setClearButtonEnabled(true); - - ui->comboBox_4->setEnabled(false); - for (int i = 0; i < 10; ++i) { - ui->comboBox->addItem(QStringLiteral("combo 0: Item %1").arg(i)); - ui->comboBox_2->addItem(QStringLiteral("combo 2: Item %1").arg(i)); - ui->comboBox_3->addItem(QStringLiteral("combo 3: Item %1").arg(i)); - ui->comboBox_4->addItem(QStringLiteral("combo 4: Item %1").arg(i)); - ui->comboBox_5->addItem(QStringLiteral("combo 5: Item %1").arg(i)); - ui->comboBox_6->addItem(QStringLiteral("combo 6: Item %1").arg(i)); - } - - ui->allCombo->setProperty("class", "condition"); - ui->allCombo->setFixedWidth(37); - ui->allCombo->setFixedHeight(21); - ui->allCombo->addItem("all"); - ui->allCombo->addItem("any"); - - - // Construct the available tag list. - const int numAvailableTags = 128; - QVector availableTags; - availableTags.reserve(numAvailableTags+8); - - availableTags.push_back("Healthy"); - availableTags.push_back("Tired"); - availableTags.push_back("Laughing"); - availableTags.push_back("Happy"); - availableTags.push_back("Smiling"); - availableTags.push_back("Weapon Left"); - availableTags.push_back("Weapon Right"); - availableTags.push_back("Loooooooooooooooooong Tag"); - - for (const QString& tag : availableTags) - { - ui->searchWidget->AddTypeFilter("Foo", tag); - } - - for (int i = 0; i < numAvailableTags; ++i) - { - QString tagName = "tag" + QString::number(i + 1); - availableTags.push_back(tagName); - if (i < 10) - { - ui->searchWidget->AddTypeFilter("Bar", tagName); - } - } - - ui->tagSelector->Reinit(availableTags); - - // Pre-select some of the tags. - ui->tagSelector->SelectTag("Healthy"); - ui->tagSelector->SelectTag("Laughing"); - ui->tagSelector->SelectTag("Smiling"); - ui->tagSelector->SelectTag("Happy"); - ui->tagSelector->SelectTag("Weapon Left"); - - - ui->toolButton->setProperty("class", "QToolBar"); - ui->toolButton_2->setProperty("class", "QToolBar"); - ui->toolButton_3->setProperty("class", "QToolBar"); - ui->toolButton_4->setProperty("class", "QToolBar"); - ui->toolButton_5->setProperty("class", "QToolBar"); - ui->toolButton_6->setProperty("class", "QToolBar"); - ui->toolButton_7->setProperty("class", "QToolBar"); - ui->toolButton_8->setProperty("class", "QToolBar"); - ui->toolButton_9->setProperty("class", "QToolBar"); - ui->toolButton_10->setProperty("class", "QToolBar"); - ui->toolButton_11->setProperty("class", "QToolBar"); - ui->toolButton_12->setProperty("class", "QToolBar"); - - ui->conditionGroup->appendCondition(); - - // place the viewportTitle menu into the place holder we prepared in the ui file - /*ViewportTitleDlg* viewPortTitleDlg = new ViewportTitleDlg(ui->ViewportTitle); - auto viewPortTitleLayout = new QHBoxLayout(); - viewPortTitleLayout->addWidget(viewPortTitleDlg); - ui->ViewportTitle->setLayout(viewPortTitleLayout);*/ - - QStringList fontSizeMockup = {"8pt", "9pt", "10pt", "11pt", "12pt", "14pt", "16pt", "18pt", "24pt", "30pt",}; - QStringList viewZoomMockup = {"20", "32", "40", "80", "160", "240"}; - const auto tbcbList = ui->toolButtonsComboBoxWidget->findChildren(); - foreach (auto tbcb, tbcbList) { - if (tbcb->objectName().contains("1")) { - tbcb->setIcon(QIcon(QStringLiteral(":/stylesheet/img/16x16/Font_text.png"))); - tbcb->comboBox()->addItems(fontSizeMockup); - } else if (tbcb->objectName().contains("2")) { - tbcb->setIcon(QIcon(QStringLiteral(":/stylesheet/img/16x16/Picture_view.png"))); - tbcb->comboBox()->addItems(viewZoomMockup); - } else if (tbcb->objectName().contains("3")) { - tbcb->setIcon(QIcon(QStringLiteral(":/stylesheet/img/16x16/List_view.png"))); - tbcb->comboBox()->addItems(fontSizeMockup); - } - } - - ui->WidgetHeader1->setForceInactive(true); - ui->WidgetHeader1->setButtons({ AzQtComponents::DockBarButton::DividerButton, AzQtComponents::DockBarButton::MaximizeButton, - AzQtComponents::DockBarButton::DividerButton, AzQtComponents::DockBarButton::CloseButton }); - ui->WidgetHeader1->setWindowTitleOverride("Widget Header"); - ui->WidgetHeader2->setButtons({AzQtComponents::DockBarButton::DividerButton, AzQtComponents::DockBarButton::MaximizeButton, - AzQtComponents::DockBarButton::DividerButton, AzQtComponents::DockBarButton::CloseButton}); - ui->WidgetHeader2->setWindowTitleOverride("Widget Header"); - - ui->NonDockableWidget1->setForceInactive(true); - ui->NonDockableWidget1->setWindowTitleOverride("Non-Dockable Widget"); - ui->NonDockableWidget1->setButtons({ AzQtComponents::DockBarButton::CloseButton }); - ui->NonDockableWidget1->setTearEnabled(false); - ui->NonDockableWidget1->setDragEnabled(false); - ui->NonDockableWidget2->setWindowTitleOverride("Non-Dockable Widget"); - ui->NonDockableWidget2->setButtons({ AzQtComponents::DockBarButton::CloseButton }); - ui->NonDockableWidget2->setTearEnabled(false); - ui->NonDockableWidget2->setDragEnabled(false); - - const auto rpbList = ui->RoundedButtonWidget->findChildren(); - foreach (auto rpb, rpbList) { - if (rpb->objectName().contains("Small")) - rpb->setProperty("class", "smallRounded"); - else - rpb->setProperty("class", "rounded"); - } - - ui->buttonOrange1->setProperty("class", "Primary"); - ui->buttonOrange2->setProperty("class", "Primary"); - - ui->tabWidget->tabBar()->setTabsClosable(true); - connect(ui->tabWidget->tabBar(), &QTabBar::tabCloseRequested, this, [this](int index) { - ui->tabWidget->removeTab(index); - }); -} - -void MainWidget::initializeItemViews() -{ - auto model = new QStandardItemModel(this); - model->setHorizontalHeaderLabels({QString(), tr("Priority"), tr("State"), tr("ID"), tr("Completed"), tr("Platform")}); - - for (int i = 0; i < 20; ++i) { - auto col0Item = new QStandardItem(); - col0Item->setCheckState(Qt::Checked); - col0Item->setData(QVariant(QSize(10, 20)), Qt::SizeHintRole); - col0Item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsUserCheckable); - auto col1Item = new QStandardItem((i < 10) ? tr("Top"): ""); - model->appendRow({ - col0Item, - col1Item, - new QStandardItem(i == 0 ? tr("Running") : (i < 10 ? tr("Failed") : tr("Waiting"))), - new QStandardItem("Environnment/Sky/Cloud/Cloudy-cloud"), - new QStandardItem(QString::number(i)), - new QStandardItem(i % 2 ? tr("Android") : tr("iPhone")) - }); - } - - ui->treeView->setModel(model); - ui->treeView->setSortingEnabled(true); - ui->treeView->setColumnWidth(0, 50); -} - -#include "StyleGallery/moc_mainwidget.cpp" diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/mainwidget.h b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/mainwidget.h deleted file mode 100644 index 05fd4e327b..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/mainwidget.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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 - * - */ -#ifndef MAINWIDGET_H -#define MAINWIDGET_H - -#if !defined(Q_MOC_RUN) -#include -#endif - -namespace Ui { -class MainWidget; -} - -class MainWidget : public QWidget -{ - Q_OBJECT - -public: - explicit MainWidget(QWidget *parent = 0); - ~MainWidget(); - -protected: - void mouseReleaseEvent(QMouseEvent *event) override; - -private: - void initializeControls(); - void initializeItemViews(); - -signals: - void reloadCSS(); - -private: - Ui::MainWidget *ui; -}; - -#endif // MAINWIDGET_H diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/mainwidget.ui b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/mainwidget.ui deleted file mode 100644 index 0330857418..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/mainwidget.ui +++ /dev/null @@ -1,2042 +0,0 @@ - - - MainWidget - - - - 0 - 0 - 592 - 781 - - - - Form - - - - - - - - Qt::Horizontal - - - - 40 - 10 - - - - - - - - - - - Qt::Horizontal - - - - 40 - 10 - - - - - - - - - - 0 - - - - - 0 - - - 0 - - - 0 - - - 0 - - - 6 - - - 16 - - - - - 6 - - - - - true - - - - - - - - - place holder text - - - - - - - - - - false - - - disabled - - - - - - - simple and enabled - - - true - - - - - - - invalid (need 4 digits) - - - - - - - valid - - - - - - - question - - - - - - - information - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - 2 - - - 6 - - - - - Vector3 - - - - - - - true - - - - - - - Vector3 - - - - - - - - - - Vector3 - - - - - - - false - - - - - - - Vector3 - - - - - - - - - - Vector3 - - - - - - - true - - - - - - - Vector3 - - - - - - - - - - Vector3 - - - - - - - false - - - - - - - Vector3 - - - - - - - - - - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</span></p></body></html> - - - - - - - 6 - - - - - false - - - Button 1 - - - - - - - false - - - Button 2 - - - - - - - false - - - Button 1 - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - Button 1 - - - - - - - Button 2 - - - - - - - Button 1 - - - - - - - - - 6 - - - - - true - - - - - - - - - - true - - - - - - - true - - - - - - - true - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - 6 - - - - - - 0 - 0 - - - - - - - Selected - - - true - - - - - - - Enabled - - - - - - - false - - - Disabled - - - - - - - - - - - 0 - 0 - - - - - - - Tristate checkbox - - - false - - - true - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - 0 - 0 - - - - - - - Selected - - - true - - - - - - - Enabled - - - - - - - false - - - Disabled - - - - - - - - - - - - 7 - - - - - 24 - - - - - - - 100 - - - - - - - - - - - - -45.500000000000000 - - - 100.519999999999996 - - - 48.700000000000003 - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - -50 - - - 100 - - - 50 - - - - - - - - - - - - - - - 100 - - - 24 - - - Qt::Horizontal - - - false - - - - - - - - - 6 - - - - - - Dropdown Default - - - - - New Selection - - - - - - - - - Selection 1 - - - - - Selection 2 - - - - - Selection 3 - - - - - Selection 4 - - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - - - 10 - - - 50 - - - 50 - - - 50 - - - - - QFrame::NoFrame - - - QFrame::Plain - - - true - - - - - 0 - 0 - 98 - 512 - - - - - 15 - - - - - - 0 - 0 - - - - - 0 - 320 - - - - - 16777215 - 320 - - - - true - - - - - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</span></p></body></html> - - - - - - - - 0 - 0 - - - - - item1 - - - - - item2 - - - - - item3 - - - - - - - - - - - - - - 0 - - - - - - 140 - 160 - - - - - 2 - - - - - false - - - ... - - - - :/stylesheet/img/16x16/Select_right.png:/stylesheet/img/16x16/Select_right.png - - - - - - - false - - - ... - - - - :/stylesheet/img/16x16/Move.png:/stylesheet/img/16x16/Move.png - - - - - - - ... - - - - :/stylesheet/img/16x16/Select_right.png:/stylesheet/img/16x16/Select_right.png - - - true - - - true - - - - - - - ... - - - - :/stylesheet/img/16x16/Move.png:/stylesheet/img/16x16/Move.png - - - true - - - true - - - - - - - false - - - ... - - - - :/stylesheet/img/16x16/Translate.png:/stylesheet/img/16x16/Translate.png - - - - - - - ... - - - - :/stylesheet/img/16x16/Translate.png:/stylesheet/img/16x16/Translate.png - - - true - - - true - - - - - - - ... - - - - :/stylesheet/img/16x16/Move.png:/stylesheet/img/16x16/Move.png - - - true - - - - - - - ... - - - - :/stylesheet/img/16x16/Select_right.png:/stylesheet/img/16x16/Select_right.png - - - true - - - - - - - ... - - - - :/stylesheet/img/16x16/Translate.png:/stylesheet/img/16x16/Translate.png - - - true - - - - - - - false - - - ... - - - - :/stylesheet/img/16x16/Scale.png:/stylesheet/img/16x16/Scale.png - - - - - - - ... - - - - :/stylesheet/img/16x16/Scale.png:/stylesheet/img/16x16/Scale.png - - - true - - - true - - - - - - - ... - - - - :/stylesheet/img/16x16/Scale.png:/stylesheet/img/16x16/Scale.png - - - true - - - - - - - - - - - 16777215 - 180 - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - Sample - - - - :/stylesheet/img/16x16/Audio.png:/stylesheet/img/16x16/Audio.png - - - - - - - - - - - 250 - 50 - - - - - - - Text - - - false - - - - Text - - - - - - - - - Text - - - - - - - - - Text - - - - - - - - - Text - - - - - Item 1 - - - - - Item 2 - - - - - Longer Item 3 - - - - - Longer Item 4 - - - - - Item 5 - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 25 - 20 - - - - - - - - - - - - 260 - 400 - - - - - 6 - - - - - - - - - - - Qt::Vertical - - - QSizePolicy::Fixed - - - - 20 - 10 - - - - - - - - - - - - - - Qt::Vertical - - - QSizePolicy::Fixed - - - - 20 - 230 - - - - - - - - 2 - - - - Tab 1 - - - - - Tab 2 - - - - - Tab 3 - - - - - - - - - - - - 250 - 60 - - - - - - - - - - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 300 - 20 - - - - - - - - - 250 - 100 - - - - - 300 - 100 - - - - - 8 - - - - - 8 - - - - - - 0 - 0 - - - - - 24 - 24 - - - - - - - - :/stylesheet/img/question.png:/stylesheet/img/question.png - - - - - - - - - - - 0 - 0 - - - - - 24 - 24 - - - - - - - - :/stylesheet/img/question.png:/stylesheet/img/question.png - - - - - - - Support - - - Qt::AlignCenter - - - - - - - - - - - - - - :/stylesheet/img/question_small.png:/stylesheet/img/question_small.png - - - - - - - Support - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - 8 - - - - - - 0 - 0 - - - - - 24 - 24 - - - - - - - - :/stylesheet/img/question.png:/stylesheet/img/question.png - - - - - - - - - - - 0 - 0 - - - - - 24 - 24 - - - - - - - - :/stylesheet/img/question.png:/stylesheet/img/question.png - - - - - - - Support - - - Qt::AlignCenter - - - - - - - - - - - - - - :/stylesheet/img/question_small.png:/stylesheet/img/question_small.png - - - - - - - Support - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - 8 - - - - - - 0 - 0 - - - - - 24 - 24 - - - - - - - - :/stylesheet/img/question.png:/stylesheet/img/question.png - - - - - - - - - - - 0 - 0 - - - - - 24 - 24 - - - - - - - - :/stylesheet/img/question.png:/stylesheet/img/question.png - - - - - - - Support - - - Qt::AlignCenter - - - - - - - - - - - - - - :/stylesheet/img/question_small.png:/stylesheet/img/question_small.png - - - - - - - Support - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - - - - false - - - Cancel - - - - - - - Cancel - - - - - - - Button - - - - - - - Button - - - - - - - - - - - - - - - 0 - 0 - - - - - 10 - - - - - - - Filter Name: - - - - - - - - 200 - 0 - - - - - 200 - 23 - - - - character - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - 10 - - - - - Show assets which match - - - - - - - - - - of the following conditions: - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - - - - - - - - Qt::Vertical - - - QSizePolicy::Fixed - - - - 20 - 25 - - - - - - - - - 300 - 0 - - - - - 300 - 16777215 - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - - - - - - - AzQtComponents::StyledLineEdit - QLineEdit -
AzQtComponents/Components/StyledLineEdit.h
-
- - AzQtComponents::VectorEdit - QWidget -
AzQtComponents/Components/VectorEdit.h
- 1 -
- - AzQtComponents::StyledDoubleSpinBox - QDoubleSpinBox -
AzQtComponents/Components/StyledSpinBox.h
-
- - AzQtComponents::StyledSpinBox - AzQtComponents::StyledDoubleSpinBox -
AzQtComponents/Components/StyledSpinBox.h
-
- - AzQtComponents::ButtonStripe - QWidget -
AzQtComponents/Components/ButtonStripe.h
- 1 -
- - ConditionGroupWidget - QWidget -
AzQtComponents/StyleGallery/ConditionGroupWidget.h
- 1 -
- - AzQtComponents::TagSelector - QWidget -
AzQtComponents/Components/TagSelector.h
- 1 -
- - DeploymentsWidget - QWidget -
AzQtComponents/StyleGallery/DeploymentsWidget.h
- 1 -
- - AzQtComponents::TabWidget - QTabWidget -
AzQtComponents/Components/Widgets/TabWidget.h
- 1 -
- - AzQtComponents::ToolButtonComboBox - QWidget -
AzQtComponents/Components/ToolButtonComboBox.h
- 1 -
- - AzQtComponents::TitleBar - QWidget -
AzQtComponents/Components/Titlebar.h
- 1 -
- - AzQtComponents::ButtonDivider - QWidget -
AzQtComponents/Components/ButtonDivider.h
- 1 -
- - AzQtComponents::FilteredSearchWidget - QWidget -
AzQtComponents/Components/FilteredSearchWidget.h
- 1 -
-
- - - - horizontalSlider - valueChanged(int) - progressBar - setValue(int) - - - 535 - 403 - - - 535 - 375 - - - - -
diff --git a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/triangles.svg b/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/triangles.svg deleted file mode 100644 index 445aa2a462..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/StyleGallery/triangles.svg +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - - - - diff --git a/Code/Framework/AzQtComponents/AzQtComponents/azqtcomponents_style_files.cmake b/Code/Framework/AzQtComponents/AzQtComponents/azqtcomponents_style_files.cmake deleted file mode 100644 index 5d33f6d8f0..0000000000 --- a/Code/Framework/AzQtComponents/AzQtComponents/azqtcomponents_style_files.cmake +++ /dev/null @@ -1,25 +0,0 @@ -# -# 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 -# -# - -set(FILES - StyleGallery/ConditionGroupWidget.cpp - StyleGallery/ConditionGroupWidget.h - StyleGallery/ConditionWidget.cpp - StyleGallery/ConditionWidget.h - StyleGallery/DeploymentsWidget.cpp - StyleGallery/DeploymentsWidget.h - StyleGallery/deploymentswidget.ui - StyleGallery/main.cpp - StyleGallery/mainwidget.cpp - StyleGallery/mainwidget.h - StyleGallery/mainwidget.ui - StyleGallery/MyCombo.cpp - StyleGallery/MyCombo.h - StyleGallery/ViewportTitleDlg.cpp - StyleGallery/ViewportTitleDlg.h - StyleGallery/ViewportTitleDlg.ui -) diff --git a/Code/Framework/AzQtComponents/CMakeLists.txt b/Code/Framework/AzQtComponents/CMakeLists.txt index 8514df2616..135781140e 100644 --- a/Code/Framework/AzQtComponents/CMakeLists.txt +++ b/Code/Framework/AzQtComponents/CMakeLists.txt @@ -40,24 +40,6 @@ ly_add_target( AZ::AzCore ) -# DEPRECATED: this target was marked as deprecated in the VS filter -ly_add_target( - NAME AmazonStyle APPLICATION - NAMESPACE AZ - AUTOMOC - AUTOUIC - FILES_CMAKE - AzQtComponents/azqtcomponents_style_files.cmake - INCLUDE_DIRECTORIES - PRIVATE - . - AzQtComponents - BUILD_DEPENDENCIES - PRIVATE - 3rdParty::Qt::Widgets - AZ::AzQtComponents -) - ly_add_target( NAME AmazonQtControlGallery APPLICATION NAMESPACE AZ