Compare commits
8 Commits
wip-proper
...
0.3.4
Author | SHA1 | Date | |
---|---|---|---|
8c152dc862 | |||
1066fa45ea | |||
71c38c8e96 | |||
95fd0f881c | |||
0a9ea1982b | |||
0dfbb45238 | |||
7e7825760a | |||
203274a522 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
# User files
|
# User files
|
||||||
*.user
|
*.user
|
||||||
|
*.user.*
|
||||||
|
|
||||||
# Translation files
|
# Translation files
|
||||||
*.qm
|
*.qm
|
||||||
|
@ -12,30 +12,34 @@ set (QT_MINIMUM_VERSION "5.10")
|
|||||||
find_package(Qt5 ${QT_MINIMUM_VERSION} CONFIG REQUIRED Widgets Svg LinguistTools)
|
find_package(Qt5 ${QT_MINIMUM_VERSION} CONFIG REQUIRED Widgets Svg LinguistTools)
|
||||||
|
|
||||||
set (PPIC_CPP_FILES
|
set (PPIC_CPP_FILES
|
||||||
main.cpp
|
app/main.cpp
|
||||||
mainwindow.cpp
|
app/mainwindow.cpp
|
||||||
graphicsview.cpp
|
app/graphicsview.cpp
|
||||||
graphicsscene.cpp
|
app/graphicsscene.cpp
|
||||||
bottombuttongroup.cpp
|
app/bottombuttongroup.cpp
|
||||||
navigatorview.cpp
|
app/navigatorview.cpp
|
||||||
opacityhelper.cpp
|
app/opacityhelper.cpp
|
||||||
toolbutton.cpp
|
app/toolbutton.cpp
|
||||||
settings.cpp
|
app/settings.cpp
|
||||||
settingsdialog.cpp
|
app/settingsdialog.cpp
|
||||||
aboutdialog.cpp
|
app/aboutdialog.cpp
|
||||||
|
app/metadatamodel.cpp
|
||||||
|
app/metadatadialog.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set (PPIC_HEADER_FILES
|
set (PPIC_HEADER_FILES
|
||||||
mainwindow.h
|
app/mainwindow.h
|
||||||
graphicsview.h
|
app/graphicsview.h
|
||||||
graphicsscene.h
|
app/graphicsscene.h
|
||||||
bottombuttongroup.h
|
app/bottombuttongroup.h
|
||||||
navigatorview.h
|
app/navigatorview.h
|
||||||
opacityhelper.h
|
app/opacityhelper.h
|
||||||
toolbutton.h
|
app/toolbutton.h
|
||||||
settings.h
|
app/settings.h
|
||||||
settingsdialog.h
|
app/settingsdialog.h
|
||||||
aboutdialog.h
|
app/aboutdialog.h
|
||||||
|
app/metadatamodel.h
|
||||||
|
app/metadatadialog.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set (PPIC_QRC_FILES
|
set (PPIC_QRC_FILES
|
||||||
@ -49,7 +53,7 @@ set (PPIC_RC_FILES
|
|||||||
set (EXE_NAME ppic)
|
set (EXE_NAME ppic)
|
||||||
|
|
||||||
# Translation
|
# Translation
|
||||||
file (GLOB PPIC_TS_FILES languages/*.ts)
|
file (GLOB PPIC_TS_FILES translations/*.ts)
|
||||||
set (PPIC_CPP_FILES_FOR_I18N ${PPIC_CPP_FILES})
|
set (PPIC_CPP_FILES_FOR_I18N ${PPIC_CPP_FILES})
|
||||||
|
|
||||||
qt5_create_translation(PPIC_QM_FILES ${PPIC_CPP_FILES_FOR_I18N} ${PPIC_TS_FILES})
|
qt5_create_translation(PPIC_QM_FILES ${PPIC_CPP_FILES_FOR_I18N} ${PPIC_TS_FILES})
|
||||||
|
@ -33,7 +33,7 @@ BottomButtonGroup::BottomButtonGroup(QWidget *parent)
|
|||||||
QPushButton * btn = new QPushButton(QIcon(QStringLiteral(":/icons/") + text), "");
|
QPushButton * btn = new QPushButton(QIcon(QStringLiteral(":/icons/") + text), "");
|
||||||
btn->setIconSize(QSize(40, 40));
|
btn->setIconSize(QSize(40, 40));
|
||||||
btn->setFixedSize(40, 40);
|
btn->setFixedSize(40, 40);
|
||||||
connect(btn, &QAbstractButton::clicked, btn, func);
|
QObject::connect(btn, &QAbstractButton::clicked, btn, func);
|
||||||
return btn;
|
return btn;
|
||||||
};
|
};
|
||||||
addButton(newBtn("zoom-original", [this]() {
|
addButton(newBtn("zoom-original", [this]() {
|
@ -51,8 +51,15 @@ void GraphicsView::showFileFromUrl(const QUrl &url, bool doRequestGallery)
|
|||||||
// QImage::Format imageFormat = imageReader.imageFormat();
|
// QImage::Format imageFormat = imageReader.imageFormat();
|
||||||
if (imageReader.format().isEmpty()) {
|
if (imageReader.format().isEmpty()) {
|
||||||
showText(tr("File is not a valid image"));
|
showText(tr("File is not a valid image"));
|
||||||
|
} else if (!imageReader.supportsAnimation() && !imageReader.canRead()) {
|
||||||
|
showText(tr("Image data is invalid or currently unsupported"));
|
||||||
} else {
|
} else {
|
||||||
showImage(QPixmap::fromImageReader(&imageReader));
|
const QPixmap & pixmap = QPixmap::fromImageReader(&imageReader);
|
||||||
|
if (pixmap.isNull()) {
|
||||||
|
showText(tr("Image data is invalid or currently unsupported"));
|
||||||
|
} else {
|
||||||
|
showImage(pixmap);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -8,6 +8,8 @@
|
|||||||
#include "graphicsscene.h"
|
#include "graphicsscene.h"
|
||||||
#include "settingsdialog.h"
|
#include "settingsdialog.h"
|
||||||
#include "aboutdialog.h"
|
#include "aboutdialog.h"
|
||||||
|
#include "metadatamodel.h"
|
||||||
|
#include "metadatadialog.h"
|
||||||
|
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
#include <QMovie>
|
#include <QMovie>
|
||||||
@ -22,6 +24,7 @@
|
|||||||
#include <QCollator>
|
#include <QCollator>
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
#include <QMimeData>
|
#include <QMimeData>
|
||||||
|
#include <QWindow>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
@ -339,7 +342,13 @@ void MainWindow::mousePressEvent(QMouseEvent *event)
|
|||||||
void MainWindow::mouseMoveEvent(QMouseEvent *event)
|
void MainWindow::mouseMoveEvent(QMouseEvent *event)
|
||||||
{
|
{
|
||||||
if (event->buttons() & Qt::LeftButton && m_clickedOnWindow && !isMaximized()) {
|
if (event->buttons() & Qt::LeftButton && m_clickedOnWindow && !isMaximized()) {
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
|
||||||
|
if (!window()->windowHandle()->startSystemMove()) {
|
||||||
|
move(event->globalPos() - m_oldMousePos);
|
||||||
|
}
|
||||||
|
#else
|
||||||
move(event->globalPos() - m_oldMousePos);
|
move(event->globalPos() - m_oldMousePos);
|
||||||
|
#endif // QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
|
||||||
event->accept();
|
event->accept();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -480,6 +489,17 @@ void MainWindow::contextMenuEvent(QContextMenuEvent *event)
|
|||||||
ad->deleteLater();
|
ad->deleteLater();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
QAction * propertiesAction = new QAction(tr("Properties"));
|
||||||
|
connect(propertiesAction, &QAction::triggered, this, [ = ](){
|
||||||
|
MetadataModel * md = new MetadataModel();
|
||||||
|
md->setFile(currentFileUrl.toLocalFile());
|
||||||
|
|
||||||
|
MetadataDialog * ad = new MetadataDialog(this);
|
||||||
|
ad->setMetadataModel(md);
|
||||||
|
ad->exec();
|
||||||
|
ad->deleteLater();
|
||||||
|
});
|
||||||
|
|
||||||
if (copyMenu->actions().count() == 1) {
|
if (copyMenu->actions().count() == 1) {
|
||||||
menu->addActions(copyMenu->actions());
|
menu->addActions(copyMenu->actions());
|
||||||
} else {
|
} else {
|
||||||
@ -496,6 +516,10 @@ void MainWindow::contextMenuEvent(QContextMenuEvent *event)
|
|||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
menu->addAction(toggleSettings);
|
menu->addAction(toggleSettings);
|
||||||
menu->addAction(helpAction);
|
menu->addAction(helpAction);
|
||||||
|
if (currentFileUrl.isValid()) {
|
||||||
|
menu->addSeparator();
|
||||||
|
menu->addAction(propertiesAction);
|
||||||
|
}
|
||||||
menu->exec(mapToGlobal(event->pos()));
|
menu->exec(mapToGlobal(event->pos()));
|
||||||
menu->deleteLater();
|
menu->deleteLater();
|
||||||
|
|
101
app/metadatadialog.cpp
Normal file
101
app/metadatadialog.cpp
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
#include "metadatadialog.h"
|
||||||
|
|
||||||
|
#include <QDialogButtonBox>
|
||||||
|
#include <QPainter>
|
||||||
|
#include <QStyledItemDelegate>
|
||||||
|
#include <QTreeView>
|
||||||
|
#include <QVBoxLayout>
|
||||||
|
#include <QHeaderView>
|
||||||
|
|
||||||
|
#include "metadatamodel.h"
|
||||||
|
|
||||||
|
class PropertyTreeView : public QTreeView
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
explicit PropertyTreeView(QWidget* parent) : QTreeView(parent) {}
|
||||||
|
~PropertyTreeView() {}
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void rowsInserted(const QModelIndex& parent, int start, int end) override
|
||||||
|
{
|
||||||
|
QTreeView::rowsInserted(parent, start, end);
|
||||||
|
if (!parent.isValid()) {
|
||||||
|
for (int row = start; row <= end; ++row) {
|
||||||
|
setupSection(row);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void reset() override
|
||||||
|
{
|
||||||
|
QTreeView::reset();
|
||||||
|
if (model()) {
|
||||||
|
for (int row = 0; row < model()->rowCount(); ++row) {
|
||||||
|
setupSection(row);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
void setupSection(int row)
|
||||||
|
{
|
||||||
|
expand(model()->index(row, 0));
|
||||||
|
setFirstColumnSpanned(row, QModelIndex(), true);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
class PropertyTreeItemDelegate : public QStyledItemDelegate
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
PropertyTreeItemDelegate(QObject* parent)
|
||||||
|
: QStyledItemDelegate(parent)
|
||||||
|
{}
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const override
|
||||||
|
{
|
||||||
|
QStyleOptionViewItem opt = option;
|
||||||
|
if (!index.parent().isValid()) {
|
||||||
|
opt.font.setBold(true);
|
||||||
|
opt.features.setFlag(QStyleOptionViewItem::Alternate);
|
||||||
|
}
|
||||||
|
QStyledItemDelegate::paint(painter, opt, index);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
MetadataDialog::MetadataDialog(QWidget *parent)
|
||||||
|
: QDialog(parent)
|
||||||
|
, m_treeView(new PropertyTreeView(this))
|
||||||
|
{
|
||||||
|
m_treeView->setRootIsDecorated(false);
|
||||||
|
m_treeView->setIndentation(0);
|
||||||
|
m_treeView->setItemDelegate(new PropertyTreeItemDelegate(m_treeView));
|
||||||
|
m_treeView->header()->resizeSection(0, sizeHint().width() / 2);
|
||||||
|
|
||||||
|
setWindowTitle(tr("Image Metadata"));
|
||||||
|
|
||||||
|
QDialogButtonBox * buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
|
||||||
|
|
||||||
|
setLayout(new QVBoxLayout);
|
||||||
|
layout()->addWidget(m_treeView);
|
||||||
|
layout()->addWidget(buttonBox);
|
||||||
|
|
||||||
|
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::close);
|
||||||
|
|
||||||
|
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
MetadataDialog::~MetadataDialog()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void MetadataDialog::setMetadataModel(MetadataModel * model)
|
||||||
|
{
|
||||||
|
m_treeView->setModel(model);
|
||||||
|
}
|
||||||
|
|
||||||
|
QSize MetadataDialog::sizeHint() const
|
||||||
|
{
|
||||||
|
return QSize(520, 350);
|
||||||
|
}
|
26
app/metadatadialog.h
Normal file
26
app/metadatadialog.h
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#ifndef METADATADIALOG_H
|
||||||
|
#define METADATADIALOG_H
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
|
QT_BEGIN_NAMESPACE
|
||||||
|
class QTreeView;
|
||||||
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
|
class MetadataModel;
|
||||||
|
class MetadataDialog : public QDialog
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit MetadataDialog(QWidget * parent);
|
||||||
|
~MetadataDialog() override;
|
||||||
|
|
||||||
|
void setMetadataModel(MetadataModel * model);
|
||||||
|
|
||||||
|
QSize sizeHint() const override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
QTreeView * m_treeView = nullptr;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // METADATADIALOG_H
|
205
app/metadatamodel.cpp
Normal file
205
app/metadatamodel.cpp
Normal file
@ -0,0 +1,205 @@
|
|||||||
|
#include "metadatamodel.h"
|
||||||
|
|
||||||
|
#include <QDebug>
|
||||||
|
#include <QDateTime>
|
||||||
|
#include <QFileInfo>
|
||||||
|
#include <QImageReader>
|
||||||
|
|
||||||
|
MetadataModel::MetadataModel(QObject *parent)
|
||||||
|
: QAbstractItemModel(parent)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
MetadataModel::~MetadataModel()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void MetadataModel::setFile(const QString &imageFilePath)
|
||||||
|
{
|
||||||
|
QFileInfo fileInfo(imageFilePath);
|
||||||
|
// It'll be fine if we don't re-use the image reader we pass to the graphics scene for now.
|
||||||
|
QImageReader imgReader(imageFilePath);
|
||||||
|
imgReader.setAutoTransform(true);
|
||||||
|
imgReader.setDecideFormatFromContent(true);
|
||||||
|
|
||||||
|
const QString & itemTypeString = tr("%1 File").arg(QString(imgReader.format().toUpper()));
|
||||||
|
const QString & sizeString = QLocale().formattedDataSize(fileInfo.size());
|
||||||
|
const QString & birthTimeString = QLocale().toString(fileInfo.birthTime(), QLocale::LongFormat);
|
||||||
|
const QString & lastModifiedTimeString = QLocale().toString(fileInfo.lastModified(), QLocale::LongFormat);
|
||||||
|
const QString & imageDimensionsString = imageSize(imgReader.size());
|
||||||
|
const QString & imageRatioString = imageSizeRatio(imgReader.size());
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
appendSection(QStringLiteral("Description"), tr("Description", "Section name."));
|
||||||
|
appendSection(QStringLiteral("Origin"), tr("Origin", "Section name."));
|
||||||
|
#endif // 0
|
||||||
|
appendSection(QStringLiteral("Image"), tr("Image", "Section name."));
|
||||||
|
#if 0
|
||||||
|
appendSection(QStringLiteral("Camera"), tr("Camera", "Section name."));
|
||||||
|
appendSection(QStringLiteral("AdvancedPhoto"), tr("Advanced photo", "Section name."));
|
||||||
|
appendSection(QStringLiteral("GPS"), tr("GPS", "Section name."));
|
||||||
|
#endif // 0
|
||||||
|
appendSection(QStringLiteral("File"), tr("File", "Section name."));
|
||||||
|
|
||||||
|
appendProperty(QStringLiteral("Image"), QStringLiteral("Image.Dimensions"),
|
||||||
|
tr("Dimensions"), imageDimensionsString);
|
||||||
|
appendProperty(QStringLiteral("Image"), QStringLiteral("Image.SizeRatio"),
|
||||||
|
tr("Aspect Ratio"), imageRatioString);
|
||||||
|
|
||||||
|
appendProperty(QStringLiteral("File"), QStringLiteral("File.Name"),
|
||||||
|
tr("Name"), fileInfo.fileName());
|
||||||
|
appendProperty(QStringLiteral("File"), QStringLiteral("File.ItemType"),
|
||||||
|
tr("Item type"), itemTypeString);
|
||||||
|
appendProperty(QStringLiteral("File"), QStringLiteral("File.Path"),
|
||||||
|
tr("Folder path"), fileInfo.path());
|
||||||
|
appendProperty(QStringLiteral("File"), QStringLiteral("File.Size"),
|
||||||
|
tr("Size"), sizeString);
|
||||||
|
appendProperty(QStringLiteral("File"), QStringLiteral("File.CreatedTime"),
|
||||||
|
tr("Date Created"), birthTimeString);
|
||||||
|
appendProperty(QStringLiteral("File"), QStringLiteral("File.LastModified"),
|
||||||
|
tr("Date Modified"), lastModifiedTimeString);
|
||||||
|
}
|
||||||
|
|
||||||
|
QString MetadataModel::imageSize(const QSize &size)
|
||||||
|
{
|
||||||
|
QString imageSize;
|
||||||
|
|
||||||
|
if (size.isValid()) {
|
||||||
|
imageSize = tr("%1 x %2").arg(QString::number(size.width()), QString::number(size.height()));
|
||||||
|
} else {
|
||||||
|
imageSize = QLatin1Char('-');
|
||||||
|
}
|
||||||
|
|
||||||
|
return imageSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
int simplegcd(int a, int b) {
|
||||||
|
return b == 0 ? a : simplegcd(b, a % b);
|
||||||
|
}
|
||||||
|
|
||||||
|
QString MetadataModel::imageSizeRatio(const QSize &size)
|
||||||
|
{
|
||||||
|
if (!size.isValid()) {
|
||||||
|
return QStringLiteral("-");
|
||||||
|
}
|
||||||
|
int gcd = simplegcd(size.width(), size.height());
|
||||||
|
return tr("%1 : %2").arg(QString::number(size.width() / gcd), QString::number(size.height() / gcd));
|
||||||
|
}
|
||||||
|
|
||||||
|
bool MetadataModel::appendSection(const QString §ionKey, const QString §ionDisplayName)
|
||||||
|
{
|
||||||
|
if (m_sections.contains(sectionKey)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
m_sections.append(sectionKey);
|
||||||
|
m_sectionProperties[sectionKey] = qMakePair<QString, QList<QString> >(sectionDisplayName, {});
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool MetadataModel::appendProperty(const QString §ionKey, const QString &propertyKey, const QString &propertyDisplayName, const QString &propertyValue)
|
||||||
|
{
|
||||||
|
if (!m_sections.contains(sectionKey)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
QList<QString> & propertyList = m_sectionProperties[sectionKey].second;
|
||||||
|
if (!propertyList.contains(propertyKey)) {
|
||||||
|
propertyList.append(propertyKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
m_properties[propertyKey] = qMakePair<QString, QString>(propertyDisplayName, propertyValue);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool MetadataModel::updateProperty(const QString &propertyKey, const QString &propertyValue)
|
||||||
|
{
|
||||||
|
if (m_properties.contains(propertyKey)) {
|
||||||
|
m_properties[propertyKey].second = propertyValue;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
QModelIndex MetadataModel::index(int row, int column, const QModelIndex &parent) const
|
||||||
|
{
|
||||||
|
if (!hasIndex(row, column, parent)) {
|
||||||
|
return QModelIndex();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!parent.isValid()) {
|
||||||
|
return createIndex(row, column, RowType::SectionRow);
|
||||||
|
} else {
|
||||||
|
// internalid param: row means nth section it belongs to.
|
||||||
|
return createIndex(row, column, RowType::PropertyRow + parent.row());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
QModelIndex MetadataModel::parent(const QModelIndex &child) const
|
||||||
|
{
|
||||||
|
if (!child.isValid()) {
|
||||||
|
return QModelIndex();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (child.internalId() == RowType::SectionRow) {
|
||||||
|
return QModelIndex();
|
||||||
|
} else {
|
||||||
|
return createIndex(child.internalId() - RowType::PropertyRow, 0, SectionRow);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
int MetadataModel::rowCount(const QModelIndex &parent) const
|
||||||
|
{
|
||||||
|
if (!parent.isValid()) {
|
||||||
|
return m_sections.count();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (parent.internalId() == RowType::SectionRow) {
|
||||||
|
const QString & sectionKey = m_sections[parent.row()];
|
||||||
|
return m_sectionProperties[sectionKey].second.count();
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int MetadataModel::columnCount(const QModelIndex &) const
|
||||||
|
{
|
||||||
|
// Always key(display name) and value.
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
QVariant MetadataModel::data(const QModelIndex &index, int role) const
|
||||||
|
{
|
||||||
|
if (!index.isValid()) {
|
||||||
|
return QVariant();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (role != Qt::DisplayRole) {
|
||||||
|
return QVariant();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (index.internalId() == RowType::SectionRow) {
|
||||||
|
return (index.column() == 0) ? m_sectionProperties[m_sections[index.row()]].first
|
||||||
|
: QVariant();
|
||||||
|
} else {
|
||||||
|
int sectionIndex = index.internalId() - RowType::PropertyRow;
|
||||||
|
const QString & sectionKey = m_sections[sectionIndex];
|
||||||
|
const QList<QString> & propertyList = m_sectionProperties[sectionKey].second;
|
||||||
|
return (index.column() == 0) ? m_properties[propertyList[index.row()]].first
|
||||||
|
: m_properties[propertyList[index.row()]].second;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
QVariant MetadataModel::headerData(int section, Qt::Orientation orientation, int role) const
|
||||||
|
{
|
||||||
|
if (orientation == Qt::Vertical || role != Qt::DisplayRole) {
|
||||||
|
return QVariant();
|
||||||
|
}
|
||||||
|
|
||||||
|
return section == 0 ? tr("Property") : tr("Value");
|
||||||
|
}
|
43
app/metadatamodel.h
Normal file
43
app/metadatamodel.h
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
#ifndef METADATAMODEL_H
|
||||||
|
#define METADATAMODEL_H
|
||||||
|
|
||||||
|
#include <QAbstractItemModel>
|
||||||
|
|
||||||
|
class MetadataModel : public QAbstractItemModel
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit MetadataModel(QObject *parent = nullptr);
|
||||||
|
~MetadataModel();
|
||||||
|
|
||||||
|
void setFile(const QString & imageFilePath);
|
||||||
|
static QString imageSize(const QSize &size);
|
||||||
|
static QString imageSizeRatio(const QSize &size);
|
||||||
|
bool appendSection(const QString & sectionKey, const QString & sectionDisplayName);
|
||||||
|
bool appendProperty(const QString & sectionKey, const QString & propertyKey,
|
||||||
|
const QString & propertyDisplayName, const QString & propertyValue = QString());
|
||||||
|
bool updateProperty(const QString & propertyKey, const QString & propertyValue);
|
||||||
|
|
||||||
|
private:
|
||||||
|
enum RowType : quintptr {
|
||||||
|
SectionRow,
|
||||||
|
PropertyRow,
|
||||||
|
};
|
||||||
|
|
||||||
|
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
|
||||||
|
QModelIndex parent(const QModelIndex &child) const override;
|
||||||
|
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||||
|
int columnCount(const QModelIndex & = QModelIndex()) const override;
|
||||||
|
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||||
|
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
|
||||||
|
|
||||||
|
// [SECTION_KEY]
|
||||||
|
QList<QString> m_sections;
|
||||||
|
// {SECTION_KEY: (SECTION_DISPLAY_NAME, [PROPERTY_KEY])}
|
||||||
|
QMap<QString, QPair<QString, QList<QString> > > m_sectionProperties;
|
||||||
|
// {PROPERTY_KEY: (PROPERTY_DISPLAY_NAME, PROPERTY_VALUE)}
|
||||||
|
QMap<QString, QPair<QString, QString> > m_properties;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // METADATAMODEL_H
|
@ -2,7 +2,7 @@
|
|||||||
<component type="desktop-application">
|
<component type="desktop-application">
|
||||||
<id>net.blumia.pineapple-pictures</id>
|
<id>net.blumia.pineapple-pictures</id>
|
||||||
<metadata_license>CC0-1.0</metadata_license>
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
<project_license>GPL-3.0+</project_license>
|
<project_license>MIT</project_license>
|
||||||
<name>Pineapple Pictures</name>
|
<name>Pineapple Pictures</name>
|
||||||
<name xml:lang="zh-CN">菠萝看图</name>
|
<name xml:lang="zh-CN">菠萝看图</name>
|
||||||
<summary>Image Viewer</summary>
|
<summary>Image Viewer</summary>
|
||||||
|
1956
icons/app-icon.svg
1956
icons/app-icon.svg
File diff suppressed because it is too large
Load Diff
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 44 KiB |
@ -1,294 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!DOCTYPE TS>
|
|
||||||
<TS version="2.1">
|
|
||||||
<context>
|
|
||||||
<name>AboutDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="22"/>
|
|
||||||
<source>About</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="25"/>
|
|
||||||
<source>Launch application with image file path as argument to load the file.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="26"/>
|
|
||||||
<source>Drag and drop image file onto the window is also supported.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="27"/>
|
|
||||||
<source>Context menu option explanation:</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="31"/>
|
|
||||||
<source>Make window stay on top of all other windows.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="35"/>
|
|
||||||
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="44"/>
|
|
||||||
<source>Version: %1</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="47"/>
|
|
||||||
<source>Copyright (c) 2020 %1</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="49"/>
|
|
||||||
<source>Logo designed by %1</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="51"/>
|
|
||||||
<source>Built with Qt %1 (%2)</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="52"/>
|
|
||||||
<source>Source code</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="58"/>
|
|
||||||
<source>Contributors</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="60"/>
|
|
||||||
<source>List of contributors on GitHub</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="61"/>
|
|
||||||
<source>Thanks to all people who contributed to this project.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="65"/>
|
|
||||||
<source>Translators</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="66"/>
|
|
||||||
<source>I would like to thank the following people who volunteered to translate this application.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="131"/>
|
|
||||||
<source>&Special Thanks</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="133"/>
|
|
||||||
<source>&Third-party Libraries</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="72"/>
|
|
||||||
<source>Your Rights</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="74"/>
|
|
||||||
<source>%1 is released under the MIT License.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="75"/>
|
|
||||||
<source>This license grants people a number of freedoms:</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="76"/>
|
|
||||||
<source>You are free to use %1, for any purpose</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="77"/>
|
|
||||||
<source>You are free to distribute %1</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="78"/>
|
|
||||||
<source>You can study how %1 works and change it</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="79"/>
|
|
||||||
<source>You can distribute changed versions of %1</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="81"/>
|
|
||||||
<source>The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="109"/>
|
|
||||||
<source>Third-party Libraries used by %1</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="110"/>
|
|
||||||
<source>%1 is built on the following free software libraries:</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="129"/>
|
|
||||||
<source>&Help</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="130"/>
|
|
||||||
<source>&About</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="132"/>
|
|
||||||
<source>&License</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>GraphicsScene</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../graphicsscene.cpp" line="16"/>
|
|
||||||
<source>Drag image here</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>GraphicsView</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../graphicsview.cpp" line="254"/>
|
|
||||||
<source>File url list is empty</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../graphicsview.cpp" line="53"/>
|
|
||||||
<source>File is not a valid image</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../graphicsview.cpp" line="262"/>
|
|
||||||
<source>Image data is invalid</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../graphicsview.cpp" line="269"/>
|
|
||||||
<source>Not supported mimedata: %1</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>MainWindow</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="175"/>
|
|
||||||
<source>File url list is empty</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="408"/>
|
|
||||||
<source>&Copy</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="429"/>
|
|
||||||
<source>Copy P&ixmap</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="434"/>
|
|
||||||
<source>Copy &File Path</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="444"/>
|
|
||||||
<source>&Paste Image</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="450"/>
|
|
||||||
<source>&Paste Image File</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="30"/>
|
|
||||||
<location filename="../mainwindow.cpp" line="455"/>
|
|
||||||
<source>Stay on top</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutdialog.cpp" line="34"/>
|
|
||||||
<location filename="../mainwindow.cpp" line="462"/>
|
|
||||||
<source>Protected mode</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="469"/>
|
|
||||||
<source>Configure...</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../mainwindow.cpp" line="476"/>
|
|
||||||
<source>Help</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>SettingsDialog</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="15"/>
|
|
||||||
<source>Settings</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="20"/>
|
|
||||||
<source>Do nothing</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="21"/>
|
|
||||||
<source>Close the window</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="22"/>
|
|
||||||
<source>Toggle maximize</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="30"/>
|
|
||||||
<source>Stay on top when start-up</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../settingsdialog.cpp" line="31"/>
|
|
||||||
<source>Double-click behavior</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
|
||||||
<name>main</name>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="27"/>
|
|
||||||
<source>Pineapple Pictures</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../main.cpp" line="31"/>
|
|
||||||
<source>File list.</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
</TS>
|
|
@ -1,9 +1,3 @@
|
|||||||
#-------------------------------------------------
|
|
||||||
#
|
|
||||||
# Project created by QtCreator 2019-09-26T23:36:07
|
|
||||||
#
|
|
||||||
#-------------------------------------------------
|
|
||||||
|
|
||||||
QT += core widgets gui svg
|
QT += core widgets gui svg
|
||||||
|
|
||||||
TARGET = ppic
|
TARGET = ppic
|
||||||
@ -23,33 +17,37 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
|||||||
CONFIG += c++11 lrelease embed_translations
|
CONFIG += c++11 lrelease embed_translations
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
aboutdialog.cpp \
|
app/aboutdialog.cpp \
|
||||||
main.cpp \
|
app/main.cpp \
|
||||||
mainwindow.cpp \
|
app/mainwindow.cpp \
|
||||||
graphicsview.cpp \
|
app/graphicsview.cpp \
|
||||||
bottombuttongroup.cpp \
|
app/bottombuttongroup.cpp \
|
||||||
graphicsscene.cpp \
|
app/graphicsscene.cpp \
|
||||||
navigatorview.cpp \
|
app/navigatorview.cpp \
|
||||||
opacityhelper.cpp \
|
app/opacityhelper.cpp \
|
||||||
toolbutton.cpp \
|
app/toolbutton.cpp \
|
||||||
settings.cpp \
|
app/settings.cpp \
|
||||||
settingsdialog.cpp
|
app/settingsdialog.cpp \
|
||||||
|
app/metadatamodel.cpp \
|
||||||
|
app/metadatadialog.cpp
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
aboutdialog.h \
|
app/aboutdialog.h \
|
||||||
mainwindow.h \
|
app/mainwindow.h \
|
||||||
graphicsview.h \
|
app/graphicsview.h \
|
||||||
bottombuttongroup.h \
|
app/bottombuttongroup.h \
|
||||||
graphicsscene.h \
|
app/graphicsscene.h \
|
||||||
navigatorview.h \
|
app/navigatorview.h \
|
||||||
opacityhelper.h \
|
app/opacityhelper.h \
|
||||||
toolbutton.h \
|
app/toolbutton.h \
|
||||||
settings.h \
|
app/settings.h \
|
||||||
settingsdialog.h
|
app/settingsdialog.h \
|
||||||
|
app/metadatamodel.h \
|
||||||
|
app/metadatadialog.h
|
||||||
|
|
||||||
TRANSLATIONS = \
|
TRANSLATIONS = \
|
||||||
languages/PineapplePictures.ts \
|
translations/PineapplePictures.ts \
|
||||||
languages/PineapplePictures_zh_CN.ts
|
translations/PineapplePictures_zh_CN.ts
|
||||||
|
|
||||||
# Default rules for deployment.
|
# Default rules for deployment.
|
||||||
qnx: target.path = /tmp/$${TARGET}/bin
|
qnx: target.path = /tmp/$${TARGET}/bin
|
||||||
|
423
translations/PineapplePictures.ts
Normal file
423
translations/PineapplePictures.ts
Normal file
@ -0,0 +1,423 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE TS>
|
||||||
|
<TS version="2.1">
|
||||||
|
<context>
|
||||||
|
<name>AboutDialog</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="22"/>
|
||||||
|
<source>About</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="25"/>
|
||||||
|
<source>Launch application with image file path as argument to load the file.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="26"/>
|
||||||
|
<source>Drag and drop image file onto the window is also supported.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="27"/>
|
||||||
|
<source>Context menu option explanation:</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="31"/>
|
||||||
|
<source>Make window stay on top of all other windows.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="35"/>
|
||||||
|
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="44"/>
|
||||||
|
<source>Version: %1</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="47"/>
|
||||||
|
<source>Copyright (c) 2020 %1</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="49"/>
|
||||||
|
<source>Logo designed by %1</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="51"/>
|
||||||
|
<source>Built with Qt %1 (%2)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="52"/>
|
||||||
|
<source>Source code</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="58"/>
|
||||||
|
<source>Contributors</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="60"/>
|
||||||
|
<source>List of contributors on GitHub</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="61"/>
|
||||||
|
<source>Thanks to all people who contributed to this project.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="65"/>
|
||||||
|
<source>Translators</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="66"/>
|
||||||
|
<source>I would like to thank the following people who volunteered to translate this application.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="131"/>
|
||||||
|
<source>&Special Thanks</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="133"/>
|
||||||
|
<source>&Third-party Libraries</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="72"/>
|
||||||
|
<source>Your Rights</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="74"/>
|
||||||
|
<source>%1 is released under the MIT License.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="75"/>
|
||||||
|
<source>This license grants people a number of freedoms:</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="76"/>
|
||||||
|
<source>You are free to use %1, for any purpose</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="77"/>
|
||||||
|
<source>You are free to distribute %1</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="78"/>
|
||||||
|
<source>You can study how %1 works and change it</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="79"/>
|
||||||
|
<source>You can distribute changed versions of %1</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="81"/>
|
||||||
|
<source>The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="109"/>
|
||||||
|
<source>Third-party Libraries used by %1</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="110"/>
|
||||||
|
<source>%1 is built on the following free software libraries:</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="129"/>
|
||||||
|
<source>&Help</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="130"/>
|
||||||
|
<source>&About</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="132"/>
|
||||||
|
<source>&License</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>GraphicsScene</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/graphicsscene.cpp" line="16"/>
|
||||||
|
<source>Drag image here</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>GraphicsView</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/graphicsview.cpp" line="261"/>
|
||||||
|
<source>File url list is empty</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/graphicsview.cpp" line="53"/>
|
||||||
|
<source>File is not a valid image</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/graphicsview.cpp" line="55"/>
|
||||||
|
<location filename="../app/graphicsview.cpp" line="59"/>
|
||||||
|
<source>Image data is invalid or currently unsupported</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/graphicsview.cpp" line="269"/>
|
||||||
|
<source>Image data is invalid</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/graphicsview.cpp" line="276"/>
|
||||||
|
<source>Not supported mimedata: %1</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>MainWindow</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/mainwindow.cpp" line="178"/>
|
||||||
|
<source>File url list is empty</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/mainwindow.cpp" line="417"/>
|
||||||
|
<source>&Copy</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/mainwindow.cpp" line="438"/>
|
||||||
|
<source>Copy P&ixmap</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/mainwindow.cpp" line="443"/>
|
||||||
|
<source>Copy &File Path</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/mainwindow.cpp" line="453"/>
|
||||||
|
<source>&Paste Image</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/mainwindow.cpp" line="459"/>
|
||||||
|
<source>&Paste Image File</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/mainwindow.cpp" line="492"/>
|
||||||
|
<source>Properties</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="30"/>
|
||||||
|
<location filename="../app/mainwindow.cpp" line="464"/>
|
||||||
|
<source>Stay on top</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="34"/>
|
||||||
|
<location filename="../app/mainwindow.cpp" line="471"/>
|
||||||
|
<source>Protected mode</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/mainwindow.cpp" line="478"/>
|
||||||
|
<source>Configure...</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/mainwindow.cpp" line="485"/>
|
||||||
|
<source>Help</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>MetadataDialog</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatadialog.cpp" line="75"/>
|
||||||
|
<source>Image Metadata</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>MetadataModel</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="36"/>
|
||||||
|
<source>Origin</source>
|
||||||
|
<comment>Section name.</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="38"/>
|
||||||
|
<source>Image</source>
|
||||||
|
<comment>Section name.</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="44"/>
|
||||||
|
<source>File</source>
|
||||||
|
<comment>Section name.</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="40"/>
|
||||||
|
<source>Camera</source>
|
||||||
|
<comment>Section name.</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="27"/>
|
||||||
|
<source>%1 File</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="35"/>
|
||||||
|
<source>Description</source>
|
||||||
|
<comment>Section name.</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="41"/>
|
||||||
|
<source>Advanced photo</source>
|
||||||
|
<comment>Section name.</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="42"/>
|
||||||
|
<source>GPS</source>
|
||||||
|
<comment>Section name.</comment>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="47"/>
|
||||||
|
<source>Dimensions</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="49"/>
|
||||||
|
<source>Aspect Ratio</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="52"/>
|
||||||
|
<source>Name</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="54"/>
|
||||||
|
<source>Item type</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="56"/>
|
||||||
|
<source>Folder path</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="58"/>
|
||||||
|
<source>Size</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="60"/>
|
||||||
|
<source>Date Created</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="62"/>
|
||||||
|
<source>Date Modified</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="70"/>
|
||||||
|
<source>%1 x %2</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="88"/>
|
||||||
|
<source>%1 : %2</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="204"/>
|
||||||
|
<source>Property</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="204"/>
|
||||||
|
<source>Value</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>SettingsDialog</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/settingsdialog.cpp" line="15"/>
|
||||||
|
<source>Settings</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/settingsdialog.cpp" line="20"/>
|
||||||
|
<source>Do nothing</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/settingsdialog.cpp" line="21"/>
|
||||||
|
<source>Close the window</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/settingsdialog.cpp" line="22"/>
|
||||||
|
<source>Toggle maximize</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/settingsdialog.cpp" line="30"/>
|
||||||
|
<source>Stay on top when start-up</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/settingsdialog.cpp" line="31"/>
|
||||||
|
<source>Double-click behavior</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>main</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/main.cpp" line="27"/>
|
||||||
|
<source>Pineapple Pictures</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/main.cpp" line="31"/>
|
||||||
|
<source>File list.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
</TS>
|
@ -4,157 +4,157 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>AboutDialog</name>
|
<name>AboutDialog</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="22"/>
|
<location filename="../app/aboutdialog.cpp" line="22"/>
|
||||||
<source>About</source>
|
<source>About</source>
|
||||||
<translation>关于</translation>
|
<translation>关于</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="25"/>
|
<location filename="../app/aboutdialog.cpp" line="25"/>
|
||||||
<source>Launch application with image file path as argument to load the file.</source>
|
<source>Launch application with image file path as argument to load the file.</source>
|
||||||
<translation>以图片文件的路径作为参数运行程序即可直接打开图片文件。</translation>
|
<translation>以图片文件的路径作为参数运行程序即可直接打开图片文件。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="26"/>
|
<location filename="../app/aboutdialog.cpp" line="26"/>
|
||||||
<source>Drag and drop image file onto the window is also supported.</source>
|
<source>Drag and drop image file onto the window is also supported.</source>
|
||||||
<translation>也支持拖放图片文件到窗口内来加载图片。</translation>
|
<translation>也支持拖放图片文件到窗口内来加载图片。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="27"/>
|
<location filename="../app/aboutdialog.cpp" line="27"/>
|
||||||
<source>Context menu option explanation:</source>
|
<source>Context menu option explanation:</source>
|
||||||
<translation>菜单项说明:</translation>
|
<translation>菜单项说明:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="31"/>
|
<location filename="../app/aboutdialog.cpp" line="31"/>
|
||||||
<source>Make window stay on top of all other windows.</source>
|
<source>Make window stay on top of all other windows.</source>
|
||||||
<translation>使窗口始终至于其它非置顶窗口上方。</translation>
|
<translation>使窗口始终至于其它非置顶窗口上方。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="35"/>
|
<location filename="../app/aboutdialog.cpp" line="35"/>
|
||||||
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
|
<source>Avoid close window accidentally. (eg. by double clicking the window)</source>
|
||||||
<translation>避免窗口意外关闭。(如:不小心双击了窗口触发了关闭窗口行为)</translation>
|
<translation>避免窗口意外关闭。(如:不小心双击了窗口触发了关闭窗口行为)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="44"/>
|
<location filename="../app/aboutdialog.cpp" line="44"/>
|
||||||
<source>Version: %1</source>
|
<source>Version: %1</source>
|
||||||
<translation>版本: %1</translation>
|
<translation>版本: %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="47"/>
|
<location filename="../app/aboutdialog.cpp" line="47"/>
|
||||||
<source>Copyright (c) 2020 %1</source>
|
<source>Copyright (c) 2020 %1</source>
|
||||||
<translation>版权所有 (c) 2020 %1</translation>
|
<translation>版权所有 (c) 2020 %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="49"/>
|
<location filename="../app/aboutdialog.cpp" line="49"/>
|
||||||
<source>Logo designed by %1</source>
|
<source>Logo designed by %1</source>
|
||||||
<translation>Logo 由 %1 设计</translation>
|
<translation>Logo 由 %1 设计</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="51"/>
|
<location filename="../app/aboutdialog.cpp" line="51"/>
|
||||||
<source>Built with Qt %1 (%2)</source>
|
<source>Built with Qt %1 (%2)</source>
|
||||||
<translation>使用 Qt %1 (%2) 进行构建</translation>
|
<translation>使用 Qt %1 (%2) 进行构建</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="52"/>
|
<location filename="../app/aboutdialog.cpp" line="52"/>
|
||||||
<source>Source code</source>
|
<source>Source code</source>
|
||||||
<translation>源代码</translation>
|
<translation>源代码</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="58"/>
|
<location filename="../app/aboutdialog.cpp" line="58"/>
|
||||||
<source>Contributors</source>
|
<source>Contributors</source>
|
||||||
<translation>贡献者</translation>
|
<translation>贡献者</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="60"/>
|
<location filename="../app/aboutdialog.cpp" line="60"/>
|
||||||
<source>List of contributors on GitHub</source>
|
<source>List of contributors on GitHub</source>
|
||||||
<translation>GitHub 上的贡献者列表</translation>
|
<translation>GitHub 上的贡献者列表</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="61"/>
|
<location filename="../app/aboutdialog.cpp" line="61"/>
|
||||||
<source>Thanks to all people who contributed to this project.</source>
|
<source>Thanks to all people who contributed to this project.</source>
|
||||||
<translation>感谢所有参与此项目的朋友。</translation>
|
<translation>感谢所有参与此项目的朋友。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="65"/>
|
<location filename="../app/aboutdialog.cpp" line="65"/>
|
||||||
<source>Translators</source>
|
<source>Translators</source>
|
||||||
<translation>翻译者</translation>
|
<translation>翻译者</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="66"/>
|
<location filename="../app/aboutdialog.cpp" line="66"/>
|
||||||
<source>I would like to thank the following people who volunteered to translate this application.</source>
|
<source>I would like to thank the following people who volunteered to translate this application.</source>
|
||||||
<translation>我想要感谢下列自愿参与翻译此应用程序的朋友。</translation>
|
<translation>我想要感谢下列自愿参与翻译此应用程序的朋友。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="131"/>
|
<location filename="../app/aboutdialog.cpp" line="131"/>
|
||||||
<source>&Special Thanks</source>
|
<source>&Special Thanks</source>
|
||||||
<translation>致谢(&S)</translation>
|
<translation>致谢(&S)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="133"/>
|
<location filename="../app/aboutdialog.cpp" line="133"/>
|
||||||
<source>&Third-party Libraries</source>
|
<source>&Third-party Libraries</source>
|
||||||
<translation>第三方程序库(&T)</translation>
|
<translation>第三方程序库(&T)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="72"/>
|
<location filename="../app/aboutdialog.cpp" line="72"/>
|
||||||
<source>Your Rights</source>
|
<source>Your Rights</source>
|
||||||
<translation>用户的权利</translation>
|
<translation>用户的权利</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="74"/>
|
<location filename="../app/aboutdialog.cpp" line="74"/>
|
||||||
<source>%1 is released under the MIT License.</source>
|
<source>%1 is released under the MIT License.</source>
|
||||||
<translation>%1 是在 MIT 许可协议下发布的。</translation>
|
<translation>%1 是在 MIT 许可协议下发布的。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="75"/>
|
<location filename="../app/aboutdialog.cpp" line="75"/>
|
||||||
<source>This license grants people a number of freedoms:</source>
|
<source>This license grants people a number of freedoms:</source>
|
||||||
<translation>此许可证赋予人们以下自由的权利:</translation>
|
<translation>此许可证赋予人们以下自由的权利:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="76"/>
|
<location filename="../app/aboutdialog.cpp" line="76"/>
|
||||||
<source>You are free to use %1, for any purpose</source>
|
<source>You are free to use %1, for any purpose</source>
|
||||||
<translation>任何人都可以为了任何目的自由地使用 %1</translation>
|
<translation>任何人都可以为了任何目的自由地使用 %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="77"/>
|
<location filename="../app/aboutdialog.cpp" line="77"/>
|
||||||
<source>You are free to distribute %1</source>
|
<source>You are free to distribute %1</source>
|
||||||
<translation>任何人都可以自由地分发 %1</translation>
|
<translation>任何人都可以自由地分发 %1</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="78"/>
|
<location filename="../app/aboutdialog.cpp" line="78"/>
|
||||||
<source>You can study how %1 works and change it</source>
|
<source>You can study how %1 works and change it</source>
|
||||||
<translation>任何人都可以自由地研究 %1 的工作原理并对其进行修改</translation>
|
<translation>任何人都可以自由地研究 %1 的工作原理并对其进行修改</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="79"/>
|
<location filename="../app/aboutdialog.cpp" line="79"/>
|
||||||
<source>You can distribute changed versions of %1</source>
|
<source>You can distribute changed versions of %1</source>
|
||||||
<translation>任何人都可以自由地分发修改过的 %1 版本</translation>
|
<translation>任何人都可以自由地分发修改过的 %1 版本</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="81"/>
|
<location filename="../app/aboutdialog.cpp" line="81"/>
|
||||||
<source>The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.</source>
|
<source>The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.</source>
|
||||||
<translation>此软件通过 MIT 许可证赋予用户上述自由,任何人无权剥夺。</translation>
|
<translation>此软件通过 MIT 许可证赋予用户上述自由,任何人无权剥夺。</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="109"/>
|
<location filename="../app/aboutdialog.cpp" line="109"/>
|
||||||
<source>Third-party Libraries used by %1</source>
|
<source>Third-party Libraries used by %1</source>
|
||||||
<translation>%1 使用的第三方程序库</translation>
|
<translation>%1 使用的第三方程序库</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="110"/>
|
<location filename="../app/aboutdialog.cpp" line="110"/>
|
||||||
<source>%1 is built on the following free software libraries:</source>
|
<source>%1 is built on the following free software libraries:</source>
|
||||||
<translation>%1 采用了下列自由软件程序库进行构建:</translation>
|
<translation>%1 采用了下列自由软件程序库进行构建:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="129"/>
|
<location filename="../app/aboutdialog.cpp" line="129"/>
|
||||||
<source>&Help</source>
|
<source>&Help</source>
|
||||||
<translation>帮助(&H)</translation>
|
<translation>帮助(&H)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="130"/>
|
<location filename="../app/aboutdialog.cpp" line="130"/>
|
||||||
<source>&About</source>
|
<source>&About</source>
|
||||||
<translation>关于(&A)</translation>
|
<translation>关于(&A)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="132"/>
|
<location filename="../app/aboutdialog.cpp" line="132"/>
|
||||||
<source>&License</source>
|
<source>&License</source>
|
||||||
<translation>软件许可证(&L)</translation>
|
<translation>软件许可证(&L)</translation>
|
||||||
</message>
|
</message>
|
||||||
@ -162,7 +162,7 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>GraphicsScene</name>
|
<name>GraphicsScene</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../graphicsscene.cpp" line="16"/>
|
<location filename="../app/graphicsscene.cpp" line="16"/>
|
||||||
<source>Drag image here</source>
|
<source>Drag image here</source>
|
||||||
<translation>拖放图片至此</translation>
|
<translation>拖放图片至此</translation>
|
||||||
</message>
|
</message>
|
||||||
@ -170,22 +170,28 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>GraphicsView</name>
|
<name>GraphicsView</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../graphicsview.cpp" line="254"/>
|
<location filename="../app/graphicsview.cpp" line="261"/>
|
||||||
<source>File url list is empty</source>
|
<source>File url list is empty</source>
|
||||||
<translation>文件 URL 列表为空</translation>
|
<translation>文件 URL 列表为空</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../graphicsview.cpp" line="53"/>
|
<location filename="../app/graphicsview.cpp" line="53"/>
|
||||||
<source>File is not a valid image</source>
|
<source>File is not a valid image</source>
|
||||||
<translation>文件不是有效的图片文件</translation>
|
<translation>文件不是有效的图片文件</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../graphicsview.cpp" line="262"/>
|
<location filename="../app/graphicsview.cpp" line="55"/>
|
||||||
|
<location filename="../app/graphicsview.cpp" line="59"/>
|
||||||
|
<source>Image data is invalid or currently unsupported</source>
|
||||||
|
<translation>图像数据无效或暂未支持</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/graphicsview.cpp" line="269"/>
|
||||||
<source>Image data is invalid</source>
|
<source>Image data is invalid</source>
|
||||||
<translation>图片数据无效</translation>
|
<translation>图片数据无效</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../graphicsview.cpp" line="269"/>
|
<location filename="../app/graphicsview.cpp" line="276"/>
|
||||||
<source>Not supported mimedata: %1</source>
|
<source>Not supported mimedata: %1</source>
|
||||||
<translation>不受支持的 MimeData 格式:%1</translation>
|
<translation>不受支持的 MimeData 格式:%1</translation>
|
||||||
</message>
|
</message>
|
||||||
@ -193,87 +199,210 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>MainWindow</name>
|
<name>MainWindow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="175"/>
|
<location filename="../app/mainwindow.cpp" line="178"/>
|
||||||
<source>File url list is empty</source>
|
<source>File url list is empty</source>
|
||||||
<translation>文件 URL 列表为空</translation>
|
<translation>文件 URL 列表为空</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="408"/>
|
<location filename="../app/mainwindow.cpp" line="417"/>
|
||||||
<source>&Copy</source>
|
<source>&Copy</source>
|
||||||
<translation>复制(&C)</translation>
|
<translation>复制(&C)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="429"/>
|
<location filename="../app/mainwindow.cpp" line="438"/>
|
||||||
<source>Copy P&ixmap</source>
|
<source>Copy P&ixmap</source>
|
||||||
<translation>复制位图(&I)</translation>
|
<translation>复制位图(&I)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="434"/>
|
<location filename="../app/mainwindow.cpp" line="443"/>
|
||||||
<source>Copy &File Path</source>
|
<source>Copy &File Path</source>
|
||||||
<translation>复制文件路径(&F)</translation>
|
<translation>复制文件路径(&F)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="444"/>
|
<location filename="../app/mainwindow.cpp" line="453"/>
|
||||||
<source>&Paste Image</source>
|
<source>&Paste Image</source>
|
||||||
<translation>粘贴图像(&P)</translation>
|
<translation>粘贴图像(&P)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="450"/>
|
<location filename="../app/mainwindow.cpp" line="459"/>
|
||||||
<source>&Paste Image File</source>
|
<source>&Paste Image File</source>
|
||||||
<translation>粘贴图像文件(&P)</translation>
|
<translation>粘贴图像文件(&P)</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="30"/>
|
<location filename="../app/mainwindow.cpp" line="492"/>
|
||||||
<location filename="../mainwindow.cpp" line="455"/>
|
<source>Properties</source>
|
||||||
|
<translation>属性</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/aboutdialog.cpp" line="30"/>
|
||||||
|
<location filename="../app/mainwindow.cpp" line="464"/>
|
||||||
<source>Stay on top</source>
|
<source>Stay on top</source>
|
||||||
<translation>总在最前</translation>
|
<translation>总在最前</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutdialog.cpp" line="34"/>
|
<location filename="../app/aboutdialog.cpp" line="34"/>
|
||||||
<location filename="../mainwindow.cpp" line="462"/>
|
<location filename="../app/mainwindow.cpp" line="471"/>
|
||||||
<source>Protected mode</source>
|
<source>Protected mode</source>
|
||||||
<translation>保护模式</translation>
|
<translation>保护模式</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="469"/>
|
<location filename="../app/mainwindow.cpp" line="478"/>
|
||||||
<source>Configure...</source>
|
<source>Configure...</source>
|
||||||
<translation>设置...</translation>
|
<translation>设置...</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../mainwindow.cpp" line="476"/>
|
<location filename="../app/mainwindow.cpp" line="485"/>
|
||||||
<source>Help</source>
|
<source>Help</source>
|
||||||
<translation>帮助</translation>
|
<translation>帮助</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>MetadataDialog</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatadialog.cpp" line="75"/>
|
||||||
|
<source>Image Metadata</source>
|
||||||
|
<translation>图像元信息</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>MetadataModel</name>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="36"/>
|
||||||
|
<source>Origin</source>
|
||||||
|
<comment>Section name.</comment>
|
||||||
|
<translation>来源</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="38"/>
|
||||||
|
<source>Image</source>
|
||||||
|
<comment>Section name.</comment>
|
||||||
|
<translation>图像</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="44"/>
|
||||||
|
<source>File</source>
|
||||||
|
<comment>Section name.</comment>
|
||||||
|
<translation>文件</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="40"/>
|
||||||
|
<source>Camera</source>
|
||||||
|
<comment>Section name.</comment>
|
||||||
|
<translation>照相机</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="27"/>
|
||||||
|
<source>%1 File</source>
|
||||||
|
<translation>%1 文件</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="35"/>
|
||||||
|
<source>Description</source>
|
||||||
|
<comment>Section name.</comment>
|
||||||
|
<translation>说明</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="41"/>
|
||||||
|
<source>Advanced photo</source>
|
||||||
|
<comment>Section name.</comment>
|
||||||
|
<translation>高级照片</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="42"/>
|
||||||
|
<source>GPS</source>
|
||||||
|
<comment>Section name.</comment>
|
||||||
|
<translation>GPS</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="47"/>
|
||||||
|
<source>Dimensions</source>
|
||||||
|
<translation>分辨率</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="49"/>
|
||||||
|
<source>Aspect Ratio</source>
|
||||||
|
<translation>纵横比</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="52"/>
|
||||||
|
<source>Name</source>
|
||||||
|
<translation>名称</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="54"/>
|
||||||
|
<source>Item type</source>
|
||||||
|
<translation>项目类型</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="56"/>
|
||||||
|
<source>Folder path</source>
|
||||||
|
<translation>文件夹路径</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="58"/>
|
||||||
|
<source>Size</source>
|
||||||
|
<translation>大小</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="60"/>
|
||||||
|
<source>Date Created</source>
|
||||||
|
<translation>创建日期</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="62"/>
|
||||||
|
<source>Date Modified</source>
|
||||||
|
<translation>修改日期</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="70"/>
|
||||||
|
<source>%1 x %2</source>
|
||||||
|
<translation>%1 x %2</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="88"/>
|
||||||
|
<source>%1 : %2</source>
|
||||||
|
<translation>%1 : %2</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="204"/>
|
||||||
|
<source>Property</source>
|
||||||
|
<translation>属性</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../app/metadatamodel.cpp" line="204"/>
|
||||||
|
<source>Value</source>
|
||||||
|
<translation>值</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>SettingsDialog</name>
|
<name>SettingsDialog</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settingsdialog.cpp" line="15"/>
|
<location filename="../app/settingsdialog.cpp" line="15"/>
|
||||||
<source>Settings</source>
|
<source>Settings</source>
|
||||||
<translation>设定</translation>
|
<translation>设定</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settingsdialog.cpp" line="20"/>
|
<location filename="../app/settingsdialog.cpp" line="20"/>
|
||||||
<source>Do nothing</source>
|
<source>Do nothing</source>
|
||||||
<translation>什么也不做</translation>
|
<translation>什么也不做</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settingsdialog.cpp" line="21"/>
|
<location filename="../app/settingsdialog.cpp" line="21"/>
|
||||||
<source>Close the window</source>
|
<source>Close the window</source>
|
||||||
<translation>关闭窗口</translation>
|
<translation>关闭窗口</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settingsdialog.cpp" line="22"/>
|
<location filename="../app/settingsdialog.cpp" line="22"/>
|
||||||
<source>Toggle maximize</source>
|
<source>Toggle maximize</source>
|
||||||
<translation>最大化窗口</translation>
|
<translation>最大化窗口</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settingsdialog.cpp" line="30"/>
|
<location filename="../app/settingsdialog.cpp" line="30"/>
|
||||||
<source>Stay on top when start-up</source>
|
<source>Stay on top when start-up</source>
|
||||||
<translation>启动时保持窗口总在最前</translation>
|
<translation>启动时保持窗口总在最前</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../settingsdialog.cpp" line="31"/>
|
<location filename="../app/settingsdialog.cpp" line="31"/>
|
||||||
<source>Double-click behavior</source>
|
<source>Double-click behavior</source>
|
||||||
<translation>双击时的行为</translation>
|
<translation>双击时的行为</translation>
|
||||||
</message>
|
</message>
|
||||||
@ -281,12 +410,12 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>main</name>
|
<name>main</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../main.cpp" line="27"/>
|
<location filename="../app/main.cpp" line="27"/>
|
||||||
<source>Pineapple Pictures</source>
|
<source>Pineapple Pictures</source>
|
||||||
<translation>菠萝看图</translation>
|
<translation>菠萝看图</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../main.cpp" line="31"/>
|
<location filename="../app/main.cpp" line="31"/>
|
||||||
<source>File list.</source>
|
<source>File list.</source>
|
||||||
<translation>文件列表。</translation>
|
<translation>文件列表。</translation>
|
||||||
</message>
|
</message>
|
Reference in New Issue
Block a user