translation of result list title. Show query details when clicking on header

This commit is contained in:
dockes
2006-01-11 15:08:22 +00:00
parent ef0a46711d
commit b38b88124a
10 changed files with 93 additions and 49 deletions
+21 -1
View File
@@ -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 &amp;Indexing</source>
@@ -310,6 +310,26 @@ Click Cancel if you want to edit the configuration file before indexation starts
<source>&amp;User manual</source>
<translation>&amp;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>
+2 -8
View File
@@ -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
View File
@@ -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();
}