20#ifndef LIBREPCB_CORE_GRAPHICSEXPORTSETTINGS_H
21#define LIBREPCB_CORE_GRAPHICSEXPORTSETTINGS_H
26#include "../types/length.h"
27#include "../types/ratio.h"
29#include <optional/tl/optional.hpp>
78 const tl::optional<UnsignedRatio>&
getScale() const noexcept {
87 const QList<std::pair<QString, QColor>>&
getColors() const noexcept {
91 QColor
getColor(const QString& colorName) const noexcept;
92 QColor
getFillColor(const QString& colorName,
bool isFilled,
93 bool isGrabArea) const noexcept;
123 void setColors(
const QList<std::pair<QString, QColor>>& colors)
noexcept {
130 int innerLayerCount = -1) noexcept;
138 QColor
getColorImpl(const QString& name) const noexcept;
Settings for librepcb::GraphicsExport.
Definition: graphicsexportsettings.h:51
UnsignedLength mMarginBottom
Definition: graphicsexportsettings.h:146
QColor getFillColor(const QString &colorName, bool isFilled, bool isGrabArea) const noexcept
Definition: graphicsexportsettings.cpp:139
UnsignedLength mMarginLeft
Definition: graphicsexportsettings.h:143
tl::optional< QPageSize > mPageSize
Definition: graphicsexportsettings.h:141
void setMinLineWidth(const UnsignedLength &width) noexcept
Definition: graphicsexportsettings.h:120
bool getBlackWhite() const noexcept
Definition: graphicsexportsettings.h:82
const QList< std::pair< QString, QColor > > & getColors() const noexcept
Definition: graphicsexportsettings.h:87
void setMarginTop(const librepcb::UnsignedLength &margin) noexcept
Definition: graphicsexportsettings.h:105
bool getRotate() const noexcept
Definition: graphicsexportsettings.h:76
void setMirror(bool mirror) noexcept
Definition: graphicsexportsettings.h:115
Orientation getOrientation() const noexcept
Definition: graphicsexportsettings.h:69
UnsignedLength mMinLineWidth
Definition: graphicsexportsettings.h:153
bool mBlackWhite
Definition: graphicsexportsettings.h:151
QStringList getPaintOrder() const noexcept
Definition: graphicsexportsettings.cpp:122
const UnsignedLength & getMinLineWidth() const noexcept
Definition: graphicsexportsettings.h:84
const UnsignedLength & getMarginBottom() const noexcept
Definition: graphicsexportsettings.h:73
bool getMirror() const noexcept
Definition: graphicsexportsettings.h:77
UnsignedLength mMarginRight
Definition: graphicsexportsettings.h:145
void setScale(tl::optional< UnsignedRatio > scale) noexcept
Definition: graphicsexportsettings.h:116
void setBackgroundColor(const QColor &c) noexcept
Definition: graphicsexportsettings.h:119
void setPixmapDpi(int dpi) noexcept
Definition: graphicsexportsettings.h:117
bool mMirror
Definition: graphicsexportsettings.h:148
int getPixmapDpi() const noexcept
Definition: graphicsexportsettings.h:81
bool mRotate
Definition: graphicsexportsettings.h:147
const QColor & getBackgroundColor() const noexcept
Definition: graphicsexportsettings.h:83
void setMarginRight(const librepcb::UnsignedLength &margin) noexcept
Definition: graphicsexportsettings.h:108
Orientation
Definition: graphicsexportsettings.h:54
const UnsignedLength & getMarginLeft() const noexcept
Definition: graphicsexportsettings.h:70
QColor getColor(const QString &colorName) const noexcept
Definition: graphicsexportsettings.cpp:130
void setRotate(bool rotate) noexcept
Definition: graphicsexportsettings.h:114
UnsignedLength mMarginTop
Definition: graphicsexportsettings.h:144
void setMarginLeft(const librepcb::UnsignedLength &margin) noexcept
Definition: graphicsexportsettings.h:102
QList< std::pair< QString, QColor > > mColors
Definition: graphicsexportsettings.h:154
Orientation mOrientation
Definition: graphicsexportsettings.h:142
const tl::optional< UnsignedRatio > & getScale() const noexcept
Definition: graphicsexportsettings.h:78
tl::optional< UnsignedRatio > mScale
Definition: graphicsexportsettings.h:149
void setBlackWhite(bool blackWhite) noexcept
Definition: graphicsexportsettings.h:118
QColor getColorImpl(const QString &name) const noexcept
Definition: graphicsexportsettings.cpp:290
const tl::optional< QPageSize > & getPageSize() const noexcept
Definition: graphicsexportsettings.h:66
void loadColorsFromTheme(const Theme &theme, bool schematic=true, bool board=true, int innerLayerCount=-1) noexcept
Definition: graphicsexportsettings.cpp:161
void setColors(const QList< std::pair< QString, QColor > > &colors) noexcept
Definition: graphicsexportsettings.h:123
int mPixmapDpi
Definition: graphicsexportsettings.h:150
const UnsignedLength & getMarginTop() const noexcept
Definition: graphicsexportsettings.h:71
void setOrientation(Orientation orientation) noexcept
Definition: graphicsexportsettings.h:99
void setPageSize(const tl::optional< QPageSize > &size) noexcept
Definition: graphicsexportsettings.h:96
const UnsignedLength & getMarginRight() const noexcept
Definition: graphicsexportsettings.h:72
QColor mBackgroundColor
Definition: graphicsexportsettings.h:152
void setMarginBottom(const librepcb::UnsignedLength &margin) noexcept
Definition: graphicsexportsettings.h:111
GraphicsExportSettings() noexcept
Definition: graphicsexportsettings.cpp:91
Theme class as used by librepcb::WorkspaceSettingsItem_Themes.
Definition: theme.h:44
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:696
type_safe::constrained_type< Ratio, UnsignedRatioConstraint, UnsignedRatioVerifier > UnsignedRatio
Definition: ratio.h:330