Switch to unified view

a/src/qtgui/reslist.cpp b/src/qtgui/reslist.cpp
...
...
45
#include "pathut.h"
45
#include "pathut.h"
46
#include "docseq.h"
46
#include "docseq.h"
47
#include "pathut.h"
47
#include "pathut.h"
48
#include "mimehandler.h"
48
#include "mimehandler.h"
49
#include "plaintorich.h"
49
#include "plaintorich.h"
50
#include MEMORY_INCLUDE
50
#include <memory>
51
#include "internfile.h"
51
#include "internfile.h"
52
#include "indexer.h"
52
#include "indexer.h"
53
#include "snippets_w.h"
53
#include "snippets_w.h"
54
#include "listdialog.h"
54
#include "listdialog.h"
55
#include "reslist.h"
55
#include "reslist.h"
...
...
419
    return ++id;
419
    return ++id;
420
}
420
}
421
421
422
extern "C" int XFlush(void *);
422
extern "C" int XFlush(void *);
423
423
424
void ResList::setDocSource(STD_SHARED_PTR<DocSequence> nsource)
424
void ResList::setDocSource(std::shared_ptr<DocSequence> nsource)
425
{
425
{
426
    LOGDEB("ResList::setDocSource()\n" );
426
    LOGDEB("ResList::setDocSource()\n" );
427
    m_source = STD_SHARED_PTR<DocSequence>(new DocSource(theconfig, nsource));
427
    m_source = std::shared_ptr<DocSequence>(new DocSource(theconfig, nsource));
428
}
428
}
429
429
430
// A query was executed, or the filtering/sorting parameters changed,
430
// A query was executed, or the filtering/sorting parameters changed,
431
// re-read the results.
431
// re-read the results.
432
void ResList::readDocSource()
432
void ResList::readDocSource()
...
...
445
}
445
}
446
446
447
void ResList::resetList() 
447
void ResList::resetList() 
448
{
448
{
449
    LOGDEB("ResList::resetList()\n" );
449
    LOGDEB("ResList::resetList()\n" );
450
    setDocSource(STD_SHARED_PTR<DocSequence>());
450
    setDocSource(std::shared_ptr<DocSequence>());
451
    resetView();
451
    resetView();
452
}
452
}
453
453
454
void ResList::resetView() 
454
void ResList::resetView() 
455
{
455
{
...
...
898
    Rcl::Doc doc;
898
    Rcl::Doc doc;
899
    if (!getDoc(i, doc)) {
899
    if (!getDoc(i, doc)) {
900
        LOGERR("ResList::linkWasClicked: can't get doc for "  << (i) << "\n" );
900
        LOGERR("ResList::linkWasClicked: can't get doc for "  << (i) << "\n" );
901
        return;
901
        return;
902
    }
902
    }
903
        emit editRequested(ResultPopup::getParent(STD_SHARED_PTR<DocSequence>(),
903
        emit editRequested(ResultPopup::getParent(std::shared_ptr<DocSequence>(),
904
                                                  doc));
904
                                                  doc));
905
    }
905
    }
906
    break;
906
    break;
907
907
908
    // Show query details
908
    // Show query details