scidavis  2.3.0
About: SciDAVis is a free application for Scientific Data Analysis and Visualization (a fork off of QtiPlot).
  Fossies Dox: scidavis-2.3.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ImageExportDialog Class Reference

QFileDialog extended with options for image export. More...

#include <ImageExportDialog.h>

Inheritance diagram for ImageExportDialog:
[legend]
Collaboration diagram for ImageExportDialog:
[legend]

Public Member Functions

 ImageExportDialog (QWidget *parent=0, bool vector_options=true, bool extended=true, Qt::WindowFlags flags=0)
 Constructor. More...
 
int resolution () const
 For vector formats: returns the output resolution the user selected, defaulting to the screen resolution. More...
 
bool color () const
 For vector formats: returns whether colors should be enabled for ouput (default: true). More...
 
bool keepAspect () const
 For vector formats: returns whether the output should preserve aspect ratio of the plot (default: true). More...
 
QPrinter::PageSize pageSize () const
 For vector formats: returns a standard output page size (default: QPrinter::Custom). More...
 
void setPageSize (QPrinter::PageSize size)
 
QPrinter::Orientation pageOrientation () const
 
void setOrientation (QPrinter::Orientation orientation)
 
int quality () const
 Return the quality (in percent) the user selected for export to raster formats. More...
 
void selectFilter (const QString &filter)
 
void setExtensionWidget (QWidget *extension)
 Set the extension widget to be displayed when the user presses the toggle button. More...
 
bool isExtendable ()
 Tells weather the dialog has a valid extension widget. More...
 
bool isExtended ()
 
void setExtended (bool extended)
 

Protected Slots

void closeEvent (QCloseEvent *)
 
void updateAdvancedOptions (const QString &filter)
 Update which options are visible and enabled based on the output format. More...
 

Protected Attributes

QPushButton * d_extension_toggle
 Button for toggling display of extension on/off. More...
 

Private Slots

void resize (bool extension_on)
 Resize to make/take space for the extension widget. More...
 

Private Member Functions

void initAdvancedOptions ()
 Create d_advanced_options and everything it contains. More...
 

Private Attributes

QStackedWidget * d_advanced_options
 Container widget for all advanced options. More...
 
QGroupBox * d_vector_options
 Container widget for all options available for vector formats. More...
 
QSpinBox * d_resolution
 
QCheckBox * d_color
 
QCheckBox * d_keep_aspect
 
QCheckBox * d_standard_page
 
QComboBox * d_box_page_size
 
QComboBox * d_box_page_orientation
 
QGroupBox * d_raster_options
 Container widget for all options available for raster formats. More...
 
QSpinBox * d_quality
 
QWidget * d_extension
 The extension widget. More...
 
int d_extension_row
 The layout row (of the assumed QGridLayout) used for extensions. More...
 

Detailed Description

QFileDialog extended with options for image export.

Definition at line 45 of file ImageExportDialog.h.

Constructor & Destructor Documentation

◆ ImageExportDialog()

ImageExportDialog::ImageExportDialog ( QWidget *  parent = 0,
bool  vector_options = true,
bool  extended = true,
Qt::WindowFlags  flags = 0 
)

Constructor.

Parameters
parentparent widget
vector_optionswhether advanced options are to be provided for export to vector formats
extendedflag: show/hide the advanced options on start-up
flagswindow flags

File : ImageExportDialog.cpp

Project : SciDAVis

Copyright : (C) 2006,2007 by Ion Vasilief, Tilman Benkert, Knut Franke Email (use @ for *) : ion_vasilief*yahoo.fr, thzs*gmx.net, knut.franke*gmx.de Description : QFileDialog extended with options for image export

  • This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. *
    • This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. *
    • You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301 USA *

Definition at line 45 of file ImageExportDialog.cpp.

46  : ExtensibleFileDialog( parent, extended, flags )
47 {
48  setWindowTitle( tr( "Choose a filename to save under" ) );
49  setAcceptMode(QFileDialog::AcceptSave);
50 
51  QList<QByteArray> list = QImageWriter::supportedImageFormats();
52  list<<"EPS";
53  list<<"PS";
54  list<<"PDF";
55  #if QT_VERSION >= 0x040300
56  list<<"SVG";
57  #endif
58 
59  QStringList filters;
60  for(int i=0 ; i<list.count() ; i++)
61  filters << "*."+list[i].toLower();
62 
63  filters.sort();
64  setNameFilters(filters);
65  setFileMode( QFileDialog::AnyFile );
66 
68  d_vector_options->setEnabled(vector_options);
70 
71 #if QT_VERSION >= 0x040300
72  connect(this, SIGNAL(filterSelected ( const QString & )),
73  this, SLOT(updateAdvancedOptions ( const QString & )));
74 #else
75  QList<QComboBox*> combo_boxes = findChildren<QComboBox*>();
76  if (combo_boxes.size() >= 2)
77  connect(combo_boxes[1], SIGNAL(currentIndexChanged ( const QString & )),
78  this, SLOT(updateAdvancedOptions ( const QString & )));
79 #endif
80  updateAdvancedOptions(selectedNameFilter());
81 }

References d_advanced_options, d_vector_options, initAdvancedOptions(), ExtensibleFileDialog::setExtensionWidget(), and updateAdvancedOptions().

Here is the call graph for this function:

Member Function Documentation

◆ closeEvent

void ImageExportDialog::closeEvent ( QCloseEvent *  e)
protectedslot

Definition at line 188 of file ImageExportDialog.cpp.

189 {
190  ApplicationWindow *app = (ApplicationWindow *)this->parent();
191  if (app){
192  app->d_extended_export_dialog = this->isExtended();
193  app->d_image_export_filter = this->selectedNameFilter();
194  app->d_export_quality = d_quality->value();
195 
196  app->d_export_resolution = d_resolution->value();
197  app->d_export_color = d_color->isChecked();
198  app->d_export_vector_size = (int)pageSize();
199  app->d_keep_plot_aspect = d_keep_aspect->isChecked();
200  app->d_export_orientation = d_box_page_orientation->currentIndex();
201  }
202 
203  e->accept();
204 }

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_vector_size, ApplicationWindow::d_extended_export_dialog, ApplicationWindow::d_image_export_filter, d_keep_aspect, ApplicationWindow::d_keep_plot_aspect, d_quality, d_resolution, ExtensibleFileDialog::isExtended(), and pageSize().

Here is the call graph for this function:

◆ color()

bool ImageExportDialog::color ( ) const
inline

For vector formats: returns whether colors should be enabled for ouput (default: true).

Definition at line 81 of file ImageExportDialog.h.

81 { return d_color->isChecked(); }

References d_color.

Referenced by ApplicationWindow::exportAllGraphs(), ApplicationWindow::exportGraph(), and ApplicationWindow::exportLayer().

Here is the caller graph for this function:

◆ initAdvancedOptions()

void ImageExportDialog::initAdvancedOptions ( )
private

Create d_advanced_options and everything it contains.

Definition at line 83 of file ImageExportDialog.cpp.

84 {
85  ApplicationWindow *app = (ApplicationWindow *)this->parent();
86  d_advanced_options = new QStackedWidget();
87 
88  d_vector_options = new QGroupBox();
89  QGridLayout *vector_layout = new QGridLayout(d_vector_options);
91 
92  vector_layout->addWidget(new QLabel(tr("Resolution (DPI)")), 1, 0);
93  d_resolution = new QSpinBox();
94  d_resolution->setRange(0, 1000);
95  d_resolution->setValue(app->d_export_resolution);
96  vector_layout->addWidget(d_resolution, 1, 1);
97  d_resolution->setEnabled(false); // FIXME temporary disabled
98 
99  d_color = new QCheckBox();
100  d_color->setText(tr("Export in &color"));
101  d_color->setChecked(app->d_export_color);
102  vector_layout->addWidget(d_color, 2, 0, 1, 2);
103 
104  d_standard_page = new QCheckBox();
105  d_standard_page->setText(tr("Export to &standard page size"));
106  vector_layout->addWidget(d_standard_page, 3, 0, 1, 2);
107 
108  d_box_page_size = new QComboBox();
109  d_box_page_size->addItem(tr("A0 - 841 x 1189 mm"), QVariant(QPrinter::A0));
110  d_box_page_size->addItem(tr("A1 - 594 x 841 mm"), QVariant(QPrinter::A1));
111  d_box_page_size->addItem(tr("A2 - 420 x 594 mm"), QVariant(QPrinter::A2));
112  d_box_page_size->addItem(tr("A3 - 297 x 420 mm"), QVariant(QPrinter::A3));
113  d_box_page_size->addItem(tr("A4 - 210 x 297 mm"), QVariant(QPrinter::A4));
114  d_box_page_size->addItem(tr("A5 - 148 x 210 mm"), QVariant(QPrinter::A5));
115  d_box_page_size->addItem(tr("A6 - 105 x 148 mm"), QVariant(QPrinter::A6));
116  d_box_page_size->addItem(tr("A7 - 74 x 105 mm"), QVariant(QPrinter::A7));
117  d_box_page_size->addItem(tr("A8 - 52 x 74 mm"), QVariant(QPrinter::A8));
118  d_box_page_size->addItem(tr("A9 - 37 x 52 mm"), QVariant(QPrinter::A9));
119  d_box_page_size->addItem(tr("B0 - 1030 x 1456 mm"), QVariant(QPrinter::B0));
120  d_box_page_size->addItem(tr("B1 - 728 x 1030 mm"), QVariant(QPrinter::B1));
121  d_box_page_size->addItem(tr("B2 - 515 x 728 mm"), QVariant(QPrinter::B2));
122  d_box_page_size->addItem(tr("B3 - 364 x 515 mm"), QVariant(QPrinter::B3));
123  d_box_page_size->addItem(tr("B4 - 257 x 364 mm"), QVariant(QPrinter::B4));
124  d_box_page_size->addItem(tr("B5 - 182 x 257 mm"), QVariant(QPrinter::B5));
125  d_box_page_size->addItem(tr("B6 - 128 x 182 mm"), QVariant(QPrinter::B6));
126  d_box_page_size->addItem(tr("B7 - 91 x 128 mm"), QVariant(QPrinter::B7));
127  d_box_page_size->addItem(tr("B8 - 64 x 91 mm"), QVariant(QPrinter::B8));
128  d_box_page_size->addItem(tr("B9 - 45 x 64 mm"), QVariant(QPrinter::B9));
129  d_box_page_size->addItem(tr("B10 - 32 x 45 mm"), QVariant(QPrinter::B10));
130  d_box_page_size->addItem(tr("C5E - 163 x 226 mm"), QVariant(QPrinter::C5E));
131  d_box_page_size->addItem(tr("Comm10E - 105 x 241 mm"), QVariant(QPrinter::Comm10E));
132  d_box_page_size->addItem(tr("DLE - 110 x 220 mm"), QVariant(QPrinter::DLE));
133  d_box_page_size->addItem(tr("Executive - 191 x 254 mm"), QVariant(QPrinter::Executive));
134  d_box_page_size->addItem(tr("Folio 210 x 330 mm"), QVariant(QPrinter::Folio));
135  d_box_page_size->addItem(tr("Ledger 432 x 279 mm"), QVariant(QPrinter::Ledger));
136  d_box_page_size->addItem(tr("Legal 216 x 356 mm"), QVariant(QPrinter::Legal));
137  d_box_page_size->addItem(tr("Letter 216 x 279 mm"), QVariant(QPrinter::Letter));
138  d_box_page_size->addItem(tr("Tabloid 279 x 432 mm"), QVariant(QPrinter::Tabloid));
139 
140  vector_layout->addWidget(new QLabel(tr("Page size")), 4, 0);
141  setPageSize((QPrinter::PageSize)app->d_export_vector_size);
142  d_standard_page->setChecked(app->d_export_vector_size != QPrinter::Custom);
143  d_box_page_size->setEnabled(app->d_export_vector_size != QPrinter::Custom);
144  vector_layout->addWidget(d_box_page_size, 4, 1, 1, 2);
145 
146  vector_layout->addWidget(new QLabel(tr("Orientation")), 5, 0);
147  d_box_page_orientation = new QComboBox();
148  d_box_page_orientation->addItem(tr("Portrait","page orientation"), QVariant(QPrinter::Portrait));
149  d_box_page_orientation->addItem(tr("Landscape","page orientation"), QVariant(QPrinter::Landscape));
150  d_box_page_orientation->setCurrentIndex(app->d_export_orientation);
151  d_box_page_orientation->setEnabled(app->d_export_vector_size != QPrinter::Custom);
152  vector_layout->addWidget(d_box_page_orientation, 5, 1, 1, 2);
153 
154  connect(d_standard_page, SIGNAL(toggled(bool)), d_box_page_size, SLOT(setEnabled(bool)));
155  connect(d_standard_page, SIGNAL(toggled(bool)), d_box_page_orientation, SLOT(setEnabled(bool)));
156 
157  d_keep_aspect = new QCheckBox();
158  d_keep_aspect->setText(tr("&Keep aspect ratio"));
159  d_keep_aspect->setChecked(app->d_keep_plot_aspect);
160  vector_layout->addWidget(d_keep_aspect, 6, 0, 1, 2);
161 
162  d_raster_options = new QGroupBox();
163  QGridLayout *raster_layout = new QGridLayout(d_raster_options);
165 
166  raster_layout->addWidget(new QLabel(tr("Image quality")), 1, 0);
167  d_quality = new QSpinBox();
168  d_quality->setRange(1, 100);
169  d_quality->setValue(app->d_export_quality);
170  raster_layout->addWidget(d_quality, 1, 1);
171 }

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_vector_size, d_keep_aspect, ApplicationWindow::d_keep_plot_aspect, d_quality, d_raster_options, d_resolution, d_standard_page, d_vector_options, and setPageSize().

Referenced by ImageExportDialog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isExtendable()

bool ExtensibleFileDialog::isExtendable ( )
inlineinherited

Tells weather the dialog has a valid extension widget.

Definition at line 60 of file ExtensibleFileDialog.h.

60 {return d_extension != NULL;};

References ExtensibleFileDialog::d_extension.

Referenced by OpenProjectDialog::closeEvent().

Here is the caller graph for this function:

◆ isExtended()

bool ExtensibleFileDialog::isExtended ( )
inlineinherited

Definition at line 61 of file ExtensibleFileDialog.h.

61 {return d_extension_toggle->isChecked();};

References ExtensibleFileDialog::d_extension_toggle.

Referenced by closeEvent(), ImportASCIIDialog::closeEvent(), and OpenProjectDialog::closeEvent().

Here is the caller graph for this function:

◆ keepAspect()

bool ImageExportDialog::keepAspect ( ) const
inline

For vector formats: returns whether the output should preserve aspect ratio of the plot (default: true).

Definition at line 83 of file ImageExportDialog.h.

83 { return d_keep_aspect->isChecked(); }

References d_keep_aspect.

Referenced by ApplicationWindow::exportGraph(), and ApplicationWindow::exportLayer().

Here is the caller graph for this function:

◆ pageOrientation()

QPrinter::Orientation ImageExportDialog::pageOrientation ( ) const

Definition at line 224 of file ImageExportDialog.cpp.

225 {
226  QPrinter::Orientation orientation;
227  switch (d_box_page_orientation->currentIndex())
228  {
229  case -1:
230  orientation = QPrinter::Portrait;
231  break;
232  default:
233  orientation = (QPrinter::Orientation)d_box_page_orientation->itemData(d_box_page_orientation->currentIndex()).toInt();
234  break;
235  }
236  return orientation;
237 }

References d_box_page_orientation.

Referenced by ApplicationWindow::exportGraph(), and ApplicationWindow::exportLayer().

Here is the caller graph for this function:

◆ pageSize()

QPrinter::PageSize ImageExportDialog::pageSize ( ) const

For vector formats: returns a standard output page size (default: QPrinter::Custom).

Definition at line 206 of file ImageExportDialog.cpp.

207 {
208  if (!d_standard_page->isChecked())
209  return QPrinter::Custom;
210 
211  QPrinter::PageSize size;
212  switch (d_box_page_size->currentIndex())
213  {
214  case -1:
215  size = QPrinter::A4;
216  break;
217  default:
218  size = (QPrinter::PageSize)d_box_page_size->itemData(d_box_page_size->currentIndex()).toInt();
219  break;
220  }
221  return size;
222 }

References d_box_page_size, and d_standard_page.

Referenced by closeEvent(), ApplicationWindow::exportGraph(), and ApplicationWindow::exportLayer().

Here is the caller graph for this function:

◆ quality()

int ImageExportDialog::quality ( ) const
inline

Return the quality (in percent) the user selected for export to raster formats.

Definition at line 90 of file ImageExportDialog.h.

90 { return d_quality->value(); }

References d_quality.

Referenced by ApplicationWindow::exportAllGraphs(), ApplicationWindow::exportGraph(), and ApplicationWindow::exportLayer().

Here is the caller graph for this function:

◆ resize

void ExtensibleFileDialog::resize ( bool  extension_on)
privateslotinherited

Resize to make/take space for the extension widget.

Definition at line 91 of file ExtensibleFileDialog.cpp.

92 {
93  QSize geo = size();
94  geo.setHeight(geo.height() + (extension_on ? 1 : -1) * (d_extension->sizeHint().height()-44));
95  setGeometry(QRect(geometry().topLeft(), geo));
96 }

References ExtensibleFileDialog::d_extension.

Referenced by ExtensibleFileDialog::ExtensibleFileDialog().

Here is the caller graph for this function:

◆ resolution()

int ImageExportDialog::resolution ( ) const
inline

For vector formats: returns the output resolution the user selected, defaulting to the screen resolution.

Definition at line 79 of file ImageExportDialog.h.

79 { return d_resolution->value(); }

References d_resolution.

Referenced by ApplicationWindow::exportAllGraphs(), ApplicationWindow::exportGraph(), and ApplicationWindow::exportLayer().

Here is the caller graph for this function:

◆ selectFilter()

void ImageExportDialog::selectFilter ( const QString &  filter)

Definition at line 264 of file ImageExportDialog.cpp.

265 {
266  QFileDialog::selectNameFilter(filter);
267  updateAdvancedOptions(filter);
268 }

References updateAdvancedOptions().

Referenced by ApplicationWindow::exportAllGraphs(), ApplicationWindow::exportGraph(), and ApplicationWindow::exportLayer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setExtended()

void ExtensibleFileDialog::setExtended ( bool  extended)
inlineinherited

Definition at line 62 of file ExtensibleFileDialog.h.

62 { d_extension_toggle->setChecked(extended);};

References ExtensibleFileDialog::d_extension_toggle.

◆ setExtensionWidget()

void ExtensibleFileDialog::setExtensionWidget ( QWidget *  extension)
inherited

Set the extension widget to be displayed when the user presses the toggle button.

Definition at line 66 of file ExtensibleFileDialog.cpp.

67 {
68  if (d_extension == extension)
69  return;
70  if (d_extension) {
71  d_extension->hide();
72  disconnect(d_extension_toggle, SIGNAL(toggled(bool)));
73  }
74  d_extension = extension;
75  if (!d_extension) {
76  d_extension_toggle->hide();
77  return;
78  }
79  d_extension_toggle->show();
80 
81  QGridLayout *main_layout = qobject_cast<QGridLayout*>(layout());
82  if (main_layout)
83  main_layout->addWidget(d_extension, d_extension_row, 0, 2, main_layout->columnCount()-1);
84  else
85  layout()->addWidget(d_extension);
86 
87  d_extension->setVisible(d_extension_toggle->isChecked());
88  connect(d_extension_toggle, SIGNAL(toggled(bool)), d_extension, SLOT(setVisible(bool)));
89 }

References ExtensibleFileDialog::d_extension, ExtensibleFileDialog::d_extension_row, and ExtensibleFileDialog::d_extension_toggle.

Referenced by ApplicationWindow::appendProject(), ImageExportDialog(), ImportASCIIDialog::ImportASCIIDialog(), OpenProjectDialog::OpenProjectDialog(), and TeXTableExportDialog::TeXTableExportDialog().

Here is the caller graph for this function:

◆ setOrientation()

void ImageExportDialog::setOrientation ( QPrinter::Orientation  orientation)

Definition at line 255 of file ImageExportDialog.cpp.

256 {
257  int index = d_box_page_orientation->findData(QVariant(orientation));
258  if (index != -1)
259  d_box_page_orientation->setCurrentIndex(index);
260  else
261  d_box_page_orientation->setCurrentIndex(0);
262 }

References d_box_page_orientation.

◆ setPageSize()

void ImageExportDialog::setPageSize ( QPrinter::PageSize  size)

Definition at line 239 of file ImageExportDialog.cpp.

240 {
241  if (size == QPrinter::Custom)
242  return;
243 
244  int index = d_box_page_size->findData(QVariant(size));
245  if (index != -1)
246  d_box_page_size->setCurrentIndex(index);
247  else
248  {
249  index = d_box_page_size->findData(QVariant(QPrinter::A4));
250  Q_ASSERT(index != -1);
251  d_box_page_size->setCurrentIndex(index);
252  }
253 }

References d_box_page_size.

Referenced by initAdvancedOptions().

Here is the caller graph for this function:

◆ updateAdvancedOptions

void ImageExportDialog::updateAdvancedOptions ( const QString &  filter)
protectedslot

Update which options are visible and enabled based on the output format.

Definition at line 173 of file ImageExportDialog.cpp.

174 {
175  if (filter.contains("*.svg")) {
176  d_extension_toggle->setChecked(false);
177  d_extension_toggle->setEnabled(false);
178  return;
179  }
180  d_extension_toggle->setEnabled(true);
181  if (filter.contains("*.eps") || filter.contains("*.ps") || filter.contains("*.pdf"))
182  d_advanced_options->setCurrentIndex(0);
183  else {
184  d_advanced_options->setCurrentIndex(1);
185  }
186 }

References d_advanced_options, and ExtensibleFileDialog::d_extension_toggle.

Referenced by ImageExportDialog(), and selectFilter().

Here is the caller graph for this function:

Member Data Documentation

◆ d_advanced_options

QStackedWidget* ImageExportDialog::d_advanced_options
private

Container widget for all advanced options.

Definition at line 54 of file ImageExportDialog.h.

Referenced by ImageExportDialog(), initAdvancedOptions(), and updateAdvancedOptions().

◆ d_box_page_orientation

QComboBox* ImageExportDialog::d_box_page_orientation
private

◆ d_box_page_size

QComboBox* ImageExportDialog::d_box_page_size
private

Definition at line 62 of file ImageExportDialog.h.

Referenced by initAdvancedOptions(), pageSize(), and setPageSize().

◆ d_color

QCheckBox* ImageExportDialog::d_color
private

Definition at line 59 of file ImageExportDialog.h.

Referenced by closeEvent(), color(), and initAdvancedOptions().

◆ d_extension

QWidget* ExtensibleFileDialog::d_extension
privateinherited

◆ d_extension_row

int ExtensibleFileDialog::d_extension_row
privateinherited

The layout row (of the assumed QGridLayout) used for extensions.

Definition at line 76 of file ExtensibleFileDialog.h.

Referenced by ExtensibleFileDialog::ExtensibleFileDialog(), and ExtensibleFileDialog::setExtensionWidget().

◆ d_extension_toggle

QPushButton* ExtensibleFileDialog::d_extension_toggle
protectedinherited

◆ d_keep_aspect

QCheckBox* ImageExportDialog::d_keep_aspect
private

Definition at line 60 of file ImageExportDialog.h.

Referenced by closeEvent(), initAdvancedOptions(), and keepAspect().

◆ d_quality

QSpinBox* ImageExportDialog::d_quality
private

Definition at line 67 of file ImageExportDialog.h.

Referenced by closeEvent(), initAdvancedOptions(), and quality().

◆ d_raster_options

QGroupBox* ImageExportDialog::d_raster_options
private

Container widget for all options available for raster formats.

Definition at line 66 of file ImageExportDialog.h.

Referenced by initAdvancedOptions().

◆ d_resolution

QSpinBox* ImageExportDialog::d_resolution
private

Definition at line 58 of file ImageExportDialog.h.

Referenced by closeEvent(), initAdvancedOptions(), and resolution().

◆ d_standard_page

QCheckBox* ImageExportDialog::d_standard_page
private

Definition at line 61 of file ImageExportDialog.h.

Referenced by initAdvancedOptions(), and pageSize().

◆ d_vector_options

QGroupBox* ImageExportDialog::d_vector_options
private

Container widget for all options available for vector formats.

Definition at line 57 of file ImageExportDialog.h.

Referenced by ImageExportDialog(), and initAdvancedOptions().


The documentation for this class was generated from the following files:
ExtensibleFileDialog::d_extension_row
int d_extension_row
The layout row (of the assumed QGridLayout) used for extensions.
Definition: ExtensibleFileDialog.h:76
ApplicationWindow::d_image_export_filter
QString d_image_export_filter
Last selected filter in export image dialog.
Definition: ApplicationWindow.h:910
ImageExportDialog::d_quality
QSpinBox * d_quality
Definition: ImageExportDialog.h:67
ImageExportDialog::d_box_page_orientation
QComboBox * d_box_page_orientation
Definition: ImageExportDialog.h:63
ImageExportDialog::setPageSize
void setPageSize(QPrinter::PageSize size)
Definition: ImageExportDialog.cpp:239
ApplicationWindow::d_export_vector_size
int d_export_vector_size
Definition: ApplicationWindow.h:912
ImageExportDialog::d_box_page_size
QComboBox * d_box_page_size
Definition: ImageExportDialog.h:62
ExtensibleFileDialog::setExtensionWidget
void setExtensionWidget(QWidget *extension)
Set the extension widget to be displayed when the user presses the toggle button.
Definition: ExtensibleFileDialog.cpp:66
ExtensibleFileDialog::d_extension
QWidget * d_extension
The extension widget.
Definition: ExtensibleFileDialog.h:74
ImageExportDialog::d_standard_page
QCheckBox * d_standard_page
Definition: ImageExportDialog.h:61
ExtensibleFileDialog::ExtensibleFileDialog
ExtensibleFileDialog(QWidget *parent=0, bool extended=true, Qt::WindowFlags flags=0)
Constructor.
Definition: ExtensibleFileDialog.cpp:33
ExtensibleFileDialog::d_extension_toggle
QPushButton * d_extension_toggle
Button for toggling display of extension on/off.
Definition: ExtensibleFileDialog.h:62
ImageExportDialog::d_vector_options
QGroupBox * d_vector_options
Container widget for all options available for vector formats.
Definition: ImageExportDialog.h:57
python-sipcmd.flags
list flags
Definition: python-sipcmd.py:61
ApplicationWindow::d_keep_plot_aspect
bool d_keep_plot_aspect
Definition: ApplicationWindow.h:911
ApplicationWindow::d_export_color
bool d_export_color
Definition: ApplicationWindow.h:916
ApplicationWindow::d_export_orientation
int d_export_orientation
Default paper orientation for image exports.
Definition: ApplicationWindow.h:918
ImageExportDialog::pageSize
QPrinter::PageSize pageSize() const
For vector formats: returns a standard output page size (default: QPrinter::Custom).
Definition: ImageExportDialog.cpp:206
ImageExportDialog::d_raster_options
QGroupBox * d_raster_options
Container widget for all options available for raster formats.
Definition: ImageExportDialog.h:66
ApplicationWindow
SciDAVis's main window.
Definition: ApplicationWindow.h:122
ImageExportDialog::initAdvancedOptions
void initAdvancedOptions()
Create d_advanced_options and everything it contains.
Definition: ImageExportDialog.cpp:83
ApplicationWindow::d_export_resolution
int d_export_resolution
Definition: ApplicationWindow.h:915
ApplicationWindow::d_extended_export_dialog
bool d_extended_export_dialog
Definition: ApplicationWindow.h:930
ExtensibleFileDialog::isExtended
bool isExtended()
Definition: ExtensibleFileDialog.h:61
ImageExportDialog::d_advanced_options
QStackedWidget * d_advanced_options
Container widget for all advanced options.
Definition: ImageExportDialog.h:54
ImageExportDialog::d_resolution
QSpinBox * d_resolution
Definition: ImageExportDialog.h:58
ImageExportDialog::d_color
QCheckBox * d_color
Definition: ImageExportDialog.h:59
ApplicationWindow::d_export_quality
int d_export_quality
Definition: ApplicationWindow.h:914
ImageExportDialog::updateAdvancedOptions
void updateAdvancedOptions(const QString &filter)
Update which options are visible and enabled based on the output format.
Definition: ImageExportDialog.cpp:173
ImageExportDialog::d_keep_aspect
QCheckBox * d_keep_aspect
Definition: ImageExportDialog.h:60