Switch to unified view

a/src/qtgui/rclmain_w.cpp b/src/qtgui/rclmain_w.cpp
...
...
75
#include "firstidx.h"
75
#include "firstidx.h"
76
#include "idxsched.h"
76
#include "idxsched.h"
77
#include "crontool.h"
77
#include "crontool.h"
78
#include "rtitool.h"
78
#include "rtitool.h"
79
#include "indexer.h"
79
#include "indexer.h"
80
#include "rclzg.h"
80
81
81
using namespace confgui;
82
using namespace confgui;
82
83
83
#include "rclmain_w.h"
84
#include "rclmain_w.h"
84
#include "rclhelp.h"
85
#include "rclhelp.h"
...
...
1147
        }
1148
        }
1148
        return;
1149
        return;
1149
        }
1150
        }
1150
    }
1151
    }
1151
    }
1152
    }
1153
    // Do the zeitgeist thing
1154
    zg_send_event(ZGSEND_PREVIEW, doc);
1152
1155
1153
    if (mod & Qt::ShiftModifier) {
1156
    if (mod & Qt::ShiftModifier) {
1154
    // User wants new preview window
1157
    // User wants new preview window
1155
    curPreview = 0;
1158
    curPreview = 0;
1156
    }
1159
    }
...
...
1229
    }
1232
    }
1230
    connect(new QShortcut(quitKeySeq, preview), SIGNAL (activated()), 
1233
    connect(new QShortcut(quitKeySeq, preview), SIGNAL (activated()), 
1231
        this, SLOT (fileExit()));
1234
        this, SLOT (fileExit()));
1232
    connect(preview, SIGNAL(wordSelect(QString)),
1235
    connect(preview, SIGNAL(wordSelect(QString)),
1233
        sSearch, SLOT(addTerm(QString)));
1236
        sSearch, SLOT(addTerm(QString)));
1237
    // Do the zeitgeist thing
1238
    zg_send_event(ZGSEND_PREVIEW, doc);
1234
    preview->show();
1239
    preview->show();
1235
    preview->makeDocCurrent(doc, 0);
1240
    preview->makeDocCurrent(doc, 0);
1236
}
1241
}
1237
1242
1238
// Show next document from result list in current preview tab
1243
// Show next document from result list in current preview tab
...
...
1619
    stb->showMessage(msg, 5000);
1624
    stb->showMessage(msg, 5000);
1620
    }
1625
    }
1621
1626
1622
    if (!istempfile)
1627
    if (!istempfile)
1623
    historyEnterDoc(g_dynconf, doc.meta[Rcl::Doc::keyudi]);
1628
    historyEnterDoc(g_dynconf, doc.meta[Rcl::Doc::keyudi]);
1629
    
1630
    // Do the zeitgeist thing
1631
    zg_send_event(ZGSEND_OPEN, doc);
1624
1632
1625
    // We keep pushing back and never deleting. This can't be good...
1633
    // We keep pushing back and never deleting. This can't be good...
1626
    ExecCmd *ecmd = new ExecCmd;
1634
    ExecCmd *ecmd = new ExecCmd;
1627
    m_viewers.push_back(ecmd);
1635
    m_viewers.push_back(ecmd);
1628
    ecmd->startExec(cmdpath, lcmd, false, false);
1636
    ecmd->startExec(cmdpath, lcmd, false, false);