Switch to side-by-side view

--- a/src/qtgui/rclreslist.h
+++ b/src/qtgui/rclreslist.h
@@ -1,6 +1,6 @@
 #ifndef _RCLRESLIST_H_INCLUDED_
 #define _RCLRESLIST_H_INCLUDED_
-/* @(#$Id: rclreslist.h,v 1.8 2006-04-26 11:29:10 dockes Exp $  (C) 2005 J.F.Dockes */
+/* @(#$Id: rclreslist.h,v 1.9 2006-09-12 10:11:36 dockes Exp $  (C) 2005 J.F.Dockes */
 
 #include <qtextbrowser.h>
 #include <qpopupmenu.h>
@@ -16,20 +16,26 @@
  public:
     RclResList(QWidget* parent = 0, const char* name = 0);
     virtual ~RclResList();
+    
+    // Return document for given docnum. We act as an intermediary to
+    // the docseq here. This has also the side-effect of making the
+    // entry current (visible and highlighted), and only work if the
+    // num is inside the current page or its immediate neighbours.
+    virtual bool getDoc(int docnum, Rcl::Doc &);
 
-    virtual bool getDoc( int, Rcl::Doc & );
     virtual void setDocSource(DocSequence *, Rcl::AdvSearchData& qdata);
     virtual QPopupMenu *createPopupMenu(const QPoint& pos);
-    virtual QString getDescription();
+    virtual QString getDescription(); // Printable actual query performed on db
+    virtual int getResCnt(); // Return total result list size
 
  public slots:
     virtual void resetSearch() {m_winfirst = -1;clear();}
     virtual void clicked(int, int);
     virtual void doubleClicked(int, int);
-    virtual void resPageUpOrBack();
-    virtual void resPageDownOrNext();
-    virtual void resultPageBack();
-    virtual void showResultPage();
+    virtual void resPageUpOrBack(); // Page up pressed
+    virtual void resPageDownOrNext(); // Page down pressed
+    virtual void resultPageBack(); // Display previous page of results
+    virtual void resultPageNext(); // Display next (or first) page of results
     virtual void menuPreview();
     virtual void menuEdit();
     virtual void menuCopyFN();
@@ -59,9 +65,10 @@
     DocSequence       *m_docsource;
     std::vector<Rcl::Doc> m_curDocs;
     int                m_winfirst;
-    int                m_docnum; // Docnum matching the 
+    int                m_docnum; // Docnum matching the currently active para
 
     virtual int docnumfromparnum(int);
+    virtual int parnumfromdocnum(int);
     void emitLinkClicked(const QString &s) {
 	emit linkClicked(s);
     };