translation of result list title. Show query details when clicking on header
This commit is contained in:
+21
-1
@@ -238,7 +238,7 @@ Click Cancel if you want to edit the configuration file before indexation starts
|
||||
</message>
|
||||
<message>
|
||||
<source>Toolbar_2</source>
|
||||
<translation>Toolbar_2</translation>
|
||||
<translation type="obsolete">Toolbar_2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Start &Indexing</source>
|
||||
@@ -310,6 +310,26 @@ Click Cancel if you want to edit the configuration file before indexation starts
|
||||
<source>&User manual</source>
|
||||
<translation>&Manuel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Query results</source>
|
||||
<translation>Résultats de la recherche</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Query results (sorted)</source>
|
||||
<translation>Résultats de la recherche (triés)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Document history</source>
|
||||
<translation>Historique des documents consultés</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Document history (sorted)</source>
|
||||
<translation>Historique des documents consultés (trié)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Query details</source>
|
||||
<translation>Détail de la recherche</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>SortForm</name>
|
||||
|
||||
@@ -199,14 +199,6 @@
|
||||
<action name="prevPageAction"/>
|
||||
<action name="nextPageAction"/>
|
||||
</toolbar>
|
||||
<toolbar dock="2">
|
||||
<property name="name">
|
||||
<cstring>HelpToolbar</cstring>
|
||||
</property>
|
||||
<property name="label">
|
||||
<string>Toolbar_2</string>
|
||||
</property>
|
||||
</toolbar>
|
||||
</toolbars>
|
||||
<actions>
|
||||
<action>
|
||||
@@ -455,6 +447,7 @@
|
||||
<include location="local" impldecl="in declaration">advsearch.h</include>
|
||||
<include location="local" impldecl="in declaration">sort.h</include>
|
||||
<include location="local" impldecl="in declaration">uiprefs.h</include>
|
||||
<include location="local" impldecl="in declaration">rcldb.h</include>
|
||||
<include location="local" impldecl="in implementation">recollmain.ui.h</include>
|
||||
</includes>
|
||||
<variables>
|
||||
@@ -467,6 +460,7 @@
|
||||
<variable>bool reslist_dblclck;</variable>
|
||||
<variable>Preview *curPreview;</variable>
|
||||
<variable>advsearch *asearchform;</variable>
|
||||
<variable>Rcl::AdvSearchData currentQueryData;</variable>
|
||||
<variable>SortForm *sortform;</variable>
|
||||
<variable>UIPrefsDialog *uiprefs;</variable>
|
||||
<variable>int sortwidth;</variable>
|
||||
|
||||
+20
-12
@@ -343,10 +343,16 @@ void RecollMain::reslistTE_delayedclick()
|
||||
|
||||
// Document number
|
||||
int reldocnum = reldocnumfromparnum(par);
|
||||
// Bad number or already displayed. Forget it
|
||||
if (reldocnum < 0)
|
||||
|
||||
if (reldocnum < 0) {
|
||||
// Bad number: must have clicked on header. Show details of query
|
||||
QString desc = tr("Query details") + ": " +
|
||||
currentQueryData.description.c_str();
|
||||
QMessageBox::information(this, tr("Query details"), desc);
|
||||
return;
|
||||
startPreview(reslist_winfirst + reldocnum);
|
||||
} else {
|
||||
startPreview(reslist_winfirst + reldocnum);
|
||||
}
|
||||
}
|
||||
|
||||
// User asked to start query. Send it to the db aand call
|
||||
@@ -389,12 +395,13 @@ void RecollMain::startAdvSearch(Rcl::AdvSearchData sdata)
|
||||
delete docsource;
|
||||
|
||||
if (sortwidth > 0) {
|
||||
DocSequenceDb myseq(rcldb);
|
||||
docsource = new DocSeqSorted(myseq, sortwidth, sortspecs);
|
||||
DocSequenceDb myseq(rcldb, tr("Query results"));
|
||||
docsource = new DocSeqSorted(myseq, sortwidth, sortspecs,
|
||||
tr("Query results (sorted)"));
|
||||
} else {
|
||||
docsource = new DocSequenceDb(rcldb);
|
||||
docsource = new DocSequenceDb(rcldb, tr("Query results"));
|
||||
}
|
||||
|
||||
currentQueryData = sdata;
|
||||
showResultPage();
|
||||
}
|
||||
|
||||
@@ -781,22 +788,23 @@ void RecollMain::startManual()
|
||||
startHelpBrowser();
|
||||
}
|
||||
|
||||
|
||||
void RecollMain::showDocHistory()
|
||||
{
|
||||
LOGDEB(("RecollMain::showDocHistory\n"));
|
||||
reslist_winfirst = -1;
|
||||
curPreview = 0;
|
||||
|
||||
if (docsource)
|
||||
delete docsource;
|
||||
|
||||
if (sortwidth > 0) {
|
||||
DocSequenceHistory myseq(rcldb, history);
|
||||
docsource = new DocSeqSorted(myseq, sortwidth, sortspecs);
|
||||
DocSequenceHistory myseq(rcldb, history, tr("Document history"));
|
||||
docsource = new DocSeqSorted(myseq, sortwidth, sortspecs,
|
||||
tr("Document history (sorted)"));
|
||||
} else {
|
||||
docsource = new DocSequenceHistory(rcldb, history);
|
||||
docsource = new DocSequenceHistory(rcldb, history,
|
||||
tr("Document history"));
|
||||
}
|
||||
currentQueryData.erase();
|
||||
showResultPage();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user