#include "Language.h"
#include "LyX.h"
#include "LyXRC.h"
+#include "lyxfind.h"
#include "Paragraph.h"
#include "WordLangTuple.h"
}
+void GuiSpellchecker::on_findNextPB_clicked()
+{
+ docstring const data = find2string(
+ qstring_to_ucs4(d->ui.wordED->text()),
+ true, true, true);
+ dispatch(FuncRequest(LFUN_WORD_FIND, data));
+}
+
+
void GuiSpellchecker::on_replacePB_clicked()
{
docstring const replacement = qstring_to_ucs4(d->ui.replaceCO->currentText());
}
+void GuiSpellchecker::on_replaceAllPB_clicked()
+{
+ docstring const data = replace2string(
+ qstring_to_ucs4(d->ui.wordED->text()),
+ qstring_to_ucs4(d->ui.replaceCO->currentText()),
+ true, true, true, true);
+ dispatch(FuncRequest(LFUN_WORD_REPLACE, data));
+}
+
+
void GuiSpellchecker::updateSuggestions(docstring_list & words)
{
QString const suggestion = toqstr(d->word_.word());
<x>0</x>
<y>0</y>
<width>259</width>
- <height>536</height>
+ <height>506</height>
</rect>
</property>
<property name="windowTitle" >
</property>
</widget>
</item>
+ <item row="1" column="1" >
+ <widget class="QPushButton" name="findNextPB" >
+ <property name="toolTip" >
+ <string>Replace word with current choice</string>
+ </property>
+ <property name="text" >
+ <string>&Find Next</string>
+ </property>
+ </widget>
+ </item>
<item row="2" column="0" >
<widget class="QLabel" name="TextLabel1" >
<property name="text" >
</property>
</widget>
</item>
- <item rowspan="4" row="5" column="0" >
+ <item row="4" column="1" >
+ <widget class="QPushButton" name="replaceAllPB" >
+ <property name="toolTip" >
+ <string>Replace word with current choice</string>
+ </property>
+ <property name="text" >
+ <string>Replace &All</string>
+ </property>
+ </widget>
+ </item>
+ <item rowspan="5" row="5" column="0" >
<widget class="QListWidget" name="suggestionsLW" />
</item>
- <item row="5" column="1" >
+ <item row="6" column="1" >
<widget class="QPushButton" name="ignorePB" >
<property name="toolTip" >
<string>Ignore this word</string>
</property>
</widget>
</item>
- <item row="6" column="1" >
+ <item row="7" column="1" >
<widget class="QPushButton" name="ignoreAllPB" >
<property name="toolTip" >
<string>Ignore this word throughout this session</string>
</property>
</widget>
</item>
- <item row="7" column="1" >
+ <item row="8" column="1" >
<widget class="QPushButton" name="addPB" >
<property name="toolTip" >
<string>Add the word to your personal dictionary</string>
</property>
</widget>
</item>
- <item row="8" column="1" >
+ <item row="9" column="1" >
<spacer name="spacer" >
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
</spacer>
</item>
- <item row="9" column="0" >
+ <item row="10" column="0" >
<widget class="QProgressBar" name="spellcheckPR" >
<property name="value" >
<number>24</number>