Scribus
Open source desktop publishing at your fingertips
extimageprops.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 EXTIMAGEPROPS_H
8 #define EXTIMAGEPROPS_H
9 
10 #include <QDialog>
11 #include <QList>
12 
13 class QVBoxLayout;
14 class QHBoxLayout;
15 class QTabWidget;
16 class QWidget;
17 class QLabel;
18 class QComboBox;
19 class QCheckBox;
20 class ScrSpinBox;
21 class QListWidget;
22 class QListWidgetItem;
23 class QPushButton;
24 class QTableWidget;
25 class QTimer;
26 
27 class ScribusView;
28 class PageItem;
29 
30 #include "scribusapi.h"
31 #include "scimage.h"
32 
33 class SCRIBUS_API ExtImageProps : public QDialog
34 {
35  Q_OBJECT
36 
37 public:
38  ExtImageProps( QWidget* parent, ImageInfoRecord *info, PageItem *item, ScribusView *view );
39  ~ExtImageProps() {};
40 
41 public slots:
42  void leaveOK();
43  void leaveCancel();
44  void changePreview();
45  void changedLayer();
46  void delayedLayerChange();
47  void selLayer();
48  void selPath(QListWidgetItem *c);
49  void noPath();
50 
51 protected:
52  QTabWidget* propsTab;
53  QWidget* tab;
54  QLabel* textLabel1;
55  QComboBox* blendMode;
56  QLabel* textLabel2;
57  ScrSpinBox* opacitySpinBox;
58  QTableWidget* layerTable;
59  QWidget* tab_2;
60  QListWidget* pathList;
61  QPushButton* resetPath;
62  QCheckBox* livePreview;
63  QPushButton* okButton;
64  QPushButton* cancelButton;
65  QList<QCheckBox*> FlagsSicht;
66  QList<QCheckBox*> FlagsMask;
67 
68  QVBoxLayout* ExtImagePropsLayout;
69  QVBoxLayout* tabLayout;
70  QVBoxLayout* tabLayout_2;
71  QHBoxLayout* layout1;
72  QHBoxLayout* layoutBottom;
73 
74  QTimer* m_timer;
75  ScribusView *m_view;
76  PageItem *m_item;
77 
78  int currentLayer;
79  bool doPreview;
80  ImageInfoRecord originalInfo;
81  FPointArray originalImageClip;
82  QMap<QString, QString> blendModes;
83  QMap<QString, QString> blendModesRev;
84 
85  void updateLayerInfo();
86 };
87 
88 #endif // EXTIMAGEPROPS_H
Definition: extimageprops.h:33
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21
Definition: pageitem.h:92
Definition: fpointarray.h:42
Definition: scribusview.h:87
Definition: scimagestructs.h:126