feat(ukcc-plugin):add a new button to create the index of the file's content.

This commit is contained in:
JunjieBai 2023-08-18 10:20:54 +08:00 committed by iaom
parent 490459291e
commit c5bc8c920e
6 changed files with 376 additions and 334 deletions

View File

@ -20,6 +20,13 @@
#include "search.h" #include "search.h"
#include <QTranslator> #include <QTranslator>
#include <QApplication> #include <QApplication>
#include <QString>
static const QByteArray UKUI_SEARCH_SCHEMAS = QByteArrayLiteral("org.ukui.search.settings");
static const QString SEARCH_METHOD_KEY = QStringLiteral("fileIndexEnable");
static const QString WEB_ENGINE_KEY = QStringLiteral("webEngine");
static const QString CONTENT_FUZZY_SEARCH_KEY = QStringLiteral("contentFuzzySearch");
static const QString CONTENT_INDEX_ENABLE_KEY = QStringLiteral("contentIndexEnable");
Search::Search() Search::Search()
{ {
@ -78,14 +85,21 @@ QWidget *Search::pluginUi()
if (m_gsettings) { if (m_gsettings) {
//按钮状态初始化 //按钮状态初始化
if (m_gsettings->keys().contains(SEARCH_METHOD_KEY)) { if (m_gsettings->keys().contains(SEARCH_METHOD_KEY)) {
//当前是否使用索引搜索/暴力搜索 bool fileIndexOn = m_gsettings->get(SEARCH_METHOD_KEY).toBool();
bool is_index_search_on = m_gsettings->get(SEARCH_METHOD_KEY).toBool(); m_fileIndexBtn->setChecked(fileIndexOn);
m_searchMethodBtn->setChecked(is_index_search_on); } else {
if (is_index_search_on) { m_fileIndexBtn->setEnabled(false);
}
if (m_gsettings->keys().contains(CONTENT_INDEX_ENABLE_KEY)) {
//当前是否开启内容索引
bool isContentIndexOn= m_gsettings->get(CONTENT_INDEX_ENABLE_KEY).toBool();
m_contentIndexBtn->setChecked(isContentIndexOn);
if (isContentIndexOn) {
m_indexSetFrame->show(); m_indexSetFrame->show();
} }
} else { } else {
m_searchMethodBtn->setEnabled(false); m_contentIndexBtn->setEnabled(false);
} }
if (m_gsettings->keys().contains(WEB_ENGINE_KEY)) { if (m_gsettings->keys().contains(WEB_ENGINE_KEY)) {
@ -96,9 +110,9 @@ QWidget *Search::pluginUi()
m_webEngineFrame->mCombox->setEnabled(false); m_webEngineFrame->mCombox->setEnabled(false);
} }
if (m_gsettings->keys().contains(CONTENT_SEARCH_KEY)) { if (m_gsettings->keys().contains(CONTENT_FUZZY_SEARCH_KEY)) {
//是否为模糊搜索 //是否为模糊搜索
bool isFuzzy = m_gsettings->get(CONTENT_SEARCH_KEY).toBool(); bool isFuzzy = m_gsettings->get(CONTENT_FUZZY_SEARCH_KEY).toBool();
if (isFuzzy) { if (isFuzzy) {
m_fuzzyBtn->setChecked(true); m_fuzzyBtn->setChecked(true);
} else { } else {
@ -111,11 +125,16 @@ QWidget *Search::pluginUi()
//监听gsettings值改变更新控制面板UI //监听gsettings值改变更新控制面板UI
connect(m_gsettings, &QGSettings::changed, this, [ = ](const QString &key) { connect(m_gsettings, &QGSettings::changed, this, [ = ](const QString &key) {
if (key == SEARCH_METHOD_KEY) { if (key == SEARCH_METHOD_KEY) {
bool isIndexSearchOn = m_gsettings->get(SEARCH_METHOD_KEY).toBool(); bool isFileIndexOn = m_gsettings->get(SEARCH_METHOD_KEY).toBool();
m_searchMethodBtn->blockSignals(true); m_fileIndexBtn->blockSignals(true);
m_searchMethodBtn->setChecked(isIndexSearchOn); m_fileIndexBtn->setChecked(isFileIndexOn);
m_searchMethodBtn->blockSignals(false); m_fileIndexBtn->blockSignals(false);
if (isIndexSearchOn) { } else if (key == CONTENT_INDEX_ENABLE_KEY) {
bool isContentIndexOn = m_gsettings->get(CONTENT_INDEX_ENABLE_KEY).toBool();
m_contentIndexBtn->blockSignals(true);
m_contentIndexBtn->setChecked(isContentIndexOn);
m_contentIndexBtn->blockSignals(false);
if (isContentIndexOn) {
m_indexSetFrame->show(); m_indexSetFrame->show();
} else { } else {
m_indexSetFrame->hide(); m_indexSetFrame->hide();
@ -125,8 +144,8 @@ QWidget *Search::pluginUi()
m_webEngineFrame->mCombox->blockSignals(true); m_webEngineFrame->mCombox->blockSignals(true);
m_webEngineFrame->mCombox->setCurrentIndex(m_webEngineFrame->mCombox->findData(engine)); m_webEngineFrame->mCombox->setCurrentIndex(m_webEngineFrame->mCombox->findData(engine));
m_webEngineFrame->mCombox->blockSignals(false); m_webEngineFrame->mCombox->blockSignals(false);
} else if (key == CONTENT_SEARCH_KEY) { } else if (key == CONTENT_FUZZY_SEARCH_KEY) {
bool isFuzzy = m_gsettings->get(CONTENT_SEARCH_KEY).toBool(); bool isFuzzy = m_gsettings->get(CONTENT_FUZZY_SEARCH_KEY).toBool();
if (isFuzzy) { if (isFuzzy) {
m_fuzzyBtn->setChecked(true); m_fuzzyBtn->setChecked(true);
} else { } else {
@ -134,15 +153,21 @@ QWidget *Search::pluginUi()
} }
} }
}); });
connect(m_searchMethodBtn, &kdk::KSwitchButton::stateChanged, this, [ = ](bool checked) {
connect(m_fileIndexBtn, &kdk::KSwitchButton::stateChanged, this, [ = ](bool checked) {
if (m_gsettings && m_gsettings->keys().contains(SEARCH_METHOD_KEY)) { if (m_gsettings && m_gsettings->keys().contains(SEARCH_METHOD_KEY)) {
m_gsettings->set(SEARCH_METHOD_KEY, checked); m_gsettings->set(SEARCH_METHOD_KEY, checked);
} }
}); });
connect(m_contentIndexBtn, &kdk::KSwitchButton::stateChanged, this, [ = ](bool checked) {
if (m_gsettings && m_gsettings->keys().contains(CONTENT_INDEX_ENABLE_KEY)) {
m_gsettings->set(CONTENT_INDEX_ENABLE_KEY, checked);
}
});
connect(m_indexMethodBtnGroup, QOverload<int, bool>::of(&QButtonGroup::buttonToggled),[ = ](int id, bool checked) { connect(m_indexMethodBtnGroup, QOverload<int, bool>::of(&QButtonGroup::buttonToggled),[ = ](int id, bool checked) {
if (id == -3) {//fuzzyBtn's id if (id == -3) {//fuzzyBtn's id
if (m_gsettings && m_gsettings->keys().contains(CONTENT_SEARCH_KEY)) { if (m_gsettings && m_gsettings->keys().contains(CONTENT_FUZZY_SEARCH_KEY)) {
m_gsettings->set(CONTENT_SEARCH_KEY, checked); m_gsettings->set(CONTENT_FUZZY_SEARCH_KEY, checked);
} }
} }
}); });
@ -153,7 +178,7 @@ QWidget *Search::pluginUi()
}); });
} else { } else {
qCritical() << "Gsettings of the search plugin for ukcc is not initialized!"; qCritical() << "Gsettings of the search plugin for ukcc is not initialized!";
m_searchMethodBtn->setEnabled(false); m_contentIndexBtn->setEnabled(false);
m_webEngineFrame->mCombox->setEnabled(false); m_webEngineFrame->mCombox->setEnabled(false);
} }
@ -211,7 +236,31 @@ void Search::initUi()
m_webEngineFrame->mCombox->insertItem(2, QIcon("/usr/share/ukui-search/search-ukcc-plugin/image/360.svg"), tr("360"), "360"); m_webEngineFrame->mCombox->insertItem(2, QIcon("/usr/share/ukui-search/search-ukcc-plugin/image/360.svg"), tr("360"), "360");
m_mainLyt->addWidget(m_webEngineFrame); m_mainLyt->addWidget(m_webEngineFrame);
//设置索引部分的ui //设置索引开关
m_indexTitleLabel = new TitleLabel(m_pluginWidget);
//~ contents_path /Search/Create index
m_indexTitleLabel->setText(tr("Create index"));
m_mainLyt->addSpacing(32);
m_mainLyt->addWidget(m_indexTitleLabel);
m_fileIndexFrame = new QFrame(m_pluginWidget);
m_fileIndexFrame->setFrameShape(QFrame::Shape::Box);
m_fileIndexFrame->setFixedHeight(64);
m_fileIndexLyt = new QHBoxLayout(m_fileIndexFrame);
m_fileIndexLyt->setContentsMargins(16, 20, 16, 20);
m_fileIndexFrame->setLayout(m_fileIndexLyt);
m_fileIndexLabel = new QLabel(m_fileIndexFrame);
//~ contents_path /Search/Create file index
m_fileIndexLabel->setText(tr("Create file index"));
m_fileIndexLabel->setContentsMargins(0, 0, 0, 0);
m_fileIndexBtn = new kdk::KSwitchButton(m_fileIndexFrame);
m_fileIndexLyt->addWidget(m_fileIndexLabel);
m_fileIndexLyt->addStretch();
m_fileIndexLyt->addWidget(m_fileIndexBtn);
m_mainLyt->addWidget(m_fileIndexFrame);
//设置内容索引部分的ui
m_setFrame = new QFrame(m_pluginWidget); m_setFrame = new QFrame(m_pluginWidget);
m_setFrame->setFrameShape(QFrame::Shape::Box); m_setFrame->setFrameShape(QFrame::Shape::Box);
m_setFrameLyt = new QVBoxLayout(m_setFrame); m_setFrameLyt = new QVBoxLayout(m_setFrame);
@ -219,58 +268,50 @@ void Search::initUi()
m_setFrameLyt->setSpacing(0); m_setFrameLyt->setSpacing(0);
//索引开关UI //索引开关UI
m_searchMethodFrame = new QFrame(m_setFrame); m_contentIndexFrame = new QFrame(m_setFrame);
m_searchMethodFrame->setMinimumWidth(550); m_contentIndexFrame->setMinimumWidth(550);
m_searchMethodLyt = new QHBoxLayout(m_searchMethodFrame); m_contentIndexFrame->setFixedHeight(64);
m_searchMethodLyt->setContentsMargins(16, 18, 16, 21); m_contentIndexLyt = new QHBoxLayout(m_contentIndexFrame);
m_searchMethodFrame->setLayout(m_searchMethodLyt); m_contentIndexLyt->setContentsMargins(16, 20, 16, 20);
m_contentIndexFrame->setLayout(m_contentIndexLyt);
m_descFrame = new QFrame(m_searchMethodFrame); m_contentIndexLabel = new QLabel(m_contentIndexFrame);
m_descFrameLyt = new QVBoxLayout(m_descFrame); //~ contents_path /Search/Create file content index
m_descFrameLyt->setContentsMargins(0, 0, 0, 0); m_contentIndexLabel->setText(tr("Create file content index"));
m_descFrame->setLayout(m_descFrameLyt); m_contentIndexLabel->setContentsMargins(0, 0, 0, 0);
m_descLabel1 = new QLabel(m_descFrame); m_contentIndexBtn = new kdk::KSwitchButton(m_contentIndexFrame);
m_descLabel2 = new QLabel(m_descFrame); m_contentIndexLyt->addWidget(m_contentIndexLabel);
m_contentIndexLyt->addStretch();
//~ contents_path /Search/Create index m_contentIndexLyt->addWidget(m_contentIndexBtn);
m_descLabel1->setText(tr("Create index"));
m_descLabel2->setText(tr("Creating index can help you getting results quickly."));
m_descLabel2->setEnabled(false);
m_descFrameLyt->addWidget(m_descLabel1);
m_descFrameLyt->addWidget(m_descLabel2);
m_searchMethodBtn = new kdk::KSwitchButton(m_searchMethodFrame);
m_searchMethodLyt->addWidget(m_descFrame);
m_searchMethodLyt->addStretch();
m_searchMethodLyt->addWidget(m_searchMethodBtn);
m_indexSetFrame = new QFrame(m_setFrame); m_indexSetFrame = new QFrame(m_setFrame);
m_indexSetFrame->setFixedHeight(104);
m_indexSetLyt = new QVBoxLayout(m_indexSetFrame); m_indexSetLyt = new QVBoxLayout(m_indexSetFrame);
m_indexSetLyt->setContentsMargins(0, 0, 0, 0); m_indexSetLyt->setContentsMargins(8, 0, 16, 0);//radiobutton本身左边有8间距
m_indexSetLyt->setSpacing(0); m_indexSetLyt->setSpacing(0);
//分隔线 //分隔线
QFrame *line = new QFrame(m_indexSetFrame); QFrame *line = new QFrame(m_indexSetFrame);
line->setFixedHeight(1); line->setFixedHeight(1);
line->setContentsMargins(8, 0, 0, 0);// 为了与radiobutton平齐也设置8间距
line->setLineWidth(0); line->setLineWidth(0);
line->setFrameShape(QFrame::HLine); line->setFrameShape(QFrame::HLine);
line->setFrameShadow(QFrame::Sunken); line->setFrameShadow(QFrame::Sunken);
//设置索引模式的ui //设置索引模式的ui
m_indexMethodFrame = new QFrame(m_indexSetFrame); m_indexMethodFrame = new QFrame(m_indexSetFrame);
m_indexMethodFrame->setFixedHeight(103);
m_indexMethodLyt = new QVBoxLayout(m_indexMethodFrame); m_indexMethodLyt = new QVBoxLayout(m_indexMethodFrame);
m_indexMethodLyt->setContentsMargins(8, 16, 0, 0);//radiobutton本身左边有8间距 m_indexMethodLyt->setContentsMargins(0, 0, 0, 0);
m_indexMethodFrame->setLayout(m_indexMethodLyt); m_indexMethodFrame->setLayout(m_indexMethodLyt);
m_indexMethodDescLabel = new QLabel(m_indexMethodFrame);
m_indexMethodDescLabel->setContentsMargins(8, 0, 0, 0);
//~ contents_path /Search/File Content Search
m_indexMethodDescLabel->setText(tr("File Content Search"));
m_preciseBtnFrame = new QFrame(m_indexMethodFrame); m_preciseBtnFrame = new QFrame(m_indexMethodFrame);
m_preciseBtnFrame->setFixedHeight(50);
m_preciseBtnLyt = new QHBoxLayout(m_preciseBtnFrame); m_preciseBtnLyt = new QHBoxLayout(m_preciseBtnFrame);
m_preciseBtnFrame->setLayout(m_preciseBtnLyt); m_preciseBtnFrame->setLayout(m_preciseBtnLyt);
m_preciseBtn = new QRadioButton(tr("Precise Search"), m_indexMethodFrame); m_preciseBtn = new QRadioButton(tr("Precise Search"), m_indexMethodFrame);
m_preciseDescLabel = new QLabel(m_indexMethodFrame); m_preciseDescLabel = new QLabel(m_indexMethodFrame);
m_preciseDescLabel->setContentsMargins(0, 0, 0, 0);
m_preciseDescLabel->setText(tr("show the results that exactly match the keyword")); m_preciseDescLabel->setText(tr("show the results that exactly match the keyword"));
m_preciseDescLabel->setEnabled(false); m_preciseDescLabel->setEnabled(false);
m_preciseBtnLyt->addWidget(m_preciseBtn); m_preciseBtnLyt->addWidget(m_preciseBtn);
@ -278,10 +319,12 @@ void Search::initUi()
m_preciseBtnLyt->addStretch(); m_preciseBtnLyt->addStretch();
m_fuzzyBtnFrame = new QFrame(m_indexMethodFrame); m_fuzzyBtnFrame = new QFrame(m_indexMethodFrame);
m_fuzzyBtnFrame->setFixedHeight(53);
m_fuzzyBtnLyt = new QHBoxLayout(m_fuzzyBtnFrame); m_fuzzyBtnLyt = new QHBoxLayout(m_fuzzyBtnFrame);
m_fuzzyBtnFrame->setLayout(m_fuzzyBtnLyt); m_fuzzyBtnFrame->setLayout(m_fuzzyBtnLyt);
m_fuzzyBtn = new QRadioButton(tr("Fuzzy Search"), m_indexMethodFrame); m_fuzzyBtn = new QRadioButton(tr("Fuzzy Search"), m_indexMethodFrame);
m_fuzzyDescLabel = new QLabel(m_indexMethodFrame); m_fuzzyDescLabel = new QLabel(m_indexMethodFrame);
m_fuzzyDescLabel->setContentsMargins(0, 0, 0, 0);
m_fuzzyDescLabel->setText(tr("show more results that match the keyword")); m_fuzzyDescLabel->setText(tr("show more results that match the keyword"));
m_fuzzyDescLabel->setEnabled(false); m_fuzzyDescLabel->setEnabled(false);
m_fuzzyBtnLyt->addWidget(m_fuzzyBtn); m_fuzzyBtnLyt->addWidget(m_fuzzyBtn);
@ -293,14 +336,14 @@ void Search::initUi()
m_indexMethodBtnGroup->addButton(m_fuzzyBtn); m_indexMethodBtnGroup->addButton(m_fuzzyBtn);
m_indexMethodBtnGroup->setExclusive(true); m_indexMethodBtnGroup->setExclusive(true);
m_indexMethodLyt->addWidget(m_indexMethodDescLabel);
m_indexMethodLyt->addWidget(m_preciseBtnFrame); m_indexMethodLyt->addWidget(m_preciseBtnFrame);
m_indexMethodLyt->addWidget(m_fuzzyBtnFrame); m_indexMethodLyt->addWidget(m_fuzzyBtnFrame);
m_indexMethodLyt->addSpacing(24);
m_indexSetLyt->addWidget(line); m_indexSetLyt->addWidget(line);
m_indexSetLyt->addWidget(m_indexMethodFrame); m_indexSetLyt->addWidget(m_indexMethodFrame);
m_setFrameLyt->addWidget(m_searchMethodFrame); m_setFrameLyt->addWidget(m_contentIndexFrame);
m_setFrameLyt->addWidget(m_indexSetFrame); m_setFrameLyt->addWidget(m_indexSetFrame);
m_indexSetFrame->hide();//默认隐藏,根据是否开索引来初始化 m_indexSetFrame->hide();//默认隐藏,根据是否开索引来初始化
@ -361,46 +404,10 @@ void Search::initUi()
m_addBlockDirFrame->setFrameShape(QFrame::Shape::NoFrame); m_addBlockDirFrame->setFrameShape(QFrame::Shape::NoFrame);
m_addBlockDirFrame->setFixedHeight(60); m_addBlockDirFrame->setFixedHeight(60);
// m_addBlockDirWidget = new QPushButton(m_addBlockDirFrame);
m_addBlockDirWidget = new AddBtn(m_addBlockDirFrame); m_addBlockDirWidget = new AddBtn(m_addBlockDirFrame);
// m_addBlockDirWidget->setFixedHeight(60);
// m_addBlockDirWidget->setObjectName("addBlockDirWidget");
// QPalette pal;
// QBrush brush = pal.highlight(); //获取window的色值
// QColor highLightColor = brush.color();
// QString stringColor = QString("rgba(%1,%2,%3)") //叠加20%白色
// .arg(highLightColor.red()*0.8 + 255*0.2)
// .arg(highLightColor.green()*0.8 + 255*0.2)
// .arg(highLightColor.blue()*0.8 + 255*0.2);
// m_addBlockDirWidget->setStyleSheet(QString("HoverWidget#addBlockDirWidget{background: palette(button);\
// border-radius: 4px;}\
// HoverWidget:hover:!pressed#addBlockDirWidget{background: %1; \
// border-radius: 4px;}").arg(stringColor));
//之前自己写的添加按钮目前方案用控制面板提供的AddBtn后面有变动再放出来(属性全都注掉了有问题找ukcc寻求帮助
// m_addBlockDirWidget->setProperty("useButtonPalette", true);
//// m_addBlockDirWidget->setStyleSheet("QPushButton:!checked{background: palette(base);}");
// m_addBlockDirWidget->setFlat(true);
// m_addBlockDirIcon = new QLabel(m_addBlockDirWidget);
// m_addBlockDirIcon->setPixmap(QIcon("/usr/share/ukui-search/search-ukcc-plugin/image/add.svg").pixmap(12, 12));
// m_addBlockDirIcon->setProperty("useIconHighlightEffect", true);
// m_addBlockDirIcon->setProperty("iconHighlightEffectMode", 1);
// m_addBlockDirLabel = new QLabel(m_addBlockDirWidget);
// m_addBlockDirLabel->setText(tr("Choose folder"));
// m_addBlockDirLyt = new QHBoxLayout(m_addBlockDirWidget);
// m_addBlockDirWidget->setLayout(m_addBlockDirLyt);
m_blockDirsLyt->addWidget(m_addBlockDirWidget); m_blockDirsLyt->addWidget(m_addBlockDirWidget);
// m_addBlockDirLyt->addStretch();
// m_addBlockDirLyt->addWidget(m_addBlockDirIcon);
// m_addBlockDirLyt->addWidget(m_addBlockDirLabel);
// m_addBlockDirLyt->addStretch();
m_mainLyt->addSpacing(32); m_mainLyt->addSpacing(32);
m_mainLyt->addWidget(m_blockDirTitleLabel); m_mainLyt->addWidget(m_blockDirTitleLabel);
m_mainLyt->addWidget(m_blockDirDescLabel); m_mainLyt->addWidget(m_blockDirDescLabel);

View File

@ -47,10 +47,6 @@
#include <ukcc/widgets/titlelabel.h> #include <ukcc/widgets/titlelabel.h>
#include <ukcc/widgets/addbtn.h> #include <ukcc/widgets/addbtn.h>
#define UKUI_SEARCH_SCHEMAS "org.ukui.search.settings"
#define SEARCH_METHOD_KEY "fileIndexEnable"
#define WEB_ENGINE_KEY "webEngine"
#define CONTENT_SEARCH_KEY "contentFuzzySearch"
//TODO //TODO
#define CONFIG_FILE "/.config/org.ukui/ukui-search/ukui-search-block-dirs.conf" #define CONFIG_FILE "/.config/org.ukui/ukui-search/ukui-search-block-dirs.conf"
@ -105,18 +101,21 @@ private:
ComboxFrame * m_webEngineFrame = nullptr; ComboxFrame * m_webEngineFrame = nullptr;
QVBoxLayout * m_webEngineLyt = nullptr; QVBoxLayout * m_webEngineLyt = nullptr;
//索引详细设置 //索引开关设置
TitleLabel *m_indexTitleLabel = nullptr;
QFrame *m_fileIndexFrame = nullptr;
QHBoxLayout *m_fileIndexLyt = nullptr;
QLabel *m_fileIndexLabel = nullptr;
kdk::KSwitchButton *m_fileIndexBtn = nullptr;
//内容索引开关设置
QFrame *m_setFrame = nullptr; QFrame *m_setFrame = nullptr;
QVBoxLayout *m_setFrameLyt = nullptr; QVBoxLayout *m_setFrameLyt = nullptr;
//索引开关 QLabel *m_contentIndexLabel = nullptr;
QFrame *m_descFrame = nullptr; QFrame *m_contentIndexFrame = nullptr;
QVBoxLayout *m_descFrameLyt = nullptr; QHBoxLayout *m_contentIndexLyt = nullptr;
QLabel *m_descLabel1 = nullptr;
QLabel *m_descLabel2 = nullptr;
QFrame *m_searchMethodFrame = nullptr;
QHBoxLayout *m_searchMethodLyt = nullptr;
// QLabel *m_searchMethodLabel = nullptr; // QLabel *m_searchMethodLabel = nullptr;
kdk::KSwitchButton *m_searchMethodBtn = nullptr; kdk::KSwitchButton *m_contentIndexBtn = nullptr;
//设置索引搜索模式 //设置索引搜索模式
QFrame *m_indexSetFrame = nullptr; QFrame *m_indexSetFrame = nullptr;
QVBoxLayout *m_indexSetLyt = nullptr; QVBoxLayout *m_indexSetLyt = nullptr;

View File

@ -4,52 +4,51 @@
<context> <context>
<name>Search</name> <name>Search</name>
<message> <message>
<location filename="../search.cpp" line="32"/> <location filename="../search.cpp" line="39"/>
<location filename="../search.cpp" line="200"/> <location filename="../search.cpp" line="225"/>
<source>Search</source> <source>Search</source>
<translation></translation> <translation></translation>
<extra-contents_path>/Search/Search</extra-contents_path> <extra-contents_path>/Search/Search</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="236"/> <location filename="../search.cpp" line="242"/>
<source>Create index</source> <source>Create index</source>
<translation></translation> <translation></translation>
<extra-contents_path>/Search/Create index</extra-contents_path> <extra-contents_path>/Search/Create index</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="237"/>
<source>Creating index can help you getting results quickly.</source> <source>Creating index can help you getting results quickly.</source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="205"/> <location filename="../search.cpp" line="230"/>
<source>Default web searching engine</source> <source>Default web searching engine</source>
<translation></translation> <translation></translation>
<extra-contents_path>/Search/Default web searching engine</extra-contents_path> <extra-contents_path>/Search/Default web searching engine</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="209"/> <location filename="../search.cpp" line="234"/>
<source>baidu</source> <source>baidu</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="210"/> <location filename="../search.cpp" line="235"/>
<source>sougou</source> <source>sougou</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="211"/> <location filename="../search.cpp" line="236"/>
<source>360</source> <source>360</source>
<translation>360</translation> <translation>360</translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="345"/> <location filename="../search.cpp" line="377"/>
<source>Block Folders</source> <source>Block Folders</source>
<translation></translation> <translation></translation>
<extra-contents_path>/Search/Block Folders</extra-contents_path> <extra-contents_path>/Search/Block Folders</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="350"/> <location filename="../search.cpp" line="382"/>
<source>Following folders will not be searched. You can set it by adding and removing folders.</source> <source>Following folders will not be searched. You can set it by adding and removing folders.</source>
<translation> </translation> <translation> </translation>
</message> </message>
@ -58,112 +57,123 @@
<translation type="vanished"></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="702"/> <location filename="../search.cpp" line="698"/>
<location filename="../search.cpp" line="773"/> <location filename="../search.cpp" line="769"/>
<source>delete</source> <source>delete</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="431"/> <location filename="../search.cpp" line="427"/>
<location filename="../search.cpp" line="475"/> <location filename="../search.cpp" line="471"/>
<source>Directories</source> <source>Directories</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="267"/>
<source>File Content Search</source> <source>File Content Search</source>
<translation></translation> <translation type="vanished"></translation>
<extra-contents_path>/Search/File Content Search</extra-contents_path> <extra-contents_path>/Search/File Content Search</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="285"/> <location filename="../search.cpp" line="318"/>
<source>show more results that match the keyword</source> <source>show more results that match the keyword</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="283"/> <location filename="../search.cpp" line="316"/>
<source>Fuzzy Search</source> <source>Fuzzy Search</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="272"/> <location filename="../search.cpp" line="254"/>
<source>Create file index</source>
<translation></translation>
<extra-contents_path>/Search/Create file index</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="277"/>
<source>Create file content index</source>
<translation></translation>
<extra-contents_path>/Search/Create file content index</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="305"/>
<source>Precise Search</source> <source>Precise Search</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="274"/> <location filename="../search.cpp" line="307"/>
<source>show the results that exactly match the keyword</source> <source>show the results that exactly match the keyword</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="312"/> <location filename="../search.cpp" line="344"/>
<source>Search Folders</source> <source>Search Folders</source>
<translation></translation> <translation></translation>
<extra-contents_path>/Search/Search Folders</extra-contents_path> <extra-contents_path>/Search/Search Folders</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="318"/> <location filename="../search.cpp" line="350"/>
<source>Following folders will be searched. You can set it by adding and removing folders.</source> <source>Following folders will be searched. You can set it by adding and removing folders.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="432"/> <location filename="../search.cpp" line="428"/>
<source>select blocked folder</source> <source>select blocked folder</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="433"/> <location filename="../search.cpp" line="429"/>
<location filename="../search.cpp" line="477"/> <location filename="../search.cpp" line="473"/>
<source>Select</source> <source>Select</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="434"/> <location filename="../search.cpp" line="430"/>
<location filename="../search.cpp" line="478"/> <location filename="../search.cpp" line="474"/>
<source>Position: </source> <source>Position: </source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="435"/> <location filename="../search.cpp" line="431"/>
<location filename="../search.cpp" line="479"/> <location filename="../search.cpp" line="475"/>
<source>FileName: </source> <source>FileName: </source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="436"/> <location filename="../search.cpp" line="432"/>
<location filename="../search.cpp" line="480"/> <location filename="../search.cpp" line="476"/>
<source>FileType: </source> <source>FileType: </source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="437"/> <location filename="../search.cpp" line="433"/>
<location filename="../search.cpp" line="481"/> <location filename="../search.cpp" line="477"/>
<source>Cancel</source> <source>Cancel</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="447"/>
<location filename="../search.cpp" line="451"/> <location filename="../search.cpp" line="451"/>
<location filename="../search.cpp" line="455"/> <location filename="../search.cpp" line="455"/>
<location filename="../search.cpp" line="459"/> <location filename="../search.cpp" line="459"/>
<location filename="../search.cpp" line="463"/> <location filename="../search.cpp" line="488"/>
<location filename="../search.cpp" line="492"/> <location filename="../search.cpp" line="491"/>
<location filename="../search.cpp" line="495"/> <location filename="../search.cpp" line="494"/>
<location filename="../search.cpp" line="498"/> <location filename="../search.cpp" line="497"/>
<location filename="../search.cpp" line="501"/> <location filename="../search.cpp" line="500"/>
<location filename="../search.cpp" line="504"/> <location filename="../search.cpp" line="503"/>
<location filename="../search.cpp" line="507"/> <location filename="../search.cpp" line="506"/>
<location filename="../search.cpp" line="510"/>
<source>Warning</source> <source>Warning</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="463"/> <location filename="../search.cpp" line="459"/>
<location filename="../search.cpp" line="507"/> <location filename="../search.cpp" line="503"/>
<source>Add search folder failed, hidden&#x3000;path is not supported!</source> <source>Add search folder failed, hidden&#x3000;path is not supported!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="510"/> <location filename="../search.cpp" line="506"/>
<source>Add search folder failed, permission denied!</source> <source>Add search folder failed, permission denied!</source>
<translation></translation> <translation></translation>
</message> </message>
@ -176,47 +186,47 @@
<translation type="vanished"></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="451"/> <location filename="../search.cpp" line="447"/>
<source>Add blocked folder failed, its parent dir has been added!</source> <source>Add blocked folder failed, its parent dir has been added!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="455"/> <location filename="../search.cpp" line="451"/>
<source>Add blocked folder failed, choosen path is not exist!</source> <source>Add blocked folder failed, choosen path is not exist!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="459"/> <location filename="../search.cpp" line="455"/>
<source>Add blocked folder failed, it has already been blocked!</source> <source>Add blocked folder failed, it has already been blocked!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="476"/> <location filename="../search.cpp" line="472"/>
<source>select search folder</source> <source>select search folder</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="495"/> <location filename="../search.cpp" line="491"/>
<source>Add search folder failed, choosen path is not supported currently!</source> <source>Add search folder failed, choosen path is not supported currently!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="501"/> <location filename="../search.cpp" line="497"/>
<source>Add search folder failed, another path which is in the same device has been added!</source> <source>Add search folder failed, another path which is in the same device has been added!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="492"/> <location filename="../search.cpp" line="488"/>
<source>Add search folder failed, choosen path or its parent dir has been added!</source> <source>Add search folder failed, choosen path or its parent dir has been added!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="498"/> <location filename="../search.cpp" line="494"/>
<source>Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added!</source> <source>Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="504"/> <location filename="../search.cpp" line="500"/>
<source>Add search folder failed, choosen path is not exists!</source> <source>Add search folder failed, choosen path is not exists!</source>
<translation></translation> <translation></translation>
</message> </message>

View File

@ -4,207 +4,213 @@
<context> <context>
<name>Search</name> <name>Search</name>
<message> <message>
<location filename="../search.cpp" line="32"/> <location filename="../search.cpp" line="39"/>
<location filename="../search.cpp" line="200"/> <location filename="../search.cpp" line="225"/>
<source>Search</source> <source>Search</source>
<translation>Search</translation> <translation>Search</translation>
<extra-contents_path>/Search/Search</extra-contents_path> <extra-contents_path>/Search/Search</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="205"/> <location filename="../search.cpp" line="230"/>
<source>Default web searching engine</source> <source>Default web searching engine</source>
<translation>Default web searching engine</translation> <translation>Default web searching engine</translation>
<extra-contents_path>/Search/Default web searching engine</extra-contents_path> <extra-contents_path>/Search/Default web searching engine</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="209"/> <location filename="../search.cpp" line="234"/>
<source>baidu</source> <source>baidu</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="210"/> <location filename="../search.cpp" line="235"/>
<source>sougou</source> <source>sougou</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="211"/> <location filename="../search.cpp" line="236"/>
<source>360</source> <source>360</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="236"/> <location filename="../search.cpp" line="242"/>
<source>Create index</source> <source>Create index</source>
<translation>Create index</translation> <translation>Create index</translation>
<extra-contents_path>/Search/Create index</extra-contents_path> <extra-contents_path>/Search/Create index</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="237"/>
<source>Creating index can help you getting results quickly.</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="267"/>
<source>File Content Search</source> <source>File Content Search</source>
<translation>File Content Search</translation> <translation type="vanished">File Content Search</translation>
<extra-contents_path>/Search/File Content Search</extra-contents_path> <extra-contents_path>/Search/File Content Search</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="272"/> <location filename="../search.cpp" line="305"/>
<source>Precise Search</source> <source>Precise Search</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="274"/> <location filename="../search.cpp" line="307"/>
<source>show the results that exactly match the keyword</source> <source>show the results that exactly match the keyword</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="283"/> <location filename="../search.cpp" line="316"/>
<source>Fuzzy Search</source> <source>Fuzzy Search</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="285"/> <location filename="../search.cpp" line="318"/>
<source>show more results that match the keyword</source> <source>show more results that match the keyword</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="312"/> <location filename="../search.cpp" line="344"/>
<source>Search Folders</source> <source>Search Folders</source>
<translation>Search Folders</translation> <translation>Search Folders</translation>
<extra-contents_path>/Search/Search Folders</extra-contents_path> <extra-contents_path>/Search/Search Folders</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="318"/> <location filename="../search.cpp" line="350"/>
<source>Following folders will be searched. You can set it by adding and removing folders.</source> <source>Following folders will be searched. You can set it by adding and removing folders.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="345"/> <location filename="../search.cpp" line="377"/>
<source>Block Folders</source> <source>Block Folders</source>
<translation>Block Folders</translation> <translation>Block Folders</translation>
<extra-contents_path>/Search/Block Folders</extra-contents_path> <extra-contents_path>/Search/Block Folders</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="350"/> <location filename="../search.cpp" line="382"/>
<source>Following folders will not be searched. You can set it by adding and removing folders.</source> <source>Following folders will not be searched. You can set it by adding and removing folders.</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<location filename="../search.cpp" line="427"/>
<location filename="../search.cpp" line="471"/>
<source>Directories</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="428"/>
<source>select blocked folder</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="429"/>
<location filename="../search.cpp" line="473"/>
<source>Select</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="430"/>
<location filename="../search.cpp" line="474"/>
<source>Position: </source>
<translation></translation>
</message>
<message> <message>
<location filename="../search.cpp" line="431"/> <location filename="../search.cpp" line="431"/>
<location filename="../search.cpp" line="475"/> <location filename="../search.cpp" line="475"/>
<source>Directories</source> <source>FileName: </source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="432"/> <location filename="../search.cpp" line="432"/>
<source>select blocked folder</source> <location filename="../search.cpp" line="476"/>
<source>FileType: </source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="433"/> <location filename="../search.cpp" line="433"/>
<location filename="../search.cpp" line="477"/> <location filename="../search.cpp" line="477"/>
<source>Select</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="434"/>
<location filename="../search.cpp" line="478"/>
<source>Position: </source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="435"/>
<location filename="../search.cpp" line="479"/>
<source>FileName: </source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="436"/>
<location filename="../search.cpp" line="480"/>
<source>FileType: </source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="437"/>
<location filename="../search.cpp" line="481"/>
<source>Cancel</source> <source>Cancel</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="447"/>
<location filename="../search.cpp" line="451"/> <location filename="../search.cpp" line="451"/>
<location filename="../search.cpp" line="455"/> <location filename="../search.cpp" line="455"/>
<location filename="../search.cpp" line="459"/> <location filename="../search.cpp" line="459"/>
<location filename="../search.cpp" line="463"/> <location filename="../search.cpp" line="488"/>
<location filename="../search.cpp" line="492"/> <location filename="../search.cpp" line="491"/>
<location filename="../search.cpp" line="495"/> <location filename="../search.cpp" line="494"/>
<location filename="../search.cpp" line="498"/> <location filename="../search.cpp" line="497"/>
<location filename="../search.cpp" line="501"/> <location filename="../search.cpp" line="500"/>
<location filename="../search.cpp" line="504"/> <location filename="../search.cpp" line="503"/>
<location filename="../search.cpp" line="507"/> <location filename="../search.cpp" line="506"/>
<location filename="../search.cpp" line="510"/>
<source>Warning</source> <source>Warning</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="451"/> <location filename="../search.cpp" line="447"/>
<source>Add blocked folder failed, its parent dir has been added!</source> <source>Add blocked folder failed, its parent dir has been added!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="455"/> <location filename="../search.cpp" line="451"/>
<source>Add blocked folder failed, choosen path is not exist!</source> <source>Add blocked folder failed, choosen path is not exist!</source>
<translation type="unfinished"></translation> <translation>Add blocked folder failed, choosen path is not exist!</translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="459"/> <location filename="../search.cpp" line="455"/>
<source>Add blocked folder failed, it has already been blocked!</source> <source>Add blocked folder failed, it has already been blocked!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="476"/> <location filename="../search.cpp" line="472"/>
<source>select search folder</source> <source>select search folder</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="492"/> <location filename="../search.cpp" line="488"/>
<source>Add search folder failed, choosen path or its parent dir has been added!</source> <source>Add search folder failed, choosen path or its parent dir has been added!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="495"/> <location filename="../search.cpp" line="491"/>
<source>Add search folder failed, choosen path is not supported currently!</source> <source>Add search folder failed, choosen path is not supported currently!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="498"/> <location filename="../search.cpp" line="494"/>
<source>Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added!</source> <source>Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="501"/> <location filename="../search.cpp" line="497"/>
<source>Add search folder failed, another path which is in the same device has been added!</source> <source>Add search folder failed, another path which is in the same device has been added!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="504"/> <location filename="../search.cpp" line="500"/>
<source>Add search folder failed, choosen path is not exists!</source> <source>Add search folder failed, choosen path is not exists!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="463"/> <location filename="../search.cpp" line="459"/>
<location filename="../search.cpp" line="507"/> <location filename="../search.cpp" line="503"/>
<source>Add search folder failed, hidden&#x3000;path is not supported!</source> <source>Add search folder failed, hidden&#x3000;path is not supported!</source>
<translation type="unfinished"></translation> <translation>Add search folder failed, hidden&#x3000;path is not supported!</translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="510"/> <location filename="../search.cpp" line="254"/>
<source>Create file index</source>
<translation>Create file index</translation>
<extra-contents_path>/Search/Create file index</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="277"/>
<source>Create file content index</source>
<translation>Create file content index</translation>
<extra-contents_path>/Search/Create file content index</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="506"/>
<source>Add search folder failed, permission denied!</source> <source>Add search folder failed, permission denied!</source>
<translation type="unfinished"></translation> <translation>Add search folder failed, permission denied!</translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="702"/> <location filename="../search.cpp" line="698"/>
<location filename="../search.cpp" line="773"/> <location filename="../search.cpp" line="769"/>
<source>delete</source> <source>delete</source>
<translation></translation> <translation></translation>
</message> </message>

View File

@ -4,52 +4,63 @@
<context> <context>
<name>Search</name> <name>Search</name>
<message> <message>
<location filename="../search.cpp" line="32"/> <location filename="../search.cpp" line="39"/>
<location filename="../search.cpp" line="200"/> <location filename="../search.cpp" line="225"/>
<source>Search</source> <source>Search</source>
<translation> </translation> <translation> </translation>
<extra-contents_path>/Search/Search</extra-contents_path> <extra-contents_path>/Search/Search</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="236"/> <location filename="../search.cpp" line="242"/>
<source>Create index</source> <source>Create index</source>
<translation> </translation> <translation> </translation>
<extra-contents_path>/Search/Create index</extra-contents_path> <extra-contents_path>/Search/Create index</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="237"/>
<source>Creating index can help you getting results quickly.</source> <source>Creating index can help you getting results quickly.</source>
<translation> </translation> <translation type="vanished"> </translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="205"/> <location filename="../search.cpp" line="230"/>
<source>Default web searching engine</source> <source>Default web searching engine</source>
<translation> </translation> <translation> </translation>
<extra-contents_path>/Search/Default web searching engine</extra-contents_path> <extra-contents_path>/Search/Default web searching engine</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="209"/> <location filename="../search.cpp" line="234"/>
<source>baidu</source> <source>baidu</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="210"/> <location filename="../search.cpp" line="235"/>
<source>sougou</source> <source>sougou</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="211"/> <location filename="../search.cpp" line="236"/>
<source>360</source> <source>360</source>
<translation>360</translation> <translation>360</translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="345"/> <location filename="../search.cpp" line="254"/>
<source>Create file index</source>
<translation> </translation>
<extra-contents_path>/Search/Create file index</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="277"/>
<source>Create file content index</source>
<translation> </translation>
<extra-contents_path>/Search/Create file content index</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="377"/>
<source>Block Folders</source> <source>Block Folders</source>
<translation> </translation> <translation> </translation>
<extra-contents_path>/Search/Block Folders</extra-contents_path> <extra-contents_path>/Search/Block Folders</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="350"/> <location filename="../search.cpp" line="382"/>
<source>Following folders will not be searched. You can set it by adding and removing folders.</source> <source>Following folders will not be searched. You can set it by adding and removing folders.</source>
<translation> </translation> <translation> </translation>
</message> </message>
@ -58,157 +69,156 @@
<translation type="vanished"></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="702"/> <location filename="../search.cpp" line="698"/>
<location filename="../search.cpp" line="773"/> <location filename="../search.cpp" line="769"/>
<source>delete</source> <source>delete</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="431"/> <location filename="../search.cpp" line="427"/>
<location filename="../search.cpp" line="475"/> <location filename="../search.cpp" line="471"/>
<source>Directories</source> <source>Directories</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="267"/>
<source>File Content Search</source> <source>File Content Search</source>
<translation> </translation> <translation type="vanished"> </translation>
<extra-contents_path>/Search/File Content Search</extra-contents_path> <extra-contents_path>/Search/File Content Search</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="272"/> <location filename="../search.cpp" line="305"/>
<source>Precise Search</source> <source>Precise Search</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="274"/> <location filename="../search.cpp" line="307"/>
<source>show the results that exactly match the keyword</source> <source>show the results that exactly match the keyword</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="283"/> <location filename="../search.cpp" line="316"/>
<source>Fuzzy Search</source> <source>Fuzzy Search</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="285"/> <location filename="../search.cpp" line="318"/>
<source>show more results that match the keyword</source> <source>show more results that match the keyword</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="312"/> <location filename="../search.cpp" line="344"/>
<source>Search Folders</source> <source>Search Folders</source>
<translation> </translation> <translation> </translation>
<extra-contents_path>/Search/Search Folders</extra-contents_path> <extra-contents_path>/Search/Search Folders</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="318"/> <location filename="../search.cpp" line="350"/>
<source>Following folders will be searched. You can set it by adding and removing folders.</source> <source>Following folders will be searched. You can set it by adding and removing folders.</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="432"/> <location filename="../search.cpp" line="428"/>
<source>select blocked folder</source> <source>select blocked folder</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="433"/> <location filename="../search.cpp" line="429"/>
<location filename="../search.cpp" line="477"/> <location filename="../search.cpp" line="473"/>
<source>Select</source> <source>Select</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="434"/> <location filename="../search.cpp" line="430"/>
<location filename="../search.cpp" line="478"/> <location filename="../search.cpp" line="474"/>
<source>Position: </source> <source>Position: </source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="435"/> <location filename="../search.cpp" line="431"/>
<location filename="../search.cpp" line="479"/> <location filename="../search.cpp" line="475"/>
<source>FileName: </source> <source>FileName: </source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="436"/> <location filename="../search.cpp" line="432"/>
<location filename="../search.cpp" line="480"/> <location filename="../search.cpp" line="476"/>
<source>FileType: </source> <source>FileType: </source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="437"/> <location filename="../search.cpp" line="433"/>
<location filename="../search.cpp" line="481"/> <location filename="../search.cpp" line="477"/>
<source>Cancel</source> <source>Cancel</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="447"/>
<location filename="../search.cpp" line="451"/> <location filename="../search.cpp" line="451"/>
<location filename="../search.cpp" line="455"/> <location filename="../search.cpp" line="455"/>
<location filename="../search.cpp" line="459"/> <location filename="../search.cpp" line="459"/>
<location filename="../search.cpp" line="463"/> <location filename="../search.cpp" line="488"/>
<location filename="../search.cpp" line="492"/> <location filename="../search.cpp" line="491"/>
<location filename="../search.cpp" line="495"/> <location filename="../search.cpp" line="494"/>
<location filename="../search.cpp" line="498"/> <location filename="../search.cpp" line="497"/>
<location filename="../search.cpp" line="501"/> <location filename="../search.cpp" line="500"/>
<location filename="../search.cpp" line="504"/> <location filename="../search.cpp" line="503"/>
<location filename="../search.cpp" line="507"/> <location filename="../search.cpp" line="506"/>
<location filename="../search.cpp" line="510"/>
<source>Warning</source> <source>Warning</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="451"/> <location filename="../search.cpp" line="447"/>
<source>Add blocked folder failed, its parent dir has been added!</source> <source>Add blocked folder failed, its parent dir has been added!</source>
<translation> !</translation> <translation> !</translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="455"/> <location filename="../search.cpp" line="451"/>
<source>Add blocked folder failed, choosen path is not exist!</source> <source>Add blocked folder failed, choosen path is not exist!</source>
<translation> !</translation> <translation> !</translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="459"/> <location filename="../search.cpp" line="455"/>
<source>Add blocked folder failed, it has already been blocked!</source> <source>Add blocked folder failed, it has already been blocked!</source>
<translation> !</translation> <translation> !</translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="463"/> <location filename="../search.cpp" line="459"/>
<location filename="../search.cpp" line="507"/> <location filename="../search.cpp" line="503"/>
<source>Add search folder failed, hidden&#x3000;path is not supported!</source> <source>Add search folder failed, hidden&#x3000;path is not supported!</source>
<translation> !</translation> <translation> !</translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="476"/> <location filename="../search.cpp" line="472"/>
<source>select search folder</source> <source>select search folder</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="492"/> <location filename="../search.cpp" line="488"/>
<source>Add search folder failed, choosen path or its parent dir has been added!</source> <source>Add search folder failed, choosen path or its parent dir has been added!</source>
<translation> !</translation> <translation> !</translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="495"/> <location filename="../search.cpp" line="491"/>
<source>Add search folder failed, choosen path is not supported currently!</source> <source>Add search folder failed, choosen path is not supported currently!</source>
<translation> !</translation> <translation> !</translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="498"/> <location filename="../search.cpp" line="494"/>
<source>Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added!</source> <source>Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added!</source>
<translation> !</translation> <translation> !</translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="501"/> <location filename="../search.cpp" line="497"/>
<source>Add search folder failed, another path which is in the same device has been added!</source> <source>Add search folder failed, another path which is in the same device has been added!</source>
<translation> !</translation> <translation> !</translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="504"/> <location filename="../search.cpp" line="500"/>
<source>Add search folder failed, choosen path is not exists!</source> <source>Add search folder failed, choosen path is not exists!</source>
<translation> !</translation> <translation> !</translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="510"/> <location filename="../search.cpp" line="506"/>
<source>Add search folder failed, permission denied!</source> <source>Add search folder failed, permission denied!</source>
<translation> !</translation> <translation> !</translation>
</message> </message>

View File

@ -4,52 +4,51 @@
<context> <context>
<name>Search</name> <name>Search</name>
<message> <message>
<location filename="../search.cpp" line="32"/> <location filename="../search.cpp" line="39"/>
<location filename="../search.cpp" line="200"/> <location filename="../search.cpp" line="225"/>
<source>Search</source> <source>Search</source>
<translation></translation> <translation></translation>
<extra-contents_path>/Search/Search</extra-contents_path> <extra-contents_path>/Search/Search</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="236"/> <location filename="../search.cpp" line="242"/>
<source>Create index</source> <source>Create index</source>
<translation></translation> <translation></translation>
<extra-contents_path>/Search/Create index</extra-contents_path> <extra-contents_path>/Search/Create index</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="237"/>
<source>Creating index can help you getting results quickly.</source> <source>Creating index can help you getting results quickly.</source>
<translation></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="205"/> <location filename="../search.cpp" line="230"/>
<source>Default web searching engine</source> <source>Default web searching engine</source>
<translation></translation> <translation></translation>
<extra-contents_path>/Search/Default web searching engine</extra-contents_path> <extra-contents_path>/Search/Default web searching engine</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="209"/> <location filename="../search.cpp" line="234"/>
<source>baidu</source> <source>baidu</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="210"/> <location filename="../search.cpp" line="235"/>
<source>sougou</source> <source>sougou</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="211"/> <location filename="../search.cpp" line="236"/>
<source>360</source> <source>360</source>
<translation>360</translation> <translation>360</translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="345"/> <location filename="../search.cpp" line="377"/>
<source>Block Folders</source> <source>Block Folders</source>
<translation></translation> <translation></translation>
<extra-contents_path>/Search/Block Folders</extra-contents_path> <extra-contents_path>/Search/Block Folders</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="350"/> <location filename="../search.cpp" line="382"/>
<source>Following folders will not be searched. You can set it by adding and removing folders.</source> <source>Following folders will not be searched. You can set it by adding and removing folders.</source>
<translation></translation> <translation></translation>
</message> </message>
@ -58,157 +57,168 @@
<translation type="vanished"></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="702"/> <location filename="../search.cpp" line="698"/>
<location filename="../search.cpp" line="773"/> <location filename="../search.cpp" line="769"/>
<source>delete</source> <source>delete</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="431"/> <location filename="../search.cpp" line="427"/>
<location filename="../search.cpp" line="475"/> <location filename="../search.cpp" line="471"/>
<source>Directories</source> <source>Directories</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="267"/>
<source>File Content Search</source> <source>File Content Search</source>
<translation></translation> <translation type="vanished"></translation>
<extra-contents_path>/Search/File Content Search</extra-contents_path> <extra-contents_path>/Search/File Content Search</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="285"/> <location filename="../search.cpp" line="318"/>
<source>show more results that match the keyword</source> <source>show more results that match the keyword</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="283"/> <location filename="../search.cpp" line="316"/>
<source>Fuzzy Search</source> <source>Fuzzy Search</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="272"/> <location filename="../search.cpp" line="254"/>
<source>Create file index</source>
<translation></translation>
<extra-contents_path>/Search/Create file index</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="277"/>
<source>Create file content index</source>
<translation></translation>
<extra-contents_path>/Search/Create file content index</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="305"/>
<source>Precise Search</source> <source>Precise Search</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="274"/> <location filename="../search.cpp" line="307"/>
<source>show the results that exactly match the keyword</source> <source>show the results that exactly match the keyword</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="312"/> <location filename="../search.cpp" line="344"/>
<source>Search Folders</source> <source>Search Folders</source>
<translation></translation> <translation></translation>
<extra-contents_path>/Search/Search Folders</extra-contents_path> <extra-contents_path>/Search/Search Folders</extra-contents_path>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="318"/> <location filename="../search.cpp" line="350"/>
<source>Following folders will be searched. You can set it by adding and removing folders.</source> <source>Following folders will be searched. You can set it by adding and removing folders.</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="432"/> <location filename="../search.cpp" line="428"/>
<source>select blocked folder</source> <source>select blocked folder</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="433"/> <location filename="../search.cpp" line="429"/>
<location filename="../search.cpp" line="477"/> <location filename="../search.cpp" line="473"/>
<source>Select</source> <source>Select</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="434"/> <location filename="../search.cpp" line="430"/>
<location filename="../search.cpp" line="478"/> <location filename="../search.cpp" line="474"/>
<source>Position: </source> <source>Position: </source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="435"/> <location filename="../search.cpp" line="431"/>
<location filename="../search.cpp" line="479"/> <location filename="../search.cpp" line="475"/>
<source>FileName: </source> <source>FileName: </source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="436"/> <location filename="../search.cpp" line="432"/>
<location filename="../search.cpp" line="480"/> <location filename="../search.cpp" line="476"/>
<source>FileType: </source> <source>FileType: </source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="437"/> <location filename="../search.cpp" line="433"/>
<location filename="../search.cpp" line="481"/> <location filename="../search.cpp" line="477"/>
<source>Cancel</source> <source>Cancel</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="447"/>
<location filename="../search.cpp" line="451"/> <location filename="../search.cpp" line="451"/>
<location filename="../search.cpp" line="455"/> <location filename="../search.cpp" line="455"/>
<location filename="../search.cpp" line="459"/> <location filename="../search.cpp" line="459"/>
<location filename="../search.cpp" line="463"/> <location filename="../search.cpp" line="488"/>
<location filename="../search.cpp" line="492"/> <location filename="../search.cpp" line="491"/>
<location filename="../search.cpp" line="495"/> <location filename="../search.cpp" line="494"/>
<location filename="../search.cpp" line="498"/> <location filename="../search.cpp" line="497"/>
<location filename="../search.cpp" line="501"/> <location filename="../search.cpp" line="500"/>
<location filename="../search.cpp" line="504"/> <location filename="../search.cpp" line="503"/>
<location filename="../search.cpp" line="507"/> <location filename="../search.cpp" line="506"/>
<location filename="../search.cpp" line="510"/>
<source>Warning</source> <source>Warning</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="463"/> <location filename="../search.cpp" line="459"/>
<location filename="../search.cpp" line="507"/> <location filename="../search.cpp" line="503"/>
<source>Add search folder failed, hidden&#x3000;path is not supported!</source> <source>Add search folder failed, hidden&#x3000;path is not supported!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="510"/> <location filename="../search.cpp" line="506"/>
<source>Add search folder failed, permission denied!</source> <source>Add search folder failed, permission denied!</source>
<translation>访</translation> <translation>访</translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="451"/> <location filename="../search.cpp" line="447"/>
<source>Add blocked folder failed, its parent dir has been added!</source> <source>Add blocked folder failed, its parent dir has been added!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="455"/> <location filename="../search.cpp" line="451"/>
<source>Add blocked folder failed, choosen path is not exist!</source> <source>Add blocked folder failed, choosen path is not exist!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="459"/> <location filename="../search.cpp" line="455"/>
<source>Add blocked folder failed, it has already been blocked!</source> <source>Add blocked folder failed, it has already been blocked!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="476"/> <location filename="../search.cpp" line="472"/>
<source>select search folder</source> <source>select search folder</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="495"/> <location filename="../search.cpp" line="491"/>
<source>Add search folder failed, choosen path is not supported currently!</source> <source>Add search folder failed, choosen path is not supported currently!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="501"/> <location filename="../search.cpp" line="497"/>
<source>Add search folder failed, another path which is in the same device has been added!</source> <source>Add search folder failed, another path which is in the same device has been added!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="492"/> <location filename="../search.cpp" line="488"/>
<source>Add search folder failed, choosen path or its parent dir has been added!</source> <source>Add search folder failed, choosen path or its parent dir has been added!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="498"/> <location filename="../search.cpp" line="494"/>
<source>Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added!</source> <source>Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../search.cpp" line="504"/> <location filename="../search.cpp" line="500"/>
<source>Add search folder failed, choosen path is not exists!</source> <source>Add search folder failed, choosen path is not exists!</source>
<translation></translation> <translation></translation>
</message> </message>