|
a/src/qtgui/searchclause_w.cpp |
|
b/src/qtgui/searchclause_w.cpp |
|
... |
|
... |
47 |
|
47 |
|
48 |
proxSlackSB = new QSpinBox(this);
|
48 |
proxSlackSB = new QSpinBox(this);
|
49 |
hLayout->addWidget(proxSlackSB);
|
49 |
hLayout->addWidget(proxSlackSB);
|
50 |
|
50 |
|
51 |
wordsLE = new QLineEdit(this);
|
51 |
wordsLE = new QLineEdit(this);
|
52 |
wordsLE->setMinimumSize(QSize(250, 0));
|
52 |
wordsLE->setMinimumSize(QSize(190, 0));
|
53 |
hLayout->addWidget(wordsLE);
|
53 |
hLayout->addWidget(wordsLE);
|
54 |
|
54 |
|
55 |
languageChange();
|
55 |
languageChange();
|
56 |
resize(QSize(0, 0).expandedTo(minimumSizeHint()));
|
56 |
resize(QSize(0, 0).expandedTo(minimumSizeHint()));
|
57 |
|
57 |
|
|
... |
|
... |
71 |
* language.
|
71 |
* language.
|
72 |
*/
|
72 |
*/
|
73 |
void SearchClauseW::languageChange()
|
73 |
void SearchClauseW::languageChange()
|
74 |
{
|
74 |
{
|
75 |
sTpCMB->clear();
|
75 |
sTpCMB->clear();
|
76 |
sTpCMB->addItem(tr("Any of these")); // 0
|
76 |
sTpCMB->addItem(tr("Any")); // 0
|
77 |
sTpCMB->addItem(tr("All of these")); //1
|
77 |
sTpCMB->addItem(tr("All")); //1
|
78 |
sTpCMB->addItem(tr("None of these"));//2
|
78 |
sTpCMB->addItem(tr("None"));//2
|
79 |
sTpCMB->addItem(tr("This phrase"));//3
|
79 |
sTpCMB->addItem(tr("Phrase"));//3
|
80 |
sTpCMB->addItem(tr("Terms in proximity"));//4
|
80 |
sTpCMB->addItem(tr("Proximity"));//4
|
81 |
sTpCMB->addItem(tr("File name matching"));//5
|
81 |
sTpCMB->addItem(tr("File name"));//5
|
82 |
// sTpCMB->insertItem(tr("Complex clause"));//6
|
82 |
// sTpCMB->insertItem(tr("Complex clause"));//6
|
83 |
|
83 |
|
84 |
fldCMB->addItem(tr("No field"));
|
84 |
fldCMB->addItem(tr("No field"));
|
85 |
if (theconfig) {
|
85 |
if (theconfig) {
|
86 |
set<string> fields = theconfig->getIndexedFields();
|
86 |
set<string> fields = theconfig->getIndexedFields();
|