Switch to unified view

a/src/qtgui/reslist.h b/src/qtgui/reslist.h
...
...
42
    ResList(QWidget* parent = 0, const char* name = 0);
42
    ResList(QWidget* parent = 0, const char* name = 0);
43
    virtual ~ResList();
43
    virtual ~ResList();
44
    
44
    
45
    // Return document for given docnum. We act as an intermediary to
45
    // Return document for given docnum. We act as an intermediary to
46
    // the docseq here. This has also the side-effect of making the
46
    // the docseq here. This has also the side-effect of making the
47
    // entry current (visible and highlighted), and only work if the
47
    // entry current (visible and highlighted), and only works if the
48
    // num is inside the current page or its immediate neighbours.
48
    // num is inside the current page or its immediate neighbours.
49
    bool getDoc(int docnum, Rcl::Doc &);
49
    bool getDoc(int docnum, Rcl::Doc &);
50
51
    QString getDescription(); // Printable actual query performed on db
52
    int getResCnt(); // Return total result list size
53
    bool displayingHistory();
50
    bool displayingHistory();
54
    bool getTerms(vector<string>& terms, 
51
    bool getTerms(vector<string>& terms, 
55
          vector<vector<string> >& groups, vector<int>& gslks);
52
          vector<vector<string> >& groups, vector<int>& gslks);
56
    list<string> expand(Rcl::Doc& doc);
53
    list<string> expand(Rcl::Doc& doc);
57
    int listId() const {return m_listId;}
54
    int listId() const {return m_listId;}
...
...
101
    void mouseDoubleClickEvent(QMouseEvent*);
98
    void mouseDoubleClickEvent(QMouseEvent*);
102
99
103
 protected slots:
100
 protected slots:
104
    virtual void languageChange();
101
    virtual void languageChange();
105
    virtual void linkWasClicked(const QUrl &);
102
    virtual void linkWasClicked(const QUrl &);
106
    virtual void showQueryDetails();
107
103
108
 private:
104
 private:
109
    QtGuiResListPager  *m_pager;
105
    QtGuiResListPager  *m_pager;
110
    RefCntr<DocSequence> m_source;
106
    RefCntr<DocSequence> m_source;
111
    std::vector<Rcl::Doc> m_curDocs;  // Docs for current page
112
107
113
    // Translate from textedit paragraph number to relative
108
    // Translate from textedit paragraph number to relative
114
    // docnum. Built while we insert text into the qtextedit
109
    // docnum. Built while we insert text into the qtextedit
115
    std::map<int,int>  m_pageParaToReldocnums;
110
    std::map<int,int>  m_pageParaToReldocnums;
111
116
    int                m_popDoc; // Docnum for the popup menu.
112
    int                m_popDoc; // Docnum for the popup menu.
117
    int                m_curPvDoc;// Docnum for current preview
113
    int                m_curPvDoc;// Docnum for current preview
118
    int                m_lstClckMod; // Last click modifier. 
114
    int                m_lstClckMod; // Last click modifier. 
119
    list<int>          m_selDocs;
115
    list<int>          m_selDocs;
120
    int                m_listId; // query Id for matching with preview windows
116
    int                m_listId; // query Id for matching with preview windows