Gui::Dialog::DlgSettingsImageImp Class Reference

The DlgSettings3DViewImp class implements a preference page to change settings for the Inventor viewer. More...

#include <DlgSettingsImageImp.h>

Inheritance diagram for Gui::Dialog::DlgSettingsImageImp:
Gui::Dialog::Ui::DlgSettingsImage Gui::Dialog::Ui_DlgSettingsImage

List of all members.

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)

Detailed Description

The DlgSettings3DViewImp class implements a preference page to change settings for the Inventor viewer.

Author:
Werner Mayer

Definition at line 39 of file DlgSettingsImageImp.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void DlgSettingsImageImp::adjustImageSize ( float  fRatio  )  [protected]
int DlgSettingsImageImp::backgroundType (  )  const
void DlgSettingsImageImp::changeEvent ( QEvent *  e  )  [protected]
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]
void DlgSettingsImageImp::onSelectedFilter ( const QString &  filter  )  [slot]
void DlgSettingsImageImp::setImageSize ( const QSize &  s  ) 
void DlgSettingsImageImp::setImageSize ( int  w,
int  h 
)

The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:07 2011 for FreeCAD by  doxygen 1.6.1