~ubuntu-branches/ubuntu/trusty/recoll/trusty

« back to all changes in this revision

Viewing changes to qtgui/main.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry
  • Date: 2008-11-13 21:18:15 UTC
  • mfrom: (1.1.7 upstream) (4.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20081113211815-2hxp996xj5hyjh08
Tags: 1.11.0-1
* New upstream release:
  + Remebers missing filters in first run (Closes: #500690)
* debian/control:
  + Added libimage-exiftool-perl as Suggests (Closes: #502427)
  + Added Python as recommaded due to filters/rclpython script
    although, its not necessary as it will be installed only
    when Python is present
* debian/patches:
  + Refreshed patch for gcc 4.4 FTBFS (Closes: #505376)
* debian/copyright:
  + Updated for newly added filter and image files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef lint
2
 
static char rcsid[] = "@(#$Id: main.cpp,v 1.67 2008/06/13 18:22:46 dockes Exp $ (C) 2005 J.F.Dockes";
 
2
static char rcsid[] = "@(#$Id: main.cpp,v 1.70 2008/09/30 12:38:29 dockes Exp $ (C) 2005 J.F.Dockes";
3
3
#endif
4
4
/*
5
5
 *   This program is free software; you can redistribute it and/or modify
205
205
 
206
206
    //    fprintf(stderr, "Application created\n");
207
207
    string a_config;
208
 
    string qstring;
 
208
    string question;
209
209
 
210
210
    thisprog = argv[0];
211
211
    argc--; argv++;
225
225
            case 'l': op_flags |= OPT_l; break;
226
226
            case 'o': op_flags |= OPT_o; break;
227
227
            case 'q':   op_flags |= OPT_q; if (argc < 2)  Usage();
228
 
                qstring = *(++argv);
 
228
                question = *(++argv);
229
229
                argc--; goto b1;
230
230
            case 't': op_flags |= OPT_t; break;
231
231
            }
338
338
                 "Ok", "Cancel", 0,   0)) {
339
339
 
340
340
        case 0: // Ok: indexing is going to start.
341
 
            startindexing = 1;
 
341
            start_indexing(true);
342
342
            break;
343
343
 
344
344
        case 1: // Cancel
345
345
            needindexconfig = true;
346
 
            startindexing = 0;
347
346
            break;
348
347
        }
349
348
    }
383
382
        }
384
383
        mainWindow->sSearch->searchTypCMB->setCurrentItem(int(stype));
385
384
        mainWindow->
386
 
            sSearch->setSearchString(QString::fromUtf8(qstring.c_str()));
 
385
            sSearch->setSearchString(QString::fromLocal8Bit(question.c_str()));
387
386
        // The 200 ms are a hack to jump over the first db close by 
388
387
        // periodic100()... 
389
388
        QTimer::singleShot(200, mainWindow->sSearch, SLOT(startSimpleSearch()));