removed StatusBarWidget class references

Signed-off-by: Guthrie Adams <guthadam@amazon.com>
This commit is contained in:
Guthrie Adams
2021-08-05 20:05:01 -05:00
parent 44a007547c
commit 782e8465a4
4 changed files with 0 additions and 162 deletions
@@ -15,7 +15,6 @@
AZ_PUSH_DISABLE_WARNING(4251 4800, "-Wunknown-warning-option") // disable warnings spawned by QT
#include <Viewport/MaterialViewportWidget.h>
#include <Window/StatusBar/StatusBarWidget.h>
#include <Window/ToolBar/MaterialEditorToolBar.h>
AZ_POP_DISABLE_WARNING
#endif
@@ -1,37 +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 <Source/Window/StatusBar/StatusBarWidget.h>
#include <Source/Window/StatusBar/ui_StatusBarWidget.h>
namespace MaterialEditor
{
StatusBarWidget::StatusBarWidget(QWidget* parent)
: QWidget(parent)
, m_ui(new Ui::StatusBarWidget)
{
m_ui->setupUi(this);
}
StatusBarWidget::~StatusBarWidget() = default;
void StatusBarWidget::UpdateStatusInfo(const QString& status)
{
m_ui->m_statusLabel->setText(QString("<font color=\"White\">%1</font>").arg(status));
}
void StatusBarWidget::UpdateStatusWarning(const QString& status)
{
m_ui->m_statusLabel->setText(QString("<font color=\"Yellow\">%1</font>").arg(status));
}
void StatusBarWidget::UpdateStatusError(const QString& status)
{
m_ui->m_statusLabel->setText(QString("<font color=\"Red\">%1</font>").arg(status));
}
} // namespace MaterialEditor
#include <Source/Window/StatusBar/moc_StatusBarWidget.cpp>
@@ -1,42 +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 <AzCore/Memory/SystemAllocator.h>
AZ_PUSH_DISABLE_WARNING(4251 4800, "-Wunknown-warning-option") // disable warnings spawned by QT
#include <QWidget>
AZ_POP_DISABLE_WARNING
#endif
namespace Ui
{
class StatusBarWidget;
}
namespace MaterialEditor
{
//! Status bar for MaterialEditor.
class StatusBarWidget
: public QWidget
{
Q_OBJECT
public:
StatusBarWidget(QWidget* parent = nullptr);
~StatusBarWidget();
void UpdateStatusInfo(const QString& status);
void UpdateStatusWarning(const QString& status);
void UpdateStatusError(const QString& status);
private:
QScopedPointer<Ui::StatusBarWidget> m_ui;
};
} // namespace MaterialEditor
@@ -1,82 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>StatusBarWidget</class>
<widget class="QWidget" name="StatusBarWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>691</width>
<height>165</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="windowTitle">
<string>Status Bar</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>2</number>
</property>
<property name="leftMargin">
<number>5</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>5</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="m_statusLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::MinimumExpanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources>
<include location="../MaterialEditor.qrc"/>
</resources>
<connections/>
</ui>