Gui::Dialog::DlgSettingsImageImp Class Reference

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

#include <DlgSettingsImageImp.h>

Public Member Functions

 DlgSettingsImageImp (QWidget *parent=nullptr)
 Constructs a DlgSettingsImageImp as a child of 'parent', with the name 'name' and widget flags set to 'f'. More...
 
 ~DlgSettingsImageImp ()
 Destroys the object and frees any allocated resources. More...
 
Image dimensions
void setImageSize (int, int)
 Sets the image size to (w, h). More...
 
void setImageSize (const QSize &)
 Sets the image size to s. More...
 
QSize imageSize () const
 Returns the currently set image size. More...
 
int imageWidth () const
 Returns the currently set image width. More...
 
int imageHeight () const
 Returns the currently set image height. More...
 

Image meta information

void setMethod (const QByteArray &)
 
QByteArray method () const
 
QString comment () const
 Returns the comment of the picture. More...
 
int backgroundType () const
 
void setBackgroundType (int)
 Sets the image size to (w, h). More...
 
bool addWatermark () const
 
void onSelectedFilter (const QString &)
 
void on_buttonRatioScreen_clicked ()
 
void on_buttonRatio4x3_clicked ()
 
void on_buttonRatio16x9_clicked ()
 
void on_buttonRatio1x1_clicked ()
 
void on_standardSizeBox_activated (int)
 
void on_comboMethod_activated (int)
 
void adjustImageSize (float fRatio)
 
void changeEvent (QEvent *e)
 

Detailed Description

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

Author
Werner Mayer

Constructor & Destructor Documentation

◆ DlgSettingsImageImp()

DlgSettingsImageImp::DlgSettingsImageImp ( QWidget parent = nullptr)

Constructs a DlgSettingsImageImp as a child of 'parent', with the name 'name' and widget flags set to 'f'.

◆ ~DlgSettingsImageImp()

DlgSettingsImageImp::~DlgSettingsImageImp ( )

Destroys the object and frees any allocated resources.

Member Function Documentation

◆ addWatermark()

bool DlgSettingsImageImp::addWatermark ( ) const

◆ adjustImageSize()

void DlgSettingsImageImp::adjustImageSize ( float  fRatio)
protected

◆ backgroundType()

int DlgSettingsImageImp::backgroundType ( ) const

◆ changeEvent()

void DlgSettingsImageImp::changeEvent ( QEvent e)
protected

◆ comment()

QString DlgSettingsImageImp::comment ( ) const

Returns the comment of the picture.

If for the currently selected image format no comments are supported QString() is returned.

Referenced by StdViewScreenShot::activated(), addonmanager_macro.Macro::fill_details_from_code(), and addonmanager_macro.Macro::fill_details_from_wiki().

◆ imageHeight()

int DlgSettingsImageImp::imageHeight ( ) const

Returns the currently set image height.

Referenced by StdViewScreenShot::activated().

◆ imageSize()

QSize DlgSettingsImageImp::imageSize ( ) const

Returns the currently set image size.

◆ imageWidth()

int DlgSettingsImageImp::imageWidth ( ) const

Returns the currently set image width.

Referenced by StdViewScreenShot::activated().

◆ method()

◆ on_buttonRatio16x9_clicked

void DlgSettingsImageImp::on_buttonRatio16x9_clicked ( )
protectedslot

References adjustImageSize().

◆ on_buttonRatio1x1_clicked

void DlgSettingsImageImp::on_buttonRatio1x1_clicked ( )
protectedslot

References adjustImageSize().

◆ on_buttonRatio4x3_clicked

void DlgSettingsImageImp::on_buttonRatio4x3_clicked ( )
protectedslot

References adjustImageSize().

◆ on_buttonRatioScreen_clicked

void DlgSettingsImageImp::on_buttonRatioScreen_clicked ( )
protectedslot

References adjustImageSize().

◆ on_comboMethod_activated

void DlgSettingsImageImp::on_comboMethod_activated ( int  index)
protectedslot

◆ on_standardSizeBox_activated

void DlgSettingsImageImp::on_standardSizeBox_activated ( int  index)
protectedslot

◆ onSelectedFilter

void DlgSettingsImageImp::onSelectedFilter ( const QString &  filter)
slot

◆ setBackgroundType()

void DlgSettingsImageImp::setBackgroundType ( int  t)

Sets the image size to (w, h).

Referenced by StdViewScreenShot::activated().

◆ setImageSize() [1/2]

void DlgSettingsImageImp::setImageSize ( const QSize &  s)

Sets the image size to s.

◆ setImageSize() [2/2]

void DlgSettingsImageImp::setImageSize ( int  w,
int  h 
)

Sets the image size to (w, h).

Referenced by StdViewScreenShot::activated().

◆ setMethod()

void DlgSettingsImageImp::setMethod ( const QByteArray &  m)

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