Scribus
Open source desktop publishing at your fingertips
swprefsgui.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 #ifndef SWPREFSGUI_H
8 #define SWPREFSGUI_H
9 
10 class QVBoxLayout;
11 class QHBoxLayout;
12 class QGridLayout;
13 class QPushButton;
14 class QLabel;
15 class QTextEdit;
16 class QSpacerItem;
17 
18 #include "ui/prefspanel.h"
19 
24 class SWPrefsGui : public PrefsPanel
25 {
26  Q_OBJECT
27 
28  public:
29  SWPrefsGui(QWidget* parent);
30  ~SWPrefsGui();
31 
32  QLabel* titleLabel;
33  QTextEdit* cfgEdit;
34  QPushButton* okButton;
35  QPushButton* resetButton;
36 
37  public slots:
39  void apply();
41  virtual void okButton_pressed();
43  virtual void resetButton_pressed();
45  virtual void cfgEdit_changed();
46 
47  protected:
50  bool loadCfgFile(QString filename);
51 
52  QGridLayout* SWPrefsGuiLayout;
53  QVBoxLayout* editLayout;
54  QHBoxLayout* buttonLayout;
55  QSpacerItem* buttonSpacer;
56 
57  protected slots:
58  virtual void languageChange();
59 };
60 
61 #endif
virtual void resetButton_pressed()
Re-reads system wide config file.
Definition: swprefsgui.cpp:134
This is the Scribus Short Words plugin configuration widget. Used in Preferences dialog.
Definition: swprefsgui.h:24
virtual void okButton_pressed()
Save the content into user file.
Definition: swprefsgui.cpp:106
void apply()
Apply changes to prefs. Auto connected.
Definition: swprefsgui.cpp:100
A base class for all preferences panels.
Definition: prefspanel.h:21
virtual void cfgEdit_changed()
Text editor changed.
Definition: swprefsgui.cpp:144
bool loadCfgFile(QString filename)
Load cfg file.
Definition: swprefsgui.cpp:150