Scribus
Open source desktop publishing at your fingertips
propertiespalette_image.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 PROPERTIESPALETTE_IMAGE_H
8 #define PROPERTIESPALETTE_IMAGE_H
9 
10 #include "ui_propertiespalette_imagebase.h"
11 
12 #include "scribusapi.h"
13 #include "scrpalettebase.h"
14 #include "scrspinbox.h"
15 #include "sclistboxpixmap.h"
16 #include "scguardedptr.h"
17 
18 class PageItem;
19 class ScComboBox;
20 class ScribusDoc;
21 class ScribusMainWindow;
22 class Selection;
23 class UserActionSniffer;
24 
25 class SCRIBUS_API PropertiesPalette_Image : public QWidget, Ui::PropertiesPalette_ImageBase
26 {
27  Q_OBJECT
28 
29 public:
30  PropertiesPalette_Image(QWidget* parent);
32 
33  virtual void changeEvent(QEvent *e);
34 
35  bool userActionOn();
36 
37  void updateProfileList();
38  void showCMSOptions();
39 
40 protected:
41 
42  bool m_haveDoc;
43  bool m_haveItem;
44  bool m_userActionOn;
45  double m_unitRatio;
46  int m_unitIndex;
47 
48  PageItem *m_item;
49  ScribusMainWindow* m_ScMW;
51 
52  UserActionSniffer *userActionSniffer;
53  void installSniffer(ScrSpinBox *spinBox);
54  void installSniffer(QSpinBox *spinBox);
55 
56 private:
57 
58  PageItem* currentItemFromSelection();
59 
60 public slots:
61  void setMainWindow(ScribusMainWindow *mw);
62 
63  void setDoc(ScribusDoc *d);
64  void setCurrentItem(PageItem *i);
65  void unsetDoc();
66  void unsetItem();
67 
68  void handleSelectionChanged();
69  void handleUpdateRequest(int updateFlags);
70 
71  void showImageRotation(double rot);
72  void showScaleAndOffset(double scx, double scy, double x, double y);
73 
74  void languageChange();
75  void unitChange();
76 
77 protected slots:
78  void spinboxStartUserAction();
79  void spinboxFinishUserAction();
80 
81 private slots:
82 
83  void handleLocalXY();
84  void handleLocalScale();
85  void handleLocalDpi();
86  void handleLocalRotation();
87  void handleScaling();
88 
89  void handleXScale();
90  void handleYScale();
91  void handleDpiX();
92  void handleDpiY();
93  void handleImageDPIRatio();
94  void handleImageWHRatio();
95 
96  void handleImagePageNumber();
97 
98  void handleProfile(const QString& prn);
99  void handleIntent();
100  void handleCompressionMethod();
101  void handleCompressionQuality();
102 
103  void handleImageEffects();
104  void handleExtImgProperties();
105 
106 signals:
107  void UpdtGui(int);
108 };
109 
110 #endif
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
The ScComboBox widget always uses a listbox instead of a popup, independent of any QStyle...
Definition: sccombobox.h:26
the Document Class
Definition: scribusdoc.h:90
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21
Definition: pageitem.h:92
Definition: propertiespalette_image.h:25
Definition: propertiespalette_utils.h:107
Definition: selection.h:34