Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

SpellChecker plugin

<< < (20/27) > >>

danselmi:
Here's the pathc to edit the personal dictionary file.
(detect c/c++ escapes still open...)

danselmi:
Hi
This patch disables the checker when no dictionaries are installed. Mentioned here:

--- Quote from: Oleg_Sam on August 16, 2011, 07:54:15 pm ---...
2. In the SpellChecker settings (when not installed Dictionary) the checkbox "Enable online spell checker" inaccessible, and so impossible
    to switch off SpellChecker (it's only accessible when Dictionary is installed).
...

--- End quote ---
and here:

--- Quote from: ham on August 17, 2011, 08:30:08 pm ---...
how can i disable SPELL CHECKING, the checkbox is greyed out (but enabled) and every, really every word is underlined as not recognized!.
...

--- End quote ---


--- Code: ---Index: SpellCheckerConfig.cpp
===================================================================
--- SpellCheckerConfig.cpp (revision 7390)
+++ SpellCheckerConfig.cpp (working copy)
@@ -95,6 +95,9 @@
             cont = dir.GetNext(&strfilename);
         }
     }
+    // disable online checker if there are no dictionaries found
+    if (m_dictionaries.empty())
+        m_EnableOnlineChecker = false;
 }
 const std::vector<wxString> &SpellCheckerConfig::GetPossibleDictionaries()const
 {
--- End code ---

killerbot:
last patch already applied

danselmi:

--- Quote from: oBFusCATed on August 15, 2011, 11:06:15 am ---...
if you have a string in the code like

--- Code: ---char const *str="\tword";

--- End code ---
The spellchecker ignores the \t and think, that I've typed tword.
Can you make it to know about C/C++ escape characters?

--- End quote ---

The attached patch solves this issue.

killerbot:
all patches applied  :P

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version