Scribus
Open source desktop publishing at your fingertips
cmsprefs.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 CMSPREFS_H
8 #define CMSPREFS_H
9 
10 #include "ui_cmsprefsbase.h"
11 #include "scribusapi.h"
12 
13 class ScribusDoc;
14 struct CMSData;
15 typedef QMap<QString,QString> ProfilesL;
16 
17 class SCRIBUS_API CMSPrefs : public QWidget, Ui::CMSPrefsBase
18 {
19  Q_OBJECT
20 
21 public:
22  CMSPrefs( QWidget* parent, CMSData *Vor, ProfilesL *InputProfiles, ProfilesL *InputProfilesCMYK, ProfilesL *PrinterProfiles, ProfilesL *MonitorProfiles);
23  ~CMSPrefs() {};
24 
25  void restoreDefaults(CMSData *prefs, ProfilesL *InputProfiles, ProfilesL *InputProfilesCMYK, ProfilesL *PrinterProfiles, ProfilesL *MonitorProfiles);
26  void updateDocSettings(ScribusDoc* doc);
27  CMSData *prefs;
28  bool changed;
29 
30 protected:
31  bool m_canChangeMonitorProfile;
32 
33 public slots:
34  virtual void slotCMSon(bool active = false);
35  virtual void setValues();
36 
37 signals:
38  void cmsOn(bool);
39 };
40 
41 #endif // CMSPREFS_H
the Document Class
Definition: scribusdoc.h:90
Definition: scribusstructs.h:102
Definition: cmsprefs.h:17