OpenMS  2.7.0
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
SaveImageDialog Class Reference

Dialog for saving an image. More...

#include <OpenMS/VISUAL/DIALOGS/SaveImageDialog.h>

Inheritance diagram for SaveImageDialog:
[legend]
Collaboration diagram for SaveImageDialog:
[legend]

Public Slots

void xSizeChanged (const QString &s)
 changes width keeping proportions More...
 
void ySizeChanged (const QString &s)
 changes height keeping proportions More...
 
void proportionsActivated (bool state)
 set size ratio when proportions checkbox is activated More...
 
void checkSize ()
 checks if the values for width and height are ok before accepting the dialog More...
 

Public Member Functions

 SaveImageDialog (QWidget *parent=nullptr)
 Constructor. More...
 
void setSize (int x, int y)
 set size and size ratio More...
 
int getXSize ()
 accessors for the width More...
 
int getYSize ()
 accessors for the height More...
 
QString getFormat ()
 accessors for the format More...
 

Private Member Functions

void setSizeRatio_ (float r)
 

Private Attributes

QComboBox * format_
 
QLineEditsize_x_
 
QLineEditsize_y_
 
QCheckBox * size_proportions_
 
float size_ratio_
 

Detailed Description

Dialog for saving an image.

Constructor & Destructor Documentation

◆ SaveImageDialog()

SaveImageDialog ( QWidget parent = nullptr)

Constructor.

Member Function Documentation

◆ checkSize

void checkSize ( )
slot

checks if the values for width and height are ok before accepting the dialog

◆ getFormat()

QString getFormat ( )

accessors for the format

◆ getXSize()

int getXSize ( )

accessors for the width

◆ getYSize()

int getYSize ( )

accessors for the height

◆ proportionsActivated

void proportionsActivated ( bool  state)
slot

set size ratio when proportions checkbox is activated

◆ setSize()

void setSize ( int  x,
int  y 
)

set size and size ratio

◆ setSizeRatio_()

void setSizeRatio_ ( float  r)
private

◆ xSizeChanged

void xSizeChanged ( const QString &  s)
slot

changes width keeping proportions

◆ ySizeChanged

void ySizeChanged ( const QString &  s)
slot

changes height keeping proportions

Member Data Documentation

◆ format_

QComboBox* format_
private

◆ size_proportions_

QCheckBox* size_proportions_
private

◆ size_ratio_

float size_ratio_
private

◆ size_x_

QLineEdit* size_x_
private

◆ size_y_

QLineEdit* size_y_
private