![]() |
LibrePCB Developers Documentation
|
This class provides a Dialog (GUI) to choose DXF import settings. More...
#include <graphicsexportdialog.h>
Inherits QDialog.
Collaboration diagram for GraphicsExportDialog:Classes | |
| struct | ContentItem |
Public Types | |
| enum class | Mode |
| enum class | Output |
| typedef std::function< QString(QWidget *, const QString &, const QString &, const QString &, QString *, QFileDialog::Options)> | SaveAsCallback |
| typedef std::pair< std::shared_ptr< GraphicsPagePainter >, std::shared_ptr< GraphicsExportSettings > > | Page |
Signals | |
| void | requestOpenFile (const librepcb::FilePath &filePath) |
Public Member Functions | |
| GraphicsExportDialog ()=delete | |
| GraphicsExportDialog (const GraphicsExportDialog &other)=delete | |
| GraphicsExportDialog (Mode mode, Output output, const QList< std::shared_ptr< GraphicsPagePainter > > &pages, int currentPage, const QString &documentName, int innerLayerCount, const FilePath &defaultFilePath, const LengthUnit &lengthUnit, const Theme &theme, const QString &settingsPrefix, QWidget *parent=nullptr) noexcept | |
| ~GraphicsExportDialog () noexcept | |
| void | setSaveAsCallback (SaveAsCallback callback) noexcept |
| const QList< Page > & | getPages () const noexcept |
| GraphicsExportDialog & | operator= (const GraphicsExportDialog &rhs)=delete |
Private Types | |
| enum class | ClientSettingsAction |
Private Member Functions | |
| void | loadDefaultSettings () noexcept |
| void | syncClientSettings (ClientSettingsAction action) noexcept |
| void | buttonBoxClicked (QDialogButtonBox::StandardButton btn) noexcept |
| void | printersAvailable () noexcept |
| void | printerChanged (int index) noexcept |
| void | setAvailablePageSizes (QList< std::optional< QPageSize > > sizes) noexcept |
| void | layerListItemDoubleClicked (QListWidgetItem *item) noexcept |
| void | applySettings () noexcept |
| void | startExport (bool toClipboard) noexcept |
| void | openProgressDialog () noexcept |
| bool | eventFilter (QObject *object, QEvent *event) noexcept override |
| void | setPageSize (const std::optional< QPageSize::PageSizeId > &size) noexcept |
| std::optional< QPageSize > | getPageSize () const noexcept |
| void | setOrientation (GraphicsExportSettings::Orientation orientation) noexcept |
| GraphicsExportSettings::Orientation | getOrientation () const noexcept |
| void | setMarginLeft (const UnsignedLength &margin) noexcept |
| UnsignedLength | getMarginLeft () const noexcept |
| void | setMarginTop (const UnsignedLength &margin) noexcept |
| UnsignedLength | getMarginTop () const noexcept |
| void | setMarginRight (const UnsignedLength &margin) noexcept |
| UnsignedLength | getMarginRight () const noexcept |
| void | setMarginBottom (const UnsignedLength &margin) noexcept |
| UnsignedLength | getMarginBottom () const noexcept |
| void | setShowPinNumbers (bool show) noexcept |
| bool | getShowPinNumbers () const noexcept |
| void | setRotate (bool rotate) noexcept |
| bool | getRotate () const noexcept |
| void | setMirror (bool mirror) noexcept |
| bool | getMirror () const noexcept |
| void | setFitToPage (bool fit) noexcept |
| bool | getFitToPage () const noexcept |
| void | setScaleFactor (const UnsignedRatio &factor) noexcept |
| UnsignedRatio | getScaleFactor () const noexcept |
| void | setDpi (int dpi) noexcept |
| int | getDpi () const noexcept |
| void | setBlackWhite (bool blackWhite) noexcept |
| bool | getBlackWhite () const noexcept |
| void | setBackgroundColor (const QColor &color) noexcept |
| QColor | getBackgroundColor () const noexcept |
| void | setMinLineWidth (const UnsignedLength &width) noexcept |
| UnsignedLength | getMinLineWidth () const noexcept |
| void | setPrinterName (const QString &name) noexcept |
| QString | getPrinterName () const noexcept |
| void | setDuplex (QPrinter::DuplexMode duplex) noexcept |
| QPrinter::DuplexMode | getDuplex () const noexcept |
| void | setPageContent (const QList< ContentItem > &items) noexcept |
| const QList< ContentItem > & | getPageContent () const noexcept |
| void | setOpenExportedFiles (bool open) noexcept |
| bool | getOpenExportedFiles () const noexcept |
| void | updateColorsListWidget () noexcept |
Private Attributes | |
| const Mode | mMode |
| const Output | mOutput |
| const QList< std::shared_ptr< GraphicsPagePainter > > | mInputPages |
| const int | mCurrentPage |
| const FilePath | mDefaultFilePath |
| const Theme & | mTheme |
| const QString | mSettingsPrefix |
| SaveAsCallback | mSaveAsCallback |
| QScopedPointer< GraphicsExportSettings > | mDefaultSettings |
| QList< std::pair< QString, QColor > > | mColors |
| QString | mSettingsPrinterName |
| std::optional< QPageSize::PageSizeId > | mSettingsPageSize |
| QPrinter::DuplexMode | mSettingsDuplexMode |
| bool | mDisableApplySettings |
| QScopedPointer< Ui::GraphicsExportDialog > | mUi |
| QScopedPointer< QProgressDialog > | mProgressDialog |
| QScopedPointer< QFutureWatcher< QList< QPrinterInfo > > > | mPrinterWatcher |
| QList< QPrinterInfo > | mAvailablePrinters |
| QList< std::optional< QPageSize > > | mAvailablePageSizes |
| QList< ContentItem > | mPageContentItems |
| QList< Page > | mPages |
| QScopedPointer< GraphicsExport > | mPreview |
| QScopedPointer< GraphicsExport > | mExport |
| FilePath | mPathToOpenAfterExport |
This class provides a Dialog (GUI) to choose DXF import settings.
| typedef std::function<QString(QWidget*, const QString&, const QString&, const QString&, QString*, QFileDialog::Options)> SaveAsCallback |
| typedef std::pair<std::shared_ptr<GraphicsPagePainter>, std::shared_ptr<GraphicsExportSettings> > Page |
|
strongprivate |
|
strong |
|
strong |
|
delete |
|
delete |
|
explicitnoexcept |
Here is the call graph for this function:
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
delete |
|
signal |
Here is the caller graph for this function:
|
privatenoexcept |
|
privatenoexcept |
Here is the call graph for this function:
|
privatenoexcept |
|
privatenoexcept |
Here is the caller graph for this function:
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
Here is the caller graph for this function:
|
privatenoexcept |
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
|
privatenoexcept |
|
overrideprivatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |