Switch to unified view

a/src/qtgui/ssearchb.ui.h b/src/qtgui/ssearchb.ui.h
...
...
26
** destructor.
26
** destructor.
27
*****************************************************************************/
27
*****************************************************************************/
28
28
29
#include "debuglog.h"
29
#include "debuglog.h"
30
30
31
void SSearchBase::init()
32
{
33
    searchTypCMB->insertItem(tr("Any term"));
34
    searchTypCMB->insertItem(tr("All terms"));
35
    searchTypCMB->insertItem(tr("File name"));
36
}
37
31
void SSearchBase::searchTextChanged( const QString & text )
38
void SSearchBase::searchTextChanged( const QString & text )
32
{
39
{
33
    if (text.isEmpty()) {
40
    if (text.isEmpty()) {
34
    searchPB->setEnabled(false);
41
    searchPB->setEnabled(false);
35
    clearqPB->setEnabled(false);
42
    clearqPB->setEnabled(false);
...
...
43
{
50
{
44
    LOGDEB(("SSearchBase::startSimpleSearch\n"));
51
    LOGDEB(("SSearchBase::startSimpleSearch\n"));
45
52
46
    Rcl::AdvSearchData sdata;
53
    Rcl::AdvSearchData sdata;
47
    QCString u8 =  queryText->text().utf8();
54
    QCString u8 =  queryText->text().utf8();
48
55
    switch (searchTypCMB->currentItem()) {
49
    if (isFNameCB->isChecked())
56
    case 0:
57
    default:
58
  sdata.orwords = u8;
59
  break;
60
    case 1:
61
  sdata.allwords = u8;
62
  break;
63
    case 2:
50
    sdata.filename = u8;
64
    sdata.filename = u8;
51
    else if (allTermsCB->isChecked())
65
  break;
52
  sdata.allwords = u8;
66
    }
53
    else
54
  sdata.orwords = u8;
55
67
56
    emit startSearch(sdata);
68
    emit startSearch(sdata);
57
}
69
}