#include <ImageExportDialog.h>
Public Member Functions | |
bool | color () const |
For vector formats: returns whether colors should be enabled for ouput (default: true). | |
ImageExportDialog (QWidget *parent=0, bool vector_options=true, bool extended=true, Qt::WFlags flags=0) | |
Constructor. | |
bool | keepAspect () const |
For vector formats: returns whether the output should preserve aspect ratio of the plot (default: true). | |
QPrinter::PageSize | pageSize () const |
For vector formats: returns a standard output page size (default: QPrinter::Custom). | |
int | quality () const |
Return the quality (in percent) the user selected for export to raster formats. | |
int | resolution () const |
For vector formats: returns the output resolution the user selected, defaulting to the screen resolution. | |
void | selectFilter (const QString &filter) |
void | setPageSize (int size) |
bool | transparency () const |
Return whether the output's background should be transparent. | |
Protected Slots | |
void | closeEvent (QCloseEvent *) |
void | updateAdvancedOptions (const QString &filter) |
Update which options are visible and enabled based on the output format. | |
Private Member Functions | |
void | initAdvancedOptions () |
Create d_advanced_options and everything it contains. | |
Private Attributes | |
QComboBox * | boxPageSize |
QStackedWidget * | d_advanced_options |
Container widget for all advanced options. | |
QCheckBox * | d_color |
QCheckBox * | d_keep_aspect |
QSpinBox * | d_quality |
QGroupBox * | d_raster_options |
Container widget for all options available for raster formats. | |
QSpinBox * | d_resolution |
QCheckBox * | d_standard_page |
QCheckBox * | d_transparency |
QGroupBox * | d_vector_options |
Container widget for all options available for vector formats. |
ImageExportDialog::ImageExportDialog | ( | QWidget * | parent = 0 , |
|
bool | vector_options = true , |
|||
bool | extended = true , |
|||
Qt::WFlags | flags = 0 | |||
) |
Constructor.
parent | parent widget | |
vector_options | whether advanced options are to be provided for export to vector formats | |
extended | flag: show/hide the advanced options on start-up | |
flags | window flags |
void ImageExportDialog::closeEvent | ( | QCloseEvent * | e | ) | [protected, slot] |
bool ImageExportDialog::color | ( | ) | const [inline] |
For vector formats: returns whether colors should be enabled for ouput (default: true).
void ImageExportDialog::initAdvancedOptions | ( | ) | [private] |
Create d_advanced_options and everything it contains.
bool ImageExportDialog::keepAspect | ( | ) | const [inline] |
For vector formats: returns whether the output should preserve aspect ratio of the plot (default: true).
QPrinter::PageSize ImageExportDialog::pageSize | ( | ) | const |
For vector formats: returns a standard output page size (default: QPrinter::Custom).
int ImageExportDialog::quality | ( | ) | const [inline] |
Return the quality (in percent) the user selected for export to raster formats.
int ImageExportDialog::resolution | ( | ) | const [inline] |
For vector formats: returns the output resolution the user selected, defaulting to the screen resolution.
void ImageExportDialog::selectFilter | ( | const QString & | filter | ) |
void ImageExportDialog::setPageSize | ( | int | size | ) |
bool ImageExportDialog::transparency | ( | ) | const [inline] |
Return whether the output's background should be transparent.
void ImageExportDialog::updateAdvancedOptions | ( | const QString & | filter | ) | [protected, slot] |
Update which options are visible and enabled based on the output format.
QComboBox* ImageExportDialog::boxPageSize [private] |
QStackedWidget* ImageExportDialog::d_advanced_options [private] |
Container widget for all advanced options.
QCheckBox* ImageExportDialog::d_color [private] |
QCheckBox* ImageExportDialog::d_keep_aspect [private] |
QSpinBox* ImageExportDialog::d_quality [private] |
QGroupBox* ImageExportDialog::d_raster_options [private] |
Container widget for all options available for raster formats.
QSpinBox* ImageExportDialog::d_resolution [private] |
QCheckBox* ImageExportDialog::d_standard_page [private] |
QCheckBox* ImageExportDialog::d_transparency [private] |
QGroupBox* ImageExportDialog::d_vector_options [private] |
Container widget for all options available for vector formats.