~ubuntu-branches/ubuntu/trusty/bibletime/trusty

« back to all changes in this revision

Viewing changes to src/frontend/searchdialog/cmoduleresultview.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs, Jonathan Marsden, Dmitrijs Ledkovs
  • Date: 2012-04-14 18:11:50 UTC
  • mfrom: (1.3.7)
  • Revision ID: package-import@ubuntu.com-20120414181150-17l2liq7bl7oaxjz
Tags: 2.9.1-1
[ Jonathan Marsden ]
* New upstream version 2.9.1
* debian/patches/*: Remove all patches (incorporated upstream)
* debian/control: bibletime now depends on a matching version of
  bibletime-data.

[ Dmitrijs Ledkovs ]
* Add more strict alternative build-dependency on the libqt4-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#include <QMenu>
16
16
#include <QStringList>
17
17
#include <QTreeWidget>
18
 
#include <QDebug>
19
18
#include <QtAlgorithms>
20
19
 
21
20
#include "backend/drivers/cswordmoduleinfo.h"
224
223
 
225
224
/** Reimplementation from QWidget. */
226
225
void CModuleResultView::contextMenuEvent( QContextMenuEvent * event ) {
227
 
    qDebug() << "CModuleResultView::showPopup";
228
226
    //make sure that all entries have the correct status
229
227
    m_popup->exec(event->globalPos());
230
228
}
233
231
void CModuleResultView::copyResult() {
234
232
    CSwordModuleInfo *m = activeModule();
235
233
    if (m != 0) {
236
 
        CExportManager mgr(tr("Copy search result..."), true,
237
 
                           tr("Copying search result"));
 
234
        CExportManager mgr(true, tr("Copying search result"));
238
235
 
239
236
        mgr.copyKeyList(m_results[m], m, CExportManager::Text, false);
240
237
    };
244
241
void CModuleResultView::copyResultWithText() {
245
242
    CSwordModuleInfo *m = activeModule();
246
243
    if (m != 0) {
247
 
        CExportManager mgr(tr("Copy search result..."), true,
248
 
                           tr("Copying search result"));
249
 
 
 
244
        CExportManager mgr(true, tr("Copying search result"));
250
245
        mgr.copyKeyList(m_results[m], m, CExportManager::Text, true);
251
246
    };
252
247
}
255
250
void CModuleResultView::saveResult() {
256
251
    CSwordModuleInfo *m = activeModule();
257
252
    if (m != 0) {
258
 
        CExportManager mgr(tr("Save search result..."), true,
259
 
                           tr("Saving search result"));
260
 
 
 
253
        CExportManager mgr(true, tr("Saving search result"));
261
254
        mgr.saveKeyList(m_results[m], m, CExportManager::Text, false);
262
255
    };
263
256
}
266
259
void CModuleResultView::saveResultWithText() {
267
260
    CSwordModuleInfo *m = activeModule();
268
261
    if (m != 0) {
269
 
        CExportManager mgr(tr("Save search result..."), true,
270
 
                           tr("Saving search result"));
271
 
 
 
262
        CExportManager mgr(true, tr("Saving search result"));
272
263
        mgr.saveKeyList(m_results[m], m, CExportManager::Text, true);
273
264
    };
274
265
}
277
268
void CModuleResultView::printResult() {
278
269
    CSwordModuleInfo *m = activeModule();
279
270
    if (m != 0) {
280
 
        CExportManager mgr(tr("Print search result..."), true,
281
 
                           tr("Printing search result"));
282
 
 
 
271
        CExportManager mgr(true, tr("Printing search result"));
283
272
        mgr.printKeyList(m_results[m], m, CBTConfig::getDisplayOptionDefaults(),
284
273
                         CBTConfig::getFilterOptionDefaults());
285
274
    };