|
a/src/qtgui/searchclause_w.cpp |
|
b/src/qtgui/searchclause_w.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: searchclause_w.cpp,v 1.2 2006-11-14 17:41:12 dockes Exp $ (C) 2005 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: searchclause_w.cpp,v 1.3 2006-11-30 13:38:44 dockes Exp $ (C) 2005 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
|
|
... |
|
... |
38 |
{
|
38 |
{
|
39 |
if (!name)
|
39 |
if (!name)
|
40 |
setName("SearchClauseW");
|
40 |
setName("SearchClauseW");
|
41 |
searchClauseLayout = new QVBoxLayout(this);
|
41 |
searchClauseLayout = new QVBoxLayout(this);
|
42 |
|
42 |
|
43 |
hLayout = new QHBoxLayout(0, 0, 6, "hLayout");
|
43 |
hLayout = new QHBoxLayout(0, 0, 3, "hLayout");
|
44 |
|
44 |
|
45 |
sTpCMB = new QComboBox(FALSE, this, "sTpCMB");
|
45 |
sTpCMB = new QComboBox(FALSE, this, "sTpCMB");
|
46 |
hLayout->addWidget(sTpCMB);
|
46 |
hLayout->addWidget(sTpCMB);
|
47 |
|
47 |
|
48 |
proxSlackSB = new QSpinBox(this, "proxSlackSB");
|
48 |
proxSlackSB = new QSpinBox(this, "proxSlackSB");
|
|
... |
|
... |
54 |
searchClauseLayout->addLayout(hLayout);
|
54 |
searchClauseLayout->addLayout(hLayout);
|
55 |
languageChange();
|
55 |
languageChange();
|
56 |
resize(QSize(0, 0).expandedTo(minimumSizeHint()));
|
56 |
resize(QSize(0, 0).expandedTo(minimumSizeHint()));
|
57 |
clearWState(WState_Polished);
|
57 |
clearWState(WState_Polished);
|
58 |
|
58 |
|
59 |
connect(sTpCMB, SIGNAL(activated(int)),
|
59 |
connect(sTpCMB, SIGNAL(activated(int)), this, SLOT(tpChange(int)));
|
60 |
this, SLOT(tpChange(int)));
|
|
|
61 |
}
|
60 |
}
|
62 |
|
61 |
|
63 |
/*
|
62 |
/*
|
64 |
* Destroys the object and frees any allocated resources
|
63 |
* Destroys the object and frees any allocated resources
|
65 |
*/
|
64 |
*/
|
|
... |
|
... |
113 |
case 3:
|
112 |
case 3:
|
114 |
return new SearchDataClauseDist(SCLT_PHRASE,
|
113 |
return new SearchDataClauseDist(SCLT_PHRASE,
|
115 |
(const char *)wordsLE->text().utf8(),
|
114 |
(const char *)wordsLE->text().utf8(),
|
116 |
proxSlackSB->value());
|
115 |
proxSlackSB->value());
|
117 |
case 4:
|
116 |
case 4:
|
118 |
fprintf(stderr, "NEAR\n");
|
|
|
119 |
return new SearchDataClauseDist(SCLT_NEAR,
|
117 |
return new SearchDataClauseDist(SCLT_NEAR,
|
120 |
(const char *)wordsLE->text().utf8(),
|
118 |
(const char *)wordsLE->text().utf8(),
|
121 |
proxSlackSB->value());
|
119 |
proxSlackSB->value());
|
122 |
case 5:
|
120 |
case 5:
|
123 |
return new SearchDataClauseFilename((const char *)wordsLE->text().utf8());
|
121 |
return new SearchDataClauseFilename((const char *)wordsLE->text().utf8());
|