Scribus
Open source desktop publishing at your fingertips
prefs_spelling.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 
8 #ifndef PREFS_SPELLING_H
9 #define PREFS_SPELLING_H
10 
11 #include "ui_prefs_spellingbase.h"
12 #include "prefs_pane.h"
13 #include "scribusapi.h"
14 #include "scribusstructs.h"
15 
16 class ScribusDoc;
17 
18 class SCRIBUS_API Prefs_Spelling : public Prefs_Pane, Ui::Prefs_Spelling
19 {
20 
21 
22  Q_OBJECT
23 
24  public:
25  Prefs_Spelling(QWidget* parent, ScribusDoc* doc=NULL);
26  ~Prefs_Spelling();
27  virtual void restoreDefaults(struct ApplicationPrefs *prefsData);
28  virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const;
29 
30  public slots:
31  void languageChange();
32 
33  protected slots:
34  void downloadSpellDicts();
35  void updateDictList();
36  void updateAvailDictList();
37  void downloadDictListFinished();
38  void downloadSpellDictsFinished();
39  void updateProgressBar();
40 
41  protected:
42  QString affixFileName(QStringList files);
43  QString dictFileName(QStringList files);
44  void setAvailDictsXMLFile(QString availDictsXMLDataFile);
45  QMap<QString, QString> dictionaryMap;
46  QStringList dictionaryPaths;
47  QString downloadLocation;
48  QList <DownloadItem> dictList;
49  QList <DownloadItem> downloadList;
50 };
51 
52 #endif // PREFS_SPELLING_H
Definition: prefsstructs.h:453
the Document Class
Definition: scribusdoc.h:90
Definition: prefs_pane.h:14