Scribus
Open source desktop publishing at your fingertips
prefs_display.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_DISPLAY_H
9 #define PREFS_DISPLAY_H
10 
11 #include "ui_prefs_displaybase.h"
12 #include "prefs_pane.h"
13 #include "scribusapi.h"
14 
15 class ScribusDoc;
16 
17 class SCRIBUS_API Prefs_Display : public Prefs_Pane, Ui::Prefs_Display
18 {
19  Q_OBJECT
20 
21  public:
22  Prefs_Display(QWidget* parent, ScribusDoc* doc=NULL);
23  ~Prefs_Display();
24  virtual void restoreDefaults(struct ApplicationPrefs *prefsData);
25  virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const;
26 
27  public slots:
28  void languageChange();
29  void unitChange(int unitIndex);
30 
31  protected slots:
36  void drawRuler();
41  void restoreDisScale();
46  void setDisScale();
51  virtual void changePaperColor();
52  virtual void changeScratchColor();
53  virtual void changeFrameColor();
54  virtual void changeNormFrameColor();
55  virtual void changeGroupFrameColor();
56  virtual void changeChainFrameColor();
57  virtual void changeLockFrameColor();
58  virtual void changeAnnotFrameColor();
59  virtual void changePageBorderColor();
60  virtual void changeControlCharsColor();
61 
62 
63 
64  protected:
65  int docUnitIndex;
66  QColor colorPaper;
67  QColor colorScratch;
68  QColor colorFrame;
69  QColor colorFrameNorm;
70  QColor colorFrameGroup;
71  QColor colorFrameLocked;
72  QColor colorFrameLinked;
73  QColor colorFrameAnnotation;
74  QColor colorPageBorder;
75  QColor colorControlChars;
76  double displayScale;
77  ScribusDoc* m_doc;
78 
79 };
80 
81 #endif // PREFS_DISPLAY_H
Definition: prefsstructs.h:453
Definition: prefs_display.h:17
the Document Class
Definition: scribusdoc.h:90
Definition: prefs_pane.h:14