1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/net-im/psi/files/patch-src_msgmle.h
Alexey Dokuchaev 59494c0dce - Update `net-im/psi' to version 1.4
- Replace current 2015 Hunspell implementation (by Sergey Ilinykh and
  Vitaly Tonkacheyev) with 2009 one by Alexander Tsvyashchenko, which
  turned out to be better alternative:

   * Much faster (suggestions appear almost instantly vs. several
     hundreds milliseconds with the original implementation)
   * Better multilanguage support (tested with English and Russian)
   * Ability to limit number of suggestions in the settings dialog
   * Working "add word to the dictionary" feature

Obtained from:	http://endl.ch/content/psi-spell-checking-hunspell-support
2019-04-07 14:45:50 +00:00

29 lines
885 B
C++

--- src/msgmle.h.orig 2018-11-02 00:15:39 UTC
+++ src/msgmle.h
@@ -54,6 +54,8 @@ class ChatEdit : public QTextEdit (public)
void setFont(const QFont &);
static bool checkSpellingGloballyEnabled();
+ static QStringList checkSpellingActiveLanguages();
+ static unsigned checkSpellingMaxSuggestions();
void setCheckSpelling(bool);
XMPP::HTMLElement toHTMLElement();
bool isCorrection() { return correction; }
@@ -71,6 +73,7 @@ public slots:
protected slots:
void applySuggestion();
void addToDictionary();
+ void changedUseLang();
void optionsChanged();
void showHistoryMessageNext();
void showHistoryMessagePrev();
@@ -91,6 +94,8 @@ protected slots: (protected)
private:
QWidget *dialog_;
bool check_spelling_;
+ QList<QString> langs_, all_langs_;
+ unsigned max_sugs_;
SpellHighlighter* spellhighlighter_;
QPoint last_click_;
int previous_position_;