#include <ImageDialog.h>
Signals | |
void | setGeometry (int, int, int, int) |
Public Member Functions | |
ImageDialog (QWidget *parent=0, Qt::WFlags fl=0) | |
void | setOrigin (const QPoint &o) |
void | setSize (const QSize &size) |
Protected Slots | |
void | accept () |
void | adjustHeight (int width) |
void | adjustWidth (int height) |
void | update () |
Protected Attributes | |
double | aspect_ratio |
Private Attributes | |
QSpinBox * | boxHeight |
QSpinBox * | boxWidth |
QSpinBox * | boxX |
QSpinBox * | boxY |
QPushButton * | buttonApply |
QPushButton * | buttonCancel |
QPushButton * | buttonOk |
QCheckBox * | keepRatioBox |
ImageDialog::ImageDialog | ( | QWidget * | parent = 0 , |
|
Qt::WFlags | fl = 0 | |||
) |
References accept(), boxHeight, boxWidth, boxX, boxY, buttonApply, buttonCancel, buttonOk, keepRatioBox, and update().
void ImageDialog::accept | ( | ) | [protected, slot] |
void ImageDialog::adjustHeight | ( | int | width | ) | [protected, slot] |
References adjustWidth(), aspect_ratio, boxHeight, and keepRatioBox.
Referenced by adjustWidth(), and setSize().
void ImageDialog::adjustWidth | ( | int | height | ) | [protected, slot] |
References adjustHeight(), aspect_ratio, boxWidth, and keepRatioBox.
Referenced by adjustHeight(), and setSize().
void ImageDialog::setGeometry | ( | int | , | |
int | , | |||
int | , | |||
int | ||||
) | [signal] |
Referenced by update().
void ImageDialog::setSize | ( | const QSize & | size | ) |
References adjustHeight(), adjustWidth(), aspect_ratio, boxHeight, and boxWidth.
void ImageDialog::update | ( | ) | [protected, slot] |
References boxHeight, boxWidth, boxX, boxY, and setGeometry().
Referenced by accept(), and ImageDialog().
double ImageDialog::aspect_ratio [protected] |
Referenced by adjustHeight(), adjustWidth(), and setSize().
QSpinBox * ImageDialog::boxHeight [private] |
Referenced by adjustHeight(), ImageDialog(), setSize(), and update().
QSpinBox * ImageDialog::boxWidth [private] |
Referenced by adjustWidth(), ImageDialog(), setSize(), and update().
QSpinBox* ImageDialog::boxX [private] |
Referenced by ImageDialog(), setOrigin(), and update().
QSpinBox * ImageDialog::boxY [private] |
Referenced by ImageDialog(), setOrigin(), and update().
QPushButton* ImageDialog::buttonApply [private] |
Referenced by ImageDialog().
QPushButton* ImageDialog::buttonCancel [private] |
Referenced by ImageDialog().
QPushButton* ImageDialog::buttonOk [private] |
Referenced by ImageDialog().
QCheckBox* ImageDialog::keepRatioBox [private] |
Referenced by adjustHeight(), adjustWidth(), and ImageDialog().