Switch to unified view

a/src/qtgui/spell_w.cpp b/src/qtgui/spell_w.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: spell_w.cpp,v 1.10 2006-12-22 16:48:05 dockes Exp $ (C) 2005 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: spell_w.cpp,v 1.11 2007-02-19 16:28:05 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
...
...
77
    for (list<string>::const_iterator it = langs.begin(); 
77
    for (list<string>::const_iterator it = langs.begin(); 
78
     it != langs.end(); it++) {
78
     it != langs.end(); it++) {
79
    stemLangCMB->
79
    stemLangCMB->
80
        insertItem(QString::fromAscii(it->c_str(), it->length()));
80
        insertItem(QString::fromAscii(it->c_str(), it->length()));
81
    }
81
    }
82
    stemLangCMB->setEnabled(false);
82
    stemLangCMB->setEnabled(expTypeCMB->currentItem()==2);
83
83
84
    // signals and slots connections
84
    // signals and slots connections
85
    connect(baseWordLE, SIGNAL(textChanged(const QString&)), 
85
    connect(baseWordLE, SIGNAL(textChanged(const QString&)), 
86
        this, SLOT(wordChanged(const QString&)));
86
        this, SLOT(wordChanged(const QString&)));
87
    connect(baseWordLE, SIGNAL(returnPressed()), this, SLOT(doExpand()));
87
    connect(baseWordLE, SIGNAL(returnPressed()), this, SLOT(doExpand()));
...
...
152
    list<Rcl::TermMatchEntry> entries;
152
    list<Rcl::TermMatchEntry> entries;
153
    switch (expTypeCMB->currentItem()) {
153
    switch (expTypeCMB->currentItem()) {
154
    case 0: 
154
    case 0: 
155
    case 1:
155
    case 1:
156
    case 2: {
156
    case 2: {
157
  string l_stemlang = stemLangCMB->currentText().ascii();
158
157
    if (!rcldb->termMatch(mt, prefs.queryStemLang.ascii(), expr, entries, 
159
    if (!rcldb->termMatch(mt, l_stemlang, expr, entries, 200)) {
158
                200)) {
159
        LOGERR(("SpellW::doExpand:rcldb::termMatch failed\n"));
160
        LOGERR(("SpellW::doExpand:rcldb::termMatch failed\n"));
160
        return;
161
        return;
161
    }
162
    }
162
    }
163
    }
163
    break;
164
    break;