Geant4  10.00.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4OpenGLQtExportDialog Class Reference
Inheritance diagram for G4OpenGLQtExportDialog:

Public Slots

void changeSizeBox ()
 
void changeVectorEPS ()
 
void textWidthChanged (const QString &)
 
void textHeightChanged (const QString &)
 

Public Member Functions

 G4OpenGLQtExportDialog (QWidget *parentw, QString format, int height=0, int width=0)
 
 ~G4OpenGLQtExportDialog ()
 
int getSliderValue ()
 
int getWidth ()
 
int getHeight ()
 
int getTransparency ()
 
int getNbColor ()
 
bool getVectorEPS ()
 

Private Attributes

QString f_name
 
QString f_type
 
QString f_dir
 
QLabel * qualityLabel
 
bool expAll
 
QPushButton * buttonOk
 
QPushButton * buttonCancel
 
QGroupBox * sizeGroupBox
 
QCheckBox * transparencyEPS
 
QCheckBox * boxTransparency
 
QCheckBox * vectorEPSCheckBox
 
QCheckBox * ratioCheckBox
 
QSlider * qualitySlider
 
QLabel * formatLabel
 
QRadioButton * colorButton
 
QRadioButton * BWButton
 
QRadioButton * original
 
QRadioButton * modify
 
QLineEdit * height
 
QLineEdit * width
 
QWidget * heightWidget
 
QWidget * widthWidget
 
int originalWidth
 
int originalHeight
 
bool isChangingSize
 

Detailed Description

The G4OpenGLQtExportDialog class provide a Dialog displaying differents options for each file format

Constructor & Destructor Documentation

G4OpenGLQtExportDialog ( QWidget *  parentw,
QString  format,
int  height = 0,
int  width = 0 
)

Construct a G4OpenGLQtExportDialog

Parameters
parentw: parent widget
format: format of save file in lower case
height: height of the original file
width: width of the original file

Member Function Documentation

int getSliderValue ( )
Returns
the value of the slider if format has a slider widget, instead return -1
int getWidth ( )

return the new width for file if format has a width widget, instead return the original value

int getHeight ( )

return the new height for file if format has a height widget, instead return the original value

int getTransparency ( )

return the value of the transparency if format has a transparency, instead return -1

int getNbColor ( )

return the numbers of colors in the picture if format has a BW/Color widget, instead return -1

bool getVectorEPS ( )

return if vector EPS is checked, if button does'nt exist, return 0

void changeSizeBox ( )
slot

Called by a clic on modify/original size button.This will invert buttons and hide/unhide size

void changeVectorEPS ( )
slot

Called by a clic on vectorEPS check box.If vectorEPS checkBox is checked, it will enable change size buttons. Else it will disable them.

void textWidthChanged ( const QString &  )
slot

Called by changing value in height lineEdit. If ratio is keep, will also change the width

void textHeightChanged ( const QString &  )
slot

Called by changing value in width lineEdit. If ratio is keep, will also change the height

Member Data Documentation

QString f_name
private
QString f_type
private
QString f_dir
private
QLabel* qualityLabel
private
bool expAll
private
QPushButton* buttonOk
private
QPushButton* buttonCancel
private
QGroupBox* sizeGroupBox
private
QCheckBox* transparencyEPS
private
QCheckBox * boxTransparency
private
QCheckBox * vectorEPSCheckBox
private
QCheckBox* ratioCheckBox
private
QSlider* qualitySlider
private
QLabel* formatLabel
private
QRadioButton* colorButton
private
QRadioButton * BWButton
private
QRadioButton* original
private
QRadioButton * modify
private
QLineEdit* height
private
QLineEdit * width
private
QWidget* heightWidget
private
QWidget * widthWidget
private
int originalWidth
private
int originalHeight
private
bool isChangingSize
private