|
a/src/qtgui/ssearch_w.cpp |
|
b/src/qtgui/ssearch_w.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: ssearch_w.cpp,v 1.22 2007-08-01 10:04:53 dockes Exp $ (C) 2006 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: ssearch_w.cpp,v 1.23 2007-10-05 08:03:01 dockes Exp $ (C) 2006 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
/*
|
4 |
/*
|
5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
|
... |
|
... |
34 |
#include "ssearch_w.h"
|
34 |
#include "ssearch_w.h"
|
35 |
#include "refcntr.h"
|
35 |
#include "refcntr.h"
|
36 |
#include "textsplit.h"
|
36 |
#include "textsplit.h"
|
37 |
#include "wasatorcl.h"
|
37 |
#include "wasatorcl.h"
|
38 |
|
38 |
|
39 |
enum SSearchType {SST_ANY = 0, SST_ALL = 1, SST_FNM = 2, SST_LANG = 3};
|
|
|
40 |
|
|
|
41 |
void SSearch::init()
|
39 |
void SSearch::init()
|
42 |
{
|
40 |
{
|
43 |
// See enum above and keep in order !
|
41 |
// See enum above and keep in order !
|
44 |
searchTypCMB->insertItem(tr("Any term"));
|
42 |
searchTypCMB->insertItem(tr("Any term"));
|
45 |
searchTypCMB->insertItem(tr("All terms"));
|
43 |
searchTypCMB->insertItem(tr("All terms"));
|
|
... |
|
... |
179 |
}
|
177 |
}
|
180 |
|
178 |
|
181 |
|
179 |
|
182 |
RefCntr<Rcl::SearchData> rsdata(sdata);
|
180 |
RefCntr<Rcl::SearchData> rsdata(sdata);
|
183 |
emit startSearch(rsdata);
|
181 |
emit startSearch(rsdata);
|
|
|
182 |
}
|
|
|
183 |
void SSearch::setSearchString(const QString& txt)
|
|
|
184 |
{
|
|
|
185 |
queryText->setEditText(txt);
|
184 |
}
|
186 |
}
|
185 |
|
187 |
|
186 |
void SSearch::setAnyTermMode()
|
188 |
void SSearch::setAnyTermMode()
|
187 |
{
|
189 |
{
|
188 |
searchTypCMB->setCurrentItem(SST_ANY);
|
190 |
searchTypCMB->setCurrentItem(SST_ANY);
|