Scribus
Open source desktop publishing at your fingertips
prefs_scripter.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_SCRIPTER_H
9 #define PREFS_SCRIPTER_H
10 
11 #include "ui_prefs_scripterbase.h"
12 #include "ui/prefs_pane.h"
13 #include "pconsole.h"
14 
15 class Prefs_Scripter : public Prefs_Pane, Ui::Prefs_Scripter
16 {
17  Q_OBJECT
18 
19  public:
20  Prefs_Scripter(QWidget* parent=0);
21  ~Prefs_Scripter();
22  virtual void restoreDefaults(struct ApplicationPrefs *prefsData);
23  virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const;
24 
25  public slots:
26  void languageChange();
28  void apply();
29 
30 
31  protected:
32  void setupSyntaxColors();
33  QColor textColor;
34  QColor commentColor;
35  QColor keywordColor;
36  QColor errorColor;
37  QColor signColor;
38  QColor stringColor;
39  QColor numberColor;
40 
41  protected slots:
45  void setColor();
46  void changeStartupScript();
47 
48  signals:
49  void prefsChanged();
50 };
51 
52 #endif // PREFS_SCRIPTER_H
Definition: prefsstructs.h:453
void setColor()
All requests for color change are handled here.
Definition: prefs_scripter.cpp:86
void apply()
Apply changes to prefs. Auto connected.
Definition: prefs_scripter.cpp:66
Definition: prefs_pane.h:14
Definition: prefs_scripter.h:15