Scribus
Open source desktop publishing at your fingertips
prefs_shortwords.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_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=0);
21  virtual void restoreDefaults(struct ApplicationPrefs *prefsData);
22  virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const;
23 
24  public slots:
25  void languageChange();
27  void apply();
28 
29  protected slots:
31  virtual void saveButton_pressed();
33  virtual void resetButton_pressed();
35  virtual void cfgEdit_changed();
36 
37  protected:
40  bool loadCfgFile(QString filename);
41 };
42 
43 #endif // PREFS_SHORTWORDS_H
Definition: prefsstructs.h:453
Definition: prefs_shortwords.h:14
virtual void cfgEdit_changed()
Text editor changed.
Definition: prefs_shortwords.cpp:105
bool loadCfgFile(QString filename)
Load cfg file.
Definition: prefs_shortwords.cpp:111
Definition: prefs_pane.h:14
virtual void saveButton_pressed()
Save the content into user file.
Definition: prefs_shortwords.cpp:67
virtual void resetButton_pressed()
Re-reads system wide config file.
Definition: prefs_shortwords.cpp:95
void apply()
Apply changes to prefs. Auto connected.
Definition: prefs_shortwords.cpp:61