2023-01-23 19:33:55 +05:30
|
|
|
// SPDX-FileCopyrightText: 2023 flowln <flowlnlnln@gmail.com>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-only AND Apache-2.0
|
|
|
|
/*
|
|
|
|
* Prism Launcher - Minecraft Launcher
|
|
|
|
* Copyright (C) 2022 Sefa Eyeoglu <contact@scrumplex.net>
|
|
|
|
* Copyright (C) 2022 TheKodeToad <TheKodeToad@proton.me>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, version 3.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following copyright and
|
|
|
|
* permission notice:
|
|
|
|
*
|
|
|
|
* Copyright 2013-2021 MultiMC Contributors
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2022-11-25 17:53:46 +05:30
|
|
|
#include "ResourcePage.h"
|
2023-06-03 02:34:06 +05:30
|
|
|
#include "modplatform/ModIndex.h"
|
2022-11-25 17:53:46 +05:30
|
|
|
#include "ui_ResourcePage.h"
|
|
|
|
|
|
|
|
#include <QDesktopServices>
|
|
|
|
#include <QKeyEvent>
|
|
|
|
|
|
|
|
#include "Markdown.h"
|
|
|
|
#include "ResourceDownloadTask.h"
|
|
|
|
|
|
|
|
#include "minecraft/MinecraftInstance.h"
|
|
|
|
|
|
|
|
#include "ui/dialogs/ResourceDownloadDialog.h"
|
|
|
|
#include "ui/pages/modplatform/ResourceModel.h"
|
|
|
|
#include "ui/widgets/ProjectItem.h"
|
|
|
|
|
2022-12-17 03:33:52 +05:30
|
|
|
namespace ResourceDownload {
|
|
|
|
|
2022-11-25 17:53:46 +05:30
|
|
|
ResourcePage::ResourcePage(ResourceDownloadDialog* parent, BaseInstance& base_instance)
|
|
|
|
: QWidget(parent), m_base_instance(base_instance), m_ui(new Ui::ResourcePage), m_parent_dialog(parent), m_fetch_progress(this, false)
|
|
|
|
{
|
|
|
|
m_ui->setupUi(this);
|
|
|
|
|
|
|
|
m_ui->searchEdit->installEventFilter(this);
|
|
|
|
|
|
|
|
m_ui->versionSelectionBox->view()->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
|
|
|
|
m_ui->versionSelectionBox->view()->parentWidget()->setMaximumHeight(300);
|
|
|
|
|
|
|
|
m_search_timer.setTimerType(Qt::TimerType::CoarseTimer);
|
|
|
|
m_search_timer.setSingleShot(true);
|
|
|
|
|
|
|
|
connect(&m_search_timer, &QTimer::timeout, this, &ResourcePage::triggerSearch);
|
|
|
|
|
|
|
|
m_fetch_progress.hideIfInactive(true);
|
|
|
|
m_fetch_progress.setFixedHeight(24);
|
|
|
|
m_fetch_progress.progressFormat("");
|
|
|
|
|
|
|
|
m_ui->gridLayout_3->addWidget(&m_fetch_progress, 0, 0, 1, m_ui->gridLayout_3->columnCount());
|
|
|
|
|
|
|
|
m_ui->packView->setItemDelegate(new ProjectItemDelegate(this));
|
|
|
|
m_ui->packView->installEventFilter(this);
|
|
|
|
|
|
|
|
connect(m_ui->packDescription, &QTextBrowser::anchorClicked, this, &ResourcePage::openUrl);
|
|
|
|
}
|
|
|
|
|
|
|
|
ResourcePage::~ResourcePage()
|
|
|
|
{
|
|
|
|
delete m_ui;
|
2023-05-27 09:40:49 +05:30
|
|
|
if (m_model)
|
|
|
|
delete m_model;
|
2022-11-25 17:53:46 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
void ResourcePage::retranslate()
|
|
|
|
{
|
|
|
|
m_ui->retranslateUi(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ResourcePage::openedImpl()
|
|
|
|
{
|
|
|
|
if (!supportsFiltering())
|
|
|
|
m_ui->resourceFilterButton->setVisible(false);
|
|
|
|
|
2022-12-31 01:29:35 +05:30
|
|
|
//: String in the search bar of the mod downloading dialog
|
|
|
|
m_ui->searchEdit->setPlaceholderText(tr("Search for %1...").arg(resourcesString()));
|
|
|
|
m_ui->resourceSelectionButton->setText(tr("Select %1 for download").arg(resourceString()));
|
|
|
|
|
2022-11-25 17:53:46 +05:30
|
|
|
updateSelectionButton();
|
|
|
|
triggerSearch();
|
|
|
|
}
|
|
|
|
|
|
|
|
auto ResourcePage::eventFilter(QObject* watched, QEvent* event) -> bool
|
|
|
|
{
|
|
|
|
if (event->type() == QEvent::KeyPress) {
|
|
|
|
auto* keyEvent = static_cast<QKeyEvent*>(event);
|
|
|
|
if (watched == m_ui->searchEdit) {
|
|
|
|
if (keyEvent->key() == Qt::Key_Return) {
|
|
|
|
triggerSearch();
|
|
|
|
keyEvent->accept();
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
if (m_search_timer.isActive())
|
|
|
|
m_search_timer.stop();
|
|
|
|
|
|
|
|
m_search_timer.start(350);
|
|
|
|
}
|
|
|
|
} else if (watched == m_ui->packView) {
|
|
|
|
if (keyEvent->key() == Qt::Key_Return) {
|
|
|
|
onResourceSelected();
|
|
|
|
|
|
|
|
// To have the 'select mod' button outlined instead of the 'review and confirm' one
|
|
|
|
m_ui->resourceSelectionButton->setFocus(Qt::FocusReason::ShortcutFocusReason);
|
|
|
|
m_ui->packView->setFocus(Qt::FocusReason::NoFocusReason);
|
|
|
|
|
|
|
|
keyEvent->accept();
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return QWidget::eventFilter(watched, event);
|
|
|
|
}
|
|
|
|
|
|
|
|
QString ResourcePage::getSearchTerm() const
|
|
|
|
{
|
|
|
|
return m_ui->searchEdit->text();
|
|
|
|
}
|
|
|
|
|
|
|
|
void ResourcePage::setSearchTerm(QString term)
|
|
|
|
{
|
|
|
|
m_ui->searchEdit->setText(term);
|
|
|
|
}
|
|
|
|
|
2022-12-20 20:45:17 +05:30
|
|
|
void ResourcePage::addSortings()
|
|
|
|
{
|
|
|
|
Q_ASSERT(m_model);
|
|
|
|
|
|
|
|
auto sorts = m_model->getSortingMethods();
|
|
|
|
std::sort(sorts.begin(), sorts.end(), [](auto const& l, auto const& r) { return l.index < r.index; });
|
|
|
|
|
|
|
|
for (auto&& sorting : sorts)
|
|
|
|
m_ui->sortByBox->addItem(sorting.readable_name, QVariant(sorting.index));
|
|
|
|
}
|
|
|
|
|
2023-06-03 02:34:06 +05:30
|
|
|
bool ResourcePage::setCurrentPack(ModPlatform::IndexedPack::Ptr pack)
|
2022-11-25 17:53:46 +05:30
|
|
|
{
|
2022-12-19 00:11:46 +05:30
|
|
|
QVariant v;
|
|
|
|
v.setValue(pack);
|
|
|
|
return m_model->setData(m_ui->packView->currentIndex(), v, Qt::UserRole);
|
2022-11-25 17:53:46 +05:30
|
|
|
}
|
|
|
|
|
2023-06-03 02:34:06 +05:30
|
|
|
ModPlatform::IndexedPack::Ptr ResourcePage::getCurrentPack() const
|
2022-11-25 17:53:46 +05:30
|
|
|
{
|
2023-06-03 02:34:06 +05:30
|
|
|
return m_model->data(m_ui->packView->currentIndex(), Qt::UserRole).value<ModPlatform::IndexedPack::Ptr>();
|
2022-11-25 17:53:46 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
void ResourcePage::updateUi()
|
|
|
|
{
|
|
|
|
auto current_pack = getCurrentPack();
|
|
|
|
|
|
|
|
QString text = "";
|
2023-06-03 02:34:06 +05:30
|
|
|
QString name = current_pack->name;
|
2022-11-25 17:53:46 +05:30
|
|
|
|
2023-06-03 02:34:06 +05:30
|
|
|
if (current_pack->websiteUrl.isEmpty())
|
2022-11-25 17:53:46 +05:30
|
|
|
text = name;
|
|
|
|
else
|
2023-06-03 02:34:06 +05:30
|
|
|
text = "<a href=\"" + current_pack->websiteUrl + "\">" + name + "</a>";
|
2022-11-25 17:53:46 +05:30
|
|
|
|
2023-06-03 02:34:06 +05:30
|
|
|
if (!current_pack->authors.empty()) {
|
2022-11-25 17:53:46 +05:30
|
|
|
auto authorToStr = [](ModPlatform::ModpackAuthor& author) -> QString {
|
|
|
|
if (author.url.isEmpty()) {
|
|
|
|
return author.name;
|
|
|
|
}
|
|
|
|
return QString("<a href=\"%1\">%2</a>").arg(author.url, author.name);
|
|
|
|
};
|
|
|
|
QStringList authorStrs;
|
2023-06-03 02:34:06 +05:30
|
|
|
for (auto& author : current_pack->authors) {
|
2022-11-25 17:53:46 +05:30
|
|
|
authorStrs.push_back(authorToStr(author));
|
|
|
|
}
|
|
|
|
text += "<br>" + tr(" by ") + authorStrs.join(", ");
|
|
|
|
}
|
|
|
|
|
2023-06-03 02:34:06 +05:30
|
|
|
if (current_pack->extraDataLoaded) {
|
|
|
|
if (!current_pack->extraData.donate.isEmpty()) {
|
2022-11-25 17:53:46 +05:30
|
|
|
text += "<br><br>" + tr("Donate information: ");
|
|
|
|
auto donateToStr = [](ModPlatform::DonationData& donate) -> QString {
|
|
|
|
return QString("<a href=\"%1\">%2</a>").arg(donate.url, donate.platform);
|
|
|
|
};
|
|
|
|
QStringList donates;
|
2023-06-03 02:34:06 +05:30
|
|
|
for (auto& donate : current_pack->extraData.donate) {
|
2022-11-25 17:53:46 +05:30
|
|
|
donates.append(donateToStr(donate));
|
|
|
|
}
|
|
|
|
text += donates.join(", ");
|
|
|
|
}
|
|
|
|
|
2023-06-03 02:34:06 +05:30
|
|
|
if (!current_pack->extraData.issuesUrl.isEmpty() || !current_pack->extraData.sourceUrl.isEmpty() ||
|
|
|
|
!current_pack->extraData.wikiUrl.isEmpty() || !current_pack->extraData.discordUrl.isEmpty()) {
|
2022-11-25 17:53:46 +05:30
|
|
|
text += "<br><br>" + tr("External links:") + "<br>";
|
|
|
|
}
|
|
|
|
|
2023-06-03 02:34:06 +05:30
|
|
|
if (!current_pack->extraData.issuesUrl.isEmpty())
|
|
|
|
text += "- " + tr("Issues: <a href=%1>%1</a>").arg(current_pack->extraData.issuesUrl) + "<br>";
|
|
|
|
if (!current_pack->extraData.wikiUrl.isEmpty())
|
|
|
|
text += "- " + tr("Wiki: <a href=%1>%1</a>").arg(current_pack->extraData.wikiUrl) + "<br>";
|
|
|
|
if (!current_pack->extraData.sourceUrl.isEmpty())
|
|
|
|
text += "- " + tr("Source code: <a href=%1>%1</a>").arg(current_pack->extraData.sourceUrl) + "<br>";
|
|
|
|
if (!current_pack->extraData.discordUrl.isEmpty())
|
|
|
|
text += "- " + tr("Discord: <a href=%1>%1</a>").arg(current_pack->extraData.discordUrl) + "<br>";
|
2022-11-25 17:53:46 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
text += "<hr>";
|
|
|
|
|
|
|
|
m_ui->packDescription->setHtml(
|
2023-06-03 02:34:06 +05:30
|
|
|
text + (current_pack->extraData.body.isEmpty() ? current_pack->description : markdownToHTML(current_pack->extraData.body)));
|
2022-11-25 17:53:46 +05:30
|
|
|
m_ui->packDescription->flush();
|
|
|
|
}
|
|
|
|
|
|
|
|
void ResourcePage::updateSelectionButton()
|
|
|
|
{
|
|
|
|
if (!isOpened || m_selected_version_index < 0) {
|
|
|
|
m_ui->resourceSelectionButton->setEnabled(false);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
m_ui->resourceSelectionButton->setEnabled(true);
|
2023-06-03 02:34:06 +05:30
|
|
|
if (!getCurrentPack()->isVersionSelected(m_selected_version_index)) {
|
2022-11-25 17:53:46 +05:30
|
|
|
m_ui->resourceSelectionButton->setText(tr("Select %1 for download").arg(resourceString()));
|
|
|
|
} else {
|
|
|
|
m_ui->resourceSelectionButton->setText(tr("Deselect %1 for download").arg(resourceString()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void ResourcePage::updateVersionList()
|
|
|
|
{
|
|
|
|
auto current_pack = getCurrentPack();
|
|
|
|
|
|
|
|
m_ui->versionSelectionBox->blockSignals(true);
|
|
|
|
m_ui->versionSelectionBox->clear();
|
|
|
|
m_ui->versionSelectionBox->blockSignals(false);
|
|
|
|
|
2023-06-03 02:34:06 +05:30
|
|
|
for (int i = 0; i < current_pack->versions.size(); i++) {
|
|
|
|
auto& version = current_pack->versions[i];
|
2022-11-25 17:53:46 +05:30
|
|
|
if (optedOut(version))
|
|
|
|
continue;
|
|
|
|
|
2023-06-03 02:34:06 +05:30
|
|
|
m_ui->versionSelectionBox->addItem(current_pack->versions[i].version, QVariant(i));
|
2022-11-25 17:53:46 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
if (m_ui->versionSelectionBox->count() == 0) {
|
|
|
|
m_ui->versionSelectionBox->addItem(tr("No valid version found."), QVariant(-1));
|
|
|
|
m_ui->resourceSelectionButton->setText(tr("Cannot select invalid version :("));
|
|
|
|
}
|
|
|
|
|
|
|
|
updateSelectionButton();
|
|
|
|
}
|
|
|
|
|
|
|
|
void ResourcePage::onSelectionChanged(QModelIndex curr, QModelIndex prev)
|
|
|
|
{
|
|
|
|
if (!curr.isValid()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
auto current_pack = getCurrentPack();
|
|
|
|
|
|
|
|
bool request_load = false;
|
2023-06-03 02:34:06 +05:30
|
|
|
if (!current_pack->versionsLoaded) {
|
2022-11-25 17:53:46 +05:30
|
|
|
m_ui->resourceSelectionButton->setText(tr("Loading versions..."));
|
|
|
|
m_ui->resourceSelectionButton->setEnabled(false);
|
|
|
|
|
|
|
|
request_load = true;
|
|
|
|
} else {
|
|
|
|
updateVersionList();
|
|
|
|
}
|
|
|
|
|
2023-06-03 02:34:06 +05:30
|
|
|
if (!current_pack->extraDataLoaded)
|
2022-11-25 17:53:46 +05:30
|
|
|
request_load = true;
|
|
|
|
|
|
|
|
if (request_load)
|
|
|
|
m_model->loadEntry(curr);
|
|
|
|
|
|
|
|
updateUi();
|
|
|
|
}
|
|
|
|
|
|
|
|
void ResourcePage::onVersionSelectionChanged(QString data)
|
|
|
|
{
|
|
|
|
if (data.isNull() || data.isEmpty()) {
|
|
|
|
m_selected_version_index = -1;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
m_selected_version_index = m_ui->versionSelectionBox->currentData().toInt();
|
|
|
|
updateSelectionButton();
|
|
|
|
}
|
|
|
|
|
2023-06-03 02:34:06 +05:30
|
|
|
void ResourcePage::addResourceToDialog(ModPlatform::IndexedPack::Ptr pack, ModPlatform::IndexedVersion& version)
|
2022-11-25 17:53:46 +05:30
|
|
|
{
|
2022-12-19 00:11:46 +05:30
|
|
|
m_parent_dialog->addResource(pack, version);
|
2022-11-25 17:53:46 +05:30
|
|
|
}
|
|
|
|
|
2023-06-03 02:34:06 +05:30
|
|
|
void ResourcePage::removeResourceFromDialog(const QString& pack_name)
|
2022-11-25 17:53:46 +05:30
|
|
|
{
|
2023-06-03 02:34:06 +05:30
|
|
|
m_parent_dialog->removeResource(pack_name);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ResourcePage::addResourceToPage(ModPlatform::IndexedPack::Ptr pack,
|
|
|
|
ModPlatform::IndexedVersion& ver,
|
|
|
|
const std::shared_ptr<ResourceFolderModel> base_model)
|
|
|
|
{
|
|
|
|
m_model->addPack(pack, ver, base_model);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ResourcePage::removeResourceFromPage(const QString& name)
|
|
|
|
{
|
|
|
|
m_model->removePack(name);
|
2022-11-25 17:53:46 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
void ResourcePage::onResourceSelected()
|
|
|
|
{
|
|
|
|
if (m_selected_version_index < 0)
|
|
|
|
return;
|
|
|
|
|
|
|
|
auto current_pack = getCurrentPack();
|
2023-06-03 02:34:06 +05:30
|
|
|
if (!current_pack->versionsLoaded)
|
2022-12-19 00:11:46 +05:30
|
|
|
return;
|
2022-11-25 17:53:46 +05:30
|
|
|
|
2023-06-03 02:34:06 +05:30
|
|
|
auto& version = current_pack->versions[m_selected_version_index];
|
2022-12-19 00:11:46 +05:30
|
|
|
if (version.is_currently_selected)
|
2023-06-03 02:34:06 +05:30
|
|
|
removeResourceFromDialog(current_pack->name);
|
2022-11-25 17:53:46 +05:30
|
|
|
else
|
|
|
|
addResourceToDialog(current_pack, version);
|
|
|
|
|
2022-12-19 00:11:46 +05:30
|
|
|
// Save the modified pack (and prevent warning in release build)
|
|
|
|
[[maybe_unused]] bool set = setCurrentPack(current_pack);
|
|
|
|
Q_ASSERT(set);
|
|
|
|
|
2022-11-25 17:53:46 +05:30
|
|
|
updateSelectionButton();
|
|
|
|
|
|
|
|
/* Force redraw on the resource list when the selection changes */
|
2023-06-03 02:34:06 +05:30
|
|
|
m_ui->packView->repaint();
|
2022-11-25 17:53:46 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
void ResourcePage::openUrl(const QUrl& url)
|
|
|
|
{
|
|
|
|
// do not allow other url schemes for security reasons
|
|
|
|
if (!(url.scheme() == "http" || url.scheme() == "https")) {
|
|
|
|
qWarning() << "Unsupported scheme" << url.scheme();
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// detect URLs and search instead
|
|
|
|
|
|
|
|
const QString address = url.host() + url.path();
|
|
|
|
QRegularExpressionMatch match;
|
|
|
|
QString page;
|
|
|
|
|
2022-12-19 01:33:39 +05:30
|
|
|
auto handlers = urlHandlers();
|
|
|
|
for (auto it = handlers.constKeyValueBegin(); it != handlers.constKeyValueEnd(); it++) {
|
|
|
|
auto&& [regex, candidate] = *it;
|
2022-11-25 17:53:46 +05:30
|
|
|
if (match = QRegularExpression(regex).match(address); match.hasMatch()) {
|
|
|
|
page = candidate;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!page.isNull()) {
|
|
|
|
const QString slug = match.captured(1);
|
|
|
|
|
|
|
|
// ensure the user isn't opening the same mod
|
2023-06-03 02:34:06 +05:30
|
|
|
if (slug != getCurrentPack()->slug) {
|
2022-11-25 17:53:46 +05:30
|
|
|
m_parent_dialog->selectPage(page);
|
|
|
|
|
|
|
|
auto newPage = m_parent_dialog->getSelectedPage();
|
|
|
|
|
|
|
|
QLineEdit* searchEdit = newPage->m_ui->searchEdit;
|
|
|
|
auto model = newPage->m_model;
|
|
|
|
QListView* view = newPage->m_ui->packView;
|
|
|
|
|
|
|
|
auto jump = [url, slug, model, view] {
|
|
|
|
for (int row = 0; row < model->rowCount({}); row++) {
|
|
|
|
const QModelIndex index = model->index(row);
|
|
|
|
const auto pack = model->data(index, Qt::UserRole).value<ModPlatform::IndexedPack>();
|
|
|
|
|
|
|
|
if (pack.slug == slug) {
|
|
|
|
view->setCurrentIndex(index);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// The final fallback.
|
|
|
|
QDesktopServices::openUrl(url);
|
|
|
|
};
|
|
|
|
|
|
|
|
searchEdit->setText(slug);
|
|
|
|
newPage->triggerSearch();
|
|
|
|
|
2022-12-21 01:44:17 +05:30
|
|
|
if (model->hasActiveSearchJob())
|
|
|
|
connect(model->activeSearchJob().get(), &Task::finished, jump);
|
2022-11-25 17:53:46 +05:30
|
|
|
else
|
|
|
|
jump();
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// open in the user's web browser
|
|
|
|
QDesktopServices::openUrl(url);
|
|
|
|
}
|
2022-12-17 03:33:52 +05:30
|
|
|
|
|
|
|
} // namespace ResourceDownload
|