QtSpell 1.0.1
Spell checking for Qt text widgets
Checker_p.hpp
1/* QtSpell - Spell checking for Qt text widgets.
2 * Copyright (c) 2014-2022 Sandro Mani
3 * Copyright (c) 2021 Pino Toscano
4 *
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
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20#ifndef QTSPELL_CHECKER_P_HPP
21#define QTSPELL_CHECKER_P_HPP
22
23#include <QString>
24
25namespace enchant { class Dict; }
26
27namespace QtSpell {
28
29class Checker;
30
31class CheckerPrivate
32{
33public:
34 CheckerPrivate();
35 virtual ~CheckerPrivate();
36
37 void init();
38 bool setLanguageInternal(const QString& newLang);
39
40 Checker* q_ptr = nullptr;
41 enchant::Dict* speller = nullptr;
42 QString lang;
43 bool decodeCodes = false;
44 bool spellingCheckbox = false;
45 bool spellingEnabled = true;
46
47 Q_DECLARE_PUBLIC(Checker)
48};
49
50} // QtSpell
51
52#endif // QTSPELL_CHECKER_P_HPP
QtSpell namespace.
Definition Checker.cpp:77