Scribus
Open source desktop publishing at your fingertips
prefs_guides.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_GUIDES_H
9 #define PREFS_GUIDES_H
10 
11 #include "ui_prefs_guidesbase.h"
12 #include "prefs_pane.h"
13 #include "scribusapi.h"
14 
15 class ScribusDoc;
16 
17 class SCRIBUS_API Prefs_Guides : public Prefs_Pane, Ui::Prefs_Guides
18 {
19  Q_OBJECT
20 
21  public:
22  Prefs_Guides(QWidget* parent, ScribusDoc* doc=NULL);
23  ~Prefs_Guides();
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);
30 
31  protected slots:
32  virtual void changeMajorColor();
33  virtual void changeMinorColor();
34  virtual void changeBaselineColor();
35  virtual void changeGuideColor();
36  virtual void changeMarginColor();
37  virtual void changeRenderStack();
38  virtual void moveUp();
39  virtual void moveDown();
40  virtual void select(QListWidgetItem* item);
41  virtual void gridClicked();
42 
43  protected:
44  QColor colorGuides;
45  QColor colorMargin;
46  QColor colorMajorGrid;
47  QColor colorMinorGrid;
48  QColor colorBaselineGrid;
49  QList<int> renderStackOrder;
50 };
51 
52 #endif // PREFS_GUIDES_H
Definition: prefsstructs.h:453
Definition: prefs_guides.h:17
the Document Class
Definition: scribusdoc.h:90
Definition: prefs_pane.h:14