Scribus
Open source desktop publishing at your fingertips
prefs_itemtools.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_ITEMTOOLS_H
9 #define PREFS_ITEMTOOLS_H
10 
11 #include "ui_prefs_itemtoolsbase.h"
12 #include "prefs_pane.h"
13 #include "scribusapi.h"
14 
15 class ScribusDoc;
16 
17 class SCRIBUS_API Prefs_ItemTools : public Prefs_Pane, Ui::Prefs_ItemTools
18 {
19  Q_OBJECT
20 
21  public:
22  Prefs_ItemTools(QWidget* parent, ScribusDoc* doc=NULL);
23  ~Prefs_ItemTools();
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 newIndex);
30  void enableFontPreview(bool);
31 
32  protected slots:
33  void enableSignals(bool on);
34  void updateFontPreview();
35  void toggleImagesScalingChain();
36  void imageHorizontalScalingChange();
37  void imageVerticalScalingChange();
38  void imageScalingTypeChange();
39 
40  protected:
41  ScribusDoc* m_doc;
42  bool showFontPreview;
43 
44 };
45 
46 #endif // PREFS_ITEMTOOLS_H
Definition: prefsstructs.h:453
Definition: prefs_itemtools.h:17
the Document Class
Definition: scribusdoc.h:90
Definition: prefs_pane.h:14