|
a/src/qtgui/recollmain.ui.h |
|
b/src/qtgui/recollmain.ui.h |
|
... |
|
... |
341 |
QColor color("lightblue");
|
341 |
QColor color("lightblue");
|
342 |
reslistTE->setParagraphBackgroundColor(par, color);
|
342 |
reslistTE->setParagraphBackgroundColor(par, color);
|
343 |
|
343 |
|
344 |
// Document number
|
344 |
// Document number
|
345 |
int reldocnum = reldocnumfromparnum(par);
|
345 |
int reldocnum = reldocnumfromparnum(par);
|
346 |
// Bad number or already displayed. Forget it
|
346 |
|
347 |
if (reldocnum < 0)
|
347 |
if (reldocnum < 0) {
|
|
|
348 |
// Bad number: must have clicked on header. Show details of query
|
|
|
349 |
QString desc = tr("Query details") + ": " +
|
|
|
350 |
currentQueryData.description.c_str();
|
|
|
351 |
QMessageBox::information(this, tr("Query details"), desc);
|
348 |
return;
|
352 |
return;
|
|
|
353 |
} else {
|
349 |
startPreview(reslist_winfirst + reldocnum);
|
354 |
startPreview(reslist_winfirst + reldocnum);
|
|
|
355 |
}
|
350 |
}
|
356 |
}
|
351 |
|
357 |
|
352 |
// User asked to start query. Send it to the db aand call
|
358 |
// User asked to start query. Send it to the db aand call
|
353 |
// listNextPB_clicked to fetch and display the first page of results
|
359 |
// listNextPB_clicked to fetch and display the first page of results
|
354 |
void RecollMain::startSimpleSearch()
|
360 |
void RecollMain::startSimpleSearch()
|
|
... |
|
... |
387 |
curPreview = 0;
|
393 |
curPreview = 0;
|
388 |
if (docsource)
|
394 |
if (docsource)
|
389 |
delete docsource;
|
395 |
delete docsource;
|
390 |
|
396 |
|
391 |
if (sortwidth > 0) {
|
397 |
if (sortwidth > 0) {
|
392 |
DocSequenceDb myseq(rcldb);
|
398 |
DocSequenceDb myseq(rcldb, tr("Query results"));
|
393 |
docsource = new DocSeqSorted(myseq, sortwidth, sortspecs);
|
399 |
docsource = new DocSeqSorted(myseq, sortwidth, sortspecs,
|
|
|
400 |
tr("Query results (sorted)"));
|
394 |
} else {
|
401 |
} else {
|
395 |
docsource = new DocSequenceDb(rcldb);
|
402 |
docsource = new DocSequenceDb(rcldb, tr("Query results"));
|
396 |
}
|
403 |
}
|
397 |
|
404 |
currentQueryData = sdata;
|
398 |
showResultPage();
|
405 |
showResultPage();
|
399 |
}
|
406 |
}
|
400 |
|
407 |
|
401 |
// Page Up/Down: we don't try to check if current paragraph is last or
|
408 |
// Page Up/Down: we don't try to check if current paragraph is last or
|
402 |
// first. We just page up/down and check if viewport moved. If it did,
|
409 |
// first. We just page up/down and check if viewport moved. If it did,
|
|
... |
|
... |
779 |
void RecollMain::startManual()
|
786 |
void RecollMain::startManual()
|
780 |
{
|
787 |
{
|
781 |
startHelpBrowser();
|
788 |
startHelpBrowser();
|
782 |
}
|
789 |
}
|
783 |
|
790 |
|
784 |
|
|
|
785 |
void RecollMain::showDocHistory()
|
791 |
void RecollMain::showDocHistory()
|
786 |
{
|
792 |
{
|
787 |
LOGDEB(("RecollMain::showDocHistory\n"));
|
793 |
LOGDEB(("RecollMain::showDocHistory\n"));
|
788 |
reslist_winfirst = -1;
|
794 |
reslist_winfirst = -1;
|
789 |
curPreview = 0;
|
795 |
curPreview = 0;
|
790 |
|
|
|
791 |
if (docsource)
|
796 |
if (docsource)
|
792 |
delete docsource;
|
797 |
delete docsource;
|
793 |
|
798 |
|
794 |
if (sortwidth > 0) {
|
799 |
if (sortwidth > 0) {
|
795 |
DocSequenceHistory myseq(rcldb, history);
|
800 |
DocSequenceHistory myseq(rcldb, history, tr("Document history"));
|
796 |
docsource = new DocSeqSorted(myseq, sortwidth, sortspecs);
|
801 |
docsource = new DocSeqSorted(myseq, sortwidth, sortspecs,
|
|
|
802 |
tr("Document history (sorted)"));
|
797 |
} else {
|
803 |
} else {
|
798 |
docsource = new DocSequenceHistory(rcldb, history);
|
804 |
docsource = new DocSequenceHistory(rcldb, history,
|
|
|
805 |
tr("Document history"));
|
799 |
}
|
806 |
}
|
|
|
807 |
currentQueryData.erase();
|
800 |
showResultPage();
|
808 |
showResultPage();
|
801 |
}
|
809 |
}
|
802 |
|
810 |
|
803 |
|
811 |
|
804 |
void RecollMain::searchTextChanged(const QString & text)
|
812 |
void RecollMain::searchTextChanged(const QString & text)
|