|
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.1 2006-10-11 14:16:26 dockes Exp $ (C) 2005 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: spell_w.cpp,v 1.2 2006-10-15 13:07:45 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
|
|
... |
|
... |
46 |
this, SLOT(wordChanged(const QString&)));
|
46 |
this, SLOT(wordChanged(const QString&)));
|
47 |
connect(baseWordLE, SIGNAL(returnPressed()), this, SLOT(doExpand()));
|
47 |
connect(baseWordLE, SIGNAL(returnPressed()), this, SLOT(doExpand()));
|
48 |
connect(expandPB, SIGNAL(clicked()), this, SLOT(doExpand()));
|
48 |
connect(expandPB, SIGNAL(clicked()), this, SLOT(doExpand()));
|
49 |
connect(clearPB, SIGNAL(clicked()), baseWordLE, SLOT(clear()));
|
49 |
connect(clearPB, SIGNAL(clicked()), baseWordLE, SLOT(clear()));
|
50 |
connect(dismissPB, SIGNAL(clicked()), this, SLOT(close()));
|
50 |
connect(dismissPB, SIGNAL(clicked()), this, SLOT(close()));
|
|
|
51 |
connect(suggsTE, SIGNAL(doubleClicked(int, int)),
|
|
|
52 |
this, SLOT(textDoubleClicked(int, int)));
|
51 |
}
|
53 |
}
|
52 |
|
54 |
|
53 |
void SpellW::doExpand()
|
55 |
void SpellW::doExpand()
|
54 |
{
|
56 |
{
|
55 |
#ifdef RCL_USE_ASPELL
|
57 |
#ifdef RCL_USE_ASPELL
|
|
... |
|
... |
90 |
} else {
|
92 |
} else {
|
91 |
expandPB->setEnabled(true);
|
93 |
expandPB->setEnabled(true);
|
92 |
clearPB->setEnabled(true);
|
94 |
clearPB->setEnabled(true);
|
93 |
}
|
95 |
}
|
94 |
}
|
96 |
}
|
|
|
97 |
|
|
|
98 |
void SpellW::textDoubleClicked(int, int)
|
|
|
99 |
{
|
|
|
100 |
if (suggsTE->hasSelectedText())
|
|
|
101 |
emit(wordSelect(suggsTE->selectedText()));
|
|
|
102 |
}
|