Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

SaveImageDialog Class Reference
[Dialogs]

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

Inheritance diagram for SaveImageDialog:

QDialog

List of all members.


Detailed Description

Dialog for saving an image.

SaveImageDialog.png

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_

Constructor & Destructor Documentation

SaveImageDialog ( QWidget parent = 0  ) 

Constructor.


Member Function Documentation

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

void xSizeChanged ( const QString &  s  )  [slot]

changes width keeping proprotions

void ySizeChanged ( const QString &  s  )  [slot]

changes height keeping proprotions

void proportionsActivated ( bool  state  )  [slot]

set size ratio when proportions checkbox is activated

void checkSize (  )  [slot]

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

void setSizeRatio_ ( float  r  )  [private]


Member Data Documentation

QComboBox* format_ [private]

QLineEdit* size_x_ [private]

QLineEdit* size_y_ [private]

QCheckBox* size_proportions_ [private]

float size_ratio_ [private]


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:48 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1