Просмотр исходного кода

Removed unused StatusWidget class

Ivan Arkhipov 5 лет назад
Родитель
Сommit
73a6608479

+ 0 - 15
src/Legacy-advanced/widgets/statuswidget.cpp

@@ -1,15 +0,0 @@
-#include "statuswidget.h"
-#include "ui_statuswidget.h"
-
-StatusWidget::StatusWidget(LegacyApp *_app, QWidget *parent) :
-    QWidget(parent),
-    ui(new Ui::StatusWidget),
-    app(_app)
-{
-    ui->setupUi(this);
-}
-
-StatusWidget::~StatusWidget()
-{
-    delete ui;
-}

+ 0 - 34
src/Legacy-advanced/widgets/statuswidget.h

@@ -1,34 +0,0 @@
-#ifndef STATUSWIDGET_H
-#define STATUSWIDGET_H
-
-#include <QWidget>
-
-namespace Ui {
-class StatusWidget;
-}
-
-class LegacyApp;
-
-class StatusWidget : public QWidget
-{
-    Q_OBJECT
-
-public:
-    explicit StatusWidget(LegacyApp *_app, QWidget *parent = 0);
-    ~StatusWidget();
-
-private:
-    Ui::StatusWidget *ui;
-    LegacyApp *app;
-
-    const QColor inWorkColor = QColor(85, 170, 255);
-    const QColor readyColor = QColor(0, 170, 0);
-    const QColor errorColor = QColor(255, 85, 0);
-
-    const QString inWorkIconStyle = "image: url(:/assets/info.png);";
-    const QString readyIconStyle = "image: url(:/assets/ok.png);";
-    const QString criticalIconStyle = "image: url(:/assets/critical.png);";
-    const QString warningIconStyle = "image: url(:/assets/warning.png);";
-};
-
-#endif // STATUSWIDGET_H

+ 0 - 508
src/Legacy-advanced/widgets/statuswidget.ui

@@ -1,508 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>StatusWidget</class>
- <widget class="QWidget" name="StatusWidget">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>860</width>
-    <height>491</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Form</string>
-  </property>
-  <layout class="QGridLayout" name="gridLayout_3" rowstretch="1,0,4">
-   <item row="0" column="1">
-    <spacer name="verticalSpacer">
-     <property name="orientation">
-      <enum>Qt::Vertical</enum>
-     </property>
-     <property name="sizeType">
-      <enum>QSizePolicy::Expanding</enum>
-     </property>
-     <property name="sizeHint" stdset="0">
-      <size>
-       <width>20</width>
-       <height>20</height>
-      </size>
-     </property>
-    </spacer>
-   </item>
-   <item row="2" column="1">
-    <spacer name="verticalSpacer_2">
-     <property name="orientation">
-      <enum>Qt::Vertical</enum>
-     </property>
-     <property name="sizeHint" stdset="0">
-      <size>
-       <width>20</width>
-       <height>40</height>
-      </size>
-     </property>
-    </spacer>
-   </item>
-   <item row="0" column="2" rowspan="3">
-    <widget class="QWidget" name="right_column_widget" native="true">
-     <layout class="QGridLayout" name="gridLayout_2">
-      <item row="1" column="0">
-       <spacer name="horizontalSpacer_3">
-        <property name="orientation">
-         <enum>Qt::Horizontal</enum>
-        </property>
-        <property name="sizeHint" stdset="0">
-         <size>
-          <width>219</width>
-          <height>20</height>
-         </size>
-        </property>
-       </spacer>
-      </item>
-      <item row="0" column="0" colspan="2">
-       <widget class="QWidget" name="common_status_widget" native="true">
-        <property name="styleSheet">
-         <string notr="true"/>
-        </property>
-        <layout class="QVBoxLayout" name="verticalLayout">
-         <item>
-          <widget class="QWidget" name="backup_status" native="true">
-           <property name="styleSheet">
-            <string notr="true">border-radius: 20px;
-background-color: rgba(30, 0, 0, 100);</string>
-           </property>
-           <layout class="QHBoxLayout" name="horizontalLayout_4">
-            <item>
-             <widget class="QLabel" name="label_4_common">
-              <property name="font">
-               <font>
-                <family>Trajan Pro 3</family>
-                <pointsize>8</pointsize>
-                <weight>50</weight>
-                <bold>false</bold>
-               </font>
-              </property>
-              <property name="styleSheet">
-               <string notr="true">color: rgb(255, 255, 255); background-color:none;</string>
-              </property>
-              <property name="text">
-               <string>РЕЗЕРВНАЯ КОПИЯ:</string>
-              </property>
-             </widget>
-            </item>
-            <item>
-             <widget class="QLabel" name="label_5_common">
-              <property name="font">
-               <font>
-                <family>Trebuchet MS</family>
-               </font>
-              </property>
-              <property name="styleSheet">
-               <string notr="true">color: rgb(85, 170, 255); background-color:none;</string>
-              </property>
-              <property name="text">
-               <string>Создание... 50%</string>
-              </property>
-             </widget>
-            </item>
-            <item>
-             <widget class="QWidget" name="backup_help" native="true">
-              <property name="sizePolicy">
-               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
-                <horstretch>0</horstretch>
-                <verstretch>0</verstretch>
-               </sizepolicy>
-              </property>
-              <property name="minimumSize">
-               <size>
-                <width>30</width>
-                <height>30</height>
-               </size>
-              </property>
-              <property name="mouseTracking">
-               <bool>true</bool>
-              </property>
-              <property name="styleSheet">
-               <string notr="true">border-image: url(:/assets/question.png); color: rgb(255, 255, 255); background-color:none;</string>
-              </property>
-             </widget>
-            </item>
-           </layout>
-          </widget>
-         </item>
-         <item>
-          <widget class="QWidget" name="download_status" native="true">
-           <property name="styleSheet">
-            <string notr="true">border-radius: 20px;
-background-color: rgba(30, 0, 0, 100);</string>
-           </property>
-           <layout class="QHBoxLayout" name="horizontalLayout_5">
-            <item>
-             <widget class="QLabel" name="label_8_common">
-              <property name="font">
-               <font>
-                <family>Trajan Pro 3</family>
-               </font>
-              </property>
-              <property name="styleSheet">
-               <string notr="true">color: rgb(255, 255, 255); background-color:none;</string>
-              </property>
-              <property name="text">
-               <string>ЗАГРУЗКА:</string>
-              </property>
-             </widget>
-            </item>
-            <item>
-             <widget class="QLabel" name="label_9_common">
-              <property name="font">
-               <font>
-                <family>Trebuchet MS</family>
-               </font>
-              </property>
-              <property name="styleSheet">
-               <string notr="true">color: rgb(0, 170, 0); background-color:none;</string>
-              </property>
-              <property name="text">
-               <string>Все данные загружены</string>
-              </property>
-             </widget>
-            </item>
-            <item>
-             <widget class="QWidget" name="download_help" native="true">
-              <property name="sizePolicy">
-               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
-                <horstretch>0</horstretch>
-                <verstretch>0</verstretch>
-               </sizepolicy>
-              </property>
-              <property name="minimumSize">
-               <size>
-                <width>30</width>
-                <height>30</height>
-               </size>
-              </property>
-              <property name="styleSheet">
-               <string notr="true">border-image: url(:/assets/question.png); color: rgb(255, 255, 255); background-color:none;</string>
-              </property>
-             </widget>
-            </item>
-           </layout>
-          </widget>
-         </item>
-         <item>
-          <widget class="QWidget" name="rusification_status" native="true">
-           <property name="styleSheet">
-            <string notr="true">border-radius: 20px;
-background-color: rgba(30, 0, 0, 100);</string>
-           </property>
-           <layout class="QHBoxLayout" name="horizontalLayout_6">
-            <item>
-             <widget class="QLabel" name="label_2_common">
-              <property name="font">
-               <font>
-                <family>Trajan Pro 3</family>
-                <pointsize>8</pointsize>
-                <weight>50</weight>
-                <bold>false</bold>
-               </font>
-              </property>
-              <property name="styleSheet">
-               <string notr="true">color: rgb(255, 255, 255); background-color:none;</string>
-              </property>
-              <property name="text">
-               <string>РУСИФИКАЦИЯ:</string>
-              </property>
-             </widget>
-            </item>
-            <item>
-             <widget class="QLabel" name="label_3_common">
-              <property name="font">
-               <font>
-                <family>Trebuchet MS</family>
-               </font>
-              </property>
-              <property name="styleSheet">
-               <string notr="true">color: rgb(85, 170, 255); background-color:none;</string>
-              </property>
-              <property name="text">
-               <string>Установка... (1/5) 50%</string>
-              </property>
-             </widget>
-            </item>
-            <item>
-             <widget class="QWidget" name="rusification_help" native="true">
-              <property name="sizePolicy">
-               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
-                <horstretch>0</horstretch>
-                <verstretch>0</verstretch>
-               </sizepolicy>
-              </property>
-              <property name="minimumSize">
-               <size>
-                <width>30</width>
-                <height>30</height>
-               </size>
-              </property>
-              <property name="styleSheet">
-               <string notr="true">border-image: url(:/assets/question.png); color: rgb(255, 255, 255); background-color:none;</string>
-              </property>
-             </widget>
-            </item>
-           </layout>
-          </widget>
-         </item>
-         <item>
-          <widget class="QWidget" name="protection_status" native="true">
-           <property name="styleSheet">
-            <string notr="true">border-radius: 20px;
-background-color: rgba(30, 0, 0, 100);</string>
-           </property>
-           <layout class="QHBoxLayout" name="horizontalLayout_7">
-            <item>
-             <widget class="QLabel" name="label_6_common">
-              <property name="font">
-               <font>
-                <family>Trajan Pro 3</family>
-               </font>
-              </property>
-              <property name="styleSheet">
-               <string notr="true">color: rgb(255, 255, 255); background-color:none;</string>
-              </property>
-              <property name="text">
-               <string>ЗАЩИТА ИГРОВЫХ ДАННЫХ:</string>
-              </property>
-             </widget>
-            </item>
-            <item>
-             <widget class="QLabel" name="label_7_common">
-              <property name="font">
-               <font>
-                <family>Trebuchet MS</family>
-               </font>
-              </property>
-              <property name="styleSheet">
-               <string notr="true">color: rgb(255, 85, 0); background-color:none;</string>
-              </property>
-              <property name="text">
-               <string>Выключена</string>
-              </property>
-             </widget>
-            </item>
-            <item>
-             <widget class="QWidget" name="protection_help" native="true">
-              <property name="sizePolicy">
-               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
-                <horstretch>0</horstretch>
-                <verstretch>0</verstretch>
-               </sizepolicy>
-              </property>
-              <property name="minimumSize">
-               <size>
-                <width>30</width>
-                <height>30</height>
-               </size>
-              </property>
-              <property name="styleSheet">
-               <string notr="true">border-image: url(:/assets/question.png); color: rgb(255, 255, 255); background-color:none;</string>
-              </property>
-             </widget>
-            </item>
-           </layout>
-          </widget>
-         </item>
-        </layout>
-       </widget>
-      </item>
-      <item row="1" column="1">
-       <widget class="QWidget" name="buttons_widget" native="true">
-        <property name="sizePolicy">
-         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
-          <horstretch>0</horstretch>
-          <verstretch>0</verstretch>
-         </sizepolicy>
-        </property>
-        <property name="minimumSize">
-         <size>
-          <width>0</width>
-          <height>80</height>
-         </size>
-        </property>
-        <property name="styleSheet">
-         <string notr="true">background-color: rgb(0, 0, 84);</string>
-        </property>
-        <layout class="QHBoxLayout" name="horizontalLayout" stretch="1">
-         <property name="spacing">
-          <number>1</number>
-         </property>
-         <property name="leftMargin">
-          <number>1</number>
-         </property>
-         <property name="topMargin">
-          <number>1</number>
-         </property>
-         <property name="rightMargin">
-          <number>1</number>
-         </property>
-         <property name="bottomMargin">
-          <number>1</number>
-         </property>
-         <item>
-          <widget class="QPushButton" name="game_button">
-           <property name="sizePolicy">
-            <sizepolicy hsizetype="Fixed" vsizetype="Expanding">
-             <horstretch>0</horstretch>
-             <verstretch>0</verstretch>
-            </sizepolicy>
-           </property>
-           <property name="minimumSize">
-            <size>
-             <width>150</width>
-             <height>0</height>
-            </size>
-           </property>
-           <property name="maximumSize">
-            <size>
-             <width>180</width>
-             <height>16777215</height>
-            </size>
-           </property>
-           <property name="font">
-            <font>
-             <family>Times New Roman</family>
-             <pointsize>-1</pointsize>
-             <weight>75</weight>
-             <italic>false</italic>
-             <bold>true</bold>
-            </font>
-           </property>
-           <property name="autoFillBackground">
-            <bool>false</bool>
-           </property>
-           <property name="styleSheet">
-            <string notr="true">border-image: url(:/assets/buttons/gray-button-hi.png);
-color: rgb(85, 0, 0);
-font: 24px &quot;Times New Roman&quot;;
-font-weight: bold;</string>
-           </property>
-           <property name="text">
-            <string notr="true">    ИГРАТЬ    </string>
-           </property>
-           <property name="iconSize">
-            <size>
-             <width>0</width>
-             <height>0</height>
-            </size>
-           </property>
-           <property name="default">
-            <bool>false</bool>
-           </property>
-           <property name="flat">
-            <bool>true</bool>
-           </property>
-          </widget>
-         </item>
-        </layout>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
-   <item row="1" column="1">
-    <widget class="QWidget" name="left_column_widget" native="true">
-     <property name="sizePolicy">
-      <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
-       <horstretch>0</horstretch>
-       <verstretch>0</verstretch>
-      </sizepolicy>
-     </property>
-     <layout class="QVBoxLayout" name="verticalLayout_2">
-      <item>
-       <widget class="QWidget" name="status_image_widget" native="true">
-        <property name="sizePolicy">
-         <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
-          <horstretch>0</horstretch>
-          <verstretch>0</verstretch>
-         </sizepolicy>
-        </property>
-        <property name="minimumSize">
-         <size>
-          <width>200</width>
-          <height>200</height>
-         </size>
-        </property>
-        <property name="baseSize">
-         <size>
-          <width>200</width>
-          <height>200</height>
-         </size>
-        </property>
-        <property name="styleSheet">
-         <string notr="true">image: url(:/assets/status/info.png);</string>
-        </property>
-       </widget>
-      </item>
-      <item>
-       <widget class="QWidget" name="status_label_widget" native="true">
-        <property name="sizePolicy">
-         <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
-          <horstretch>0</horstretch>
-          <verstretch>0</verstretch>
-         </sizepolicy>
-        </property>
-        <property name="minimumSize">
-         <size>
-          <width>0</width>
-          <height>40</height>
-         </size>
-        </property>
-        <layout class="QHBoxLayout" name="horizontalLayout_3">
-         <item>
-          <widget class="QLabel" name="status_label_supertitle">
-           <property name="font">
-            <font>
-             <family>Times New Roman</family>
-             <pointsize>28</pointsize>
-             <weight>75</weight>
-             <italic>false</italic>
-             <bold>true</bold>
-            </font>
-           </property>
-           <property name="styleSheet">
-            <string notr="true">color: rgb(85, 170, 255);
-</string>
-           </property>
-           <property name="text">
-            <string>В РАБОТЕ</string>
-           </property>
-           <property name="alignment">
-            <set>Qt::AlignHCenter|Qt::AlignTop</set>
-           </property>
-          </widget>
-         </item>
-        </layout>
-       </widget>
-      </item>
-     </layout>
-    </widget>
-   </item>
-   <item row="1" column="0">
-    <spacer name="horizontalSpacer">
-     <property name="orientation">
-      <enum>Qt::Horizontal</enum>
-     </property>
-     <property name="sizeType">
-      <enum>QSizePolicy::Fixed</enum>
-     </property>
-     <property name="sizeHint" stdset="0">
-      <size>
-       <width>40</width>
-       <height>20</height>
-      </size>
-     </property>
-    </spacer>
-   </item>
-  </layout>
- </widget>
- <resources/>
- <connections/>
-</ui>