Compare commits
10 Commits
2.0.2.5
...
3.0-alpha0
| Author | SHA1 | Date | |
|---|---|---|---|
| b619d3cc7b | |||
|
|
14e3e7f9a2 | ||
|
|
62f0dd097c | ||
| b7e038bd88 | |||
|
|
4f0e00ad76 | ||
|
|
579008e8b2 | ||
|
|
ccb405c983 | ||
| f5788efb47 | |||
| 32bc272791 | |||
| c5f04b5675 |
5
.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
spark-store.pro.user*
|
||||
*.pro.user*
|
||||
build/
|
||||
.vscode/
|
||||
.vscode/
|
||||
Lib/
|
||||
|
||||
@@ -133,7 +133,9 @@ void Widget::openUrl(QUrl u)
|
||||
}
|
||||
|
||||
```
|
||||
**tags处理方式**
|
||||
## Tags处理方式
|
||||
|
||||
**Tags处理方式**
|
||||
```cpp
|
||||
// widget.cpp
|
||||
QString tags=json["Tags"].toString(); //Read the Tags
|
||||
@@ -156,7 +158,7 @@ QString tags=json["Tags"].toString(); //Read the Tags
|
||||
if(tagList[i]=="a2d")
|
||||
ui->tag_a2d->show();
|
||||
}
|
||||
```cpp
|
||||
```
|
||||
|
||||
**Widget 初始化**
|
||||
```cpp
|
||||
|
||||
@@ -34,23 +34,23 @@
|
||||
<file>icons/refresh-page.svg</file>
|
||||
</qresource>
|
||||
<qresource prefix="/">
|
||||
<file>Logo-Spark.png</file>
|
||||
<file>big_image.cpp</file>
|
||||
<file>big_image.h</file>
|
||||
<file>downloadlist.cpp</file>
|
||||
<file>downloadlist.h</file>
|
||||
<file>image_show.cpp</file>
|
||||
<file>image_show.h</file>
|
||||
<file>main.cpp</file>
|
||||
<file>progressload.cpp</file>
|
||||
<file>progressload.h</file>
|
||||
<file>widget.cpp</file>
|
||||
<file>widget.h</file>
|
||||
<file>../Logo-Spark.png</file>
|
||||
<file>../src/big_image.cpp</file>
|
||||
<file>../src/big_image.h</file>
|
||||
<file>../src/downloadlist.cpp</file>
|
||||
<file>../src/downloadlist.h</file>
|
||||
<file>../src/image_show.cpp</file>
|
||||
<file>../src/image_show.h</file>
|
||||
<file>../src/main.cpp</file>
|
||||
<file>../src/progressload.cpp</file>
|
||||
<file>../src/progressload.h</file>
|
||||
<file>../src/widget.cpp</file>
|
||||
<file>../src/widget.h</file>
|
||||
<file>tags/a2d.png</file>
|
||||
<file>tags/community.svg</file>
|
||||
<file>tags/deepin.svg</file>
|
||||
<file>tags/logo_icon.svg</file>
|
||||
<file>tags/uos.svg</file>
|
||||
<file>tags/uos-authorize.svg</file>
|
||||
<file>tags/a2d-small.png</file>
|
||||
<file>tags/community-small.png</file>
|
||||
<file>tags/deepin-small.png</file>
|
||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 523 B After Width: | Height: | Size: 523 B |
|
Before Width: | Height: | Size: 553 B After Width: | Height: | Size: 553 B |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 865 B After Width: | Height: | Size: 865 B |
|
Before Width: | Height: | Size: 895 B After Width: | Height: | Size: 895 B |
|
Before Width: | Height: | Size: 929 B After Width: | Height: | Size: 929 B |
|
Before Width: | Height: | Size: 959 B After Width: | Height: | Size: 959 B |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 810 B After Width: | Height: | Size: 810 B |
|
Before Width: | Height: | Size: 828 B After Width: | Height: | Size: 828 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 494 B After Width: | Height: | Size: 494 B |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 248 KiB After Width: | Height: | Size: 248 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 954 B After Width: | Height: | Size: 954 B |
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 873 B After Width: | Height: | Size: 873 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
13
assets/tags/uos.svg
Normal file
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
|
||||
<defs>
|
||||
<linearGradient id="uos-托盘1-a" x1="15.968%" x2="100%" y1="14.224%" y2="60.554%">
|
||||
<stop offset="0%" stop-color="#0071FF"/>
|
||||
<stop offset="48.72%" stop-color="#00E8FC"/>
|
||||
<stop offset="100%" stop-color="#00A2FF"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<g fill="none" transform="translate(1 1)">
|
||||
<circle cx="9" cy="9" r="9" fill="url(#uos-托盘1-a)"/>
|
||||
<path fill="#FFF" d="M13,4.5 C13.5128358,4.5 13.9355072,4.88604019 13.9932723,5.38337887 L14,5.5 L14,9.5 C14,12.5 12,14.5 9,14.5 C6,14.5 4,12.5 4.0043492,9.70016408 L4,9.5 L4,5.5 C4,4.94771525 4.44771525,4.5 5,4.5 C5.51283584,4.5 5.93550716,4.88604019 5.99327227,5.38337887 L6,5.5 L6,9.5 C6,11.5 7.5,12.5 9,12.5 C10.5,12.5 12,11.5 12,9.5 L12,5.5 C12,4.94771525 12.4477153,4.5 13,4.5 Z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 873 B |
7
spark-store-project.pro
Normal file
@@ -0,0 +1,7 @@
|
||||
TEMPLATE = subdirs
|
||||
CONFIG += ordered
|
||||
|
||||
SUBDIRS = third-party/QtNetworkService \
|
||||
src/spark-store.pro
|
||||
|
||||
spark-store.depends = third-party/QtNetworkService
|
||||
97
src/appitem.cpp
Normal file
@@ -0,0 +1,97 @@
|
||||
#include "appitem.h"
|
||||
#include "ui_appitem.h"
|
||||
#include <QtConcurrent>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QNetworkReply>
|
||||
#include <QNetworkRequest>
|
||||
#include <QEventLoop>
|
||||
#include <QPainter>
|
||||
#include <QGraphicsDropShadowEffect>
|
||||
|
||||
AppItem::AppItem(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::AppItem)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
// auto shadow = new QGraphicsDropShadowEffect();
|
||||
// shadow->setXOffset(0);
|
||||
// shadow->setYOffset(1);
|
||||
// shadow->setBlurRadius(2);
|
||||
// shadow->setColor(QColor::fromRgba(qRgba(0, 0, 0, 180)));
|
||||
// ui->container->setGraphicsEffect(shadow);
|
||||
}
|
||||
|
||||
AppItem::~AppItem()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void AppItem::setTitle(QString title)
|
||||
{
|
||||
m_title = title;
|
||||
ui->lbl_title->setText(title);
|
||||
}
|
||||
|
||||
void AppItem::setDescription(QString description)
|
||||
{
|
||||
m_description = description;
|
||||
QString elidedText = ui->lbl_desc->fontMetrics().elidedText(
|
||||
description, Qt::ElideRight,
|
||||
ui->lbl_desc->width(), Qt::TextShowMnemonic);
|
||||
ui->lbl_desc->setText(elidedText);
|
||||
ui->lbl_desc->setAlignment(Qt::AlignTop);
|
||||
}
|
||||
|
||||
void AppItem::setIcon(QString icon)
|
||||
{
|
||||
m_icon = icon;
|
||||
if (!icon.isEmpty()) {
|
||||
downloadIcon(icon);
|
||||
}
|
||||
}
|
||||
|
||||
void AppItem::setUrl(QString url)
|
||||
{
|
||||
m_url = url;
|
||||
}
|
||||
|
||||
void AppItem::mousePressEvent(QMouseEvent *event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
emit clicked(QUrl(m_url));
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 下载图标
|
||||
* @param icon
|
||||
*/
|
||||
void AppItem::downloadIcon(QString icon)
|
||||
{
|
||||
QtConcurrent::run([=](){
|
||||
auto reqManager = new QNetworkAccessManager();
|
||||
QUrl url(icon);
|
||||
QNetworkReply *reply = reqManager->get(QNetworkRequest(url));
|
||||
QEventLoop loop;
|
||||
connect(reply, &QNetworkReply::finished, &loop, &QEventLoop::quit);
|
||||
connect(reply, &QNetworkReply::finished, this, [=] () { emit finished(); });
|
||||
loop.exec();
|
||||
reqManager->deleteLater();
|
||||
QPixmap pixmap;
|
||||
pixmap.loadFromData(reply->readAll());
|
||||
pixmap = pixmap.scaled(78, 78, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
|
||||
if (reply->error() == QNetworkReply::NoError) {
|
||||
QMetaObject::invokeMethod(this, "loadIcon", Qt::QueuedConnection,
|
||||
Q_ARG(QPixmap, pixmap));
|
||||
} else {
|
||||
qDebug() << reply->errorString();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void AppItem::loadIcon(QPixmap pic)
|
||||
{
|
||||
ui->lbl_icon->setPixmap(pic);
|
||||
}
|
||||
|
||||
|
||||
44
src/appitem.h
Normal file
@@ -0,0 +1,44 @@
|
||||
#ifndef APPITEM_H
|
||||
#define APPITEM_H
|
||||
|
||||
#include <QWidget>
|
||||
#include <QUrl>
|
||||
|
||||
namespace Ui {
|
||||
class AppItem;
|
||||
}
|
||||
|
||||
class AppItem : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AppItem(QWidget *parent = nullptr);
|
||||
~AppItem();
|
||||
|
||||
void setTitle(QString title);
|
||||
void setDescription(QString description);
|
||||
void setIcon(QString icon);
|
||||
void setUrl(QString url);
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
|
||||
signals:
|
||||
void clicked(QUrl url);
|
||||
void finished();
|
||||
|
||||
public slots:
|
||||
void downloadIcon(QString icon);
|
||||
void loadIcon(QPixmap pic);
|
||||
|
||||
private:
|
||||
Ui::AppItem *ui;
|
||||
|
||||
QString m_title;
|
||||
QString m_description;
|
||||
QString m_icon;
|
||||
QString m_url;
|
||||
};
|
||||
|
||||
#endif // APPITEM_H
|
||||
160
src/appitem.ui
Normal file
@@ -0,0 +1,160 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>AppItem</class>
|
||||
<widget class="QWidget" name="AppItem">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>333</width>
|
||||
<height>133</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QWidget#AppItem {
|
||||
width: 300px;
|
||||
height: 100px;
|
||||
margin: 15px;
|
||||
color: #6d6d6d;
|
||||
border-radius: 18px;
|
||||
background-color: width: 300px;
|
||||
height: 100px;
|
||||
margin: 15px;
|
||||
color: #6d6d6d;
|
||||
border-radius: 18px;
|
||||
background-color: #F4F4F6;
|
||||
}
|
||||
|
||||
QWidget#container {
|
||||
background-color: #F4F4F6;
|
||||
}
|
||||
|
||||
QLabel#lbl_icon {
|
||||
background: transparent;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
QLabel#lbl_title {
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
padding-right: 10px;
|
||||
font-size: 19px;
|
||||
|
||||
}
|
||||
|
||||
QLabel#lbl_desc {
|
||||
text-align: left;
|
||||
font-weight: lighter;
|
||||
white-space: nowrap;
|
||||
font-size: 12px;
|
||||
color: grey;
|
||||
}</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QWidget" name="container" native="true">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_icon">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>100</width>
|
||||
<height>100</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">width: 78px;
|
||||
height: 70px;
|
||||
padding: 10px;</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_title">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>50</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>50</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lbl_desc">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>50</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>200</width>
|
||||
<height>50</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
223
src/flowlayout.cpp
Normal file
@@ -0,0 +1,223 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the examples of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** BSD License Usage
|
||||
** Alternatively, you may use this file under the terms of the BSD license
|
||||
** as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of The Qt Company Ltd nor the names of its
|
||||
** contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtWidgets>
|
||||
|
||||
#include "flowlayout.h"
|
||||
//! [1]
|
||||
FlowLayout::FlowLayout(QWidget *parent, int margin, int hSpacing, int vSpacing)
|
||||
: QLayout(parent), m_hSpace(hSpacing), m_vSpace(vSpacing)
|
||||
{
|
||||
setContentsMargins(margin, margin, margin, margin);
|
||||
}
|
||||
|
||||
FlowLayout::FlowLayout(int margin, int hSpacing, int vSpacing)
|
||||
: m_hSpace(hSpacing), m_vSpace(vSpacing)
|
||||
{
|
||||
setContentsMargins(margin, margin, margin, margin);
|
||||
}
|
||||
//! [1]
|
||||
|
||||
//! [2]
|
||||
FlowLayout::~FlowLayout()
|
||||
{
|
||||
QLayoutItem *item;
|
||||
while ((item = takeAt(0)))
|
||||
delete item;
|
||||
}
|
||||
//! [2]
|
||||
|
||||
//! [3]
|
||||
void FlowLayout::addItem(QLayoutItem *item)
|
||||
{
|
||||
itemList.append(item);
|
||||
}
|
||||
//! [3]
|
||||
|
||||
//! [4]
|
||||
int FlowLayout::horizontalSpacing() const
|
||||
{
|
||||
if (m_hSpace >= 0) {
|
||||
return m_hSpace;
|
||||
} else {
|
||||
return smartSpacing(QStyle::PM_LayoutHorizontalSpacing);
|
||||
}
|
||||
}
|
||||
|
||||
int FlowLayout::verticalSpacing() const
|
||||
{
|
||||
if (m_vSpace >= 0) {
|
||||
return m_vSpace;
|
||||
} else {
|
||||
return smartSpacing(QStyle::PM_LayoutVerticalSpacing);
|
||||
}
|
||||
}
|
||||
//! [4]
|
||||
|
||||
//! [5]
|
||||
int FlowLayout::count() const
|
||||
{
|
||||
return itemList.size();
|
||||
}
|
||||
|
||||
QLayoutItem *FlowLayout::itemAt(int index) const
|
||||
{
|
||||
return itemList.value(index);
|
||||
}
|
||||
|
||||
QLayoutItem *FlowLayout::takeAt(int index)
|
||||
{
|
||||
if (index >= 0 && index < itemList.size())
|
||||
return itemList.takeAt(index);
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
//! [5]
|
||||
|
||||
//! [6]
|
||||
Qt::Orientations FlowLayout::expandingDirections() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
//! [6]
|
||||
|
||||
//! [7]
|
||||
bool FlowLayout::hasHeightForWidth() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
int FlowLayout::heightForWidth(int width) const
|
||||
{
|
||||
int height = doLayout(QRect(0, 0, width, 0), true);
|
||||
return height;
|
||||
}
|
||||
//! [7]
|
||||
|
||||
//! [8]
|
||||
void FlowLayout::setGeometry(const QRect &rect)
|
||||
{
|
||||
QLayout::setGeometry(rect);
|
||||
doLayout(rect, false);
|
||||
}
|
||||
|
||||
QSize FlowLayout::sizeHint() const
|
||||
{
|
||||
return minimumSize();
|
||||
}
|
||||
|
||||
QSize FlowLayout::minimumSize() const
|
||||
{
|
||||
QSize size;
|
||||
QLayoutItem *item;
|
||||
foreach (item, itemList)
|
||||
size = size.expandedTo(item->minimumSize());
|
||||
|
||||
size += QSize(2*margin(), 2*margin());
|
||||
return size;
|
||||
}
|
||||
//! [8]
|
||||
|
||||
//! [9]
|
||||
int FlowLayout::doLayout(const QRect &rect, bool testOnly) const
|
||||
{
|
||||
int left, top, right, bottom;
|
||||
getContentsMargins(&left, &top, &right, &bottom);
|
||||
QRect effectiveRect = rect.adjusted(+left, +top, -right, -bottom);
|
||||
int x = effectiveRect.x();
|
||||
int y = effectiveRect.y();
|
||||
int lineHeight = 0;
|
||||
//! [9]
|
||||
|
||||
//! [10]
|
||||
QLayoutItem *item;
|
||||
foreach (item, itemList) {
|
||||
QWidget *wid = item->widget();
|
||||
int spaceX = horizontalSpacing();
|
||||
if (spaceX == -1)
|
||||
spaceX = wid->style()->layoutSpacing(
|
||||
QSizePolicy::PushButton, QSizePolicy::PushButton, Qt::Horizontal);
|
||||
int spaceY = verticalSpacing();
|
||||
if (spaceY == -1)
|
||||
spaceY = wid->style()->layoutSpacing(
|
||||
QSizePolicy::PushButton, QSizePolicy::PushButton, Qt::Vertical);
|
||||
//! [10]
|
||||
//! [11]
|
||||
int nextX = x + item->sizeHint().width() + spaceX;
|
||||
if (nextX - spaceX > effectiveRect.right() && lineHeight > 0) {
|
||||
x = effectiveRect.x();
|
||||
y = y + lineHeight + spaceY;
|
||||
nextX = x + item->sizeHint().width() + spaceX;
|
||||
lineHeight = 0;
|
||||
}
|
||||
|
||||
if (!testOnly)
|
||||
item->setGeometry(QRect(QPoint(x, y), item->sizeHint()));
|
||||
|
||||
x = nextX;
|
||||
lineHeight = qMax(lineHeight, item->sizeHint().height());
|
||||
}
|
||||
return y + lineHeight - rect.y() + bottom;
|
||||
}
|
||||
//! [11]
|
||||
//! [12]
|
||||
int FlowLayout::smartSpacing(QStyle::PixelMetric pm) const
|
||||
{
|
||||
QObject *parent = this->parent();
|
||||
if (!parent) {
|
||||
return -1;
|
||||
} else if (parent->isWidgetType()) {
|
||||
QWidget *pw = static_cast<QWidget *>(parent);
|
||||
return pw->style()->pixelMetric(pm, 0, pw);
|
||||
} else {
|
||||
return static_cast<QLayout *>(parent)->spacing();
|
||||
}
|
||||
}
|
||||
//! [12]
|
||||
88
src/flowlayout.h
Normal file
@@ -0,0 +1,88 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the examples of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** BSD License Usage
|
||||
** Alternatively, you may use this file under the terms of the BSD license
|
||||
** as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of The Qt Company Ltd nor the names of its
|
||||
** contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef FLOWLAYOUT_H
|
||||
#define FLOWLAYOUT_H
|
||||
|
||||
#include <QLayout>
|
||||
#include <QRect>
|
||||
#include <QStyle>
|
||||
//! [0]
|
||||
class FlowLayout : public QLayout
|
||||
{
|
||||
public:
|
||||
explicit FlowLayout(QWidget *parent, int margin = -1, int hSpacing = -1, int vSpacing = -1);
|
||||
explicit FlowLayout(int margin = -1, int hSpacing = -1, int vSpacing = -1);
|
||||
~FlowLayout();
|
||||
|
||||
void addItem(QLayoutItem *item) override;
|
||||
int horizontalSpacing() const;
|
||||
int verticalSpacing() const;
|
||||
Qt::Orientations expandingDirections() const override;
|
||||
bool hasHeightForWidth() const override;
|
||||
int heightForWidth(int) const override;
|
||||
int count() const override;
|
||||
QLayoutItem *itemAt(int index) const override;
|
||||
QSize minimumSize() const override;
|
||||
void setGeometry(const QRect &rect) override;
|
||||
QSize sizeHint() const override;
|
||||
QLayoutItem *takeAt(int index) override;
|
||||
|
||||
private:
|
||||
int doLayout(const QRect &rect, bool testOnly) const;
|
||||
int smartSpacing(QStyle::PixelMetric pm) const;
|
||||
|
||||
QList<QLayoutItem *> itemList;
|
||||
int m_hSpace;
|
||||
int m_vSpace;
|
||||
};
|
||||
//! [0]
|
||||
|
||||
#endif // FLOWLAYOUT_H
|
||||
@@ -4,6 +4,8 @@
|
||||
#include <widget.h>
|
||||
#include <QTranslator>
|
||||
#include <DAboutDialog>
|
||||
#include "appitem.h"
|
||||
|
||||
DWIDGET_USE_NAMESPACE
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
@@ -38,8 +40,8 @@ int main(int argc, char *argv[])
|
||||
a.setProductIcon(QIcon::fromTheme("spark-store")); //设置Logo
|
||||
a.setOrganizationName("spark-union");
|
||||
a.setOrganizationDomain("https://www.deepinos.org/");
|
||||
a.setApplicationName(QLabel::tr("Spark Store"));
|
||||
a.setApplicationVersion(DApplication::buildVersion("2.0.2.5"));
|
||||
a.setApplicationName("Spark Store"); //不需要翻译,否则 ~/.local/share/ 下文件夹名称也被翻译为中文
|
||||
a.setApplicationVersion(DApplication::buildVersion("3.0~alpha0"));
|
||||
a.setApplicationAcknowledgementPage("https://gitee.com/deepin-community-store/spark-store");
|
||||
a.setApplicationDescription(
|
||||
QObject::tr(
|
||||
@@ -26,43 +26,52 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
|
||||
SOURCES += main.cpp\
|
||||
appitem.cpp \
|
||||
widget.cpp \
|
||||
downloadlist.cpp \
|
||||
image_show.cpp \
|
||||
big_image.cpp \
|
||||
progressload.cpp \
|
||||
flowlayout.cpp \
|
||||
workerthreads.cpp
|
||||
|
||||
HEADERS += \
|
||||
appitem.h \
|
||||
widget.h \
|
||||
downloadlist.h \
|
||||
image_show.h \
|
||||
big_image.h \
|
||||
progressload.h \
|
||||
flowlayout.h \
|
||||
workerthreads.h
|
||||
|
||||
FORMS += \
|
||||
appitem.ui \
|
||||
widget.ui \
|
||||
downloadlist.ui
|
||||
|
||||
RESOURCES += \
|
||||
icons.qrc
|
||||
../assets/icons.qrc
|
||||
|
||||
DISTFILES += \
|
||||
tags/a2d-small.png \
|
||||
tags/a2d.png \
|
||||
tags/community-small.png \
|
||||
tags/community.png \
|
||||
tags/deepin-small.png \
|
||||
tags/dtk-small.png \
|
||||
tags/ubuntu-small.png \
|
||||
tags/ubuntu.png \
|
||||
tags/uos-small.png \
|
||||
tags/community.svg \
|
||||
tags/deepin.svg \
|
||||
tags/logo_icon.svg \
|
||||
tags/uos.svg
|
||||
../assets/tags/a2d-small.png \
|
||||
../assets/tags/a2d.png \
|
||||
../assets/tags/community-small.png \
|
||||
../assets/tags/community.png \
|
||||
../assets/tags/deepin-small.png \
|
||||
../assets/tags/dtk-small.png \
|
||||
../assets/tags/ubuntu-small.png \
|
||||
../assets/tags/ubuntu.png \
|
||||
../assets/tags/uos-small.png \
|
||||
../assets/tags/community.svg \
|
||||
../assets/tags/deepin.svg \
|
||||
../assets/tags/logo_icon.svg \
|
||||
../assets/tags/uos.svg
|
||||
|
||||
TRANSLATIONS = ../trans/spark-store_en.ts \
|
||||
../trans/spark-store_zh_CN.ts
|
||||
../trans/spark-store_fr.ts\
|
||||
|
||||
DEFINES += QT_APP_DEBUG
|
||||
include(../third-party/QtNetworkService/QtNetworkService.pri)
|
||||
|
||||
TRANSLATIONS = ./trans/spark-store_en.ts \
|
||||
./trans/spark-store_zh_CN.ts
|
||||
./trans/spark-store_fr.ts\
|
||||
@@ -9,8 +9,8 @@
|
||||
#include <fstream>
|
||||
#include <QDir>
|
||||
#include <QProcess>
|
||||
#include <QJsonDocument>
|
||||
#include <QFile>
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonObject>
|
||||
#include <QByteArray>
|
||||
#include <QPixmap>
|
||||
@@ -29,8 +29,13 @@
|
||||
#include <DApplication>
|
||||
#include <DGuiApplicationHelper>
|
||||
#include <QPushButton>
|
||||
#include "HttpClient.h"
|
||||
#include "appitem.h"
|
||||
#include "flowlayout.h"
|
||||
|
||||
DWIDGET_USE_NAMESPACE
|
||||
|
||||
|
||||
Widget::Widget(DBlurEffectWidget *parent) :
|
||||
DBlurEffectWidget(parent),
|
||||
ui(new Ui::Widget)
|
||||
@@ -42,6 +47,8 @@ Widget::Widget(DBlurEffectWidget *parent) :
|
||||
m_loadweb=ui->progressload;
|
||||
m_loadweb->show();
|
||||
|
||||
httpClient = new AeaQt::HttpClient;
|
||||
|
||||
connect(ui->menu_main,&QPushButton::clicked,[=](){Widget::chooseLeftMenu(0);});
|
||||
connect(ui->menu_network,&QPushButton::clicked,[=](){Widget::chooseLeftMenu(1);});
|
||||
connect(ui->menu_chat,&QPushButton::clicked,[=](){Widget::chooseLeftMenu(2);});
|
||||
@@ -72,7 +79,7 @@ Widget::Widget(DBlurEffectWidget *parent) :
|
||||
qDebug()<<searchEdit->text();
|
||||
searchApp(searchtext);
|
||||
}
|
||||
searchEdit->clearEdit();
|
||||
this->setFocus();
|
||||
});
|
||||
|
||||
connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, [=](DGuiApplicationHelper::ColorType themeType) {
|
||||
@@ -200,6 +207,9 @@ void Widget::initUI()
|
||||
left_list[13]=ui->menu_download;
|
||||
|
||||
ui->label_show->hide();
|
||||
|
||||
// 搜索列表页
|
||||
applist_grid = new FlowLayout;
|
||||
}
|
||||
|
||||
void Widget::initConfig()
|
||||
@@ -302,7 +312,6 @@ void Widget::setTheme(bool isDark,QColor color)
|
||||
if(ui->stackedWidget->currentIndex()==0){
|
||||
chooseLeftMenu(nowMenu);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DTitlebar* Widget::getTitlebar()
|
||||
@@ -712,10 +721,87 @@ void Widget::searchApp(QString text)
|
||||
{
|
||||
if(text.left(6)=="spk://"){
|
||||
openUrl(text);
|
||||
searchEdit->clearEdit();
|
||||
}else {
|
||||
sendNotification(tr("Spark store could only process spk:// links for now. The search feature is coming soon!"));
|
||||
// sendNotification(tr("Spark store could only process spk:// links for now. The search feature is coming soon!"));
|
||||
// ui->webView->setUrl(QUrl("http://www.baidu.com/s?wd="+text));//这东西对接百度
|
||||
// ui->stackedWidget->setCurrentIndex(0);
|
||||
|
||||
// 禁止同时进行多次搜索
|
||||
if(!mutex.tryLock())
|
||||
return;
|
||||
|
||||
// 关键字搜索处理
|
||||
httpClient->get("http://search.deepinos.org.cn/appinfo/search")
|
||||
.header("content-type", "application/json")
|
||||
.queryParam("keyword", text)
|
||||
.onResponse([this](QByteArray result) {
|
||||
auto json = QJsonDocument::fromJson(result).array();
|
||||
if (json.empty()) {
|
||||
qDebug() << "相关应用未找到!";
|
||||
sendNotification(tr("Relative apps Not Found!"));
|
||||
mutex.unlock();
|
||||
return;
|
||||
}
|
||||
displaySearchApp(json);
|
||||
})
|
||||
.onError([this](QString errorStr) {
|
||||
qDebug() << "请求出错:" << errorStr;
|
||||
sendNotification(QString(tr("Request Error: %1")).arg(errorStr));
|
||||
mutex.unlock();
|
||||
return;
|
||||
})
|
||||
.timeout(10 * 1000)
|
||||
.exec();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 展示搜索的APP信息
|
||||
*/
|
||||
void Widget::displaySearchApp(QJsonArray array)
|
||||
{
|
||||
ui->stackedWidget->setCurrentIndex(4);
|
||||
|
||||
// 清除原有的搜索结果
|
||||
QLayoutItem *item;
|
||||
while ((item = applist_grid->takeAt(0)) != nullptr) {
|
||||
item->widget()->disconnect();
|
||||
delete item->widget();
|
||||
delete item;
|
||||
}
|
||||
item = nullptr;
|
||||
|
||||
for(int i = 0; i < array.size(); i++)
|
||||
{
|
||||
QJsonObject appInfo = array.at(i).toObject();
|
||||
AppItem *appItem = new AppItem(this);
|
||||
QString url = QString("spk://store/%1/%2")
|
||||
.arg(appInfo["category_slug"].toString())
|
||||
.arg(appInfo["pkgname"].toString());
|
||||
appItem->setTitle(appInfo["name"].toString());
|
||||
appItem->setDescription(appInfo["more"].toString());
|
||||
appItem->setIcon(appInfo["icon"].toString());
|
||||
appItem->setUrl(url);
|
||||
applist_grid->addWidget(appItem);
|
||||
qDebug() << "应用链接为:" << url;
|
||||
connect(appItem, &AppItem::clicked, this, &Widget::openUrl);
|
||||
connect(appItem, &AppItem::finished, this, [=](){
|
||||
count++;
|
||||
downloadIconsFinished(array.size());
|
||||
});
|
||||
}
|
||||
ui->applist_scrollarea->widget()->setLayout(applist_grid);
|
||||
qDebug() << "显示结果了吗????喵喵喵";
|
||||
}
|
||||
|
||||
void Widget::downloadIconsFinished(int arraysize)
|
||||
{
|
||||
// 当前搜索列表图标全部加载完成后才允许下一次搜索
|
||||
if(count == arraysize)
|
||||
{
|
||||
count = 0;
|
||||
mutex.unlock();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,8 +13,9 @@
|
||||
#include <QFutureWatcher>
|
||||
#include <QToolButton>
|
||||
#include <QTimer>
|
||||
|
||||
#include <QJsonArray>
|
||||
#include <QFontDatabase>
|
||||
#include <QMutex>
|
||||
|
||||
#include <DSettings>
|
||||
#include <DBlurEffectWidget>
|
||||
@@ -36,6 +37,11 @@ class Widget;
|
||||
}
|
||||
|
||||
|
||||
class FlowLayout;
|
||||
|
||||
namespace AeaQt {
|
||||
class HttpClient;
|
||||
}
|
||||
|
||||
class Widget : public DBlurEffectWidget
|
||||
{
|
||||
@@ -73,6 +79,9 @@ private slots:
|
||||
void sltAppinfoScreenshot(QPixmap *picture, int index);
|
||||
void sltAppinfoFinish();
|
||||
|
||||
void displaySearchApp(QJsonArray array); // 展示搜索的APP信息
|
||||
void downloadIconsFinished(int arraysize); // 当前搜索列表图标是否下载完成
|
||||
|
||||
void on_pushButton_download_clicked();
|
||||
void on_pushButton_return_clicked();
|
||||
void on_comboBox_server_currentIndexChanged(const QString &arg1);
|
||||
@@ -142,9 +151,14 @@ private:
|
||||
DSearchEdit *searchEdit=new DSearchEdit;
|
||||
DTitlebar *titlebar;
|
||||
|
||||
int count = 0; // 记录当前搜索列表下载图标完成的个数
|
||||
QMutex mutex; // 禁止多次搜索事件同时发生
|
||||
|
||||
QList<image_show*> label_screen;
|
||||
SpkAppInfoLoaderThread appinfoLoadThread;
|
||||
|
||||
AeaQt::HttpClient *httpClient;
|
||||
FlowLayout *applist_grid;
|
||||
};
|
||||
|
||||
#endif // WIDGET_H
|
||||
@@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1053</width>
|
||||
<height>674</height>
|
||||
<height>711</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -29,6 +29,38 @@
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item row="1" column="1">
|
||||
<widget class="ProgressLoad" name="progressload" native="true">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>3</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>3</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTipDuration">
|
||||
<number>-1</number>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="DTitlebar" name="titlebar" native="true">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" rowspan="4">
|
||||
<widget class="QWidget" name="widget_menuList" native="true">
|
||||
<property name="minimumSize">
|
||||
@@ -61,33 +93,21 @@
|
||||
<property name="rightMargin">
|
||||
<number>5</number>
|
||||
</property>
|
||||
<item row="6" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_video">
|
||||
<property name="text">
|
||||
<string>Video</string>
|
||||
<item row="1" column="0">
|
||||
<spacer name="verticalSpacer_7">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="16" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_download">
|
||||
<property name="text">
|
||||
<string>Download</string>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Fixed</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_system">
|
||||
<property name="text">
|
||||
<string>Tools</string>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="13" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_theme">
|
||||
<property name="text">
|
||||
<string>Beautify</string>
|
||||
</property>
|
||||
</widget>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="5" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_music">
|
||||
@@ -96,6 +116,20 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_photo">
|
||||
<property name="text">
|
||||
<string>Graphics</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_dev">
|
||||
<property name="text">
|
||||
<string>Development</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" colspan="2">
|
||||
<widget class="QLabel" name="icon">
|
||||
<property name="minimumSize">
|
||||
@@ -115,22 +149,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<spacer name="verticalSpacer_7">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeType">
|
||||
<enum>QSizePolicy::Fixed</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="0" column="5">
|
||||
<spacer name="horizontalSpacer_8">
|
||||
<property name="orientation">
|
||||
@@ -147,10 +165,30 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="11" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_dev">
|
||||
<item row="0" column="2">
|
||||
<spacer name="horizontalSpacer_9">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="12" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_system">
|
||||
<property name="text">
|
||||
<string>Development</string>
|
||||
<string>Tools</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_read">
|
||||
<property name="text">
|
||||
<string>Reading</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -161,6 +199,33 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QPushButton" name="pushButton_refresh">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Reload</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../assets/icons.qrc">
|
||||
<normaloff>:/icons/icons/refresh-page.svg</normaloff>:/icons/icons/refresh-page.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_chat">
|
||||
<property name="text">
|
||||
<string>Chat</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="4">
|
||||
<widget class="QPushButton" name="pushButton_return">
|
||||
<property name="maximumSize">
|
||||
@@ -176,7 +241,7 @@
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="icons.qrc">
|
||||
<iconset resource="../assets/icons.qrc">
|
||||
<normaloff>:/icons/icons/category_active.svg</normaloff>:/icons/icons/category_active.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -194,10 +259,24 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="10" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_read">
|
||||
<item row="13" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_theme">
|
||||
<property name="text">
|
||||
<string>Reading</string>
|
||||
<string>Beautify</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_network">
|
||||
<property name="text">
|
||||
<string>Network</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_game">
|
||||
<property name="text">
|
||||
<string>Games</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -221,31 +300,17 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_photo">
|
||||
<item row="16" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_download">
|
||||
<property name="text">
|
||||
<string>Graphics</string>
|
||||
<string>Download</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_game">
|
||||
<item row="6" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_video">
|
||||
<property name="text">
|
||||
<string>Games</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_chat">
|
||||
<property name="text">
|
||||
<string>Chat</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="6">
|
||||
<widget class="QPushButton" name="menu_network">
|
||||
<property name="text">
|
||||
<string>Network</string>
|
||||
<string>Video</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -268,39 +333,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<spacer name="horizontalSpacer_9">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QPushButton" name="pushButton_refresh">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Reload</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="icons.qrc">
|
||||
<normaloff>:/icons/icons/refresh-page.svg</normaloff>:/icons/icons/refresh-page.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -313,7 +345,7 @@
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>3</number>
|
||||
<number>4</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="page">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
@@ -458,7 +490,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>889</width>
|
||||
<height>849</height>
|
||||
<height>854</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_17">
|
||||
@@ -953,7 +985,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>851</width>
|
||||
<height>326</height>
|
||||
<height>323</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||
@@ -1083,7 +1115,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>889</width>
|
||||
<height>812</height>
|
||||
<height>858</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_23">
|
||||
@@ -1354,38 +1386,48 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="DTitlebar" name="titlebar" native="true">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="ProgressLoad" name="progressload" native="true">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>3</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>3</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTipDuration">
|
||||
<number>-1</number>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<widget class="QWidget" name="applist_page">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QScrollArea" name="applist_scrollarea">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="applist_scrollAreaWidget">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>903</width>
|
||||
<height>681</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
@@ -1416,7 +1458,7 @@
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources>
|
||||
<include location="icons.qrc"/>
|
||||
<include location="../assets/icons.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
42
third-party/QtNetworkService/HttpClient.cpp
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
/**********************************************************
|
||||
Author: Qt君
|
||||
微信公众号: Qt君(文章首发)
|
||||
Website: qtbig.com(后续更新)
|
||||
Email: 2088201923@qq.com
|
||||
QQ交流群: 732271126
|
||||
LISCENSE: MIT
|
||||
**********************************************************/
|
||||
#include "HttpClient.h"
|
||||
#include <QJsonObject>
|
||||
#include <QJsonDocument>
|
||||
#include <QBuffer>
|
||||
|
||||
using namespace AeaQt;
|
||||
|
||||
HttpClient::HttpClient()
|
||||
{
|
||||
}
|
||||
|
||||
HttpClient::~HttpClient()
|
||||
{
|
||||
}
|
||||
|
||||
HttpRequest HttpClient::get(const QString &url)
|
||||
{
|
||||
return HttpRequest(QNetworkAccessManager::GetOperation, this).url(url);
|
||||
}
|
||||
|
||||
HttpRequest HttpClient::post(const QString &url)
|
||||
{
|
||||
return HttpRequest(QNetworkAccessManager::PostOperation, this).url(url);
|
||||
}
|
||||
|
||||
HttpRequest HttpClient::put(const QString &url)
|
||||
{
|
||||
return HttpRequest(QNetworkAccessManager::PutOperation, this).url(url);
|
||||
}
|
||||
|
||||
HttpRequest HttpClient::send(const QString &url, QNetworkAccessManager::Operation op)
|
||||
{
|
||||
return HttpRequest(op, this).url(url);
|
||||
}
|
||||
36
third-party/QtNetworkService/HttpClient.h
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
/**********************************************************
|
||||
Author: Qt君
|
||||
微信公众号: Qt君(文章首发)
|
||||
Website: qtbig.com(后续更新)
|
||||
Email: 2088201923@qq.com
|
||||
QQ交流群: 732271126
|
||||
LISCENSE: MIT
|
||||
**********************************************************/
|
||||
#ifndef HTTP_CLIENT_H
|
||||
#define HTTP_CLIENT_H
|
||||
|
||||
#include "HttpRequest.h"
|
||||
#include "HttpResponse.h"
|
||||
#include <QNetworkRequest>
|
||||
#include <QNetworkReply>
|
||||
|
||||
namespace AeaQt {
|
||||
|
||||
class HttpClient : public QNetworkAccessManager
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
friend class HttpRequest;
|
||||
|
||||
HttpClient();
|
||||
~HttpClient();
|
||||
|
||||
HttpRequest get(const QString &url);
|
||||
HttpRequest post(const QString &url);
|
||||
HttpRequest put(const QString &url);
|
||||
|
||||
HttpRequest send(const QString &url, Operation op = GetOperation);
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
268
third-party/QtNetworkService/HttpRequest.cpp
vendored
Normal file
@@ -0,0 +1,268 @@
|
||||
/**********************************************************
|
||||
Author: Qt君
|
||||
微信公众号: Qt君(文章首发)
|
||||
Website: qtbig.com(后续更新)
|
||||
Email: 2088201923@qq.com
|
||||
QQ交流群: 732271126
|
||||
LISCENSE: MIT
|
||||
**********************************************************/
|
||||
#include "HttpRequest.h"
|
||||
#include "HttpClient.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QUrlQuery>
|
||||
#include <QBuffer>
|
||||
#include <QMetaEnum>
|
||||
|
||||
using namespace AeaQt;
|
||||
|
||||
static const char *s_httpOperation[] = {
|
||||
"UnknownOperation",
|
||||
"HeadOperation",
|
||||
"GetOperation",
|
||||
"PutOperation",
|
||||
"PostOperation",
|
||||
"DeleteOperation",
|
||||
"CustomOperation"
|
||||
};
|
||||
|
||||
HttpRequest::HttpRequest()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
HttpRequest::~HttpRequest()
|
||||
{
|
||||
}
|
||||
|
||||
HttpRequest::HttpRequest(QNetworkAccessManager::Operation op, HttpClient *jsonHttpClient) :
|
||||
m_body(QByteArray()),
|
||||
m_op(op),
|
||||
m_httpService(jsonHttpClient),
|
||||
m_timeout(-1)
|
||||
{
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::url(const QString &url)
|
||||
{
|
||||
m_networkRequest.setUrl(QUrl(url));
|
||||
return *this;
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::header(const QString &key, const QVariant &value)
|
||||
{
|
||||
m_networkRequest.setRawHeader(QByteArray(key.toStdString().data()), QByteArray(value.toString().toStdString().data()));
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::headers(const QMap<QString, QVariant> &headers)
|
||||
{
|
||||
QMapIterator<QString, QVariant> iter(headers);
|
||||
while (iter.hasNext()) {
|
||||
iter.next();
|
||||
header(iter.key(), iter.value());
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::body(const QVariantMap &content)
|
||||
{
|
||||
m_body = QJsonDocument(QJsonObject::fromVariantMap(content)).toJson();
|
||||
return *this;
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::body(const QJsonObject &content)
|
||||
{
|
||||
m_body = QJsonDocument(QJsonObject::fromVariantMap(content.toVariantMap())).toJson();
|
||||
return *this;
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::body(const QByteArray &content)
|
||||
{
|
||||
m_body = content;
|
||||
return *this;
|
||||
}
|
||||
|
||||
#if 0
|
||||
HttpRequest &HttpRequest::body(const QVariant &body)
|
||||
{
|
||||
/// clear m_jsonBody
|
||||
m_jsonBody = QJsonObject();
|
||||
|
||||
if (type == X_Www_Form_Urlencoded) {
|
||||
QUrl url;
|
||||
QUrlQuery urlQuery(url);
|
||||
|
||||
if (body.type() == QVariant::Map
|
||||
|| body.typeName() == QMetaType::typeName(QMetaType::QJsonObject)) {
|
||||
|
||||
QMapIterator<QString, QVariant> i(body.toMap());
|
||||
while (i.hasNext()) {
|
||||
i.next();
|
||||
urlQuery.addQueryItem(i.key(), i.value().toString());
|
||||
}
|
||||
|
||||
url.setQuery(urlQuery);
|
||||
m_body = url.toString(QUrl::FullyEncoded).toUtf8().remove(0, 1);
|
||||
}
|
||||
else {
|
||||
m_body = body.toByteArray();
|
||||
}
|
||||
}
|
||||
else if (type == Raw_Text_Json) {
|
||||
if (body.type() == QVariant::Map
|
||||
|| body.typeName() == QMetaType::typeName(QMetaType::QJsonObject)) {
|
||||
|
||||
m_body = QJsonDocument(QJsonObject::fromVariantMap(body.toMap())).toJson();
|
||||
}
|
||||
else {
|
||||
log_warning << "This is not data in JSON format(QVariantMap or QJsonObject).";
|
||||
m_body = QByteArray();
|
||||
// warning output
|
||||
}
|
||||
}
|
||||
else {
|
||||
m_body = QByteArray();
|
||||
log_warning << "Disable body.";
|
||||
}
|
||||
|
||||
log_debugger << "Body Content:" << m_body;
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
|
||||
HttpRequest &HttpRequest::onResponse(const QObject *receiver, const char *slot, HttpResponse::SupportMethod type)
|
||||
{
|
||||
m_slotsMap.insert(type, {slot, QVariant::fromValue((QObject *)receiver)});
|
||||
return *this;
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::onResponse(std::function<void (QNetworkReply *)> lambda)
|
||||
{
|
||||
return onResponse(QVariant::fromValue(lambda));
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::onResponse(std::function<void (QVariantMap)> lambda)
|
||||
{
|
||||
return onResponse(QVariant::fromValue(lambda));
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::onResponse(std::function<void (QByteArray)> lambda)
|
||||
{
|
||||
return onResponse(QVariant::fromValue(lambda));
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::onResponse(std::function<void (qint64, qint64)> lambda)
|
||||
{
|
||||
return onResponse(QVariant::fromValue(lambda));
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::onError(const QObject *receiver, const char *slot)
|
||||
{
|
||||
return onResponse(receiver, slot, HttpResponse::AutoInfer);
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::onError(std::function<void (QNetworkReply::NetworkError)> lambda)
|
||||
{
|
||||
return onResponse(QVariant::fromValue(lambda));
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::onError(std::function<void (QString)> lambda)
|
||||
{
|
||||
return onResponse(QVariant::fromValue(lambda));
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::onError(std::function<void (QNetworkReply::NetworkError, QNetworkReply *)> lambda)
|
||||
{
|
||||
return onResponse(QVariant::fromValue(lambda));
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::onError(std::function<void (QString, QNetworkReply *)> lambda)
|
||||
{
|
||||
return onResponse(QVariant::fromValue(lambda));
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::timeout(const int &msec)
|
||||
{
|
||||
m_timeout = msec;
|
||||
return *this;
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::block()
|
||||
{
|
||||
m_isBlock = true;
|
||||
return *this;
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::onResponse(QVariant lambda)
|
||||
{
|
||||
m_slotsMap.insert(HttpResponse::AutoInfer, {lambda.typeName(), lambda});
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
HttpResponse *HttpRequest::exec()
|
||||
{
|
||||
QNetworkReply* reply = NULL;
|
||||
QBuffer* sendBuffer = new QBuffer();
|
||||
if (! m_body.isEmpty()) {
|
||||
sendBuffer->setData(m_body);
|
||||
}
|
||||
|
||||
log_debugger << "Http Client info: ";
|
||||
log_debugger << "Type: " << s_httpOperation[m_op];
|
||||
log_debugger << "Url: " << m_networkRequest.url().toString();
|
||||
QString headers;
|
||||
for (int i = 0; i < m_networkRequest.rawHeaderList().count(); i++) {
|
||||
QString each = m_networkRequest.rawHeaderList().at(i);
|
||||
QString header = m_networkRequest.rawHeader(each.toUtf8());
|
||||
headers += QString("%1: %2;").arg(each)
|
||||
.arg(header);
|
||||
}
|
||||
log_debugger << "Header: " << headers;
|
||||
log_debugger << "Send buffer(Body):\r\n" << m_body;
|
||||
|
||||
reply = m_httpService->createRequest(m_op, m_networkRequest, sendBuffer);
|
||||
|
||||
if (reply == NULL) {
|
||||
sendBuffer->deleteLater();
|
||||
return NULL;
|
||||
}
|
||||
else {
|
||||
sendBuffer->setParent(reply);
|
||||
}
|
||||
|
||||
return new HttpResponse(reply, m_slotsMap, m_timeout, m_isBlock);
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::queryParam(const QString &key, const QVariant &value)
|
||||
{
|
||||
QUrl url(m_networkRequest.url());
|
||||
QUrlQuery urlQuery(url);
|
||||
|
||||
urlQuery.addQueryItem(key, value.toString());
|
||||
url.setQuery(urlQuery);
|
||||
|
||||
m_networkRequest.setUrl(url);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::queryParams(const QMap<QString, QVariant> ¶ms)
|
||||
{
|
||||
QMapIterator<QString, QVariant> iter(params);
|
||||
while (iter.hasNext()) {
|
||||
iter.next();
|
||||
queryParam(iter.key(), iter.value());
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
HttpRequest &HttpRequest::userAttribute(const QVariant &value)
|
||||
{
|
||||
m_networkRequest.setAttribute(QNetworkRequest::User, value);
|
||||
return *this;
|
||||
}
|
||||
115
third-party/QtNetworkService/HttpRequest.h
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
/**********************************************************
|
||||
Author: Qt君
|
||||
微信公众号: Qt君(文章首发)
|
||||
Website: qtbig.com(后续更新)
|
||||
Email: 2088201923@qq.com
|
||||
QQ交流群: 732271126
|
||||
LISCENSE: MIT
|
||||
**********************************************************/
|
||||
#ifndef HTTP_REQUEST_H
|
||||
#define HTTP_REQUEST_H
|
||||
|
||||
#include "HttpResponse.h"
|
||||
|
||||
#include <QNetworkRequest>
|
||||
#include <QNetworkAccessManager>
|
||||
#include <QJsonObject>
|
||||
#include <QDebug>
|
||||
|
||||
namespace AeaQt {
|
||||
|
||||
#ifdef QT_APP_DEBUG
|
||||
#define log_debugger qDebug().noquote().nospace() \
|
||||
<< "[AeaQt::Network] Debug: -> " \
|
||||
<< "function: " << __func__ << "; " \
|
||||
<< "line: " << __LINE__ << "; "
|
||||
#else
|
||||
#define log_debugger QString()
|
||||
#endif
|
||||
|
||||
#define log_warning qWarning().noquote().nospace() \
|
||||
<< "[AeaQt::Network] Warning: -> " \
|
||||
<< "function: " << __func__ << "; " \
|
||||
<< "line: " << __LINE__ << "; "
|
||||
|
||||
class HttpClient;
|
||||
|
||||
class HttpRequest
|
||||
{
|
||||
public:
|
||||
enum BodyType {
|
||||
None = 0, // This request does not have a body.
|
||||
X_Www_Form_Urlencoded, // x-www-form-urlencoded
|
||||
Raw_Text_Json, // application/json
|
||||
};
|
||||
|
||||
explicit HttpRequest(QNetworkAccessManager::Operation op, HttpClient *jsonHttpClient);
|
||||
virtual ~HttpRequest();
|
||||
|
||||
HttpRequest &url(const QString &url);
|
||||
HttpRequest &header(const QString &key, const QVariant &value);
|
||||
HttpRequest &headers(const QMap<QString, QVariant> &headers);
|
||||
|
||||
HttpRequest &queryParam(const QString &key, const QVariant &value);
|
||||
HttpRequest &queryParams(const QMap<QString, QVariant> ¶ms);
|
||||
|
||||
/* Mainly used for identification */
|
||||
HttpRequest &userAttribute(const QVariant &value);
|
||||
|
||||
HttpRequest &body(const QVariantMap &content);
|
||||
HttpRequest &body(const QJsonObject &content);
|
||||
HttpRequest &body(const QByteArray &content);
|
||||
|
||||
/*
|
||||
* @onRespone slot support type: void function(QVariantMap resultMap) OR
|
||||
* void function(QByteArray resultData) OR
|
||||
* void function(QNetworkReply* reply)
|
||||
* note: The same type is only triggered once
|
||||
*/
|
||||
HttpRequest &onResponse(const QObject *receiver, const char *slot, HttpResponse::SupportMethod type = HttpResponse::AutoInfer);
|
||||
HttpRequest &onResponse(std::function<void (QNetworkReply*)> lambda);
|
||||
HttpRequest &onResponse(std::function<void (QVariantMap)> lambda);
|
||||
HttpRequest &onResponse(std::function<void (QByteArray)> lambda);
|
||||
HttpRequest &onResponse(std::function<void (qint64, qint64)> lambda);
|
||||
/*
|
||||
* @onError slot support type: void function(QNetworkReply::NetworkError error)
|
||||
* void function(QString errorString);
|
||||
* void function(QNetworkReply::NetworkError error, QNetworkReply* reply);
|
||||
* void function(QString errorString, QNetworkReply* reply);
|
||||
* note: The same type is only triggered once
|
||||
*/
|
||||
HttpRequest &onError(const QObject *receiver, const char *slot);
|
||||
HttpRequest &onError(std::function<void (QNetworkReply::NetworkError)> lambda);
|
||||
HttpRequest &onError(std::function<void (QString)> lambda);
|
||||
HttpRequest &onError(std::function<void (QNetworkReply::NetworkError, QNetworkReply*)> lambda);
|
||||
HttpRequest &onError(std::function<void (QString, QNetworkReply*)> lambda);
|
||||
|
||||
/**
|
||||
* @brief msec <= 0, disable timeout
|
||||
* msec > 0, enable timeout
|
||||
*/
|
||||
HttpRequest &timeout(const int &msec = -1);
|
||||
|
||||
/**
|
||||
* @brief Block current thread, entering an event loop.
|
||||
*/
|
||||
HttpRequest &block();
|
||||
|
||||
HttpResponse *exec();
|
||||
|
||||
private:
|
||||
HttpRequest();
|
||||
HttpRequest &onResponse(QVariant lambda);
|
||||
|
||||
private:
|
||||
QNetworkRequest m_networkRequest;
|
||||
QByteArray m_body;
|
||||
QNetworkAccessManager::Operation m_op;
|
||||
HttpClient *m_httpService;
|
||||
int m_timeout;
|
||||
bool m_isBlock;
|
||||
QMultiMap<HttpResponse::SupportMethod, QPair<QString, QVariant>> m_slotsMap;
|
||||
};
|
||||
|
||||
}
|
||||
#endif // HTTP_REQUEST_H
|
||||
331
third-party/QtNetworkService/HttpResponse.cpp
vendored
Normal file
@@ -0,0 +1,331 @@
|
||||
/**********************************************************
|
||||
Author: Qt君
|
||||
微信公众号: Qt君(文章首发)
|
||||
Website: qtbig.com(后续更新)
|
||||
Email: 2088201923@qq.com
|
||||
QQ交流群: 732271126
|
||||
LISCENSE: MIT
|
||||
**********************************************************/
|
||||
#include "HttpResponse.h"
|
||||
|
||||
#include <QRegExp>
|
||||
#include <QStringList>
|
||||
#include <QByteArray>
|
||||
#include <QNetworkConfigurationManager>
|
||||
#include <QMetaEnum>
|
||||
#include <QEventLoop>
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonObject>
|
||||
|
||||
#define T2S(t) (QString(#t).remove(QRegExp("\\s"))) //type to string
|
||||
|
||||
#define _exec(target, type, arg) \
|
||||
if (target.canConvert<std::function<void (type)> >()) { \
|
||||
std::function<void (type)> func = target.value<std::function<void (type)> >(); func(arg); \
|
||||
} \
|
||||
else
|
||||
|
||||
#define _exec2(target, type1, type2, arg1, arg2) \
|
||||
if (target.canConvert<std::function<void (type1, type2)> >()) { \
|
||||
std::function<void (type1, type2)> func = target.value<std::function<void (type1, type2)> >(); func(arg1, arg2); \
|
||||
} else
|
||||
|
||||
using namespace AeaQt;
|
||||
|
||||
static const QMap<HttpResponse::SupportMethod, QMap<QString, QVariant>> methodParams =
|
||||
{
|
||||
{
|
||||
HttpResponse::onResponse_QNetworkReply_A_Pointer,
|
||||
{
|
||||
{"types", QStringList({T2S(QNetworkReply*)})},
|
||||
{"lambda", T2S(std::function<void (QNetworkReply*)>)},
|
||||
{"signal", SIGNAL(finished(QNetworkReply*))},
|
||||
{"isAutoInfer", true}
|
||||
}
|
||||
},
|
||||
{
|
||||
HttpResponse::onResponse_QByteArray,
|
||||
{
|
||||
{"types", QStringList({T2S(QByteArray)})},
|
||||
{"lambda", T2S(std::function<void (QByteArray)>)},
|
||||
{"signal", SIGNAL(finished(QByteArray))},
|
||||
{"isAutoInfer", true}
|
||||
}
|
||||
},
|
||||
{
|
||||
HttpResponse::onResponse_QVariantMap,
|
||||
{
|
||||
{"types", QStringList({T2S(QVariantMap)})},
|
||||
{"lambda", T2S(std::function<void (QVariantMap)>)},
|
||||
{"signal", SIGNAL(finished(QVariantMap))},
|
||||
{"isAutoInfer", true}
|
||||
}
|
||||
},
|
||||
{
|
||||
HttpResponse::onDownloadProgress_qint64_qint64,
|
||||
{
|
||||
{"types", QStringList({T2S(qint64), T2S(qint64)})},
|
||||
{"lambda", T2S(std::function<void (qint64, qint64)>)},
|
||||
{"signal", SIGNAL(downloadProgress(qint64, qint64))},
|
||||
{"isAutoInfer", true}
|
||||
}
|
||||
},
|
||||
{
|
||||
HttpResponse::onError_QNetworkReply_To_NetworkError,
|
||||
{
|
||||
{"types", QStringList({T2S(QNetworkReply::NetworkError)})},
|
||||
{"lambda", T2S(std::function<void (QNetworkReply::NetworkError)>)},
|
||||
{"signal", SIGNAL(error(QNetworkReply::NetworkError))},
|
||||
{"isAutoInfer", true}
|
||||
}
|
||||
},
|
||||
{
|
||||
HttpResponse::onError_QString,
|
||||
{
|
||||
{"types", QStringList({T2S(QString)})},
|
||||
{"lambda", T2S(std::function<void (QString)>)},
|
||||
{"signal", SIGNAL(error(QString))},
|
||||
{"isAutoInfer", true}
|
||||
}
|
||||
},
|
||||
{
|
||||
HttpResponse::onError_QNetworkReply_To_NetworkError_QNetworkReply_A_Pointer,
|
||||
{
|
||||
{"types", QStringList({T2S(QNetworkReply::NetworkError), T2S(QNetworkReply*)})},
|
||||
{"lambda", T2S(std::function<void (QNetworkReply::NetworkError, QNetworkReply*)>)},
|
||||
{"signal", SIGNAL(error(QNetworkReply::NetworkError, QNetworkReply*))},
|
||||
{"isAutoInfer", true}
|
||||
}
|
||||
},
|
||||
{
|
||||
HttpResponse::onError_QString_QNetworkReply_A_Poniter,
|
||||
{
|
||||
{"types", QStringList({T2S(QString), T2S(QNetworkReply*)})},
|
||||
{"lambda", T2S(std::function<void (QString, QNetworkReply*)>)},
|
||||
{"signal", SIGNAL(error(QString, QNetworkReply*))},
|
||||
{"isAutoInfer", true}
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
static int extractCode(const char *member)
|
||||
{
|
||||
/* extract code, ensure QMETHOD_CODE <= code <= QSIGNAL_CODE */
|
||||
return (((int)(*member) - '0') & 0x3);
|
||||
}
|
||||
|
||||
HttpResponse::HttpResponse(QNetworkReply *networkReply,
|
||||
const QMultiMap<SupportMethod, QPair<QString, QVariant> > &slotsMap,
|
||||
const int &timeout,
|
||||
bool isBlock)
|
||||
: m_networkReply(networkReply),
|
||||
m_slotsMap(slotsMap),
|
||||
QObject(networkReply)
|
||||
{
|
||||
slotsMapOperation(m_slotsMap);
|
||||
new HttpResponseTimeout(networkReply, timeout);
|
||||
|
||||
connect(m_networkReply, SIGNAL(finished()), this, SLOT(onFinished()));
|
||||
connect(m_networkReply, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(onError(QNetworkReply::NetworkError)));
|
||||
connect(m_networkReply, SIGNAL(downloadProgress(qint64,qint64)), this, SLOT(onDownloadProgress(qint64, qint64)));
|
||||
|
||||
if (isBlock) {
|
||||
QEventLoop loop;
|
||||
QObject::connect(m_networkReply, SIGNAL(finished()), &loop, SLOT(quit()));
|
||||
loop.exec();
|
||||
}
|
||||
}
|
||||
|
||||
HttpResponse::~HttpResponse()
|
||||
{
|
||||
}
|
||||
|
||||
QNetworkReply *HttpResponse::networkReply()
|
||||
{
|
||||
return m_networkReply;
|
||||
}
|
||||
|
||||
void HttpResponse::onFinished()
|
||||
{
|
||||
QNetworkReply *reply = m_networkReply;
|
||||
if (reply->error() != QNetworkReply::NoError)
|
||||
return;
|
||||
|
||||
if (m_slotsMap.contains(onResponse_QNetworkReply_A_Pointer)) {
|
||||
_exec(m_slotsMap.value(onResponse_QNetworkReply_A_Pointer).second, QNetworkReply*, reply) {
|
||||
emit finished(reply);
|
||||
}
|
||||
}
|
||||
else if (m_slotsMap.contains((onResponse_QByteArray))) {
|
||||
QByteArray result = reply->readAll();
|
||||
|
||||
_exec(m_slotsMap.value((onResponse_QByteArray)).second, QByteArray, result) {
|
||||
emit finished(result);
|
||||
}
|
||||
|
||||
reply->deleteLater();
|
||||
}
|
||||
else if (m_slotsMap.contains((onResponse_QVariantMap))) {
|
||||
QByteArray result = reply->readAll();
|
||||
QVariantMap resultMap = QJsonDocument::fromJson(result).object().toVariantMap();
|
||||
|
||||
_exec(m_slotsMap.value((onResponse_QVariantMap)).second, QVariantMap, resultMap){
|
||||
emit finished(resultMap);
|
||||
}
|
||||
|
||||
reply->deleteLater();
|
||||
}
|
||||
}
|
||||
|
||||
void HttpResponse::onError(QNetworkReply::NetworkError error)
|
||||
{
|
||||
QNetworkReply *reply = m_networkReply;
|
||||
const QMetaObject & metaObject = QNetworkReply::staticMetaObject;
|
||||
QMetaEnum metaEnum = metaObject.enumerator(metaObject.indexOfEnumerator("NetworkError"));
|
||||
QString errorString = reply->errorString().isEmpty() ? metaEnum.valueToKey(error) : reply->errorString();
|
||||
|
||||
if (m_slotsMap.contains((onError_QString_QNetworkReply_A_Poniter))) {
|
||||
_exec2(m_slotsMap.value((onError_QString_QNetworkReply_A_Poniter)).second, QString, QNetworkReply*, errorString, reply) {
|
||||
emit this->error(errorString, reply);
|
||||
}
|
||||
}
|
||||
else if (m_slotsMap.contains((onError_QNetworkReply_To_NetworkError_QNetworkReply_A_Pointer))) {
|
||||
_exec2(m_slotsMap.value((onError_QNetworkReply_To_NetworkError_QNetworkReply_A_Pointer)).second,
|
||||
QNetworkReply::NetworkError, QNetworkReply*,
|
||||
error, reply) {
|
||||
emit this->error(error, reply);
|
||||
}
|
||||
}
|
||||
else if (m_slotsMap.contains((onError_QString))) {
|
||||
_exec(m_slotsMap.value((onError_QString)).second, QString, errorString) {
|
||||
emit this->error(errorString);
|
||||
}
|
||||
|
||||
reply->deleteLater();
|
||||
}
|
||||
else if (m_slotsMap.contains((onError_QNetworkReply_To_NetworkError))) {
|
||||
_exec(m_slotsMap.value((onError_QNetworkReply_To_NetworkError)).second, QNetworkReply::NetworkError, error) {
|
||||
emit this->error(error);
|
||||
}
|
||||
|
||||
reply->deleteLater();
|
||||
}
|
||||
}
|
||||
|
||||
void HttpResponse::onDownloadProgress(qint64 bytesReceived, qint64 bytesTotal)
|
||||
{
|
||||
if (m_slotsMap.contains((onDownloadProgress_qint64_qint64))) {
|
||||
_exec2(m_slotsMap.value((onDownloadProgress_qint64_qint64)).second, qint64, qint64, bytesReceived, bytesTotal) {
|
||||
emit downloadProgress(bytesReceived, bytesTotal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void extractSlot(const QString &respReceiverSlot, QString &extractSlot, QStringList &extractSlotTypes)
|
||||
{
|
||||
QString slot(respReceiverSlot);
|
||||
if (extractCode(respReceiverSlot.toStdString().data()) == QSLOT_CODE && !slot.isEmpty()) {
|
||||
slot.remove(0, 1);
|
||||
|
||||
QString unconvertedSlotType = slot;
|
||||
int startIndex = slot.indexOf('(');
|
||||
int endIndex = slot.indexOf(')');
|
||||
Q_ASSERT(startIndex != -1 && endIndex != -1);
|
||||
|
||||
extractSlot = slot.remove(startIndex, endIndex-startIndex+1);
|
||||
|
||||
extractSlotTypes = unconvertedSlotType.mid(startIndex+1, endIndex-startIndex-1)
|
||||
.remove(QRegExp("\\s"))
|
||||
.split(',');
|
||||
}
|
||||
}
|
||||
|
||||
/* from slotMap get [SupportMethod] */
|
||||
static HttpResponse::SupportMethod getSupportMethod(const QPair<QString, QVariant> &slotMap) {
|
||||
|
||||
QMapIterator<HttpResponse::SupportMethod, QMap<QString, QVariant>> iter(methodParams);
|
||||
|
||||
QString receiverSlot = slotMap.first;
|
||||
QString slot;
|
||||
QStringList slotTypes;
|
||||
extractSlot(receiverSlot, slot, slotTypes);
|
||||
|
||||
while (iter.hasNext()) {
|
||||
iter.next();
|
||||
HttpResponse::SupportMethod supportMethod = iter.key();
|
||||
QMap<QString, QVariant> value = iter.value();
|
||||
if (slotTypes == value.value("types").toStringList()) {
|
||||
return supportMethod;
|
||||
}
|
||||
else if (receiverSlot == value.value("lambda").toString()) {
|
||||
return supportMethod;
|
||||
}
|
||||
}
|
||||
|
||||
return HttpResponse::Invalid;
|
||||
}
|
||||
|
||||
static void autoInfterConvertedSupportMethod(QMultiMap<HttpResponse::SupportMethod, QPair<QString, QVariant> > &unconvertedSlotsMap)
|
||||
{
|
||||
QMultiMap<HttpResponse::SupportMethod, QPair<QString, QVariant> > convertedSlotsMap;
|
||||
QMapIterator<HttpResponse::SupportMethod, QPair<QString, QVariant> > iter(unconvertedSlotsMap);
|
||||
|
||||
while (iter.hasNext()) {
|
||||
iter.next();
|
||||
const HttpResponse::SupportMethod supportMethod = iter.key();
|
||||
const QPair<QString, QVariant> slotMap = iter.value();
|
||||
|
||||
if (supportMethod == HttpResponse::AutoInfer) {
|
||||
HttpResponse::SupportMethod supportMethod = getSupportMethod(slotMap);
|
||||
if (supportMethod == HttpResponse::Invalid) {
|
||||
qDebug()<<"Not find support Method!"<<slotMap.first;
|
||||
}
|
||||
else {
|
||||
if (methodParams[supportMethod].value("isAutoInfer").toBool())
|
||||
convertedSlotsMap.insert(supportMethod, slotMap);
|
||||
else
|
||||
qDebug()<<"This type["<<methodParams[supportMethod].value("types").toString()<<"] does not support automatic derivation";
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (methodParams[supportMethod].value("isAutoInfer").toBool())
|
||||
convertedSlotsMap.insert(supportMethod, slotMap);
|
||||
else
|
||||
qDebug()<<"This type["<<methodParams[supportMethod].value("types").toString()<<"] does not support automatic derivation";
|
||||
}
|
||||
}
|
||||
|
||||
unconvertedSlotsMap = convertedSlotsMap;
|
||||
|
||||
}
|
||||
|
||||
void HttpResponse::slotsMapOperation(QMultiMap<SupportMethod, QPair<QString, QVariant> > &slotsMap)
|
||||
{
|
||||
autoInfterConvertedSupportMethod(slotsMap);
|
||||
|
||||
QMapIterator<SupportMethod, QPair<QString, QVariant> > iter(slotsMap);
|
||||
while (iter.hasNext()) {
|
||||
iter.next();
|
||||
SupportMethod supportMethod = iter.key();
|
||||
const QPair<QString, QVariant> &slotMap = iter.value();
|
||||
|
||||
const QString &receiverSlot = slotMap.first;
|
||||
QVariant target = slotMap.second;
|
||||
const QObject *receiver = target.value<QObject*>();
|
||||
|
||||
if (receiver) {
|
||||
if (methodParams.contains(supportMethod)) {
|
||||
connect(this,
|
||||
methodParams[supportMethod].value("signal").toString().toStdString().data(),
|
||||
receiver,
|
||||
receiverSlot.toStdString().data(),
|
||||
Qt::QueuedConnection);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
HttpResponse::HttpResponse()
|
||||
{
|
||||
|
||||
}
|
||||
107
third-party/QtNetworkService/HttpResponse.h
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
/**********************************************************
|
||||
Author: Qt君
|
||||
微信公众号: Qt君(文章首发)
|
||||
Website: qtbig.com(后续更新)
|
||||
Email: 2088201923@qq.com
|
||||
QQ交流群: 732271126
|
||||
LISCENSE: MIT
|
||||
**********************************************************/
|
||||
#ifndef HTTP_RESPONSE_H
|
||||
#define HTTP_RESPONSE_H
|
||||
|
||||
#include <QNetworkReply>
|
||||
#include <QMultiMap>
|
||||
#include <functional>
|
||||
#include <QTimer>
|
||||
|
||||
namespace AeaQt {
|
||||
|
||||
class HttpResponseTimeout : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
HttpResponseTimeout(QNetworkReply *parent = NULL, const int timeout = -1) : QObject(parent) {
|
||||
if (timeout > 0)
|
||||
QTimer::singleShot(timeout, this, SLOT(onTimeout()));
|
||||
}
|
||||
|
||||
private slots:
|
||||
void onTimeout() {
|
||||
QNetworkReply *reply = static_cast<QNetworkReply*>(parent());
|
||||
if (reply->isRunning()) {
|
||||
reply->abort();
|
||||
reply->deleteLater();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
class HttpResponse : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
/*
|
||||
* Support Reflex Method
|
||||
* default: AutoInfer
|
||||
* AutoInfer: Automatic derivation based on type
|
||||
*/
|
||||
enum SupportMethod {
|
||||
Invalid = 0,
|
||||
AutoInfer,
|
||||
onResponse_QNetworkReply_A_Pointer, /* method: void function(QNetworkReply* reply); Is_AutoInfer: true */
|
||||
onResponse_QByteArray, /* method: void function(QByteArray data); Is_AutoInfer: true */
|
||||
onResponse_QVariantMap, /* method: void function(QVariantMap map); Is_AutoInfer: true */
|
||||
onDownloadProgress_qint64_qint64, /* method: void function(qint64 bytesReceived, qint64 bytesTotal); Is_AutoInfer: true */
|
||||
onError_QNetworkReply_To_NetworkError, /* method: void function(QNetworkReply::NetworkError error); Is_AutoInfer: true */
|
||||
onError_QString, /* method: void function(QString errorString); Is_AutoInfer: true */
|
||||
onError_QNetworkReply_To_NetworkError_QNetworkReply_A_Pointer, /* method: void function(QNetworkReply::NetworkError error, QNetworkReply* reply); Is_AutoInfer: true */
|
||||
onError_QString_QNetworkReply_A_Poniter/* method: void function(QString errorString, QNetworkReply* reply); Is_AutoInfer: true */
|
||||
};
|
||||
|
||||
explicit HttpResponse(QNetworkReply *networkReply,
|
||||
const QMultiMap<SupportMethod, QPair<QString, QVariant> > &slotsMap,
|
||||
const int &timeout,
|
||||
bool isBlock);
|
||||
|
||||
virtual ~HttpResponse();
|
||||
|
||||
QNetworkReply *networkReply();
|
||||
|
||||
protected:
|
||||
void slotsMapOperation(QMultiMap<SupportMethod, QPair<QString, QVariant> > &slotsMap);
|
||||
|
||||
signals:
|
||||
void finished(QNetworkReply *reply);
|
||||
void finished(QByteArray data);
|
||||
void finished(QVariantMap map);
|
||||
void error(QString errorString);
|
||||
void error(QNetworkReply::NetworkError error);
|
||||
void error(QString errorString, QNetworkReply *reply);
|
||||
void error(QNetworkReply::NetworkError error, QNetworkReply *reply);
|
||||
void downloadProgress(qint64 bytesReceived, qint64 bytesTotal);
|
||||
|
||||
private slots:
|
||||
void onFinished();
|
||||
void onError(QNetworkReply::NetworkError error);
|
||||
void onDownloadProgress(qint64 bytesReceived, qint64 bytesTotal);
|
||||
|
||||
private:
|
||||
HttpResponse();
|
||||
|
||||
private:
|
||||
QMultiMap<SupportMethod, QPair<QString, QVariant> > m_slotsMap;
|
||||
QNetworkReply *m_networkReply;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Q_DECLARE_METATYPE(std::function<void (QNetworkReply*)>)
|
||||
Q_DECLARE_METATYPE(std::function<void (QByteArray)>)
|
||||
Q_DECLARE_METATYPE(std::function<void (QVariantMap)>)
|
||||
|
||||
Q_DECLARE_METATYPE(std::function<void (QString)>)
|
||||
Q_DECLARE_METATYPE(std::function<void (QNetworkReply::NetworkError)>)
|
||||
Q_DECLARE_METATYPE(std::function<void (QNetworkReply::NetworkError, QNetworkReply *)>)
|
||||
Q_DECLARE_METATYPE(std::function<void (QString, QNetworkReply *)>)
|
||||
|
||||
Q_DECLARE_METATYPE(std::function<void (qint64, qint64)>)
|
||||
|
||||
#endif // HTTP_RESPONSE_H
|
||||
21
third-party/QtNetworkService/LICENSE
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019 Qt君
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
15
third-party/QtNetworkService/QtNetworkService.pri
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
#**********************************************************
|
||||
#Author: Qt君
|
||||
#微信公众号: Qt君(文章首发)
|
||||
#Website: qtbig.com(后续更新)
|
||||
#Email: 2088201923@qq.com
|
||||
#QQ交流群: 732271126
|
||||
#LISCENSE: MIT
|
||||
#**********************************************************
|
||||
INCLUDEPATH += $$PWD/
|
||||
|
||||
QT += network
|
||||
|
||||
!CONFIG(QT_APP_MODE) {
|
||||
LIBS += -L$$OUT_PWD/../third-party/QtNetworkService/Lib -lQtNetworkService
|
||||
}
|
||||
37
third-party/QtNetworkService/QtNetworkService.pro
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
#**********************************************************
|
||||
#Author: Qt君
|
||||
#微信公众号: Qt君(文章首发)
|
||||
#Website: qtbig.com(后续更新)
|
||||
#Email: 2088201923@qq.com
|
||||
#QQ交流群: 732271126
|
||||
#LISCENSE: MIT
|
||||
#**********************************************************
|
||||
CONFIG += c++11
|
||||
|
||||
#CONFIG += QT_APP_MODE
|
||||
DEFINES += QT_APP_DEBUG
|
||||
|
||||
QT += network
|
||||
|
||||
TEMPLATE = lib
|
||||
CONFIG += staticlib
|
||||
unix:TARGET = $$OUT_PWD/Lib/QtNetworkService
|
||||
|
||||
win32: {
|
||||
DESTDIR = $$OUT_PWD/Lib/
|
||||
TARGET = QtNetworkService
|
||||
}
|
||||
|
||||
message(" ================ QtNetworkService Library ================ ")
|
||||
|
||||
SOURCES += \
|
||||
$$PWD/HttpResponse.cpp \
|
||||
$$PWD/HttpRequest.cpp \
|
||||
$$PWD/HttpClient.cpp
|
||||
|
||||
HEADERS += \
|
||||
$$PWD/HttpResponse.h \
|
||||
$$PWD/HttpRequest.h \
|
||||
$$PWD/HttpClient.h
|
||||
|
||||
include(QtNetworkService.pri)
|
||||
83
third-party/QtNetworkService/README.md
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
# 示例
|
||||
(1) 简单示例
|
||||
* 使用lambda特性
|
||||
```cpp
|
||||
static HttpClient http;
|
||||
http.post("https://example.com")
|
||||
.header("content-type", "application/json")
|
||||
.queryParam("key", "Hello world!")
|
||||
.body(R"({"user": "test"})")
|
||||
.onResponse([](QByteArray result) { /* 接收数据 */
|
||||
qDebug() << "Result: " << result;
|
||||
})
|
||||
.onResponse([](qint64 recv, qint64 total) { /* 接收进度 */
|
||||
qDebug() << "Total: " << total << "; Received: " << recv;
|
||||
})
|
||||
.onError([](QString errorStr) { /* 错误处理 */
|
||||
qDebug()<<"Error: "<<errorStr;
|
||||
})
|
||||
.timeout(30 * 1000) /* 超时操作(30s) */
|
||||
.block() /* 阻塞操作 */
|
||||
.exec();
|
||||
```
|
||||
|
||||
* 使用Qt信号与槽特性
|
||||
```cpp
|
||||
http.post("https://example.com")
|
||||
.header("content-type", "application/json")
|
||||
.queryParam("key", "Hello world!")
|
||||
.body(R"({"user": "test"})")
|
||||
.onResponse(this, SLOT(finish(QByteArray)))
|
||||
.onResponse(this, SLOT(downloadProgress(qint64, qint64)))
|
||||
.onError(this, SLOT(error(QString)))
|
||||
.timeout(30 * 1000) /* 超时操作(30s) */
|
||||
.block() /* 阻塞操作 */
|
||||
.exec();
|
||||
```
|
||||
|
||||
(2) 复杂示例
|
||||
```cpp
|
||||
/* 获取音乐url功能,请求嵌套请求 */
|
||||
static HttpService http;
|
||||
http.get("http://mobilecdn.kugou.com/api/v3/search/song")
|
||||
.queryParam("format", "json")
|
||||
.queryParam("keyword", "稻香")
|
||||
.queryParam("page", 1)
|
||||
.queryParam("pagesize", 3)
|
||||
.queryParam("showtype", 1)
|
||||
.onResopnse([](QVariantMap result){
|
||||
QVariantMap data;
|
||||
QList<QVariant> infos;
|
||||
if (!result.isEmpty())
|
||||
data = result.value("data").toMap();
|
||||
|
||||
if (!data.isEmpty())
|
||||
infos = data.value("info").toList();
|
||||
|
||||
static HttpService http;
|
||||
foreach (QVariant each, infos) {
|
||||
http.get("http://m.kugou.com/app/i/getSongInfo.php")
|
||||
.queryParam("cmd", "playInfo")
|
||||
.queryParam("hash", each.toMap()["hash"])
|
||||
.onResopnse([](QVariantMap result){
|
||||
qDebug()<<"mp3: "<<result["url"].toString();
|
||||
})
|
||||
.onError([](QString errorStr){ qDebug()<<"Error: "<<errorStr; })
|
||||
.exec();
|
||||
}
|
||||
})
|
||||
.onError([](QString errorStr){ qDebug()<<"Error: "<<errorStr; })
|
||||
.exec();
|
||||
```
|
||||
## 1.如何使用?
|
||||
* 以Qt子工程使用.再在其他子工程包含pri文件即可使用;
|
||||
* 通过引用库的方式使用.
|
||||
|
||||
## 2.如何启用demo测试?
|
||||
* 在QtNetworkService.pro文件中将"#CONFIG += QT_APP_MODE"这一行的#去除即可转为可执行文件形式,在Demo目录的main.cpp为主执行文件,如需要测试接口编辑便可。
|
||||
|
||||
## 3.扫码关注,第一时间获取推送
|
||||
<p align="center">
|
||||
<img src="http://www.qtbig.com/about/index/my_qrcode.jpg" alt="微信公众号:Qt君">
|
||||
<p align="center"><em>Qt君</em></p>
|
||||
</p>
|
||||
@@ -1,11 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="en">
|
||||
<context>
|
||||
<name>AppItem</name>
|
||||
<message>
|
||||
<location filename="../src/appitem.ui" line="14"/>
|
||||
<source>Form</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QLabel</name>
|
||||
<message>
|
||||
<location filename="../main.cpp" line="37"/>
|
||||
<location filename="../main.cpp" line="41"/>
|
||||
<location filename="../src/main.cpp" line="39"/>
|
||||
<source>Spark Store</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@@ -13,7 +20,7 @@
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../main.cpp" line="45"/>
|
||||
<location filename="../src/main.cpp" line="47"/>
|
||||
<source><span style='font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style='font-size:12pt;'>Spark developers</span><br/><br/>Published under GPL V3</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@@ -21,47 +28,47 @@
|
||||
<context>
|
||||
<name>SpkAppInfoLoaderThread</name>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="25"/>
|
||||
<location filename="../src/workerthreads.cpp" line="25"/>
|
||||
<source>Failed to download app info. Please check internet connection.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="53"/>
|
||||
<location filename="../src/workerthreads.cpp" line="53"/>
|
||||
<source>PkgName: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="54"/>
|
||||
<location filename="../src/workerthreads.cpp" line="54"/>
|
||||
<source>Version: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="56"/>
|
||||
<location filename="../src/workerthreads.cpp" line="56"/>
|
||||
<source>Author: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="60"/>
|
||||
<location filename="../src/workerthreads.cpp" line="60"/>
|
||||
<source>Official Site: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="64"/>
|
||||
<location filename="../src/workerthreads.cpp" line="64"/>
|
||||
<source>Contributor: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="65"/>
|
||||
<location filename="../src/workerthreads.cpp" line="65"/>
|
||||
<source>Update Time: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="66"/>
|
||||
<location filename="../src/workerthreads.cpp" line="66"/>
|
||||
<source>Installed Size: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="95"/>
|
||||
<location filename="../src/workerthreads.cpp" line="95"/>
|
||||
<source>Failed to load application icon.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@@ -69,468 +76,463 @@
|
||||
<context>
|
||||
<name>Widget</name>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="14"/>
|
||||
<location filename="../src/widget.ui" line="14"/>
|
||||
<source>Form</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="52"/>
|
||||
<location filename="../src/widget.ui" line="84"/>
|
||||
<source>background-color:#FFFFFF</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="81"/>
|
||||
<location filename="../src/widget.ui" line="184"/>
|
||||
<source>Tools</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="88"/>
|
||||
<location filename="../src/widget.ui" line="265"/>
|
||||
<source>Beautify</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="95"/>
|
||||
<location filename="../src/widget.ui" line="115"/>
|
||||
<source>Music</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="160"/>
|
||||
<location filename="../src/widget.ui" line="198"/>
|
||||
<source>Office</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="207"/>
|
||||
<location filename="../src/widget.ui" line="286"/>
|
||||
<source>Others</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="234"/>
|
||||
<location filename="../src/widget.ui" line="279"/>
|
||||
<source>Games</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="528"/>
|
||||
<location filename="../src/widget.ui" line="560"/>
|
||||
<source>Name</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="568"/>
|
||||
<location filename="../src/widget.ui" line="600"/>
|
||||
<source>ICON</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="515"/>
|
||||
<location filename="../widget.cpp" line="586"/>
|
||||
<location filename="../widget.cpp" line="808"/>
|
||||
<location filename="../src/widget.ui" line="547"/>
|
||||
<location filename="../src/widget.cpp" line="595"/>
|
||||
<location filename="../src/widget.cpp" line="894"/>
|
||||
<source>Install</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="623"/>
|
||||
<location filename="../src/widget.ui" line="655"/>
|
||||
<source>Uninstall</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="639"/>
|
||||
<location filename="../src/widget.ui" line="671"/>
|
||||
<source>Site</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="712"/>
|
||||
<location filename="../widget.ui" line="715"/>
|
||||
<location filename="../src/widget.ui" line="744"/>
|
||||
<location filename="../src/widget.ui" line="747"/>
|
||||
<source><html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="718"/>
|
||||
<location filename="../src/widget.ui" line="750"/>
|
||||
<source><html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="731"/>
|
||||
<location filename="../widget.ui" line="734"/>
|
||||
<location filename="../src/widget.ui" line="763"/>
|
||||
<location filename="../src/widget.ui" line="766"/>
|
||||
<source><html><head/><body><p>Capable to Ubuntu 20.04</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="737"/>
|
||||
<location filename="../src/widget.ui" line="769"/>
|
||||
<source><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="775"/>
|
||||
<location filename="../src/widget.ui" line="807"/>
|
||||
<source><html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="750"/>
|
||||
<location filename="../widget.ui" line="753"/>
|
||||
<location filename="../src/widget.ui" line="782"/>
|
||||
<location filename="../src/widget.ui" line="785"/>
|
||||
<source><html><head/><body><p>Capable to deepin 20</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="67"/>
|
||||
<location filename="../src/widget.ui" line="313"/>
|
||||
<source>Video</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="74"/>
|
||||
<location filename="../src/widget.ui" line="306"/>
|
||||
<source>Download</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="173"/>
|
||||
<location filename="../src/widget.ui" line="238"/>
|
||||
<source>Back to category</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="200"/>
|
||||
<location filename="../src/widget.ui" line="191"/>
|
||||
<source>Reading</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="241"/>
|
||||
<location filename="../src/widget.ui" line="225"/>
|
||||
<source>Chat</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="293"/>
|
||||
<location filename="../src/widget.ui" line="211"/>
|
||||
<source>Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="383"/>
|
||||
<location filename="../src/widget.ui" line="415"/>
|
||||
<source>The list is currently empty. Go and download some softwares!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="415"/>
|
||||
<location filename="../src/widget.ui" line="447"/>
|
||||
<source>Open download directory</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="756"/>
|
||||
<location filename="../src/widget.ui" line="788"/>
|
||||
<source><html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="769"/>
|
||||
<location filename="../widget.ui" line="772"/>
|
||||
<location filename="../src/widget.ui" line="801"/>
|
||||
<location filename="../src/widget.ui" line="804"/>
|
||||
<source><html><head/><body><p>Capable to UOS home 20</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="788"/>
|
||||
<location filename="../widget.ui" line="791"/>
|
||||
<location filename="../src/widget.ui" line="820"/>
|
||||
<location filename="../src/widget.ui" line="823"/>
|
||||
<source><html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="794"/>
|
||||
<location filename="../src/widget.ui" line="826"/>
|
||||
<source><html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="826"/>
|
||||
<location filename="../widget.ui" line="829"/>
|
||||
<location filename="../src/widget.ui" line="858"/>
|
||||
<location filename="../src/widget.ui" line="861"/>
|
||||
<source><html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="845"/>
|
||||
<location filename="../widget.ui" line="848"/>
|
||||
<location filename="../src/widget.ui" line="877"/>
|
||||
<location filename="../src/widget.ui" line="880"/>
|
||||
<source><html><head/><body><p>An Appimage to deb app.</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="851"/>
|
||||
<location filename="../src/widget.ui" line="883"/>
|
||||
<source><html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="678"/>
|
||||
<location filename="../src/widget.ui" line="710"/>
|
||||
<source>Share</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation type="unfinished">Spk share link</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="153"/>
|
||||
<location filename="../src/widget.ui" line="129"/>
|
||||
<source>Development</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="217"/>
|
||||
<location filename="../src/widget.ui" line="296"/>
|
||||
<source>Home</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="227"/>
|
||||
<location filename="../src/widget.ui" line="122"/>
|
||||
<source>Graphics</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="248"/>
|
||||
<location filename="../src/widget.ui" line="272"/>
|
||||
<source>Network</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="807"/>
|
||||
<location filename="../widget.ui" line="810"/>
|
||||
<location filename="../src/widget.ui" line="839"/>
|
||||
<location filename="../src/widget.ui" line="842"/>
|
||||
<source><html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="813"/>
|
||||
<location filename="../src/widget.ui" line="845"/>
|
||||
<source><html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="832"/>
|
||||
<location filename="../src/widget.ui" line="864"/>
|
||||
<source><html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="874"/>
|
||||
<location filename="../src/widget.ui" line="906"/>
|
||||
<source>Contribute translation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="892"/>
|
||||
<location filename="../src/widget.ui" line="924"/>
|
||||
<source>Info</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="899"/>
|
||||
<location filename="../src/widget.ui" line="931"/>
|
||||
<source><html><head/><body><p>An app store developed by community enthusiasts</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="938"/>
|
||||
<location filename="../src/widget.ui" line="970"/>
|
||||
<source>Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1101"/>
|
||||
<location filename="../src/widget.ui" line="1133"/>
|
||||
<source>Line Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1117"/>
|
||||
<location filename="../src/widget.ui" line="1149"/>
|
||||
<source>Choose Line:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1140"/>
|
||||
<location filename="../src/widget.ui" line="1172"/>
|
||||
<source>Refresh</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1182"/>
|
||||
<location filename="../src/widget.ui" line="1214"/>
|
||||
<source><html><head/><body><p>The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. </p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1192"/>
|
||||
<location filename="../src/widget.ui" line="1224"/>
|
||||
<source>Update</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1199"/>
|
||||
<location filename="../src/widget.ui" line="1231"/>
|
||||
<source>Source Server</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1219"/>
|
||||
<location filename="../src/widget.ui" line="1251"/>
|
||||
<source>Server</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1240"/>
|
||||
<location filename="../src/widget.ui" line="1272"/>
|
||||
<source>Temp</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1263"/>
|
||||
<location filename="../src/widget.ui" line="1295"/>
|
||||
<source>Clean</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1273"/>
|
||||
<location filename="../src/widget.ui" line="1305"/>
|
||||
<source>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1286"/>
|
||||
<location filename="../src/widget.ui" line="1318"/>
|
||||
<source>Size:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1300"/>
|
||||
<location filename="../src/widget.ui" line="1332"/>
|
||||
<source>Location:/tmp/spark-store</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1321"/>
|
||||
<location filename="../src/widget.ui" line="1353"/>
|
||||
<source>About us</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1328"/>
|
||||
<location filename="../src/widget.ui" line="1360"/>
|
||||
<source><html><head/><body><p>We are <span style=" font-weight:600;">NOT</span> the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &quot;Spark Store&quot;! &quot;, is to bring the community together to share useful software, or to participate in development together, so that we all use the latest and greatest software. </p><p>We don't make a profit from this, all developers and maintainers don't get paid, and we rely on the community's donations to us for most of our expenses, which we are grateful for and which allow us not to spend too much energy worrying about funding. </p><p>Our service and software are free for everyone to use, communicate, and learn, but you must comply with local laws and regulations in the process of your use, otherwise any problems have nothing to do with us. </p><p>If any part of the store infringes your rights, please tell us &lt;jifengshenmo@outlook.com&gt; we will remove the infringing content as soon as possible. </p><p>If you'd like to get involved with us too, whether you're involved in development, design, pitching or submitting work, we welcome you to join us. </p><p>QQ group:872690351<br/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="114"/>
|
||||
<location filename="../src/widget.ui" line="148"/>
|
||||
<source>icon</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="342"/>
|
||||
<location filename="../src/widget.ui" line="374"/>
|
||||
<source>about:blank</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="540"/>
|
||||
<location filename="../src/widget.ui" line="572"/>
|
||||
<source><html><head/><body><p><br/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1153"/>
|
||||
<location filename="../src/widget.ui" line="1185"/>
|
||||
<source>Take effect when restart</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1293"/>
|
||||
<location filename="../src/widget.ui" line="1325"/>
|
||||
<source>0B</source>
|
||||
<translation type="unfinished">0B</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="157"/>
|
||||
<location filename="../src/widget.cpp" line="164"/>
|
||||
<source>Spark Store</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="158"/>
|
||||
<location filename="../src/widget.cpp" line="165"/>
|
||||
<source>Search or enter spk://</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="164"/>
|
||||
<location filename="../src/widget.cpp" line="171"/>
|
||||
<source>Submit App</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="165"/>
|
||||
<location filename="../src/widget.cpp" line="172"/>
|
||||
<source>Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="264"/>
|
||||
<location filename="../src/widget.cpp" line="274"/>
|
||||
<source>Not Exist</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="113"/>
|
||||
<location filename="../widget.cpp" line="319"/>
|
||||
<location filename="../widget.cpp" line="323"/>
|
||||
<location filename="../widget.cpp" line="332"/>
|
||||
<location filename="../widget.cpp" line="336"/>
|
||||
<location filename="../src/widget.cpp" line="120"/>
|
||||
<location filename="../src/widget.cpp" line="328"/>
|
||||
<location filename="../src/widget.cpp" line="332"/>
|
||||
<location filename="../src/widget.cpp" line="341"/>
|
||||
<location filename="../src/widget.cpp" line="345"/>
|
||||
<source>Spark\ Store</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="530"/>
|
||||
<location filename="../src/widget.cpp" line="539"/>
|
||||
<source>Failed to download app info. Please check internet connection.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="560"/>
|
||||
<location filename="../src/widget.cpp" line="569"/>
|
||||
<source>PkgName: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="561"/>
|
||||
<location filename="../src/widget.cpp" line="570"/>
|
||||
<source>Version: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="563"/>
|
||||
<location filename="../src/widget.cpp" line="572"/>
|
||||
<source>Author: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="567"/>
|
||||
<location filename="../src/widget.cpp" line="576"/>
|
||||
<source>Official Site: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="571"/>
|
||||
<location filename="../src/widget.cpp" line="580"/>
|
||||
<source>Contributor: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="572"/>
|
||||
<location filename="../src/widget.cpp" line="581"/>
|
||||
<source>Update Time: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="573"/>
|
||||
<location filename="../src/widget.cpp" line="582"/>
|
||||
<source>Installed Size: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="582"/>
|
||||
<location filename="../widget.cpp" line="693"/>
|
||||
<location filename="../widget.cpp" line="805"/>
|
||||
<location filename="../src/widget.cpp" line="591"/>
|
||||
<location filename="../src/widget.cpp" line="702"/>
|
||||
<location filename="../src/widget.cpp" line="891"/>
|
||||
<source>Reinstall</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="621"/>
|
||||
<location filename="../src/widget.cpp" line="630"/>
|
||||
<source>Failed to load application icon.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="668"/>
|
||||
<location filename="../src/widget.cpp" line="677"/>
|
||||
<source>Failed to get the name to the file to be downloaded.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="716"/>
|
||||
<source>Spark store could only process spk:// links for now. The search feature is coming soon!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="944"/>
|
||||
<location filename="../src/widget.cpp" line="1030"/>
|
||||
<source>Updating, please wait...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="997"/>
|
||||
<location filename="../src/widget.cpp" line="1083"/>
|
||||
<source>Apt has reported an error. Please use apt update in terminal to locate the problem.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1003"/>
|
||||
<location filename="../src/widget.cpp" line="1089"/>
|
||||
<source>Unknown error!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1185"/>
|
||||
<location filename="../src/widget.cpp" line="1271"/>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1185"/>
|
||||
<location filename="../src/widget.cpp" line="1271"/>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1186"/>
|
||||
<location filename="../src/widget.cpp" line="1272"/>
|
||||
<source>Information for Contributors</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1187"/>
|
||||
<location filename="../src/widget.cpp" line="1273"/>
|
||||
<source>Currently the translation contribution is limited to English,
|
||||
and you will be redirected to our Gitee repository at which you are
|
||||
supposed to be creating pull requests to contribute app info
|
||||
@@ -541,17 +543,27 @@ Click yes to continue.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1023"/>
|
||||
<location filename="../src/widget.cpp" line="1109"/>
|
||||
<source>Uninstall succeeded</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1037"/>
|
||||
<location filename="../src/widget.cpp" line="742"/>
|
||||
<source>Relative apps Not Found!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/widget.cpp" line="750"/>
|
||||
<source>Request Error: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/widget.cpp" line="1123"/>
|
||||
<source>Temporary cache was cleaned</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1104"/>
|
||||
<location filename="../src/widget.cpp" line="1190"/>
|
||||
<source>The URL has been copied to the clipboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@@ -559,107 +571,107 @@ Click yes to continue.</source>
|
||||
<context>
|
||||
<name>downloadlist</name>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="20"/>
|
||||
<location filename="../src/downloadlist.ui" line="20"/>
|
||||
<source>Form</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="50"/>
|
||||
<location filename="../src/downloadlist.ui" line="50"/>
|
||||
<source>icon</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="82"/>
|
||||
<location filename="../src/downloadlist.ui" line="82"/>
|
||||
<source>TextLabel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="106"/>
|
||||
<location filename="../src/downloadlist.ui" line="106"/>
|
||||
<source>Name</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="189"/>
|
||||
<location filename="../src/downloadlist.ui" line="189"/>
|
||||
<source>Waiting to download</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="240"/>
|
||||
<location filename="../src/downloadlist.ui" line="240"/>
|
||||
<source>Install</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="259"/>
|
||||
<location filename="../src/downloadlist.ui" line="259"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="278"/>
|
||||
<location filename="../src/downloadlist.ui" line="278"/>
|
||||
<source>Info</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="24"/>
|
||||
<location filename="../src/downloadlist.cpp" line="24"/>
|
||||
<source>dpkg</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="25"/>
|
||||
<location filename="../src/downloadlist.cpp" line="25"/>
|
||||
<source>gdebi</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="26"/>
|
||||
<location filename="../src/downloadlist.cpp" line="26"/>
|
||||
<source>deepin deb installer</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="55"/>
|
||||
<location filename="../src/downloadlist.cpp" line="55"/>
|
||||
<source>Downloaded, waiting to install</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="80"/>
|
||||
<location filename="../src/downloadlist.cpp" line="80"/>
|
||||
<source>Failed to download %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="82"/>
|
||||
<location filename="../src/downloadlist.cpp" line="82"/>
|
||||
<source>Download Failed,Check Your Connection</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="92"/>
|
||||
<location filename="../src/downloadlist.cpp" line="92"/>
|
||||
<source>Finished downloading %1, awaiting to install</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="125"/>
|
||||
<location filename="../src/downloadlist.cpp" line="125"/>
|
||||
<source>Installing</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="172"/>
|
||||
<location filename="../src/downloadlist.cpp" line="172"/>
|
||||
<source>Finish</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="176"/>
|
||||
<location filename="../src/downloadlist.cpp" line="176"/>
|
||||
<source>Retry</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="177"/>
|
||||
<location filename="../src/downloadlist.cpp" line="177"/>
|
||||
<source>Error happened in dpkg progress , you can try it again</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="181"/>
|
||||
<location filename="../src/downloadlist.cpp" line="181"/>
|
||||
<source>dpkg progress had been aborted,you can retry installation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="203"/>
|
||||
<location filename="../src/downloadlist.cpp" line="203"/>
|
||||
<source>Download canceled</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
||||
@@ -4,19 +4,77 @@
|
||||
<context>
|
||||
<name>QLabel</name>
|
||||
<message>
|
||||
<location filename="../main.cpp" line="19"/>
|
||||
<location filename="../main.cpp" line="21"/>
|
||||
<source>Spark应用商店</source>
|
||||
<translation>Spark Store</translation>
|
||||
<translation type="vanished">Spark Store</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../main.cpp" line="20"/>
|
||||
<source>社区驱动的一款为第三方应用商店,为改变而生
|
||||
本程序按GPL第三版开源</source>
|
||||
<translation>Un app store tier alimenté par la communauté Deepin
|
||||
<translation type="vanished">Un app store tier alimenté par la communauté Deepin
|
||||
Spark Store est publié sous licence GPL V3
|
||||
Nous sommes nés pour le changement.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../main.cpp" line="37"/>
|
||||
<source>Spark Store</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QObject</name>
|
||||
<message>
|
||||
<location filename="../main.cpp" line="45"/>
|
||||
<source><span style='font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style='font-size:12pt;'>Spark developers</span><br/><br/>Published under GPL V3</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SpkAppInfoLoaderThread</name>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="25"/>
|
||||
<source>Failed to download app info. Please check internet connection.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="53"/>
|
||||
<source>PkgName: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="54"/>
|
||||
<source>Version: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="56"/>
|
||||
<source>Author: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="60"/>
|
||||
<source>Official Site: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="64"/>
|
||||
<source>Contributor: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="65"/>
|
||||
<source>Update Time: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="66"/>
|
||||
<source>Installed Size: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="95"/>
|
||||
<source>Failed to load application icon.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Widget</name>
|
||||
@@ -32,30 +90,330 @@ Nous sommes nés pour le changement.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="67"/>
|
||||
<source>视频播放</source>
|
||||
<translatorcomment>Lecteurs vidéo et créateurs vidéo</translatorcomment>
|
||||
<translation>Vidéo</translation>
|
||||
<source>Video</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="74"/>
|
||||
<source>下载列表</source>
|
||||
<translation>Liste de téléchargement</translation>
|
||||
<source>Download</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="81"/>
|
||||
<source>系统工具</source>
|
||||
<translation>Outils</translation>
|
||||
<source>Tools</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="88"/>
|
||||
<source>主题美化</source>
|
||||
<translatorcomment>Thème des icônes et autres </translatorcomment>
|
||||
<translation>Thèmes</translation>
|
||||
<source>Beautify</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="95"/>
|
||||
<source>Music</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="153"/>
|
||||
<source>Development</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="160"/>
|
||||
<source>Office</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="173"/>
|
||||
<source>Back to category</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="200"/>
|
||||
<source>Reading</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="207"/>
|
||||
<source>Others</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="217"/>
|
||||
<source>Home</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="227"/>
|
||||
<source>Graphics</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="234"/>
|
||||
<source>Games</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="241"/>
|
||||
<source>Chat</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="248"/>
|
||||
<source>Network</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="293"/>
|
||||
<source>Reload</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="383"/>
|
||||
<source>The list is currently empty. Go and download some softwares!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="415"/>
|
||||
<source>Open download directory</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="515"/>
|
||||
<location filename="../widget.cpp" line="586"/>
|
||||
<location filename="../widget.cpp" line="808"/>
|
||||
<source>Install</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="528"/>
|
||||
<source>Name</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="568"/>
|
||||
<source>ICON</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="623"/>
|
||||
<source>Uninstall</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="639"/>
|
||||
<source>Site</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="678"/>
|
||||
<source>Share</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="712"/>
|
||||
<location filename="../widget.ui" line="715"/>
|
||||
<source><html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="718"/>
|
||||
<source><html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="731"/>
|
||||
<location filename="../widget.ui" line="734"/>
|
||||
<source><html><head/><body><p>Capable to Ubuntu 20.04</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="737"/>
|
||||
<source><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="750"/>
|
||||
<location filename="../widget.ui" line="753"/>
|
||||
<source><html><head/><body><p>Capable to deepin 20</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="756"/>
|
||||
<source><html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="769"/>
|
||||
<location filename="../widget.ui" line="772"/>
|
||||
<source><html><head/><body><p>Capable to UOS home 20</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="775"/>
|
||||
<source><html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="788"/>
|
||||
<location filename="../widget.ui" line="791"/>
|
||||
<source><html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="794"/>
|
||||
<source><html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="807"/>
|
||||
<location filename="../widget.ui" line="810"/>
|
||||
<source><html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="813"/>
|
||||
<source><html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="826"/>
|
||||
<location filename="../widget.ui" line="829"/>
|
||||
<source><html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="832"/>
|
||||
<source><html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="845"/>
|
||||
<location filename="../widget.ui" line="848"/>
|
||||
<source><html><head/><body><p>An Appimage to deb app.</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="851"/>
|
||||
<source><html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="874"/>
|
||||
<source>Contribute translation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="892"/>
|
||||
<source>Info</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="899"/>
|
||||
<source><html><head/><body><p>An app store developed by community enthusiasts</p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="938"/>
|
||||
<source>Screenshots</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1101"/>
|
||||
<source>Line Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1117"/>
|
||||
<source>Choose Line:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1140"/>
|
||||
<source>Refresh</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1153"/>
|
||||
<source>Take effect when restart</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1182"/>
|
||||
<source><html><head/><body><p>The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. </p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1192"/>
|
||||
<source>Update</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1199"/>
|
||||
<source>Source Server</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1219"/>
|
||||
<source>Server</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1240"/>
|
||||
<source>Temp</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1263"/>
|
||||
<source>Clean</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1273"/>
|
||||
<source>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1286"/>
|
||||
<source>Size:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1300"/>
|
||||
<source>Location:/tmp/spark-store</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1321"/>
|
||||
<source>About us</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1328"/>
|
||||
<source><html><head/><body><p>We are <span style=" font-weight:600;">NOT</span> the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &quot;Spark Store&quot;! &quot;, is to bring the community together to share useful software, or to participate in development together, so that we all use the latest and greatest software. </p><p>We don't make a profit from this, all developers and maintainers don't get paid, and we rely on the community's donations to us for most of our expenses, which we are grateful for and which allow us not to spend too much energy worrying about funding. </p><p>Our service and software are free for everyone to use, communicate, and learn, but you must comply with local laws and regulations in the process of your use, otherwise any problems have nothing to do with us. </p><p>If any part of the store infringes your rights, please tell us &lt;jifengshenmo@outlook.com&gt; we will remove the infringing content as soon as possible. </p><p>If you'd like to get involved with us too, whether you're involved in development, design, pitching or submitting work, we welcome you to join us. </p><p>QQ group:872690351<br/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>视频播放</source>
|
||||
<translatorcomment>Lecteurs vidéo et créateurs vidéo</translatorcomment>
|
||||
<translation type="vanished">Vidéo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>下载列表</source>
|
||||
<translation type="vanished">Liste de téléchargement</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>系统工具</source>
|
||||
<translation type="vanished">Outils</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>主题美化</source>
|
||||
<translatorcomment>Thème des icônes et autres </translatorcomment>
|
||||
<translation type="vanished">Thèmes</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>音乐欣赏</source>
|
||||
<translation>Musique</translation>
|
||||
<translation type="vanished">Musique</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="114"/>
|
||||
@@ -63,206 +421,311 @@ Nous sommes nés pour le changement.</translation>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="153"/>
|
||||
<source>编程开发</source>
|
||||
<translation>Développement</translation>
|
||||
<translation type="vanished">Développement</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="177"/>
|
||||
<source>办公学习</source>
|
||||
<translation>Bureau</translation>
|
||||
<translation type="vanished">Bureau</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="197"/>
|
||||
<source>阅读翻译</source>
|
||||
<translation>Traduire</translation>
|
||||
<translation type="vanished">Traduire</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="204"/>
|
||||
<source>其他应用</source>
|
||||
<translation>Autres</translation>
|
||||
<translation type="vanished">Autres</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="214"/>
|
||||
<source>商店首页</source>
|
||||
<translation>Accueil</translation>
|
||||
<translation type="vanished">Accueil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="221"/>
|
||||
<source>图形图像</source>
|
||||
<translation>Images</translation>
|
||||
<translation type="vanished">Images</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="228"/>
|
||||
<source>游戏娱乐</source>
|
||||
<translation>Jeux</translation>
|
||||
<translation type="vanished">Jeux</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="235"/>
|
||||
<source>社交沟通</source>
|
||||
<translation>Chat</translation>
|
||||
<translation type="vanished">Chat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="242"/>
|
||||
<source>网络应用</source>
|
||||
<translation>Réseau</translation>
|
||||
<translation type="vanished">Réseau</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="313"/>
|
||||
<location filename="../widget.ui" line="342"/>
|
||||
<source>about:blank</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="354"/>
|
||||
<source>当前下载列表为空</source>
|
||||
<translation>La liste de téléchargement est vide</translation>
|
||||
<translation type="vanished">La liste de téléchargement est vide</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="386"/>
|
||||
<source>打开文件夹</source>
|
||||
<translation>Ouvrir dans le gestionnaire de fichiers</translation>
|
||||
<translation type="vanished">Ouvrir dans le gestionnaire de fichiers</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="486"/>
|
||||
<source>安装</source>
|
||||
<translation>Installer</translation>
|
||||
<translation type="vanished">Installer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="522"/>
|
||||
<source>卸载</source>
|
||||
<translation>Supprimer</translation>
|
||||
<translation type="vanished">Supprimer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="551"/>
|
||||
<source>官网</source>
|
||||
<translation>Site</translation>
|
||||
<translation type="vanished">Site</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="580"/>
|
||||
<source>软件名</source>
|
||||
<translation>Nom</translation>
|
||||
<translation type="vanished">Nom</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="592"/>
|
||||
<location filename="../widget.ui" line="540"/>
|
||||
<source><html><head/><body><p><br/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="636"/>
|
||||
<source>图标</source>
|
||||
<translation>Icon</translation>
|
||||
<translation type="vanished">Icon</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="649"/>
|
||||
<source>分享</source>
|
||||
<translation>Partager</translation>
|
||||
<translation type="vanished">Partager</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="683"/>
|
||||
<location filename="../widget.ui" line="696"/>
|
||||
<location filename="../widget.ui" line="709"/>
|
||||
<location filename="../widget.ui" line="722"/>
|
||||
<location filename="../widget.ui" line="735"/>
|
||||
<location filename="../widget.ui" line="748"/>
|
||||
<location filename="../widget.ui" line="761"/>
|
||||
<location filename="../widget.ui" line="774"/>
|
||||
<source>TextLabel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="808"/>
|
||||
<source>详细介绍</source>
|
||||
<translation>Détails</translation>
|
||||
<translation type="vanished">Détails</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="815"/>
|
||||
<source><html><head/><body><p>由社区爱好者开发的软件商店</p></body></html></source>
|
||||
<translation><html><head/><body><p>magasin de logiciels développé par des passionnés de la communauté</p></body></html></translation>
|
||||
<translation type="vanished"><html><head/><body><p>magasin de logiciels développé par des passionnés de la communauté</p></body></html></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="854"/>
|
||||
<source>软件截图</source>
|
||||
<translation>Captures d'écran</translation>
|
||||
<translation type="vanished">Captures d'écran</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1017"/>
|
||||
<source>线路设置</source>
|
||||
<translation>Line Settings</translation>
|
||||
<translation type="vanished">Line Settings</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1033"/>
|
||||
<source>线路选择:</source>
|
||||
<translation>Choisissez: </translation>
|
||||
<translation type="vanished">Choisissez: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1056"/>
|
||||
<source>刷新</source>
|
||||
<translation>Mise à jour</translation>
|
||||
<translation type="vanished">Mise à jour</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1069"/>
|
||||
<source> 重启商店后生效</source>
|
||||
<translation>Redémarrez pour prendre effet</translation>
|
||||
<translation type="vanished">Redémarrez pour prendre effet</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1098"/>
|
||||
<source><html><head/><body><p>源服务器的作用是保证软件更新,并且支持使用apt工具获取软件。通常我们更建议你使用第一个线路作为更新源,一般是最稳定的。</p></body></html></source>
|
||||
<translation><html><head/><body><p>Le rôle du serveur source est de s'assurer que le logiciel est mis à jour et prend en charge l'utilisation de l'outil apt pour obtenir le logiciel. Nous préférons généralement que vous utilisiez la première ligne comme source de mise à jour, qui est généralement la plus stable. </p></body></html></translation>
|
||||
<translation type="vanished"><html><head/><body><p>Le rôle du serveur source est de s'assurer que le logiciel est mis à jour et prend en charge l'utilisation de l'outil apt pour obtenir le logiciel. Nous préférons généralement que vous utilisiez la première ligne comme source de mise à jour, qui est généralement la plus stable. </p></body></html></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1108"/>
|
||||
<source>更新源</source>
|
||||
<translation>Mettre à jour la source APT</translation>
|
||||
<translation type="vanished">Mettre à jour la source APT</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1115"/>
|
||||
<source>更新源服务器:</source>
|
||||
<translation>Source APT: </translation>
|
||||
<translation type="vanished">Source APT: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1135"/>
|
||||
<source>服务器</source>
|
||||
<translation>serveur</translation>
|
||||
<translation type="vanished">serveur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1156"/>
|
||||
<source>缓存目录</source>
|
||||
<translation>Temp</translation>
|
||||
<translation type="vanished">Temp</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1179"/>
|
||||
<source>清空</source>
|
||||
<translation>Nettoyer</translation>
|
||||
<translation type="vanished">Nettoyer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1189"/>
|
||||
<source>因为这个目录位于/tmp下,所以即使你不手动清空的话,其也将在系统重启时自动清空。</source>
|
||||
<translation>Étant donné que ce répertoire se trouve sous /tmp, même si vous ne l'effacez pas manuellement, il sera effacé automatiquement au redémarrage du système.</translation>
|
||||
<translation type="vanished">Étant donné que ce répertoire se trouve sous /tmp, même si vous ne l'effacez pas manuellement, il sera effacé automatiquement au redémarrage du système.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1202"/>
|
||||
<source>目录大小:</source>
|
||||
<translation>Taille: </translation>
|
||||
<translation type="vanished">Taille: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1209"/>
|
||||
<location filename="../widget.ui" line="1293"/>
|
||||
<source>0B</source>
|
||||
<translation type="unfinished">0B</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1216"/>
|
||||
<source>目录位置:/tmp/spark-store</source>
|
||||
<translation>Emplacement:/tmp/spark-store</translation>
|
||||
<translation type="vanished">Emplacement:/tmp/spark-store</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1237"/>
|
||||
<source>关于我们</source>
|
||||
<translation>À propos de nous</translation>
|
||||
<translation type="vanished">À propos de nous</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1244"/>
|
||||
<source><html><head/><body><p>我们并不是官方团队,和你一样,我们也只是众多Linux/deepin系统爱好者和用户之中的一员,我们开发并且运营这个“Spark应用商店”,是为了让社区的朋友们一起分享好用的软件,或者一起参与开发,让大家都用到最新的,最优秀的软件。</p><p>我们并没有因此盈利,所有开发和维护人员都不会获得报酬,我们的主要支出大部分依赖于社区对我们的捐助,很感谢大家,这部分捐助让我们并不需要耗费太多精力去担心资金问题。</p><p>我们的服务和开发的软件都是免费供给大家使用,交流,学习的,但是在您的使用过程中一定要遵守当地的法律法规,否则出现任何问题和我们无关。</p><p>如果商店中任何一部分有侵犯您权益的行为,请告知我们&lt;jifengshenmo@outlook.com&gt;,我们会第一时间删除侵权内容。</p><p>如果你也想参与我们,不管是参与开发,设计,投递还是投稿作品,我们都欢迎你的加入。</p><p>QQ群:872690351<br/></p></body></html></source>
|
||||
<translation><html><head/><body><p>Nous ne sommes pas l'équipe officielle, tout comme vous, nous ne sommes qu'un des nombreux passionnés et utilisateurs de systèmes Linux / deepin, nous développons et gérons le "Spark Store"! ", est de rassembler la communauté pour partager des logiciels utiles, ou pour participer au développement ensemble, afin que nous utilisions tous les derniers et meilleurs logiciels. </p><p> Nous n'en tirons aucun profit, tous les développeurs et mainteneurs ne sont pas payés, et nous comptons sur les dons de la communauté pour la plupart de nos dépenses, dont nous sommes reconnaissants et qui nous permettent de ne pas dépenser trop d'énergie se soucier du financement. </p><p>Notre service et nos logiciels sont gratuits pour tout le monde à utiliser, à communiquer et à apprendre, mais vous devez vous conformer aux lois et réglementations locales dans le processus de votre utilisation, sinon tout problème n'a rien à voir avec nous. </p><p>Si une partie du magasin enfreint vos droits, veuillez nous en informer &lt;jifengshenmo@outlook.com&gt; nous retirerons le contenu en infraction dès que possible. </p><p>Si vous souhaitez également vous impliquer avec nous, que vous soyez impliqué dans le développement, la conception, le pitching ou la soumission de travaux, nous vous invitons à nous rejoindre. </p><p>QQ group:872690351<br/></p></body></html></translation>
|
||||
<translation type="vanished"><html><head/><body><p>Nous ne sommes pas l'équipe officielle, tout comme vous, nous ne sommes qu'un des nombreux passionnés et utilisateurs de systèmes Linux / deepin, nous développons et gérons le "Spark Store"! ", est de rassembler la communauté pour partager des logiciels utiles, ou pour participer au développement ensemble, afin que nous utilisions tous les derniers et meilleurs logiciels. </p><p> Nous n'en tirons aucun profit, tous les développeurs et mainteneurs ne sont pas payés, et nous comptons sur les dons de la communauté pour la plupart de nos dépenses, dont nous sommes reconnaissants et qui nous permettent de ne pas dépenser trop d'énergie se soucier du financement. </p><p>Notre service et nos logiciels sont gratuits pour tout le monde à utiliser, à communiquer et à apprendre, mais vous devez vous conformer aux lois et réglementations locales dans le processus de votre utilisation, sinon tout problème n'a rien à voir avec nous. </p><p>Si une partie du magasin enfreint vos droits, veuillez nous en informer &lt;jifengshenmo@outlook.com&gt; nous retirerons le contenu en infraction dès que possible. </p><p>Si vous souhaitez également vous impliquer avec nous, que vous soyez impliqué dans le développement, la conception, le pitching ou la soumission de travaux, nous vous invitons à nous rejoindre. </p><p>QQ group:872690351<br/></p></body></html></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="113"/>
|
||||
<location filename="../widget.cpp" line="319"/>
|
||||
<location filename="../widget.cpp" line="323"/>
|
||||
<location filename="../widget.cpp" line="332"/>
|
||||
<location filename="../widget.cpp" line="336"/>
|
||||
<source>Spark\ Store</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="157"/>
|
||||
<source>Spark Store</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="158"/>
|
||||
<source>Search or enter spk://</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="164"/>
|
||||
<source>Submit App</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="165"/>
|
||||
<source>Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="264"/>
|
||||
<source>Not Exist</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="530"/>
|
||||
<source>Failed to download app info. Please check internet connection.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="560"/>
|
||||
<source>PkgName: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="561"/>
|
||||
<source>Version: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="563"/>
|
||||
<source>Author: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="567"/>
|
||||
<source>Official Site: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="571"/>
|
||||
<source>Contributor: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="572"/>
|
||||
<source>Update Time: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="573"/>
|
||||
<source>Installed Size: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="582"/>
|
||||
<location filename="../widget.cpp" line="693"/>
|
||||
<location filename="../widget.cpp" line="805"/>
|
||||
<source>Reinstall</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="621"/>
|
||||
<source>Failed to load application icon.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="668"/>
|
||||
<source>Failed to get the name to the file to be downloaded.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="716"/>
|
||||
<source>Spark store could only process spk:// links for now. The search feature is coming soon!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="944"/>
|
||||
<source>Updating, please wait...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="997"/>
|
||||
<source>Apt has reported an error. Please use apt update in terminal to locate the problem.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1003"/>
|
||||
<source>Unknown error!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1023"/>
|
||||
<source>Uninstall succeeded</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1037"/>
|
||||
<source>Temporary cache was cleaned</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1104"/>
|
||||
<source>The URL has been copied to the clipboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1185"/>
|
||||
<source>Yes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1185"/>
|
||||
<source>No</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1186"/>
|
||||
<source>Information for Contributors</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1187"/>
|
||||
<source>Currently the translation contribution is limited to English,
|
||||
and you will be redirected to our Gitee repository at which you are
|
||||
supposed to be creating pull requests to contribute app info
|
||||
translations.
|
||||
Tips:You can simply click the file to edit to create a flat pull request without create a full pull request
|
||||
Tips:You can use github account to login to Gitee
|
||||
Click yes to continue.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@@ -284,29 +747,114 @@ Nous sommes nés pour le changement.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="106"/>
|
||||
<source>名称</source>
|
||||
<translation>Nom</translation>
|
||||
<source>Name</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="189"/>
|
||||
<source>等待开始下载</source>
|
||||
<translatorcomment>Attendez pour téléchargerd</translatorcomment>
|
||||
<translation>Attendez pour télécharger</translation>
|
||||
<source>Waiting to download</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="240"/>
|
||||
<source>安装</source>
|
||||
<translation>Installer</translation>
|
||||
<source>Install</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="259"/>
|
||||
<source>取消</source>
|
||||
<translation>Annuler</translation>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="278"/>
|
||||
<source>Info</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>名称</source>
|
||||
<translation type="vanished">Nom</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>等待开始下载</source>
|
||||
<translatorcomment>Attendez pour téléchargerd</translatorcomment>
|
||||
<translation type="vanished">Attendez pour télécharger</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>安装</source>
|
||||
<translation type="vanished">Installer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>取消</source>
|
||||
<translation type="vanished">Annuler</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>详情</source>
|
||||
<translation>Détail</translation>
|
||||
<translation type="vanished">Détail</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="24"/>
|
||||
<source>dpkg</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="25"/>
|
||||
<source>gdebi</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="26"/>
|
||||
<source>deepin deb installer</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="55"/>
|
||||
<source>Downloaded, waiting to install</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="80"/>
|
||||
<source>Failed to download %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="82"/>
|
||||
<source>Download Failed,Check Your Connection</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="92"/>
|
||||
<source>Finished downloading %1, awaiting to install</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="125"/>
|
||||
<source>Installing</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="172"/>
|
||||
<source>Finish</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="176"/>
|
||||
<source>Retry</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="177"/>
|
||||
<source>Error happened in dpkg progress , you can try it again</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="181"/>
|
||||
<source>dpkg progress had been aborted,you can retry installation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="203"/>
|
||||
<source>Download canceled</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
||||
@@ -1,11 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="zh_CN">
|
||||
<context>
|
||||
<name>AppItem</name>
|
||||
<message>
|
||||
<location filename="../src/appitem.ui" line="14"/>
|
||||
<source>Form</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>QLabel</name>
|
||||
<message>
|
||||
<location filename="../main.cpp" line="37"/>
|
||||
<location filename="../main.cpp" line="41"/>
|
||||
<location filename="../src/main.cpp" line="39"/>
|
||||
<source>Spark Store</source>
|
||||
<translation>Spark 应用商店</translation>
|
||||
</message>
|
||||
@@ -33,7 +40,7 @@
|
||||
<translation type="vanished"><span style=' font-size:10pt;font-weight:60;'>一款由 深度社区 出品的应用商店</span><br/>""<a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/>""<span style=' font-size:12pt;'>星火开发者联盟</span><br/>本程序遵循 GPL V3 协议发布</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../main.cpp" line="45"/>
|
||||
<location filename="../src/main.cpp" line="47"/>
|
||||
<source><span style='font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style='font-size:12pt;'>Spark developers</span><br/><br/>Published under GPL V3</source>
|
||||
<translation><span style='font-size:10pt;font-weight:60;'>由 Deepin 社区出品的应用商店</span><br/><a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/><span style='font-size:12pt;'>星火商店开发组</span><br/><br/>遵循 GPL V3 协议发布</translation>
|
||||
</message>
|
||||
@@ -41,47 +48,47 @@
|
||||
<context>
|
||||
<name>SpkAppInfoLoaderThread</name>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="25"/>
|
||||
<location filename="../src/workerthreads.cpp" line="25"/>
|
||||
<source>Failed to download app info. Please check internet connection.</source>
|
||||
<translation>下载应用程序详细信息失败,请检查网络连接。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="53"/>
|
||||
<location filename="../src/workerthreads.cpp" line="53"/>
|
||||
<source>PkgName: </source>
|
||||
<translation>包名: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="54"/>
|
||||
<location filename="../src/workerthreads.cpp" line="54"/>
|
||||
<source>Version: </source>
|
||||
<translation>版本: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="56"/>
|
||||
<location filename="../src/workerthreads.cpp" line="56"/>
|
||||
<source>Author: </source>
|
||||
<translation>作者: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="60"/>
|
||||
<location filename="../src/workerthreads.cpp" line="60"/>
|
||||
<source>Official Site: </source>
|
||||
<translation>官网: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="64"/>
|
||||
<location filename="../src/workerthreads.cpp" line="64"/>
|
||||
<source>Contributor: </source>
|
||||
<translation>投稿者: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="65"/>
|
||||
<location filename="../src/workerthreads.cpp" line="65"/>
|
||||
<source>Update Time: </source>
|
||||
<translation>更新时间: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="66"/>
|
||||
<location filename="../src/workerthreads.cpp" line="66"/>
|
||||
<source>Installed Size: </source>
|
||||
<translation>大小: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../workerthreads.cpp" line="95"/>
|
||||
<location filename="../src/workerthreads.cpp" line="95"/>
|
||||
<source>Failed to load application icon.</source>
|
||||
<translation>加载应用程序图标失败。</translation>
|
||||
</message>
|
||||
@@ -89,14 +96,14 @@
|
||||
<context>
|
||||
<name>Widget</name>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="14"/>
|
||||
<location filename="../src/widget.ui" line="14"/>
|
||||
<source>Form</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="52"/>
|
||||
<location filename="../src/widget.ui" line="84"/>
|
||||
<source>background-color:#FFFFFF</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Videos</source>
|
||||
@@ -107,17 +114,17 @@
|
||||
<translation type="vanished">下载列表</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="81"/>
|
||||
<location filename="../src/widget.ui" line="184"/>
|
||||
<source>Tools</source>
|
||||
<translation>系统工具</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="88"/>
|
||||
<location filename="../src/widget.ui" line="265"/>
|
||||
<source>Beautify</source>
|
||||
<translation>主题美化</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="95"/>
|
||||
<location filename="../src/widget.ui" line="115"/>
|
||||
<source>Music</source>
|
||||
<translation>音乐欣赏</translation>
|
||||
</message>
|
||||
@@ -126,7 +133,7 @@
|
||||
<translation type="vanished">编程开发</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="160"/>
|
||||
<location filename="../src/widget.ui" line="198"/>
|
||||
<source>Office</source>
|
||||
<translation>办公学习</translation>
|
||||
</message>
|
||||
@@ -135,7 +142,7 @@
|
||||
<translation type="vanished">阅读翻译</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="207"/>
|
||||
<location filename="../src/widget.ui" line="286"/>
|
||||
<source>Others</source>
|
||||
<translation>其他应用</translation>
|
||||
</message>
|
||||
@@ -148,7 +155,7 @@
|
||||
<translation type="vanished">图形图像</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="234"/>
|
||||
<location filename="../src/widget.ui" line="279"/>
|
||||
<source>Games</source>
|
||||
<translation>游戏娱乐</translation>
|
||||
</message>
|
||||
@@ -157,136 +164,136 @@
|
||||
<translation type="vanished">社交沟通</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="248"/>
|
||||
<location filename="../src/widget.ui" line="272"/>
|
||||
<source>Network</source>
|
||||
<translation>网络应用</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="383"/>
|
||||
<location filename="../src/widget.ui" line="415"/>
|
||||
<source>The list is currently empty. Go and download some softwares!</source>
|
||||
<translation>当前下载列表为空。去下载些软件吧!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="415"/>
|
||||
<location filename="../src/widget.ui" line="447"/>
|
||||
<source>Open download directory</source>
|
||||
<translation>打开下载文件夹</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="528"/>
|
||||
<location filename="../src/widget.ui" line="560"/>
|
||||
<source>Name</source>
|
||||
<translation>软件名</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="568"/>
|
||||
<location filename="../src/widget.ui" line="600"/>
|
||||
<source>ICON</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="515"/>
|
||||
<location filename="../widget.cpp" line="586"/>
|
||||
<location filename="../widget.cpp" line="808"/>
|
||||
<location filename="../src/widget.ui" line="547"/>
|
||||
<location filename="../src/widget.cpp" line="595"/>
|
||||
<location filename="../src/widget.cpp" line="894"/>
|
||||
<source>Install</source>
|
||||
<translation>安装</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="67"/>
|
||||
<location filename="../src/widget.ui" line="313"/>
|
||||
<source>Video</source>
|
||||
<translation>视频播放</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="74"/>
|
||||
<location filename="../src/widget.ui" line="306"/>
|
||||
<source>Download</source>
|
||||
<translation>下载列表</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="200"/>
|
||||
<location filename="../src/widget.ui" line="191"/>
|
||||
<source>Reading</source>
|
||||
<translation>阅读翻译</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="241"/>
|
||||
<location filename="../src/widget.ui" line="225"/>
|
||||
<source>Chat</source>
|
||||
<translation>社交沟通</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="623"/>
|
||||
<location filename="../src/widget.ui" line="655"/>
|
||||
<source>Uninstall</source>
|
||||
<translation>卸载</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="639"/>
|
||||
<location filename="../src/widget.ui" line="671"/>
|
||||
<source>Site</source>
|
||||
<translation>官网</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="712"/>
|
||||
<location filename="../widget.ui" line="715"/>
|
||||
<location filename="../src/widget.ui" line="744"/>
|
||||
<location filename="../src/widget.ui" line="747"/>
|
||||
<source><html><head/><body><p>This app is developed by community user,we give this tag to honor those who contribute to the Linux Ecology</p></body></html></source>
|
||||
<translation><html><head/><body><p>这款应用是社区开发者开发的,我们为社区开发者颁发这款勋章以表彰他们对Linux生态的贡献</p></body></html></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="718"/>
|
||||
<location filename="../src/widget.ui" line="750"/>
|
||||
<source><html><head/><body><p><img src=":/tags/community-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="731"/>
|
||||
<location filename="../widget.ui" line="734"/>
|
||||
<location filename="../src/widget.ui" line="763"/>
|
||||
<location filename="../src/widget.ui" line="766"/>
|
||||
<source><html><head/><body><p>Capable to Ubuntu 20.04</p></body></html></source>
|
||||
<translation><html><head/><body><p>支持Ubuntu 20.04</p></body></html></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="750"/>
|
||||
<location filename="../widget.ui" line="753"/>
|
||||
<location filename="../src/widget.ui" line="782"/>
|
||||
<location filename="../src/widget.ui" line="785"/>
|
||||
<source><html><head/><body><p>Capable to deepin 20</p></body></html></source>
|
||||
<translation><html><head/><body><p>支持deepin 20</p></body></html></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="756"/>
|
||||
<location filename="../src/widget.ui" line="788"/>
|
||||
<source><html><head/><body><p><img src=":/tags/deepin-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="769"/>
|
||||
<location filename="../widget.ui" line="772"/>
|
||||
<location filename="../src/widget.ui" line="801"/>
|
||||
<location filename="../src/widget.ui" line="804"/>
|
||||
<source><html><head/><body><p>Capable to UOS home 20</p></body></html></source>
|
||||
<translation><html><head/><body><p>支持UOS家庭版 20</p></body></html></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="788"/>
|
||||
<location filename="../widget.ui" line="791"/>
|
||||
<location filename="../src/widget.ui" line="820"/>
|
||||
<location filename="../src/widget.ui" line="823"/>
|
||||
<source><html><head/><body><p>This is a DTK5 app,which means it would have better effect on Deepin Desktop Environment</p></body></html></source>
|
||||
<translation><html><head/><body><p>这是一款DTK5应用,请使用深度桌面环境来获得最完美的体验</p></body></html></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="794"/>
|
||||
<location filename="../src/widget.ui" line="826"/>
|
||||
<source><html><head/><body><p><img src=":/tags/dtk-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="826"/>
|
||||
<location filename="../widget.ui" line="829"/>
|
||||
<location filename="../src/widget.ui" line="858"/>
|
||||
<location filename="../src/widget.ui" line="861"/>
|
||||
<source><html><head/><body><p>A deepin-wine5 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine5 by your self.</p></body></html></source>
|
||||
<translation><html><head/><body><p>这是一款deepin-wine5应用,如果你并没有在使用深度系列发行版(比如您在使用ubuntu),你需要自行配置deepin-wine5环境</p></body></html></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="845"/>
|
||||
<location filename="../widget.ui" line="848"/>
|
||||
<location filename="../src/widget.ui" line="877"/>
|
||||
<location filename="../src/widget.ui" line="880"/>
|
||||
<source><html><head/><body><p>An Appimage to deb app.</p></body></html></source>
|
||||
<translation><html><head/><body><p>这是一款Appimage转制应用.</p></body></html></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="851"/>
|
||||
<location filename="../src/widget.ui" line="883"/>
|
||||
<source><html><head/><body><p><img src=":/tags/a2d-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="678"/>
|
||||
<location filename="../src/widget.ui" line="710"/>
|
||||
<source>Share</source>
|
||||
<translation>分享</translation>
|
||||
<translation>Spk分享链接</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="153"/>
|
||||
<location filename="../src/widget.ui" line="129"/>
|
||||
<source>Development</source>
|
||||
<translation>编程开发</translation>
|
||||
</message>
|
||||
@@ -295,7 +302,7 @@
|
||||
<translation type="vanished">商店首页</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="227"/>
|
||||
<location filename="../src/widget.ui" line="122"/>
|
||||
<source>Graphics</source>
|
||||
<translation>图形图像</translation>
|
||||
</message>
|
||||
@@ -304,53 +311,53 @@
|
||||
<translation type="vanished">社交沟通</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="807"/>
|
||||
<location filename="../widget.ui" line="810"/>
|
||||
<location filename="../src/widget.ui" line="839"/>
|
||||
<location filename="../src/widget.ui" line="842"/>
|
||||
<source><html><head/><body><p>A deepin-wine2 app.If you are using ubuntu or other non-deepin distro,you should deploy deepin-wine2 by your self.</p></body></html></source>
|
||||
<translation><html><head/><body><p>这是一款 deepin-wine2 应用,如果你并没有在使用深度系列发行版(比如您在使用ubuntu),你需要自行配置 deepin-wine2 环境</p></body></html></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="813"/>
|
||||
<location filename="../src/widget.ui" line="845"/>
|
||||
<source><html><head/><body><p><img src=":/tags/dwine2-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="832"/>
|
||||
<location filename="../src/widget.ui" line="864"/>
|
||||
<source><html><head/><body><p><img src=":/tags/dwine5-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="874"/>
|
||||
<location filename="../src/widget.ui" line="906"/>
|
||||
<source>Contribute translation</source>
|
||||
<translation>贡献翻译</translation>
|
||||
<translation>贡献翻译/应用反馈</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="892"/>
|
||||
<location filename="../src/widget.ui" line="924"/>
|
||||
<source>Info</source>
|
||||
<translation>详细</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="899"/>
|
||||
<location filename="../src/widget.ui" line="931"/>
|
||||
<source><html><head/><body><p>An app store developed by community enthusiasts</p></body></html></source>
|
||||
<translation><html><head/><body><p>由社区爱好者开发的一款应用商店</p></body></html></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="938"/>
|
||||
<location filename="../src/widget.ui" line="970"/>
|
||||
<source>Screenshots</source>
|
||||
<translation>屏幕截图</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1101"/>
|
||||
<location filename="../src/widget.ui" line="1133"/>
|
||||
<source>Line Settings</source>
|
||||
<translation>线路设置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1117"/>
|
||||
<location filename="../src/widget.ui" line="1149"/>
|
||||
<source>Choose Line:</source>
|
||||
<translation>线路选择:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1140"/>
|
||||
<location filename="../src/widget.ui" line="1172"/>
|
||||
<source>Refresh</source>
|
||||
<translation>刷新</translation>
|
||||
</message>
|
||||
@@ -359,238 +366,247 @@
|
||||
<translation type="vanished">重启商店后生效</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1182"/>
|
||||
<location filename="../src/widget.ui" line="1214"/>
|
||||
<source><html><head/><body><p>The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. </p></body></html></source>
|
||||
<translation><html><head/><body><p>源服务器的作用是保证软件更新,并且支持使用apt工具获取软件。通常我们更建议你使用第一个线路作为更新源,一般是最稳定的。</p></body></html></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1192"/>
|
||||
<location filename="../src/widget.ui" line="1224"/>
|
||||
<source>Update</source>
|
||||
<translation>更新源</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1199"/>
|
||||
<location filename="../src/widget.ui" line="1231"/>
|
||||
<source>Source Server</source>
|
||||
<translation>更新源服务器</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1219"/>
|
||||
<location filename="../src/widget.ui" line="1251"/>
|
||||
<source>Server</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1240"/>
|
||||
<location filename="../src/widget.ui" line="1272"/>
|
||||
<source>Temp</source>
|
||||
<translation>缓存目录</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1263"/>
|
||||
<location filename="../src/widget.ui" line="1295"/>
|
||||
<source>Clean</source>
|
||||
<translation>清空</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1273"/>
|
||||
<location filename="../src/widget.ui" line="1305"/>
|
||||
<source>Since the dictionary is at /tmp,It would be cleaned automatically when system reboot.</source>
|
||||
<translation>因为这个目录位于/tmp下,所以即使你不手动清空的话,其也将在系统重启时自动清空。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1286"/>
|
||||
<location filename="../src/widget.ui" line="1318"/>
|
||||
<source>Size:</source>
|
||||
<translation>目录大小:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1300"/>
|
||||
<location filename="../src/widget.ui" line="1332"/>
|
||||
<source>Location:/tmp/spark-store</source>
|
||||
<translation>目录位置:/tmp/spark-store</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1321"/>
|
||||
<location filename="../src/widget.ui" line="1353"/>
|
||||
<source>About us</source>
|
||||
<translation>关于我们</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1328"/>
|
||||
<location filename="../src/widget.ui" line="1360"/>
|
||||
<source><html><head/><body><p>We are <span style=" font-weight:600;">NOT</span> the official team, just like you, we are just one of the many Linux/deepin system enthusiasts and users, we develop and run the &quot;Spark Store&quot;! &quot;, is to bring the community together to share useful software, or to participate in development together, so that we all use the latest and greatest software. </p><p>We don't make a profit from this, all developers and maintainers don't get paid, and we rely on the community's donations to us for most of our expenses, which we are grateful for and which allow us not to spend too much energy worrying about funding. </p><p>Our service and software are free for everyone to use, communicate, and learn, but you must comply with local laws and regulations in the process of your use, otherwise any problems have nothing to do with us. </p><p>If any part of the store infringes your rights, please tell us &lt;jifengshenmo@outlook.com&gt; we will remove the infringing content as soon as possible. </p><p>If you'd like to get involved with us too, whether you're involved in development, design, pitching or submitting work, we welcome you to join us. </p><p>QQ group:872690351<br/></p></body></html></source>
|
||||
<translation><html><head/><body><p>我们并<span style=" font-weight:600;">不是</span>官方团队,和你一样,我们也只是众多Linux/deepin系统爱好者和用户之中的一员,我们开发并且运营这个“Spark应用商店”,是为了让社区的朋友们一起分享好用的软件,或者一起参与开发,让大家都用到最新的,最优秀的软件。</p><p>我们并没有因此盈利,所有开发和维护人员都不会获得报酬,我们的主要支出大部分依赖于社区对我们的捐助,很感谢大家,这部分捐助让我们并不需要耗费太多精力去担心资金问题。</p><p>我们的服务和开发的软件都是免费供给大家使用,交流,学习的,但是在您的使用过程中一定要遵守当地的法律法规,否则出现任何问题和我们无关。</p><p>如果商店中任何一部分有侵犯您权益的行为,请告知我们 &lt;jifengshenmo@outlook.com&gt;,我们会第一时间删除侵权内容。</p><p>如果你也想参与我们,不管是参与开发,设计,投递还是投稿作品,我们都欢迎你的加入。</p><p>QQ 群:872690351<br/></p></body></html></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="114"/>
|
||||
<location filename="../src/widget.ui" line="148"/>
|
||||
<source>icon</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="173"/>
|
||||
<location filename="../src/widget.ui" line="238"/>
|
||||
<source>Back to category</source>
|
||||
<translation>返回分类</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="217"/>
|
||||
<location filename="../src/widget.ui" line="296"/>
|
||||
<source>Home</source>
|
||||
<translation>商店首页</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="293"/>
|
||||
<location filename="../src/widget.ui" line="211"/>
|
||||
<source>Reload</source>
|
||||
<translation>刷新</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="342"/>
|
||||
<location filename="../src/widget.ui" line="374"/>
|
||||
<source>about:blank</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="540"/>
|
||||
<location filename="../src/widget.ui" line="572"/>
|
||||
<source><html><head/><body><p><br/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="737"/>
|
||||
<location filename="../src/widget.ui" line="769"/>
|
||||
<source><html><head/><body><p><img src=":/tags/ubuntu-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="775"/>
|
||||
<location filename="../src/widget.ui" line="807"/>
|
||||
<source><html><head/><body><p><img src=":/tags/uos-small.png"/></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1153"/>
|
||||
<location filename="../src/widget.ui" line="1185"/>
|
||||
<source>Take effect when restart</source>
|
||||
<translation>重启商店后生效</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.ui" line="1293"/>
|
||||
<location filename="../src/widget.ui" line="1325"/>
|
||||
<source>0B</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="157"/>
|
||||
<location filename="../src/widget.cpp" line="164"/>
|
||||
<source>Spark Store</source>
|
||||
<translation>Spark 应用商店</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="158"/>
|
||||
<location filename="../src/widget.cpp" line="165"/>
|
||||
<source>Search or enter spk://</source>
|
||||
<translation>搜索或打开链接</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="164"/>
|
||||
<location filename="../src/widget.cpp" line="171"/>
|
||||
<source>Submit App</source>
|
||||
<translation>投递应用</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="165"/>
|
||||
<location filename="../src/widget.cpp" line="172"/>
|
||||
<source>Settings</source>
|
||||
<translation>设置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="264"/>
|
||||
<location filename="../src/widget.cpp" line="274"/>
|
||||
<source>Not Exist</source>
|
||||
<translation>不存在</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="113"/>
|
||||
<location filename="../widget.cpp" line="319"/>
|
||||
<location filename="../widget.cpp" line="323"/>
|
||||
<location filename="../widget.cpp" line="332"/>
|
||||
<location filename="../widget.cpp" line="336"/>
|
||||
<location filename="../src/widget.cpp" line="120"/>
|
||||
<location filename="../src/widget.cpp" line="328"/>
|
||||
<location filename="../src/widget.cpp" line="332"/>
|
||||
<location filename="../src/widget.cpp" line="341"/>
|
||||
<location filename="../src/widget.cpp" line="345"/>
|
||||
<source>Spark\ Store</source>
|
||||
<translation>星火应用商店</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="530"/>
|
||||
<location filename="../src/widget.cpp" line="539"/>
|
||||
<source>Failed to download app info. Please check internet connection.</source>
|
||||
<translation>下载应用程序详细信息失败,请检查网络连接。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="560"/>
|
||||
<location filename="../src/widget.cpp" line="569"/>
|
||||
<source>PkgName: </source>
|
||||
<translation>包名: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="561"/>
|
||||
<location filename="../src/widget.cpp" line="570"/>
|
||||
<source>Version: </source>
|
||||
<translation>版本: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="563"/>
|
||||
<location filename="../src/widget.cpp" line="572"/>
|
||||
<source>Author: </source>
|
||||
<translation>作者: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="567"/>
|
||||
<location filename="../src/widget.cpp" line="576"/>
|
||||
<source>Official Site: </source>
|
||||
<translation>官网: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="571"/>
|
||||
<location filename="../src/widget.cpp" line="580"/>
|
||||
<source>Contributor: </source>
|
||||
<translation>投稿者: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="572"/>
|
||||
<location filename="../src/widget.cpp" line="581"/>
|
||||
<source>Update Time: </source>
|
||||
<translation>更新时间: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="573"/>
|
||||
<location filename="../src/widget.cpp" line="582"/>
|
||||
<source>Installed Size: </source>
|
||||
<translation>大小: </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="582"/>
|
||||
<location filename="../widget.cpp" line="693"/>
|
||||
<location filename="../widget.cpp" line="805"/>
|
||||
<location filename="../src/widget.cpp" line="591"/>
|
||||
<location filename="../src/widget.cpp" line="702"/>
|
||||
<location filename="../src/widget.cpp" line="891"/>
|
||||
<source>Reinstall</source>
|
||||
<translation>重新安装</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="621"/>
|
||||
<location filename="../src/widget.cpp" line="630"/>
|
||||
<source>Failed to load application icon.</source>
|
||||
<translation>加载应用程序图标失败。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="668"/>
|
||||
<location filename="../src/widget.cpp" line="677"/>
|
||||
<source>Failed to get the name to the file to be downloaded.</source>
|
||||
<translation>获取安装包文件名失败。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="716"/>
|
||||
<source>Spark store could only process spk:// links for now. The search feature is coming soon!</source>
|
||||
<translation>目前仅支持商店专用链接的打开,搜索功能正在开发,请期待以后的版本!</translation>
|
||||
<location filename="../src/widget.cpp" line="742"/>
|
||||
<source>Relative apps Not Found!</source>
|
||||
<translation>相关应用未找到!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="944"/>
|
||||
<location filename="../src/widget.cpp" line="750"/>
|
||||
<source>Request Error: %1</source>
|
||||
<translation>请求错误:%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Spark store could only process spk:// links for now. The search feature is coming soon!</source>
|
||||
<translation type="vanished">目前仅支持商店专用链接的打开,搜索功能正在开发,请期待以后的版本!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/widget.cpp" line="1030"/>
|
||||
<source>Updating, please wait...</source>
|
||||
<translation>正在更新,请稍候……</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="997"/>
|
||||
<location filename="../src/widget.cpp" line="1083"/>
|
||||
<source>Apt has reported an error. Please use apt update in terminal to locate the problem.</source>
|
||||
<translation>更新中发生错误,请在终端使用apt update来查看错误原因。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1003"/>
|
||||
<location filename="../src/widget.cpp" line="1089"/>
|
||||
<source>Unknown error!</source>
|
||||
<translation>未知错误!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1185"/>
|
||||
<location filename="../src/widget.cpp" line="1271"/>
|
||||
<source>Yes</source>
|
||||
<translation>是</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1185"/>
|
||||
<location filename="../src/widget.cpp" line="1271"/>
|
||||
<source>No</source>
|
||||
<translation>否</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1186"/>
|
||||
<location filename="../src/widget.cpp" line="1272"/>
|
||||
<source>Information for Contributors</source>
|
||||
<translation>贡献者须知</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1187"/>
|
||||
<location filename="../src/widget.cpp" line="1273"/>
|
||||
<source>Currently the translation contribution is limited to English,
|
||||
and you will be redirected to our Gitee repository at which you are
|
||||
supposed to be creating pull requests to contribute app info
|
||||
@@ -626,17 +642,17 @@ Click yes to continue.</source>
|
||||
<translation type="vanished">服务器未知错误</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1023"/>
|
||||
<location filename="../src/widget.cpp" line="1109"/>
|
||||
<source>Uninstall succeeded</source>
|
||||
<translation>卸载成功</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1037"/>
|
||||
<location filename="../src/widget.cpp" line="1123"/>
|
||||
<source>Temporary cache was cleaned</source>
|
||||
<translation>缓存目录已清空</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../widget.cpp" line="1104"/>
|
||||
<location filename="../src/widget.cpp" line="1190"/>
|
||||
<source>The URL has been copied to the clipboard</source>
|
||||
<translation>链接已复制到剪贴板</translation>
|
||||
</message>
|
||||
@@ -644,82 +660,82 @@ Click yes to continue.</source>
|
||||
<context>
|
||||
<name>downloadlist</name>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="20"/>
|
||||
<location filename="../src/downloadlist.ui" line="20"/>
|
||||
<source>Form</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="50"/>
|
||||
<location filename="../src/downloadlist.ui" line="50"/>
|
||||
<source>icon</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="82"/>
|
||||
<location filename="../src/downloadlist.ui" line="82"/>
|
||||
<source>TextLabel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="106"/>
|
||||
<location filename="../src/downloadlist.ui" line="106"/>
|
||||
<source>Name</source>
|
||||
<translation>软件名</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="189"/>
|
||||
<location filename="../src/downloadlist.ui" line="189"/>
|
||||
<source>Waiting to download</source>
|
||||
<translation>正在等待下载</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="240"/>
|
||||
<location filename="../src/downloadlist.ui" line="240"/>
|
||||
<source>Install</source>
|
||||
<translation>安装</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="259"/>
|
||||
<location filename="../src/downloadlist.ui" line="259"/>
|
||||
<source>Cancel</source>
|
||||
<translation>取消</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.ui" line="278"/>
|
||||
<location filename="../src/downloadlist.ui" line="278"/>
|
||||
<source>Info</source>
|
||||
<translation>详情</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="24"/>
|
||||
<location filename="../src/downloadlist.cpp" line="24"/>
|
||||
<source>dpkg</source>
|
||||
<translation>dpkg</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="25"/>
|
||||
<location filename="../src/downloadlist.cpp" line="25"/>
|
||||
<source>gdebi</source>
|
||||
<translation>gdebi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="26"/>
|
||||
<location filename="../src/downloadlist.cpp" line="26"/>
|
||||
<source>deepin deb installer</source>
|
||||
<translation>深度软件包安装器</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="55"/>
|
||||
<location filename="../src/downloadlist.cpp" line="55"/>
|
||||
<source>Downloaded, waiting to install</source>
|
||||
<translation>已完成,等待安装</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="80"/>
|
||||
<location filename="../src/downloadlist.cpp" line="80"/>
|
||||
<source>Failed to download %1</source>
|
||||
<translation>下载 %1 失败</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="82"/>
|
||||
<location filename="../src/downloadlist.cpp" line="82"/>
|
||||
<source>Download Failed,Check Your Connection</source>
|
||||
<translation>下载失败,请检查网络连接</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="92"/>
|
||||
<location filename="../src/downloadlist.cpp" line="92"/>
|
||||
<source>Finished downloading %1, awaiting to install</source>
|
||||
<translation>%1 下载完成,等待安装</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="125"/>
|
||||
<location filename="../src/downloadlist.cpp" line="125"/>
|
||||
<source>Installing</source>
|
||||
<translation>正在安装</translation>
|
||||
</message>
|
||||
@@ -728,27 +744,27 @@ Click yes to continue.</source>
|
||||
<translation type="obsolete">正在安装</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="172"/>
|
||||
<location filename="../src/downloadlist.cpp" line="172"/>
|
||||
<source>Finish</source>
|
||||
<translation>完成</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="176"/>
|
||||
<location filename="../src/downloadlist.cpp" line="176"/>
|
||||
<source>Retry</source>
|
||||
<translation>重试</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="177"/>
|
||||
<location filename="../src/downloadlist.cpp" line="177"/>
|
||||
<source>Error happened in dpkg progress , you can try it again</source>
|
||||
<translation>dpkg出现错误,可重新安装</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="181"/>
|
||||
<location filename="../src/downloadlist.cpp" line="181"/>
|
||||
<source>dpkg progress had been aborted,you can retry installation</source>
|
||||
<translation>安装被中止,可重新安装</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../downloadlist.cpp" line="203"/>
|
||||
<location filename="../src/downloadlist.cpp" line="203"/>
|
||||
<source>Download canceled</source>
|
||||
<translation>下载已取消</translation>
|
||||
</message>
|
||||
|
||||