Geant4-11
|
#include <G4OpenGLQtExportDialog.hh>
Public Slots | |
void | changeSizeBox () |
void | changeVectorEPS () |
void | textHeightChanged (const QString &) |
void | textWidthChanged (const QString &) |
Public Member Functions | |
G4OpenGLQtExportDialog (QWidget *parentw, QString format, int height=0, int width=0) | |
int | getHeight () |
int | getSliderValue () |
bool | getVectorEPS () |
int | getWidth () |
~G4OpenGLQtExportDialog () | |
Private Attributes | |
QPushButton * | buttonCancel |
QPushButton * | buttonOk |
QRadioButton * | BWButton |
QRadioButton * | colorButton |
QString | f_dir |
QString | f_name |
QString | f_type |
QLineEdit * | height |
QWidget * | heightWidget |
bool | isChangingSize |
QRadioButton * | modify |
QRadioButton * | original |
int | originalHeight |
int | originalWidth |
QSlider * | qualitySlider |
QCheckBox * | ratioCheckBox |
QGroupBox * | sizeGroupBox |
QCheckBox * | vectorEPSCheckBox |
QLineEdit * | width |
QWidget * | widthWidget |
The G4OpenGLQtExportDialog class provide a Dialog displaying differents options for each file format
Definition at line 49 of file G4OpenGLQtExportDialog.hh.
G4OpenGLQtExportDialog::G4OpenGLQtExportDialog | ( | QWidget * | parentw, |
QString | format, | ||
int | height = 0 , |
||
int | width = 0 |
||
) |
Construct a G4OpenGLQtExportDialog
parentw | : parent widget |
format | : format of save file in lower case |
height | : height of the original file |
width | : width of the original file |
Definition at line 49 of file G4OpenGLQtExportDialog.cc.
References buttonCancel, buttonOk, BWButton, changeSizeBox(), changeVectorEPS(), colorButton, g4zmq::connect(), height, heightWidget, modify, original, originalHeight, originalWidth, qualitySlider, ratioCheckBox, sizeGroupBox, textHeightChanged(), textWidthChanged(), vectorEPSCheckBox, width, and widthWidget.
G4OpenGLQtExportDialog::~G4OpenGLQtExportDialog | ( | ) |
|
slot |
Called by a clic on modify/original size button.This will invert buttons and hide/unhide size
Definition at line 280 of file G4OpenGLQtExportDialog.cc.
References heightWidget, original, ratioCheckBox, and widthWidget.
Referenced by changeVectorEPS(), and G4OpenGLQtExportDialog().
|
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.
Definition at line 261 of file G4OpenGLQtExportDialog.cc.
References changeSizeBox(), heightWidget, modify, original, ratioCheckBox, sizeGroupBox, vectorEPSCheckBox, and widthWidget.
Referenced by G4OpenGLQtExportDialog().
int G4OpenGLQtExportDialog::getHeight | ( | ) |
return the new height for file if format has a height widget, instead return the original value
Definition at line 242 of file G4OpenGLQtExportDialog.cc.
References height, and originalHeight.
Referenced by G4OpenGLQtViewer::actionSaveImage().
int G4OpenGLQtExportDialog::getSliderValue | ( | ) |
Definition at line 236 of file G4OpenGLQtExportDialog.cc.
References qualitySlider.
Referenced by G4OpenGLQtViewer::actionSaveImage().
bool G4OpenGLQtExportDialog::getVectorEPS | ( | ) |
return if vector EPS is checked, if button does'nt exist, return 0
Definition at line 254 of file G4OpenGLQtExportDialog.cc.
References vectorEPSCheckBox.
Referenced by G4OpenGLQtViewer::actionSaveImage().
int G4OpenGLQtExportDialog::getWidth | ( | ) |
return the new width for file if format has a width widget, instead return the original value
Definition at line 248 of file G4OpenGLQtExportDialog.cc.
References originalWidth, and width.
Referenced by G4OpenGLQtViewer::actionSaveImage().
|
slot |
Called by changing value in width lineEdit. If ratio is keep, will also change the height
Definition at line 315 of file G4OpenGLQtExportDialog.cc.
References isChangingSize, originalHeight, originalWidth, ratioCheckBox, s, and width.
Referenced by G4OpenGLQtExportDialog().
|
slot |
Called by changing value in height lineEdit. If ratio is keep, will also change the width
Definition at line 299 of file G4OpenGLQtExportDialog.cc.
References height, isChangingSize, originalHeight, originalWidth, ratioCheckBox, s, and width.
Referenced by G4OpenGLQtExportDialog().
|
private |
Definition at line 104 of file G4OpenGLQtExportDialog.hh.
Referenced by G4OpenGLQtExportDialog().
|
private |
Definition at line 103 of file G4OpenGLQtExportDialog.hh.
Referenced by G4OpenGLQtExportDialog().
|
private |
Definition at line 112 of file G4OpenGLQtExportDialog.hh.
Referenced by G4OpenGLQtExportDialog().
|
private |
Definition at line 112 of file G4OpenGLQtExportDialog.hh.
Referenced by G4OpenGLQtExportDialog().
|
private |
Definition at line 100 of file G4OpenGLQtExportDialog.hh.
|
private |
Definition at line 100 of file G4OpenGLQtExportDialog.hh.
|
private |
Definition at line 100 of file G4OpenGLQtExportDialog.hh.
|
private |
Definition at line 114 of file G4OpenGLQtExportDialog.hh.
Referenced by G4OpenGLQtExportDialog(), getHeight(), and textWidthChanged().
|
private |
Definition at line 115 of file G4OpenGLQtExportDialog.hh.
Referenced by changeSizeBox(), changeVectorEPS(), and G4OpenGLQtExportDialog().
|
private |
Definition at line 118 of file G4OpenGLQtExportDialog.hh.
Referenced by textHeightChanged(), and textWidthChanged().
|
private |
Definition at line 113 of file G4OpenGLQtExportDialog.hh.
Referenced by changeVectorEPS(), and G4OpenGLQtExportDialog().
|
private |
Definition at line 113 of file G4OpenGLQtExportDialog.hh.
Referenced by changeSizeBox(), changeVectorEPS(), and G4OpenGLQtExportDialog().
|
private |
Definition at line 117 of file G4OpenGLQtExportDialog.hh.
Referenced by G4OpenGLQtExportDialog(), getHeight(), textHeightChanged(), and textWidthChanged().
|
private |
Definition at line 116 of file G4OpenGLQtExportDialog.hh.
Referenced by G4OpenGLQtExportDialog(), getWidth(), textHeightChanged(), and textWidthChanged().
|
private |
Definition at line 110 of file G4OpenGLQtExportDialog.hh.
Referenced by G4OpenGLQtExportDialog(), and getSliderValue().
|
private |
Definition at line 109 of file G4OpenGLQtExportDialog.hh.
Referenced by changeSizeBox(), changeVectorEPS(), G4OpenGLQtExportDialog(), textHeightChanged(), and textWidthChanged().
|
private |
Definition at line 106 of file G4OpenGLQtExportDialog.hh.
Referenced by changeVectorEPS(), and G4OpenGLQtExportDialog().
|
private |
transparencyEPS,*boxTransparency,
Definition at line 108 of file G4OpenGLQtExportDialog.hh.
Referenced by changeVectorEPS(), G4OpenGLQtExportDialog(), and getVectorEPS().
|
private |
Definition at line 114 of file G4OpenGLQtExportDialog.hh.
Referenced by G4OpenGLQtExportDialog(), getWidth(), textHeightChanged(), and textWidthChanged().
|
private |
Definition at line 115 of file G4OpenGLQtExportDialog.hh.
Referenced by changeSizeBox(), changeVectorEPS(), and G4OpenGLQtExportDialog().