1 #ifndef _IMAGESCALER_H_
2 #define _IMAGESCALER_H_
11 class ImageScaler : public QFrame
16 ImageScaler(QWidget *parent = 0);
18 int getMaxHeight() const;
19 int getMaxWidth() const;
21 int getHeight() const;
24 void setMaxWidth(int newValue);
25 void setMaxHeight(int newValue);
27 //! Locks apsect ratio with true/false.
28 void setLockAspectRatio(bool state);
29 //! Locks aspect ratio with parameter Qt::Checked or Qt::Unchecked.
30 void setLockAspectRatio(int state);
33 void setWidth(int newValue);
34 void setHeight(int newValue);
37 void maxWidthChanged(int newWidth);
38 void maxHeightChanged(int newHeight);
39 void widthChanged(int newWidth);
40 void heightChanged(int newHeight);
47 QAction *lockAspectAction;
48 QCheckBox *lockButton;