SciDAVis
1.D4
|
QFileDialog extended with options for image export. More...
#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::Orientation | pageOrientation () const |
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 | setOrientation (QPrinter::Orientation orientation) |
void | setPageSize (QPrinter::PageSize size) |
bool | transparency () const |
Return whether the output's background should be transparent. | |
Public Member Functions inherited from ExtensibleFileDialog | |
ExtensibleFileDialog (QWidget *parent=0, bool extended=true, Qt::WFlags flags=0) | |
Constructor. | |
bool | isExtendable () |
Tells weather the dialog has a valid extension widget. | |
bool | isExtended () |
void | setExtended (bool extended) |
void | setExtensionWidget (QWidget *extension) |
Set the extension widget to be displayed when the user presses the toggle button. |
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 | |
QStackedWidget * | d_advanced_options |
Container widget for all advanced options. | |
QComboBox * | d_box_page_orientation |
QComboBox * | d_box_page_size |
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. |
Additional Inherited Members | |
Protected Attributes inherited from ExtensibleFileDialog | |
QPushButton * | d_extension_toggle |
Button for toggling display of extension on/off. |
QFileDialog extended with options for image export.
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 |
References d_advanced_options, d_vector_options, initAdvancedOptions(), ExtensibleFileDialog::setExtensionWidget(), and updateAdvancedOptions().
|
protectedslot |
References d_box_page_orientation, d_color, ApplicationWindow::d_export_color, ApplicationWindow::d_export_orientation, ApplicationWindow::d_export_quality, ApplicationWindow::d_export_resolution, ApplicationWindow::d_export_transparency, ApplicationWindow::d_export_vector_size, ApplicationWindow::d_extended_export_dialog, ApplicationWindow::d_image_export_filter, d_keep_aspect, ApplicationWindow::d_keep_plot_aspect, d_quality, d_resolution, d_transparency, ExtensibleFileDialog::isExtended(), and pageSize().
|
inline |
For vector formats: returns whether colors should be enabled for ouput (default: true).
References d_color.
Referenced by ApplicationWindow::exportAllGraphs(), ApplicationWindow::exportGraph(), and ApplicationWindow::exportLayer().
|
private |
Create d_advanced_options and everything it contains.
References d_advanced_options, d_box_page_orientation, d_box_page_size, d_color, ApplicationWindow::d_export_color, ApplicationWindow::d_export_orientation, ApplicationWindow::d_export_quality, ApplicationWindow::d_export_resolution, ApplicationWindow::d_export_transparency, ApplicationWindow::d_export_vector_size, d_keep_aspect, ApplicationWindow::d_keep_plot_aspect, d_quality, d_raster_options, d_resolution, d_standard_page, d_transparency, d_vector_options, and setPageSize().
Referenced by ImageExportDialog().
|
inline |
For vector formats: returns whether the output should preserve aspect ratio of the plot (default: true).
References d_keep_aspect.
Referenced by ApplicationWindow::exportGraph(), and ApplicationWindow::exportLayer().
QPrinter::Orientation ImageExportDialog::pageOrientation | ( | ) | const |
References d_box_page_orientation.
Referenced by ApplicationWindow::exportGraph(), and ApplicationWindow::exportLayer().
QPrinter::PageSize ImageExportDialog::pageSize | ( | ) | const |
For vector formats: returns a standard output page size (default: QPrinter::Custom).
References d_box_page_size, and d_standard_page.
Referenced by closeEvent(), ApplicationWindow::exportGraph(), and ApplicationWindow::exportLayer().
|
inline |
Return the quality (in percent) the user selected for export to raster formats.
References d_quality.
Referenced by ApplicationWindow::exportAllGraphs(), ApplicationWindow::exportGraph(), and ApplicationWindow::exportLayer().
|
inline |
For vector formats: returns the output resolution the user selected, defaulting to the screen resolution.
References d_resolution.
Referenced by ApplicationWindow::exportAllGraphs(), ApplicationWindow::exportGraph(), and ApplicationWindow::exportLayer().
void ImageExportDialog::selectFilter | ( | const QString & | filter | ) |
References updateAdvancedOptions().
Referenced by ApplicationWindow::exportAllGraphs(), ApplicationWindow::exportGraph(), and ApplicationWindow::exportLayer().
void ImageExportDialog::setOrientation | ( | QPrinter::Orientation | orientation | ) |
References d_box_page_orientation.
void ImageExportDialog::setPageSize | ( | QPrinter::PageSize | size | ) |
References d_box_page_size.
Referenced by initAdvancedOptions().
|
inline |
Return whether the output's background should be transparent.
References d_transparency.
Referenced by ApplicationWindow::exportAllGraphs(), ApplicationWindow::exportGraph(), and ApplicationWindow::exportLayer().
|
protectedslot |
Update which options are visible and enabled based on the output format.
References d_advanced_options, ExtensibleFileDialog::d_extension_toggle, and d_transparency.
Referenced by ImageExportDialog(), and selectFilter().
|
private |
Container widget for all advanced options.
Referenced by ImageExportDialog(), initAdvancedOptions(), and updateAdvancedOptions().
|
private |
Referenced by closeEvent(), initAdvancedOptions(), pageOrientation(), and setOrientation().
|
private |
Referenced by initAdvancedOptions(), pageSize(), and setPageSize().
|
private |
Referenced by closeEvent(), color(), and initAdvancedOptions().
|
private |
Referenced by closeEvent(), initAdvancedOptions(), and keepAspect().
|
private |
Referenced by closeEvent(), initAdvancedOptions(), and quality().
|
private |
Container widget for all options available for raster formats.
Referenced by initAdvancedOptions().
|
private |
Referenced by closeEvent(), initAdvancedOptions(), and resolution().
|
private |
Referenced by initAdvancedOptions(), and pageSize().
|
private |
Referenced by closeEvent(), initAdvancedOptions(), transparency(), and updateAdvancedOptions().
|
private |
Container widget for all options available for vector formats.
Referenced by ImageExportDialog(), and initAdvancedOptions().