The DlgSettings3DViewImp class implements a preference page to change settings for the Inventor viewer. More...
#include <DlgSettingsImageImp.h>
Public Slots | |
void | onSelectedFilter (const QString &) |
Public Member Functions | |
DlgSettingsImageImp (QWidget *parent=0) | |
Constructs a DlgSettingsImageImp as a child of 'parent', with the name 'name' and widget flags set to 'f'. | |
~DlgSettingsImageImp () | |
Destroys the object and frees any allocated resources. | |
Image meta information | |
int | backgroundType () const |
QString | comment () const |
Returns the comment of the picture. | |
Image dimensions | |
int | imageHeight () const |
Returns the currently set image height. | |
QSize | imageSize () const |
Returns the currenty set image size. | |
int | imageWidth () const |
Returns the currently set image width. | |
void | setImageSize (const QSize &) |
Sets the image size to s. | |
void | setImageSize (int, int) |
Sets the image size to (w, h). | |
Protected Slots | |
void | on_buttonRatio16x9_clicked () |
void | on_buttonRatio1x1_clicked () |
void | on_buttonRatio4x3_clicked () |
void | on_buttonRatioScreen_clicked () |
void | on_standardSizeBox_activated (int) |
Protected Member Functions | |
void | adjustImageSize (float fRatio) |
void | changeEvent (QEvent *e) |
The DlgSettings3DViewImp class implements a preference page to change settings for the Inventor viewer.
Definition at line 39 of file DlgSettingsImageImp.h.
DlgSettingsImageImp::DlgSettingsImageImp | ( | QWidget * | parent = 0 |
) |
Constructs a DlgSettingsImageImp as a child of 'parent', with the name 'name' and widget flags set to 'f'.
Definition at line 38 of file DlgSettingsImageImp.cpp.
References Gui::Dialog::Ui_DlgSettingsImage::setupUi(), Gui::Dialog::Ui_DlgSettingsImage::spinHeight, and Gui::Dialog::Ui_DlgSettingsImage::spinWidth.
DlgSettingsImageImp::~DlgSettingsImageImp | ( | ) |
Destroys the object and frees any allocated resources.
Definition at line 54 of file DlgSettingsImageImp.cpp.
void DlgSettingsImageImp::adjustImageSize | ( | float | fRatio | ) | [protected] |
Definition at line 150 of file DlgSettingsImageImp.cpp.
References Py::int, Gui::Dialog::Ui_DlgSettingsImage::spinHeight, and Gui::Dialog::Ui_DlgSettingsImage::spinWidth.
Referenced by on_buttonRatio16x9_clicked(), on_buttonRatio1x1_clicked(), on_buttonRatio4x3_clicked(), and on_buttonRatioScreen_clicked().
int DlgSettingsImageImp::backgroundType | ( | ) | const |
Definition at line 137 of file DlgSettingsImageImp.cpp.
References Gui::Dialog::Ui_DlgSettingsImage::comboBackground.
Referenced by StdViewScreenShot::activated().
void DlgSettingsImageImp::changeEvent | ( | QEvent * | e | ) | [protected] |
Definition at line 59 of file DlgSettingsImageImp.cpp.
References Gui::Dialog::Ui_DlgSettingsImage::retranslateUi().
QString DlgSettingsImageImp::comment | ( | ) | const |
Returns the comment of the picture.
If for the currently selected image format no comments are supported QString::null is returned.
Definition at line 129 of file DlgSettingsImageImp.cpp.
References Gui::Dialog::Ui_DlgSettingsImage::textEditComment.
Referenced by StdViewScreenShot::activated().
int DlgSettingsImageImp::imageHeight | ( | ) | const |
Returns the currently set image height.
Definition at line 120 of file DlgSettingsImageImp.cpp.
References Gui::Dialog::Ui_DlgSettingsImage::spinHeight.
Referenced by StdViewScreenShot::activated().
QSize DlgSettingsImageImp::imageSize | ( | ) | const |
Returns the currenty set image size.
Definition at line 104 of file DlgSettingsImageImp.cpp.
References Gui::Dialog::Ui_DlgSettingsImage::spinHeight, and Gui::Dialog::Ui_DlgSettingsImage::spinWidth.
int DlgSettingsImageImp::imageWidth | ( | ) | const |
Returns the currently set image width.
Definition at line 112 of file DlgSettingsImageImp.cpp.
References Gui::Dialog::Ui_DlgSettingsImage::spinWidth.
Referenced by StdViewScreenShot::activated().
void DlgSettingsImageImp::on_buttonRatio16x9_clicked | ( | ) | [protected, slot] |
Definition at line 177 of file DlgSettingsImageImp.cpp.
References adjustImageSize(), and SketcherExample::f.
void DlgSettingsImageImp::on_buttonRatio1x1_clicked | ( | ) | [protected, slot] |
Definition at line 182 of file DlgSettingsImageImp.cpp.
References adjustImageSize(), and SketcherExample::f.
void DlgSettingsImageImp::on_buttonRatio4x3_clicked | ( | ) | [protected, slot] |
Definition at line 172 of file DlgSettingsImageImp.cpp.
References adjustImageSize(), and SketcherExample::f.
void DlgSettingsImageImp::on_buttonRatioScreen_clicked | ( | ) | [protected, slot] |
Definition at line 167 of file DlgSettingsImageImp.cpp.
References adjustImageSize().
void DlgSettingsImageImp::on_standardSizeBox_activated | ( | int | index | ) | [protected, slot] |
Definition at line 187 of file DlgSettingsImageImp.cpp.
References RobotExample::pos, Gui::Dialog::Ui_DlgSettingsImage::spinHeight, Gui::Dialog::Ui_DlgSettingsImage::spinWidth, Gui::Dialog::Ui_DlgSettingsImage::standardSizeBox, and RobotExample::w.
void DlgSettingsImageImp::onSelectedFilter | ( | const QString & | filter | ) | [slot] |
Definition at line 142 of file DlgSettingsImageImp.cpp.
References Gui::Dialog::Ui_DlgSettingsImage::buttonGroupComment.
Referenced by StdViewScreenShot::activated().
void DlgSettingsImageImp::setImageSize | ( | const QSize & | s | ) |
Sets the image size to s.
Definition at line 87 of file DlgSettingsImageImp.cpp.
References Gui::Dialog::Ui_DlgSettingsImage::spinHeight, Gui::Dialog::Ui_DlgSettingsImage::spinWidth, and Gui::Dialog::Ui_DlgSettingsImage::standardSizeBox.
void DlgSettingsImageImp::setImageSize | ( | int | w, | |
int | h | |||
) |
Sets the image size to (w, h).
Definition at line 70 of file DlgSettingsImageImp.cpp.
References Gui::Dialog::Ui_DlgSettingsImage::spinHeight, Gui::Dialog::Ui_DlgSettingsImage::spinWidth, and Gui::Dialog::Ui_DlgSettingsImage::standardSizeBox.
Referenced by StdViewScreenShot::activated().