Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Slots | Public Member Functions | Private Member Functions | Private Attributes

SaveImageDialog Class Reference
[Dialogs]

Dialog for saving an image. More...

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

Inheritance diagram for SaveImageDialog:
QDialog

List of all members.

Public Slots

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

Public Member Functions

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

Private Member Functions

void setSizeRatio_ (float r)

Private Attributes

QComboBox * format_
QLineEdit * size_x_
QLineEdit * size_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 heigth 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 proprotions

void ySizeChanged ( const QString &  s  )  [slot]

changes height keeping proprotions


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 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:58 using doxygen 1.7.1