Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
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:
QDialog

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=0)
 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.

SaveImageDialog.png

Constructor & Destructor Documentation

SaveImageDialog ( QWidget parent = 0)

Constructor.

Member Function Documentation

void checkSize ( )
slot

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

QString getFormat ( )

accessors for the format

int getXSize ( )

accessors for the width

int getYSize ( )

accessors for the height

void proportionsActivated ( bool  state)
slot

set size ratio when proportions checkbox is activated

void setSize ( int  x,
int  y 
)

set size and size ratio

void setSizeRatio_ ( float  r)
private
void xSizeChanged ( const QString &  s)
slot

changes width keeping proportions

void ySizeChanged ( const QString &  s)
slot

changes height keeping proportions

Member Data Documentation

QComboBox* format_
private
QCheckBox* size_proportions_
private
float size_ratio_
private
QLineEdit* size_x_
private
QLineEdit* size_y_
private

OpenMS / TOPP release 2.0.0 Documentation generated on Wed Mar 30 2016 12:49:29 using doxygen 1.8.11