|
a/src/qtgui/advsearch.ui.h |
|
b/src/qtgui/advsearch.ui.h |
|
... |
|
... |
25 |
** These will automatically be called by the form's constructor and
|
25 |
** These will automatically be called by the form's constructor and
|
26 |
** destructor.
|
26 |
** destructor.
|
27 |
*****************************************************************************/
|
27 |
*****************************************************************************/
|
28 |
|
28 |
|
29 |
#include <qfiledialog.h>
|
29 |
#include <qfiledialog.h>
|
|
|
30 |
#include <qmessagebox.h>
|
30 |
|
31 |
|
31 |
#include <list>
|
32 |
#include <list>
|
32 |
#include <string>
|
33 |
#include <string>
|
33 |
|
34 |
|
34 |
#ifndef NO_NAMESPACES
|
35 |
#ifndef NO_NAMESPACES
|
|
... |
|
... |
125 |
}
|
126 |
}
|
126 |
|
127 |
|
127 |
void advsearch::searchPB_clicked()
|
128 |
void advsearch::searchPB_clicked()
|
128 |
{
|
129 |
{
|
129 |
Rcl::AdvSearchData mydata;
|
130 |
Rcl::AdvSearchData mydata;
|
|
|
131 |
|
130 |
mydata.allwords = string((const char*)(andWordsLE->text().utf8()));
|
132 |
mydata.allwords = string((const char*)(andWordsLE->text().utf8()));
|
131 |
mydata.phrase = string((const char*)(phraseLE->text().utf8()));
|
133 |
mydata.phrase = string((const char*)(phraseLE->text().utf8()));
|
132 |
mydata.orwords = string((const char*)(orWordsLE->text().utf8()));
|
134 |
mydata.orwords = string((const char*)(orWordsLE->text().utf8()));
|
133 |
mydata.nowords = string((const char*)(noWordsLE->text().utf8()));
|
135 |
mydata.nowords = string((const char*)(noWordsLE->text().utf8()));
|
134 |
mydata.filename = string((const char*)(fileNameLE->text().utf8()));
|
136 |
mydata.filename = string((const char*)(fileNameLE->text().utf8()));
|
|
|
137 |
|
|
|
138 |
if (mydata.allwords.empty() && mydata.phrase.empty() &&
|
|
|
139 |
mydata.orwords.empty() && mydata.filename.empty()) {
|
|
|
140 |
if (mydata.nowords.empty())
|
|
|
141 |
return;
|
|
|
142 |
QMessageBox::warning(0, "Recoll",
|
|
|
143 |
tr("Cannot execute pure negative query. "
|
|
|
144 |
"Please enter common terms in the 'any words' field"));
|
|
|
145 |
return;
|
|
|
146 |
}
|
|
|
147 |
|
135 |
if (restrictFtCB->isOn() && noFiltypsLB->count() > 0) {
|
148 |
if (restrictFtCB->isOn() && noFiltypsLB->count() > 0) {
|
136 |
for (unsigned int i = 0; i < yesFiltypsLB->count(); i++) {
|
149 |
for (unsigned int i = 0; i < yesFiltypsLB->count(); i++) {
|
137 |
QCString ctext = yesFiltypsLB->item(i)->text().utf8();
|
150 |
QCString ctext = yesFiltypsLB->item(i)->text().utf8();
|
138 |
mydata.filetypes.push_back(string((const char *)ctext));
|
151 |
mydata.filetypes.push_back(string((const char *)ctext));
|
139 |
}
|
152 |
}
|