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_SHORTWORDS_H
9 #define PREFS_SHORTWORDS_H
10 
11 #include "ui_prefs_shortwordsbase.h"
12 #include "ui/prefs_pane.h"
13 
14 class Prefs_ShortWords : public Prefs_Pane, Ui::Prefs_ShortWords
15 {
16 	Q_OBJECT
17 
18 	public:
19 		Prefs_ShortWords(QWidget* parent=nullptr);
20 		~Prefs_ShortWords();
21 
22 		void restoreDefaults(struct ApplicationPrefs *prefsData) override;
23 		void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const override;
24 
25 	public slots:
26 		void languageChange();
27 		//! \brief Apply changes to prefs. Auto connected.
28 		void apply() override;
29 
30 	protected slots:
31 		/*! \brief Save the content into user file. */
32 		virtual void saveButton_pressed();
33 		/*! \brief Re-reads system wide config file. */
34 		virtual void resetButton_pressed();
35 		/*! \brief Text editor changed. */
36 		virtual void cfgEdit_changed();
37 
38 	protected:
39 		/*! \brief Load cfg file.
40 		\param filename string with full path and name.*/
41 		bool loadCfgFile(const QString& filename);
42 };
43 
44 #endif // PREFS_SHORTWORDS_H
45