LibrePCB Developers Documentation
|
The SymbolEditorWidget class. More...
#include <symboleditorwidget.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 | snapToGrid () noexcept override |
bool | remove () noexcept override |
bool | editProperties () noexcept override |
bool | zoomIn () noexcept override |
bool | zoomOut () noexcept override |
bool | zoomAll () noexcept override |
bool | abortCommand () noexcept override |
bool | importDxf () noexcept override |
bool | editGridProperties () noexcept override |
bool | increaseGridInterval () noexcept override |
bool | decreaseGridInterval () 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 | |
SymbolEditorWidget ()=delete | |
SymbolEditorWidget (const SymbolEditorWidget &other)=delete | |
SymbolEditorWidget (const Context &context, const FilePath &fp, QWidget *parent=nullptr) | |
~SymbolEditorWidget () noexcept | |
QSet< Feature > | getAvailableFeatures () const noexcept override |
void | connectEditor (UndoStackActionGroup &undoStackActionGroup, ExclusiveActionGroup &toolsActionGroup, QToolBar &commandToolBar, StatusBar &statusBar) noexcept override |
void | disconnectEditor () noexcept override |
SymbolEditorWidget & | operator= (const SymbolEditorWidget &rhs)=delete |
template<> | |
void | fixMsg (const MsgNameNotTitleCase &msg) |
template<> | |
void | fixMsg (const MsgMissingAuthor &msg) |
template<> | |
void | fixMsg (const MsgMissingCategories &msg) |
template<> | |
void | fixMsg (const MsgMissingSymbolName &msg) |
template<> | |
void | fixMsg (const MsgMissingSymbolValue &msg) |
template<> | |
void | fixMsg (const MsgWrongSymbolTextLayer &msg) |
template<> | |
void | fixMsg (const MsgSymbolPinNotOnGrid &msg) |
template<> | |
void | fixMsg (const MsgNonFunctionalSymbolPinInversionSign &msg) |
template<> | |
void | fixMsg (const MsgSymbolOriginNotInCenter &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 |
virtual bool | isBackgroundImageSet () 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 |
bool | isInterfaceBroken () const noexcept override |
bool | runChecks (RuleCheckMessageList &msgs) const override |
template<typename MessageType > | |
void | fixMsg (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 |
Private Attributes | |
QScopedPointer< Ui::SymbolEditorWidget > | mUi |
QScopedPointer< CategoryListEditorWidget > | mCategoriesEditorWidget |
QScopedPointer< GraphicsScene > | mGraphicsScene |
LengthUnit | mLengthUnit |
std::unique_ptr< Symbol > | mSymbol |
QScopedPointer< SymbolGraphicsItem > | mGraphicsItem |
QSet< Uuid > | mOriginalSymbolPinUuids |
Broken interface detection. | |
QScopedPointer< SymbolEditorFsm > | mFsm |
Editor state machine. | |
The SymbolEditorWidget class.
|
delete |
|
delete |
SymbolEditorWidget | ( | const Context & | context, |
const FilePath & | fp, | ||
QWidget * | parent = nullptr |
||
) |
|
noexcept |
|
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 |
|
privatenoexcept |
|
privatenoexcept |
|
overrideprivatevirtualnoexcept |
Implements IF_GraphicsViewEventHandler.
|
overrideprivatevirtualnoexcept |
Reimplemented from EditorWidgetBase.
|
overrideprivatevirtualnoexcept |
Implements EditorWidgetBase.
|
overrideprivatevirtual |
Implements EditorWidgetBase.
|
private |
|
private |
|
overrideprivatevirtual |
Implements EditorWidgetBase.
|
overrideprivatevirtualnoexcept |
Implements IF_RuleCheckHandler.
|
overrideprivatevirtualnoexcept |
|
privatenoexcept |
void fixMsg | ( | const MsgNameNotTitleCase & | msg | ) |
void fixMsg | ( | const MsgMissingAuthor & | msg | ) |
void fixMsg | ( | const MsgMissingCategories & | msg | ) |
void fixMsg | ( | const MsgMissingSymbolName & | msg | ) |
void fixMsg | ( | const MsgMissingSymbolValue & | msg | ) |
void fixMsg | ( | const MsgWrongSymbolTextLayer & | msg | ) |
void fixMsg | ( | const MsgSymbolPinNotOnGrid & | msg | ) |
void fixMsg | ( | const MsgNonFunctionalSymbolPinInversionSign & | msg | ) |
void fixMsg | ( | const MsgSymbolOriginNotInCenter & | msg | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Broken interface detection.
|
private |
Editor state machine.