![]() |
LibrePCB Developers Documentation
|
#include <symboltab.h>
Inheritance diagram for SymbolTab:
Collaboration diagram for SymbolTab:Public Types | |
| enum class | Mode |
Public Types inherited from SymbolEditorFsmAdapter | |
| enum class | Feature : quint32 |
Signals | |
| void | layerRequested (const Layer &layer) |
| void | angleRequested (const Angle &angle) |
| void | filledRequested (bool filled) |
| void | grabAreaRequested (bool grabArea) |
| void | valueRequested (const QString &value) |
| void | hAlignRequested (const HAlign &align) |
| void | vAlignRequested (const VAlign &align) |
Signals inherited from WindowTab | |
| void | panelPageRequested (ui::PanelPage p) |
| void | closeRequested () |
| void | closeEnforced () |
| void | statusBarMessageChanged (const QString &message, int timeoutMs) |
| void | cursorCoordinatesChanged (const Point &pos, const LengthUnit &unit) |
Public Member Functions | |
| SymbolTab ()=delete | |
| SymbolTab (const SymbolTab &other)=delete | |
| SymbolTab (LibraryEditor &editor, std::unique_ptr< Symbol > sym, Mode mode, QObject *parent=nullptr) noexcept | |
| ~SymbolTab () noexcept | |
| FilePath | getDirectoryPath () const noexcept override |
| ui::TabData | getUiData () const noexcept override |
| ui::SymbolTabData | getDerivedUiData () const noexcept |
| void | setDerivedUiData (const ui::SymbolTabData &data) noexcept |
| void | activate () noexcept override |
| void | deactivate () noexcept override |
| void | trigger (ui::TabAction a) noexcept override |
| slint::Image | renderScene (float width, float height, int scene) noexcept override |
| bool | processScenePointerEvent (const QPointF &pos, slint::private_api::PointerEvent e) noexcept override |
| bool | processSceneScrolled (const QPointF &pos, slint::private_api::PointerScrollEvent e) noexcept override |
| bool | processSceneKeyEvent (const slint::private_api::KeyEvent &e) noexcept override |
| bool | requestClose () noexcept override |
| Request to close the tab. | |
| bool | graphicsSceneKeyPressed (const GraphicsSceneKeyEvent &e) noexcept override |
| bool | graphicsSceneKeyReleased (const GraphicsSceneKeyEvent &e) noexcept override |
| bool | graphicsSceneMouseMoved (const GraphicsSceneMouseEvent &e) noexcept override |
| bool | graphicsSceneLeftMouseButtonPressed (const GraphicsSceneMouseEvent &e) noexcept override |
| bool | graphicsSceneLeftMouseButtonReleased (const GraphicsSceneMouseEvent &e) noexcept override |
| bool | graphicsSceneLeftMouseButtonDoubleClicked (const GraphicsSceneMouseEvent &e) noexcept override |
| bool | graphicsSceneRightMouseButtonReleased (const GraphicsSceneMouseEvent &e) noexcept override |
| GraphicsScene * | fsmGetGraphicsScene () noexcept override |
| SymbolGraphicsItem * | fsmGetGraphicsItem () noexcept override |
| PositiveLength | fsmGetGridInterval () const noexcept override |
| void | fsmSetViewCursor (const std::optional< Qt::CursorShape > &shape) noexcept override |
| void | fsmSetViewGrayOut (bool grayOut) noexcept override |
| void | fsmSetViewInfoBoxText (const QString &text) noexcept override |
| void | fsmSetViewRuler (const std::optional< std::pair< Point, Point > > &pos) noexcept override |
| void | fsmSetSceneCursor (const Point &pos, bool cross, bool circle) noexcept override |
| QPainterPath | fsmCalcPosWithTolerance (const Point &pos, qreal multiplier) const noexcept override |
| Point | fsmMapGlobalPosToScenePos (const QPoint &pos) const noexcept override |
| void | fsmSetStatusBarMessage (const QString &message, int timeoutMs=-1) noexcept override |
| void | fsmSetFeatures (Features features) noexcept override |
| void | fsmToolLeave () noexcept override |
| void | fsmToolEnter (SymbolEditorState_Select &state) noexcept override |
| void | fsmToolEnter (SymbolEditorState_DrawLine &state) noexcept override |
| void | fsmToolEnter (SymbolEditorState_DrawRect &state) noexcept override |
| void | fsmToolEnter (SymbolEditorState_DrawPolygon &state) noexcept override |
| void | fsmToolEnter (SymbolEditorState_DrawCircle &state) noexcept override |
| void | fsmToolEnter (SymbolEditorState_DrawArc &state) noexcept override |
| void | fsmToolEnter (SymbolEditorState_AddNames &state) noexcept override |
| void | fsmToolEnter (SymbolEditorState_AddValues &state) noexcept override |
| void | fsmToolEnter (SymbolEditorState_DrawText &state) noexcept override |
| void | fsmToolEnter (SymbolEditorState_AddPins &state) noexcept override |
| void | fsmToolEnter (SymbolEditorState_Measure &state) noexcept override |
| SymbolTab & | operator= (const SymbolTab &rhs)=delete |
| template<> | |
| void | autoFix (const MsgNameNotTitleCase &msg) |
| template<> | |
| void | autoFix (const MsgMissingAuthor &msg) |
| template<> | |
| void | autoFix (const MsgMissingCategories &msg) |
| template<> | |
| void | autoFix (const MsgMissingSymbolName &msg) |
| template<> | |
| void | autoFix (const MsgMissingSymbolValue &msg) |
| template<> | |
| void | autoFix (const MsgWrongSymbolTextLayer &msg) |
| template<> | |
| void | autoFix (const MsgSymbolPinNotOnGrid &msg) |
| template<> | |
| void | autoFix (const MsgNonFunctionalSymbolPinInversionSign &msg) |
| template<> | |
| void | autoFix (const MsgSymbolOriginNotInCenter &msg) |
Public Member Functions inherited from LibraryEditorTab | |
| LibraryEditorTab ()=delete | |
| LibraryEditorTab (const LibraryEditorTab &other)=delete | |
| LibraryEditorTab (LibraryEditor &editor, QObject *parent=nullptr) noexcept | |
| virtual | ~LibraryEditorTab () noexcept |
| LibraryEditorTab & | operator= (const LibraryEditorTab &rhs)=delete |
Public Member Functions inherited from WindowTab | |
| WindowTab ()=delete | |
| WindowTab (const WindowTab &other)=delete | |
| WindowTab (GuiApplication &app, QObject *parent=nullptr) noexcept | |
| virtual | ~WindowTab () noexcept |
| virtual void | setUiData (const ui::TabData &data) noexcept |
| WindowTab & | operator= (const WindowTab &rhs)=delete |
Public Member Functions inherited from IF_GraphicsViewEventHandler | |
| IF_GraphicsViewEventHandler () noexcept | |
| virtual | ~IF_GraphicsViewEventHandler () noexcept |
Public Attributes | |
| Signal< SymbolTab > | onDerivedUiDataChanged |
Public Attributes inherited from WindowTab | |
| Signal< WindowTab > | onUiDataChanged |
Protected Member Functions | |
| std::optional< std::pair< RuleCheckMessageList, QSet< SExpression > > > | runChecksImpl () override |
| bool | autoFixImpl (const std::shared_ptr< const RuleCheckMessage > &msg, bool checkOnly) override |
| template<typename MessageType > | |
| bool | autoFixHelper (const std::shared_ptr< const RuleCheckMessage > &msg, bool checkOnly) |
| template<typename MessageType > | |
| void | autoFix (const MessageType &msg) |
| void | messageApprovalChanged (const SExpression &approval, bool approved) noexcept override |
| void | notifyDerivedUiDataChanged () noexcept override |
Protected Member Functions inherited from LibraryEditorTab | |
| bool | isPathOutsideLibDir () const noexcept |
| bool | hasUnsavedChanges () const noexcept |
| void | scheduleChecks () noexcept |
| void | runChecks () noexcept |
| QString | getWorkspaceSettingsUserName () const noexcept |
Private Member Functions | |
| bool | isWritable () const noexcept |
| void | refreshUiData () noexcept |
| void | commitUiData () noexcept |
| bool | save () noexcept |
| void | setGridInterval (const PositiveLength &interval) noexcept |
| bool | execGraphicsExportDialog (GraphicsExportDialog::Output output, const QString &settingsKey) noexcept |
| void | requestRepaint () noexcept |
| void | applyTheme () noexcept |
Additional Inherited Members | |
Protected Attributes inherited from LibraryEditorTab | |
| LibraryEditor & | mEditor |
| std::unique_ptr< UndoStack > | mUndoStack |
| bool | mManualModificationsMade |
| QSet< SExpression > | mSupportedApprovals |
| QSet< SExpression > | mDisappearedApprovals |
| std::shared_ptr< RuleCheckMessagesModel > | mCheckMessages |
| slint::SharedString | mCheckError |
| QTimer | mRuleCheckDelayTimer |
Protected Attributes inherited from WindowTab | |
| GuiApplication & | mApp |
The SymbolTab class.
|
strong |
|
delete |
|
explicitnoexcept |
Here is the call graph for this function:
|
noexcept |
Here is the call graph for this function:
|
overridevirtualnoexcept |
Implements LibraryEditorTab.
|
overridevirtualnoexcept |
|
noexcept |
Here is the call graph for this function:
|
noexcept |
Here is the call graph for this function:
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from WindowTab.
|
overridevirtualnoexcept |
Reimplemented from WindowTab.
|
overridevirtualnoexcept |
Reimplemented from WindowTab.
|
overridevirtualnoexcept |
Reimplemented from WindowTab.
|
overridevirtualnoexcept |
Request to close the tab.
If there are unsaved changes to the tab, this method will ask the user whether the changes should be saved or not. If the user clicks on "cancel" or the changes could not be saved successfully, this method will return false. If there were no unsaved changes or they were successfully saved, the method returns true.
| true | Tab is safe to be closed. |
| false | Tab still has unsaved changes. |
Reimplemented from WindowTab.
Here is the call graph for this function:
|
overridevirtualnoexcept |
Reimplemented from IF_GraphicsViewEventHandler.
|
overridevirtualnoexcept |
Reimplemented from IF_GraphicsViewEventHandler.
|
overridevirtualnoexcept |
Reimplemented from IF_GraphicsViewEventHandler.
|
overridevirtualnoexcept |
Reimplemented from IF_GraphicsViewEventHandler.
|
overridevirtualnoexcept |
Reimplemented from IF_GraphicsViewEventHandler.
|
overridevirtualnoexcept |
Reimplemented from IF_GraphicsViewEventHandler.
|
overridevirtualnoexcept |
Reimplemented from IF_GraphicsViewEventHandler.
|
overridevirtualnoexcept |
Implements SymbolEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements SymbolEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements SymbolEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements SymbolEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements SymbolEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements SymbolEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements SymbolEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements SymbolEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements SymbolEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements SymbolEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements SymbolEditorFsmAdapter.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Implements SymbolEditorFsmAdapter.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Implements SymbolEditorFsmAdapter.
|
signal |
Here is the caller graph for this function:
|
signal |
Here is the caller graph for this function:
|
signal |
Here is the caller graph for this function:
|
signal |
Here is the caller graph for this function:
|
signal |
Here is the caller graph for this function:
|
signal |
Here is the caller graph for this function:
|
signal |
Here is the caller graph for this function:
|
overrideprotectedvirtual |
Implements LibraryEditorTab.
|
overrideprotectedvirtual |
Implements LibraryEditorTab.
|
protected |
Here is the call graph for this function:
|
protected |
Here is the caller graph for this function:
|
overrideprotectedvirtualnoexcept |
Implements LibraryEditorTab.
|
overrideprotectedvirtualnoexcept |
|
privatenoexcept |
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatenoexcept |
|
privatenoexcept |
Here is the call graph for this function:
|
privatenoexcept |
Here is the caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:| void autoFix | ( | const MsgNameNotTitleCase & | msg | ) |
Here is the call graph for this function:| void autoFix | ( | const MsgMissingAuthor & | msg | ) |
Here is the call graph for this function:| void autoFix | ( | const MsgMissingCategories & | msg | ) |
| void autoFix | ( | const MsgMissingSymbolName & | msg | ) |
| void autoFix | ( | const MsgMissingSymbolValue & | msg | ) |
| void autoFix | ( | const MsgWrongSymbolTextLayer & | msg | ) |
Here is the call graph for this function:| void autoFix | ( | const MsgSymbolPinNotOnGrid & | msg | ) |
Here is the call graph for this function:| void autoFix | ( | const MsgNonFunctionalSymbolPinInversionSign & | msg | ) |
Here is the call graph for this function:| void autoFix | ( | const MsgSymbolOriginNotInCenter & | msg | ) |
Here is the call graph for this function:
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Editor state machine.
|
private |
|
private |
|
private |
|
private |
Broken interface detection.
|
private |