From 1a7f52b85ca859b337517e48c60fa1ffa54c340d Mon Sep 17 00:00:00 2001 From: zhangjiaping Date: Mon, 18 Jan 2021 18:53:29 +0800 Subject: [PATCH] fix(frontend): Add 'Show More' label to hide items when resultList is too lang. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description: 添加‘显示更多’和‘收起’按钮 Log: 添加‘显示更多’和‘收起’按钮 Bug: - --- libsearch/index/file-searcher.cpp | 6 +- src/content-widget.cpp | 154 ++++++++++++++++++++++++++---- src/content-widget.h | 14 ++- src/control/control.pri | 2 + src/control/search-list-view.cpp | 15 ++- src/control/search-list-view.h | 3 +- src/control/show-more-label.cpp | 99 +++++++++++++++++++ src/control/show-more-label.h | 39 ++++++++ src/settings-widget.cpp | 9 +- translations/ukui-search/bo.ts | 137 +++++++++++++++++++------- translations/ukui-search/tr.ts | 137 +++++++++++++++++++------- translations/ukui-search/zh_CN.ts | 137 +++++++++++++++++++------- 12 files changed, 630 insertions(+), 122 deletions(-) create mode 100644 src/control/show-more-label.cpp create mode 100644 src/control/show-more-label.h diff --git a/libsearch/index/file-searcher.cpp b/libsearch/index/file-searcher.cpp index e469915..a6dbedb 100644 --- a/libsearch/index/file-searcher.cpp +++ b/libsearch/index/file-searcher.cpp @@ -50,7 +50,7 @@ void FileSearcher::onKeywordSearch(QString keyword,QQueue *searchResult int num = 5; int resultCount = 0; int total = 0; - while(total<20) + while(total<40) { resultCount = keywordSearchfile(uniqueSymbol1,keyword,"0",1,begin,num); if(resultCount == 0 || resultCount == -1) @@ -68,7 +68,7 @@ void FileSearcher::onKeywordSearch(QString keyword,QQueue *searchResult int num = 5; int resultCount = 0; int total = 0; - while(total<20) + while(total<40) { resultCount = keywordSearchfile(uniqueSymbol2,keyword,"1",1,begin,num); if(resultCount == 0 || resultCount == -1) @@ -87,7 +87,7 @@ void FileSearcher::onKeywordSearch(QString keyword,QQueue *searchResult int resultCount = 0; int total = 0; - while(total<20) + while(total<40) { keywordSearchContent(uniqueSymbol3,keyword,begin,num); if(resultCount == 0 || resultCount == -1) diff --git a/src/content-widget.cpp b/src/content-widget.cpp index e3f334c..f878a75 100644 --- a/src/content-widget.cpp +++ b/src/content-widget.cpp @@ -121,21 +121,83 @@ void ContentWidget::initListView() m_bestTitleLabel->setStyleSheet("QLabel{background: rgba(0,0,0,0.1);}"); m_bestTitleLabel->setText(getTitleName(SearchItem::SearchType::Best)); + m_appShowMoreLabel = new ShowMoreLabel(m_resultList); + m_settingShowMoreLabel = new ShowMoreLabel(m_resultList); + m_dirShowMoreLabel = new ShowMoreLabel(m_resultList); + m_fileShowMoreLabel = new ShowMoreLabel(m_resultList); + m_contentShowMoreLabel = new ShowMoreLabel(m_resultList); + m_listLyt->addWidget(m_bestTitleLabel); m_listLyt->addWidget(m_bestListView); m_listLyt->addWidget(m_appTitleLabel); m_listLyt->addWidget(m_appListView); + m_listLyt->addWidget(m_appShowMoreLabel); m_listLyt->addWidget(m_settingTitleLabel); m_listLyt->addWidget(m_settingListView); + m_listLyt->addWidget(m_settingShowMoreLabel); m_listLyt->addWidget(m_dirTitleLabel); m_listLyt->addWidget(m_dirListView); + m_listLyt->addWidget(m_dirShowMoreLabel); m_listLyt->addWidget(m_fileTitleLabel); m_listLyt->addWidget(m_fileListView); + m_listLyt->addWidget(m_fileShowMoreLabel); m_listLyt->addWidget(m_contentTitleLabel); m_listLyt->addWidget(m_contentListView); + m_listLyt->addWidget(m_contentShowMoreLabel); this->hideListView(); m_resultList->setFixedHeight(0); + + connect(m_appShowMoreLabel, &ShowMoreLabel::showMoreClicked, this, [ = ]() { + m_appListView->setList(m_appList); + m_appShowMoreLabel->stopLoading(); + this->resetListHeight(); + }); + connect(m_appShowMoreLabel, &ShowMoreLabel::retractClicked, this, [ = ]() { + m_appListView->setList(m_appList.mid(0, 5)); + m_appShowMoreLabel->stopLoading(); + this->resetListHeight(); + }); + connect(m_settingShowMoreLabel, &ShowMoreLabel::showMoreClicked, this, [ = ]() { + m_settingListView->setList(m_settingList); + m_settingShowMoreLabel->stopLoading(); + this->resetListHeight(); + }); + connect(m_settingShowMoreLabel, &ShowMoreLabel::retractClicked, this, [ = ]() { + m_settingListView->setList(m_settingList.mid(0, 5)); + m_settingShowMoreLabel->stopLoading(); + this->resetListHeight(); + }); + connect(m_dirShowMoreLabel, &ShowMoreLabel::showMoreClicked, this, [ = ]() { + m_dirListView->setList(m_dirList); + m_dirShowMoreLabel->stopLoading(); + this->resetListHeight(); + }); + connect(m_dirShowMoreLabel, &ShowMoreLabel::retractClicked, this, [ = ]() { + m_dirListView->setList(m_dirList.mid(0, 5)); + m_dirShowMoreLabel->stopLoading(); + this->resetListHeight(); + }); + connect(m_fileShowMoreLabel, &ShowMoreLabel::showMoreClicked, this, [ = ]() { + m_fileListView->setList(m_fileList); + m_fileShowMoreLabel->stopLoading(); + this->resetListHeight(); + }); + connect(m_fileShowMoreLabel, &ShowMoreLabel::retractClicked, this, [ = ]() { + m_fileListView->setList(m_fileList.mid(0, 5)); + m_fileShowMoreLabel->stopLoading(); + this->resetListHeight(); + }); + connect(m_contentShowMoreLabel, &ShowMoreLabel::showMoreClicked, this, [ = ]() { + m_contentListView->setList(m_contentList); + m_contentShowMoreLabel->stopLoading(); + this->resetListHeight(); + }); + connect(m_contentShowMoreLabel, &ShowMoreLabel::retractClicked, this, [ = ]() { + m_contentListView->setList(m_contentList.mid(0, 5)); + m_contentShowMoreLabel->stopLoading(); + this->resetListHeight(); + }); } /** @@ -147,14 +209,19 @@ void ContentWidget::hideListView() m_bestListView->hide(); m_appTitleLabel->hide(); m_appListView->hide(); + m_appShowMoreLabel->hide(); m_settingTitleLabel->hide(); m_settingListView->hide(); + m_settingShowMoreLabel->hide(); m_dirTitleLabel->hide(); m_dirListView->hide(); + m_dirShowMoreLabel->hide(); m_fileTitleLabel->hide(); m_fileListView->hide(); + m_fileShowMoreLabel->hide(); m_contentTitleLabel->hide(); m_contentListView->hide(); + m_contentShowMoreLabel->hide(); } /** @@ -163,8 +230,8 @@ void ContentWidget::hideListView() */ void ContentWidget::setupConnect(SearchListView * listview) { connect(listview, &SearchListView::currentRowChanged, this, [ = ](const int& type, const QString& path) { - if(type == SearchItem::SearchType::Contents && !m_contentList.isEmpty()) { - m_detailView->setContent(m_contentList.at(listview->currentIndex().row()), m_keyword); + if(type == SearchItem::SearchType::Contents && !m_contentDetailList.isEmpty()) { + m_detailView->setContent(m_contentDetailList.at(listview->currentIndex().row()), m_keyword); } m_detailView->setupWidget(type, path); listview->is_current_list = true; @@ -193,22 +260,37 @@ void ContentWidget::resetListHeight() if (! m_appListView->isHidden) { height += m_appTitleLabel->height(); height += m_appListView->height(); + if (m_appShowMoreLabel->isVisible()) { + height += m_appShowMoreLabel->height(); + } } if (! m_settingListView->isHidden) { height += m_settingTitleLabel->height(); height += m_settingListView->height(); + if (m_settingShowMoreLabel->isVisible()) { + height += m_settingShowMoreLabel->height(); + } } if (! m_fileListView->isHidden) { height += m_fileTitleLabel->height(); height += m_fileListView->height(); + if (m_fileShowMoreLabel->isVisible()) { + height += m_fileShowMoreLabel->height(); + } } if (! m_dirListView->isHidden) { height += m_dirTitleLabel->height(); height += m_dirListView->height(); + if (m_dirShowMoreLabel->isVisible()) { + height += m_dirShowMoreLabel->height(); + } } if (! m_contentListView->isHidden) { height += m_contentTitleLabel->height(); height += m_contentListView->height(); + if (m_contentShowMoreLabel->isVisible()) { + height += m_contentShowMoreLabel->height(); + } } m_resultList->setFixedHeight(height); } @@ -301,30 +383,35 @@ void ContentWidget::refreshSearchList(const QVector& lists) { if (m_fileListView) { m_fileListView->hide(); m_fileTitleLabel->hide(); + m_fileShowMoreLabel->hide(); m_fileListView->isHidden = true; m_fileListView->clear(); } if (m_dirListView) { m_dirListView->hide(); m_dirTitleLabel->hide(); + m_dirShowMoreLabel->hide(); m_dirListView->isHidden = true; m_dirListView->clear(); } if (m_contentListView) { m_contentListView->hide(); m_contentTitleLabel->hide(); + m_contentShowMoreLabel->hide(); m_contentListView->isHidden = true; m_contentListView->clear(); } if (m_appListView) { m_appListView->hide(); m_appTitleLabel->hide(); + m_appShowMoreLabel->hide(); m_appListView->isHidden = true; m_appListView->clear(); } if (m_settingListView) { m_settingListView->hide(); m_settingTitleLabel->hide(); + m_settingShowMoreLabel->hide(); m_settingListView->isHidden = true; m_settingListView->clear(); } @@ -337,25 +424,44 @@ void ContentWidget::refreshSearchList(const QVector& lists) { m_resultList->setFixedHeight(0); m_detailView->clearLayout(); + if (! m_appList.isEmpty()) + m_appList.clear(); + if (! m_settingList.isEmpty()) + m_settingList.clear(); + if (! m_dirList.isEmpty()) + m_dirList.clear(); + if (! m_fileList.isEmpty()) + m_fileList.clear(); + if (! m_contentList.isEmpty()) + m_contentList.clear(); + if (!lists.at(0).isEmpty()) { + m_appList = lists.at(0); qDebug()<<"Append a best item into list: "<show(); m_appTitleLabel->show(); m_appListView->isHidden = false; - m_appListView->appendList(lists.at(0)); + if (m_appList.length() <= 5) { + m_appListView->setList(m_appList); + } else { + m_appShowMoreLabel->show(); + m_appListView->setList(m_appList.mid(0, 5)); + } } if (!lists.at(1).isEmpty()) { + m_settingList = lists.at(1); + qDebug()<<"Append a best item into list: "<show(); m_settingTitleLabel->show(); m_settingListView->isHidden = false; - m_settingListView->appendList(lists.at(1)); + if (m_settingList.length() <= 5) { + m_settingListView->setList(m_settingList); + } else { + m_settingShowMoreLabel->show(); + m_settingListView->setList(m_settingList.mid(0, 5)); + } } this->resetListHeight(); } @@ -415,7 +521,12 @@ void ContentWidget::appendSearchItem(const int& type, const QString& path, QStri m_fileListView->isHidden = false; appendSearchItem(SearchItem::SearchType::Best, path); } - m_fileListView->appendItem(path); + if (m_fileListView->getLength() < 5) { + m_fileListView->appendItem(path); + } else if (m_fileListView->getLength() == 5) { + m_fileShowMoreLabel->show(); + } + m_fileList.append(path); break;; } case SearchItem::SearchType::Dirs: { @@ -425,7 +536,12 @@ void ContentWidget::appendSearchItem(const int& type, const QString& path, QStri m_dirListView->isHidden = false; appendSearchItem(SearchItem::SearchType::Best, path); } - m_dirListView->appendItem(path); + if (m_dirListView->getLength() < 5) { + m_dirListView->appendItem(path); + } else if (m_dirListView->getLength() == 5) { + m_dirShowMoreLabel->show(); + } + m_dirList.append(path); break; } case SearchItem::SearchType::Contents: { @@ -435,7 +551,12 @@ void ContentWidget::appendSearchItem(const int& type, const QString& path, QStri m_contentListView->isHidden = false; appendSearchItem(SearchItem::SearchType::Best, path); } - m_contentListView->appendItem(path); + if (m_contentListView->getLength() < 5) { + m_contentListView->appendItem(path); + } else if (m_contentListView->getLength() == 5) { + m_contentShowMoreLabel->show(); + } + m_contentList.append(path); QString temp; for (int i = 0; i < contents.length(); i ++) { temp.append(contents.at(i)); @@ -443,7 +564,7 @@ void ContentWidget::appendSearchItem(const int& type, const QString& path, QStri temp.append("\n"); } } - m_contentList.append(temp); + m_contentDetailList.append(temp); break; } default: @@ -482,7 +603,6 @@ QString ContentWidget::getTitleName(const int& type) { * @param layout 需要清空的布局 */ void ContentWidget::clearLayout(QLayout * layout) { - m_contentList.clear(); if (! layout) return; QLayoutItem * child; while ((child = layout->takeAt(0)) != 0) { @@ -501,8 +621,8 @@ void ContentWidget::clearLayout(QLayout * layout) { * @param list */ void ContentWidget::setContentList(const QStringList& list) { - m_contentList.clear(); - m_contentList = list; + m_contentDetailList.clear(); + m_contentDetailList = list; } /** diff --git a/src/content-widget.h b/src/content-widget.h index 1ce1bb3..fa4e049 100644 --- a/src/content-widget.h +++ b/src/content-widget.h @@ -7,6 +7,7 @@ #include #include "control/search-detail-view.h" #include "home-page-item.h" +#include "show-more-label.h" class ContentWidget : public QStackedWidget { @@ -30,7 +31,7 @@ private: void clearHomepage(); void resetListHeight(); QString m_keyword; - QStringList m_contentList; + QStringList m_contentDetailList; QWidget * m_homePage = nullptr; QVBoxLayout * m_homePageLyt = nullptr; QWidget * m_resultPage = nullptr; @@ -55,6 +56,17 @@ private: QLabel * m_appTitleLabel = nullptr; QLabel * m_settingTitleLabel = nullptr; QLabel * m_bestTitleLabel = nullptr; + ShowMoreLabel * m_appShowMoreLabel = nullptr; + ShowMoreLabel * m_settingShowMoreLabel = nullptr; + ShowMoreLabel * m_dirShowMoreLabel = nullptr; + ShowMoreLabel * m_fileShowMoreLabel = nullptr; + ShowMoreLabel * m_contentShowMoreLabel = nullptr; + + QStringList m_appList; + QStringList m_settingList; + QStringList m_dirList; + QStringList m_fileList; + QStringList m_contentList; int m_currentType = 0; diff --git a/src/control/control.pri b/src/control/control.pri index 39aaa21..d63444e 100644 --- a/src/control/control.pri +++ b/src/control/control.pri @@ -8,6 +8,7 @@ HEADERS += \ $$PWD/search-detail-view.h \ $$PWD/option-view.h \ $$PWD/home-page-item.h \ + $$PWD/show-more-label.h SOURCES += \ $$PWD/config-file.cpp \ @@ -17,3 +18,4 @@ SOURCES += \ $$PWD/search-detail-view.cpp \ $$PWD/option-view.cpp \ $$PWD/home-page-item.cpp \ + $$PWD/show-more-label.cpp diff --git a/src/control/search-list-view.cpp b/src/control/search-list-view.cpp index 2a23a7f..46f4be7 100644 --- a/src/control/search-list-view.cpp +++ b/src/control/search-list-view.cpp @@ -51,12 +51,12 @@ void SearchListView::appendItem(QString path) { } /** - * @brief SearchListView::appendList 添加整个列表 + * @brief SearchListView::setList 设置整个列表 */ -void SearchListView::appendList(QStringList list) +void SearchListView::setList(QStringList list) { m_model->appendList(list); - rowheight = this->rowHeight(this->model()->index(0, 0, QModelIndex())) + 1; + rowheight = this->rowHeight(this->model()->index(0, 0, QModelIndex())); this->setFixedHeight(m_item->getCurrentSize() * rowheight + 3); } @@ -95,6 +95,15 @@ int SearchListView::getType() return m_type; } +/** + * @brief SearchListView::getLength 获取当前显示的列表项数量 + * @return + */ +int SearchListView::getLength() +{ + return m_item->getCurrentSize(); +} + //获取当前选项所属搜索类型 int SearchListView::getCurrentType() { switch (m_type) { diff --git a/src/control/search-list-view.h b/src/control/search-list-view.h index 7c7d9b4..9934e95 100644 --- a/src/control/search-list-view.h +++ b/src/control/search-list-view.h @@ -30,11 +30,12 @@ public: int rowheight = 0; void appendItem(QString); - void appendList(QStringList); + void setList(QStringList); void removeItem(QString); void clear(); void setKeyword(QString); int getType(); + int getLength(); bool isHidden = false; private: SearchItemModel * m_model = nullptr; diff --git a/src/control/show-more-label.cpp b/src/control/show-more-label.cpp new file mode 100644 index 0000000..cf0ffa7 --- /dev/null +++ b/src/control/show-more-label.cpp @@ -0,0 +1,99 @@ +#include "show-more-label.h" +#include +#include + +ShowMoreLabel::ShowMoreLabel(QWidget *parent) : QWidget(parent) +{ + initUi(); + m_timer = new QTimer; + connect(m_timer, &QTimer::timeout, this, &ShowMoreLabel::refreshLoadState); + connect(this, &ShowMoreLabel::showMoreClicked, this, &ShowMoreLabel::startLoading); +} + +ShowMoreLabel::~ShowMoreLabel() +{ +} + +void ShowMoreLabel::initUi() +{ + m_layout = new QHBoxLayout(this); + m_layout->setContentsMargins(0,0,0,6); + m_textLabel = new QLabel(this); + m_textLabel->setText(tr("Show More...")); + m_textLabel->setCursor(QCursor(Qt::PointingHandCursor)); + m_textLabel->installEventFilter(this); +// m_loadingIconLabel = new QLabel(this); //使用图片显示加载状态时,取消此label的注释 +// m_loadingIconLabel->setFixedSize(18, 18); +// m_loadingIconLabel->hide(); + m_layout->setAlignment(Qt::AlignCenter); + m_layout->addWidget(m_textLabel); +// m_layout->addWidget(m_loadingIconLabel); +} + +void ShowMoreLabel::startLoading() +{ +// m_textLabel->hide(); +// m_loadingIconLabel->show(); + m_timer->start(0.4 * 1000); + m_textLabel->setCursor(QCursor(Qt::ArrowCursor)); +} + +void ShowMoreLabel::stopLoading() +{ +// m_loadingIconLabel->hide(); +// m_textLabel->show(); + if (m_timer->isActive()) { + m_timer->stop(); + } + if (m_isOpen) { + m_textLabel->setText(tr("Retract")); + } else { + m_textLabel->setText(tr("Show More...")); + } + m_textLabel->setCursor(QCursor(Qt::PointingHandCursor)); +} + +void ShowMoreLabel::refreshLoadState() +{ + switch (m_currentState) { + case 0: { + m_textLabel->setText(tr("Loading")); + m_currentState ++; + break; + } + case 1: { + m_textLabel->setText(tr("Loading.")); + m_currentState ++; + break; + } + case 2: { + m_textLabel->setText(tr("Loading..")); + m_currentState ++; + break; + } + case 3: { + m_textLabel->setText(tr("Loading...")); + m_currentState = 0; + break; + } + default: + break; + } +} + +bool ShowMoreLabel::eventFilter(QObject *watched, QEvent *event){ + if (watched == m_textLabel) { + if (event->type() == QEvent::MouseButtonPress) { + if (! m_timer->isActive()) { + if (!m_isOpen) { + m_isOpen = true; + Q_EMIT this->showMoreClicked(); + } else { + m_isOpen = false; + Q_EMIT this->retractClicked(); + } + } + } + } + return QWidget::eventFilter(watched, event); +} diff --git a/src/control/show-more-label.h b/src/control/show-more-label.h new file mode 100644 index 0000000..715c0e9 --- /dev/null +++ b/src/control/show-more-label.h @@ -0,0 +1,39 @@ +#ifndef SHOWMORELABEL_H +#define SHOWMORELABEL_H + +#include +#include +#include +#include + +class ShowMoreLabel : public QWidget +{ + Q_OBJECT +public: + explicit ShowMoreLabel(QWidget *parent = nullptr); + ~ShowMoreLabel(); + +protected: + bool eventFilter(QObject *, QEvent *); + +private: + QHBoxLayout * m_layout = nullptr; + QLabel * m_textLabel = nullptr; + QLabel * m_loadingIconLabel = nullptr; + QTimer * m_timer = nullptr; + bool m_isOpen = false; + int m_currentState = 0; + + void initUi(); + +Q_SIGNALS: + void showMoreClicked(); + void retractClicked(); + +public Q_SLOTS: + void startLoading(); + void stopLoading(); + void refreshLoadState(); +}; + +#endif // SHOWMORELABEL_H diff --git a/src/settings-widget.cpp b/src/settings-widget.cpp index 8b7b2f0..d37a8b2 100644 --- a/src/settings-widget.cpp +++ b/src/settings-widget.cpp @@ -308,8 +308,15 @@ void SettingsWidget::onBtnAddClicked() { QFileDialog * fileDialog = new QFileDialog(this); // fileDialog->setFileMode(QFileDialog::Directory); //允许查看文件和文件夹,但只允许选择文件夹 fileDialog->setFileMode(QFileDialog::DirectoryOnly); //只允许查看文件夹 - fileDialog->setViewMode(QFileDialog::Detail); +// fileDialog->setViewMode(QFileDialog::Detail); fileDialog->setDirectory(QDir::homePath()); + fileDialog->setNameFilter(tr("Directories")); + fileDialog->setWindowTitle(tr("select blocked folder")); + fileDialog->setLabelText(QFileDialog::Accept, tr("Select")); + fileDialog->setLabelText(QFileDialog::LookIn, tr("Position: ")); + fileDialog->setLabelText(QFileDialog::FileName, tr("FileName: ")); + fileDialog->setLabelText(QFileDialog::FileType, tr("FileType: ")); + fileDialog->setLabelText(QFileDialog::Reject, tr("Cancel")); if (fileDialog->exec() != QDialog::Accepted) { fileDialog->deleteLater(); return; diff --git a/translations/ukui-search/bo.ts b/translations/ukui-search/bo.ts index 3d63e99..f053037 100644 --- a/translations/ukui-search/bo.ts +++ b/translations/ukui-search/bo.ts @@ -4,52 +4,52 @@ ContentWidget - + Recently Opened - + Open Quickly - + Commonly Used - + Apps - + Settings - + Files - + Dirs - + File Contents - + Best Matches - + Unknown @@ -111,25 +111,33 @@ + + SearchBarHLayout + + + Search + + + SearchDetailView - + Path - + Last time modified - + Application - + Document @@ -137,90 +145,155 @@ SettingsWidget - + Search - + Settings - + Index State - - + + ... - + File Index Settings - + Following folders will not be searched. You can set it by adding and removing folders. - + Add ignored folders - + Search Engine Settings - + Please select search engine you preferred. - + baidu - + sougou - + 360 - + + Cancel - + Confirm - + Creating ... - + Done - + Index Entry: %1 + + + Directories + + + + + select blocked folder + + + + + Select + + + + + Position: + + + + + FileName: + + + + + FileType: + + + + + ShowMoreLabel + + + + <u>Show More...</u> + + + + + <u>Retract</u> + + + + + Loading + + + + + Loading. + + + + + Loading.. + + + + + Loading... + + diff --git a/translations/ukui-search/tr.ts b/translations/ukui-search/tr.ts index 3d63e99..f053037 100644 --- a/translations/ukui-search/tr.ts +++ b/translations/ukui-search/tr.ts @@ -4,52 +4,52 @@ ContentWidget - + Recently Opened - + Open Quickly - + Commonly Used - + Apps - + Settings - + Files - + Dirs - + File Contents - + Best Matches - + Unknown @@ -111,25 +111,33 @@ + + SearchBarHLayout + + + Search + + + SearchDetailView - + Path - + Last time modified - + Application - + Document @@ -137,90 +145,155 @@ SettingsWidget - + Search - + Settings - + Index State - - + + ... - + File Index Settings - + Following folders will not be searched. You can set it by adding and removing folders. - + Add ignored folders - + Search Engine Settings - + Please select search engine you preferred. - + baidu - + sougou - + 360 - + + Cancel - + Confirm - + Creating ... - + Done - + Index Entry: %1 + + + Directories + + + + + select blocked folder + + + + + Select + + + + + Position: + + + + + FileName: + + + + + FileType: + + + + + ShowMoreLabel + + + + <u>Show More...</u> + + + + + <u>Retract</u> + + + + + Loading + + + + + Loading. + + + + + Loading.. + + + + + Loading... + + diff --git a/translations/ukui-search/zh_CN.ts b/translations/ukui-search/zh_CN.ts index 129937a..5467d46 100644 --- a/translations/ukui-search/zh_CN.ts +++ b/translations/ukui-search/zh_CN.ts @@ -4,52 +4,52 @@ ContentWidget - + Recently Opened 最近 - + Open Quickly 快速 - + Commonly Used 常用 - + Apps 应用 - + Settings 配置项 - + Files 文件 - + Dirs 文件夹 - + File Contents 文件内容 - + Best Matches 最佳匹配 - + Unknown 未知 @@ -111,25 +111,33 @@ + + SearchBarHLayout + + + Search + 搜索 + + SearchDetailView - + Path 路径 - + Last time modified 上次修改时间 - + Application 应用 - + Document 文件 @@ -137,90 +145,155 @@ SettingsWidget - + Search 搜索 - + Settings 配置项 - + Index State 索引状态 - - + + ... - + File Index Settings 文件索引设置 - + Following folders will not be searched. You can set it by adding and removing folders. 搜索将不再查看以下文件夹。通过增加和删除文件夹可进行文件索引设置。 - + Add ignored folders 添加禁止索引文件夹 - + Search Engine Settings 搜索引擎设置 - + Please select search engine you preferred. 设置互联网搜索引擎 - + baidu 百度 - + sougou 搜狗 - + 360 360 - + + Cancel 取消 - + Confirm 确认 - + Creating ... 正在索引 - + Done 索引完成 - + Index Entry: %1 索引项: %1 + + + Directories + 文件夹 + + + + select blocked folder + 选择屏蔽文件夹 + + + + Select + 选择 + + + + Position: + 位置: + + + + FileName: + 名称: + + + + FileType: + 类型: + + + + ShowMoreLabel + + + + <u>Show More...</u> + <u>显示更多...< + + + + <u>Retract</u> + <u>收起< + + + + Loading + 加载中 + + + + Loading. + 加载中. + + + + Loading.. + 加载中.. + + + + Loading... + 加载中... +