LibrePCB Developers Documentation
|
The PackageEditorWidget class. More...
#include <packageeditorwidget.h>
Public Slots | |
bool | save () noexcept override |
bool | selectAll () noexcept override |
bool | cut () noexcept override |
bool | copy () noexcept override |
bool | paste () noexcept override |
bool | move (Qt::ArrowType direction) noexcept override |
bool | rotate (const librepcb::Angle &rotation) noexcept override |
bool | mirror (Qt::Orientation orientation) noexcept override |
bool | flip (Qt::Orientation orientation) noexcept override |
bool | moveAlign () noexcept override |
bool | snapToGrid () noexcept override |
bool | remove () noexcept override |
bool | editProperties () noexcept override |
bool | zoomIn () noexcept override |
bool | zoomOut () noexcept override |
bool | zoomAll () noexcept override |
bool | toggle3D () noexcept override |
bool | abortCommand () noexcept override |
bool | processGenerateOutline () noexcept override |
bool | processGenerateCourtyard () noexcept override |
bool | importDxf () noexcept override |
bool | editGridProperties () noexcept override |
bool | increaseGridInterval () noexcept override |
bool | decreaseGridInterval () noexcept override |
bool | toggleBackgroundImage () noexcept override |
Public Slots inherited from EditorWidgetBase | |
virtual bool | save () noexcept |
virtual bool | selectAll () noexcept |
virtual bool | cut () noexcept |
virtual bool | copy () noexcept |
virtual bool | paste () noexcept |
virtual bool | move (Qt::ArrowType direction) noexcept |
virtual bool | rotate (const librepcb::Angle &rotation) noexcept |
virtual bool | mirror (Qt::Orientation orientation) noexcept |
virtual bool | flip (Qt::Orientation orientation) noexcept |
virtual bool | moveAlign () noexcept |
virtual bool | snapToGrid () noexcept |
virtual bool | remove () noexcept |
virtual bool | editProperties () noexcept |
virtual bool | zoomIn () noexcept |
virtual bool | zoomOut () noexcept |
virtual bool | zoomAll () noexcept |
virtual bool | toggle3D () noexcept |
virtual bool | abortCommand () noexcept |
virtual bool | processGenerateOutline () noexcept |
virtual bool | processGenerateCourtyard () noexcept |
virtual bool | importDxf () noexcept |
virtual bool | exportImage () noexcept |
virtual bool | exportPdf () noexcept |
virtual bool | print () noexcept |
virtual bool | editGridProperties () noexcept |
virtual bool | increaseGridInterval () noexcept |
virtual bool | decreaseGridInterval () noexcept |
virtual bool | toggleBackgroundImage () noexcept |
Public Member Functions | |
PackageEditorWidget ()=delete | |
PackageEditorWidget (const PackageEditorWidget &other)=delete | |
PackageEditorWidget (const Context &context, const FilePath &fp, QWidget *parent=nullptr) | |
~PackageEditorWidget () noexcept | |
bool | isBackgroundImageSet () const noexcept override |
QSet< Feature > | getAvailableFeatures () const noexcept override |
void | connectEditor (UndoStackActionGroup &undoStackActionGroup, ExclusiveActionGroup &toolsActionGroup, QToolBar &commandToolBar, StatusBar &statusBar) noexcept override |
void | disconnectEditor () noexcept override |
PackageEditorWidget & | operator= (const PackageEditorWidget &rhs)=delete |
template<> | |
void | fixMsg (const MsgDeprecatedAssemblyType &msg) |
template<> | |
void | fixMsg (const MsgSuspiciousAssemblyType &msg) |
template<> | |
void | fixMsg (const MsgNameNotTitleCase &msg) |
template<> | |
void | fixMsg (const MsgMissingAuthor &msg) |
template<> | |
void | fixMsg (const MsgMissingCategories &msg) |
template<> | |
void | fixMsg (const MsgMissingPackageOutline &msg) |
template<> | |
void | fixMsg (const MsgMinimumWidthViolation &msg) |
template<> | |
void | fixMsg (const MsgMissingCourtyard &msg) |
template<> | |
void | fixMsg (const MsgMissingFootprint &msg) |
template<> | |
void | fixMsg (const MsgMissingFootprintModel &msg) |
template<> | |
void | fixMsg (const MsgMissingFootprintName &msg) |
template<> | |
void | fixMsg (const MsgMissingFootprintValue &msg) |
template<> | |
void | fixMsg (const MsgFootprintOriginNotInCenter &msg) |
template<> | |
void | fixMsg (const MsgWrongFootprintTextLayer &msg) |
template<> | |
void | fixMsg (const MsgUnusedCustomPadOutline &msg) |
template<> | |
void | fixMsg (const MsgInvalidCustomPadOutline &msg) |
template<> | |
void | fixMsg (const MsgPadStopMaskOff &msg) |
template<> | |
void | fixMsg (const MsgSmtPadWithSolderPaste &msg) |
template<> | |
void | fixMsg (const MsgThtPadWithSolderPaste &msg) |
template<> | |
void | fixMsg (const MsgPadWithCopperClearance &msg) |
template<> | |
void | fixMsg (const MsgFiducialClearanceLessThanStopMask &msg) |
template<> | |
void | fixMsg (const MsgHoleWithoutStopMask &msg) |
template<> | |
void | fixMsg (const MsgUnspecifiedPadFunction &msg) |
template<> | |
void | fixMsg (const MsgSuspiciousPadFunction &msg) |
Public Member Functions inherited from EditorWidgetBase | |
EditorWidgetBase ()=delete | |
EditorWidgetBase (const EditorWidgetBase &other)=delete | |
EditorWidgetBase (const Context &context, const FilePath &fp, QWidget *parent=nullptr) | |
virtual | ~EditorWidgetBase () noexcept |
const FilePath & | getFilePath () const noexcept |
bool | isDirty () const noexcept |
EditorWidgetBase & | operator= (const EditorWidgetBase &rhs)=delete |
Public Member Functions inherited from IF_GraphicsViewEventHandler | |
IF_GraphicsViewEventHandler () noexcept | |
virtual | ~IF_GraphicsViewEventHandler () noexcept |
Private Member Functions | |
void | updateMetadata () noexcept |
QString | commitMetadata () noexcept |
bool | graphicsViewEventHandler (QEvent *event) noexcept override |
bool | toolChangeRequested (Tool newTool, const QVariant &mode) noexcept override |
void | currentFootprintChanged (int index) noexcept |
void | currentModelChanged (int index) noexcept |
void | scheduleOpenGlSceneUpdate () noexcept |
void | updateOpenGlScene () noexcept |
void | memorizePackageInterface () noexcept |
bool | isInterfaceBroken () const noexcept override |
bool | runChecks (RuleCheckMessageList &msgs) const override |
template<typename MessageType > | |
void | fixMsg (const MessageType &msg) |
template<typename MessageType > | |
void | fixPadFunction (const MessageType &msg) |
template<typename MessageType > | |
bool | fixMsgHelper (std::shared_ptr< const RuleCheckMessage > msg, bool applyFix) |
bool | processRuleCheckMessage (std::shared_ptr< const RuleCheckMessage > msg, bool applyFix) override |
void | ruleCheckApproveRequested (std::shared_ptr< const RuleCheckMessage > msg, bool approve) noexcept override |
bool | execGraphicsExportDialog (GraphicsExportDialog::Output output, const QString &settingsKey) noexcept override |
void | setGridProperties (const PositiveLength &interval, const LengthUnit &unit, Theme::GridStyle style) noexcept |
void | applyBackgroundImageSettings () noexcept |
FilePath | getBackgroundImageCacheDir () const noexcept |
void | toggle3DMode (bool enable) noexcept |
bool | is3DModeEnabled () const noexcept |
Private Attributes | |
QScopedPointer< Ui::PackageEditorWidget > | mUi |
QScopedPointer< OpenGlView > | mOpenGlView |
QScopedPointer< CategoryListEditorWidget > | mCategoriesEditorWidget |
QScopedPointer< GraphicsScene > | mGraphicsScene |
QScopedPointer< OpenGlSceneBuilder > | mOpenGlSceneBuilder |
bool | mOpenGlSceneBuildScheduled |
LengthUnit | mLengthUnit |
std::unique_ptr< Package > | mPackage |
std::shared_ptr< Footprint > | mCurrentFootprint |
std::shared_ptr< PackageModel > | mCurrentModel |
BackgroundImageSettings | mBackgroundImageSettings |
std::shared_ptr< QGraphicsPixmapItem > | mBackgroundImageGraphicsItem |
QSet< Uuid > | mOriginalPadUuids |
FootprintList | mOriginalFootprints |
QScopedPointer< PackageEditorFsm > | mFsm |
Editor state machine. | |
The PackageEditorWidget class.
|
delete |
|
delete |
PackageEditorWidget | ( | const Context & | context, |
const FilePath & | fp, | ||
QWidget * | parent = nullptr |
||
) |
|
noexcept |
|
overridevirtualnoexcept |
Reimplemented from EditorWidgetBase.
|
overridevirtualnoexcept |
Implements EditorWidgetBase.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
delete |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
overrideslotnoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
overrideprivatevirtualnoexcept |
Implements IF_GraphicsViewEventHandler.
|
overrideprivatevirtualnoexcept |
Reimplemented from EditorWidgetBase.
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
overrideprivatevirtualnoexcept |
|
overrideprivatevirtual |
Implements EditorWidgetBase.
|
private |
|
private |
|
private |
|
overrideprivatevirtual |
Implements EditorWidgetBase.
|
overrideprivatevirtualnoexcept |
Implements IF_RuleCheckHandler.
|
overrideprivatevirtualnoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
void fixMsg | ( | const MsgDeprecatedAssemblyType & | msg | ) |
void fixMsg | ( | const MsgSuspiciousAssemblyType & | msg | ) |
void fixMsg | ( | const MsgNameNotTitleCase & | msg | ) |
void fixMsg | ( | const MsgMissingAuthor & | msg | ) |
void fixMsg | ( | const MsgMissingCategories & | msg | ) |
void fixMsg | ( | const MsgMissingPackageOutline & | msg | ) |
void fixMsg | ( | const MsgMinimumWidthViolation & | msg | ) |
void fixMsg | ( | const MsgMissingCourtyard & | msg | ) |
void fixMsg | ( | const MsgMissingFootprint & | msg | ) |
void fixMsg | ( | const MsgMissingFootprintModel & | msg | ) |
void fixMsg | ( | const MsgMissingFootprintName & | msg | ) |
void fixMsg | ( | const MsgMissingFootprintValue & | msg | ) |
void fixMsg | ( | const MsgFootprintOriginNotInCenter & | msg | ) |
void fixMsg | ( | const MsgWrongFootprintTextLayer & | msg | ) |
void fixMsg | ( | const MsgUnusedCustomPadOutline & | msg | ) |
void fixMsg | ( | const MsgInvalidCustomPadOutline & | msg | ) |
void fixMsg | ( | const MsgPadStopMaskOff & | msg | ) |
void fixMsg | ( | const MsgSmtPadWithSolderPaste & | msg | ) |
void fixMsg | ( | const MsgThtPadWithSolderPaste & | msg | ) |
void fixMsg | ( | const MsgPadWithCopperClearance & | msg | ) |
void fixMsg | ( | const MsgFiducialClearanceLessThanStopMask & | msg | ) |
void fixMsg | ( | const MsgHoleWithoutStopMask & | msg | ) |
void fixMsg | ( | const MsgUnspecifiedPadFunction & | msg | ) |
void fixMsg | ( | const MsgSuspiciousPadFunction & | msg | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Editor state machine.