![]() |
LibrePCB Developers Documentation
|
The PackageTab class. More...
#include <packagetab.h>
Inheritance diagram for PackageTab:
Collaboration diagram for PackageTab:Public Types | |
| enum class | Mode |
Public Types inherited from PackageEditorFsmAdapter | |
| enum class | Feature : quint32 |
Signals | |
| void | layerRequested (const Layer &layer) |
| void | angleRequested (const Angle &angle) |
| void | ratioRequested (const UnsignedLimitedRatio &ratio) |
| void | filledRequested (bool filled) |
| void | grabAreaRequested (bool grabArea) |
| void | valueRequested (const QString &value) |
| void | hAlignRequested (const HAlign &align) |
| void | vAlignRequested (const VAlign &align) |
| void | packagePadRequested (const std::optional< Uuid > &pad) |
| void | componentSideRequested (Pad::ComponentSide side) |
| void | shapeRequested (const ui::PadShape shape) |
| void | pressFitRequested (bool pressFit) |
| void | zoneLayerRequested (Zone::Layer layer, bool enable) |
| void | zoneRuleRequested (Zone::Rule rule, bool enable) |
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 | |
| PackageTab ()=delete | |
| PackageTab (const PackageTab &other)=delete | |
| PackageTab (LibraryEditor &editor, std::unique_ptr< Package > pkg, Mode mode, QObject *parent=nullptr) noexcept | |
| ~PackageTab () noexcept | |
| FilePath | getDirectoryPath () const noexcept override |
| ui::TabData | getUiData () const noexcept override |
| ui::PackageTabData | getDerivedUiData () const noexcept |
| void | setDerivedUiData (const ui::PackageTabData &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 |
| QWidget * | fsmGetParentWidget () noexcept override |
| GraphicsScene * | fsmGetGraphicsScene () 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 (PackageEditorState_Select &state) noexcept override |
| void | fsmToolEnter (PackageEditorState_DrawLine &state) noexcept override |
| void | fsmToolEnter (PackageEditorState_DrawRect &state) noexcept override |
| void | fsmToolEnter (PackageEditorState_DrawPolygon &state) noexcept override |
| void | fsmToolEnter (PackageEditorState_DrawCircle &state) noexcept override |
| void | fsmToolEnter (PackageEditorState_DrawArc &state) noexcept override |
| void | fsmToolEnter (PackageEditorState_AddNames &state) noexcept override |
| void | fsmToolEnter (PackageEditorState_AddValues &state) noexcept override |
| void | fsmToolEnter (PackageEditorState_DrawText &state) noexcept override |
| void | fsmToolEnter (PackageEditorState_AddPads &state) noexcept override |
| void | fsmToolEnter (PackageEditorState_DrawZone &state) noexcept override |
| void | fsmToolEnter (PackageEditorState_AddHoles &state) noexcept override |
| void | fsmToolEnter (PackageEditorState_ReNumberPads &state) noexcept override |
| void | fsmToolEnter (PackageEditorState_Measure &state) noexcept override |
| PackageTab & | operator= (const PackageTab &rhs)=delete |
| template<> | |
| bool | autoFix (const MsgNameNotTitleCase &msg) |
| template<> | |
| bool | autoFix (const MsgMissingAuthor &msg) |
| template<> | |
| bool | autoFix (const MsgMissingCategories &msg) |
| template<> | |
| bool | autoFix (const MsgDeprecatedAssemblyType &msg) |
| template<> | |
| bool | autoFix (const MsgSuspiciousAssemblyType &msg) |
| template<> | |
| bool | autoFix (const MsgMissingPackageOutline &msg) |
| template<> | |
| bool | autoFix (const MsgMissingCourtyard &msg) |
| template<> | |
| bool | autoFix (const MsgMinimumWidthViolation &msg) |
| template<> | |
| bool | autoFix (const MsgMissingFootprint &msg) |
| template<> | |
| bool | autoFix (const MsgMissingFootprintModel &msg) |
| template<> | |
| bool | autoFix (const MsgMissingFootprintName &msg) |
| template<> | |
| bool | autoFix (const MsgMissingFootprintValue &msg) |
| template<> | |
| bool | autoFix (const MsgFootprintOriginNotInCenter &msg) |
| template<> | |
| bool | autoFix (const MsgWrongFootprintTextLayer &msg) |
| template<> | |
| bool | autoFix (const MsgUnusedCustomPadOutline &msg) |
| template<> | |
| bool | autoFix (const MsgInvalidCustomPadOutline &msg) |
| template<> | |
| bool | autoFix (const MsgPadStopMaskOff &msg) |
| template<> | |
| bool | autoFix (const MsgSmtPadWithSolderPaste &msg) |
| template<> | |
| bool | autoFix (const MsgThtPadWithSolderPaste &msg) |
| template<> | |
| bool | autoFix (const MsgPadWithCopperClearance &msg) |
| template<> | |
| bool | autoFix (const MsgFiducialClearanceLessThanStopMask &msg) |
| template<> | |
| bool | autoFix (const MsgHoleWithoutStopMask &msg) |
| template<> | |
| bool | autoFix (const MsgUnspecifiedPadFunction &msg) |
| template<> | |
| bool | autoFix (const MsgSuspiciousPadFunction &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 | setWindow (MainWindow *w) 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< PackageTab > | onDerivedUiDataChanged |
Public Attributes inherited from WindowTab | |
| Signal< WindowTab > | onUiDataChanged |
Protected Member Functions | |
| void | watchedFilesModifiedChanged () noexcept override |
| void | reloadFromDisk () override |
| 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 > | |
| bool | autoFix (const MessageType &msg) |
| template<typename MessageType > | |
| bool | fixPadFunction (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 | setWatchedFiles (const TransactionalDirectory &dir, const QSet< QString > &filenames) noexcept |
| void | scheduleChecks () noexcept |
| void | runChecks () noexcept |
| QString | getWorkspaceSettingsUserName () const noexcept |
Protected Member Functions inherited from WindowTab | |
| QWidget * | getWindow () const noexcept |
Private Member Functions | |
| void | setCurrentFootprintIndex (int index) noexcept |
| void | setCurrentModelIndex (int index) noexcept |
| void | autoSelectCurrentModelIndex () noexcept |
| bool | isWritable () const noexcept |
| void | refreshUiData () noexcept |
| void | commitUiData () noexcept |
| bool | save () noexcept |
| void | memorizeInterface () noexcept |
| void | updateWatchedFiles () noexcept |
| void | setGridInterval (const PositiveLength &interval) noexcept |
| bool | execGraphicsExportDialog (GraphicsExportDialog::Output output, const QString &settingsKey) noexcept |
| void | scheduleOpenGlSceneUpdate () noexcept |
| void | updateOpenGlScene () noexcept |
| bool | toggleBackgroundImage () noexcept |
| void | applyBackgroundImageSettings () noexcept |
| FilePath | getBackgroundImageCacheDir () const 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 |
| QFileSystemWatcher | mFileSystemWatcher |
| QHash< FilePath, QByteArray > | mWatchedFileHashes |
| To detect modifications. | |
| QSet< FilePath > | mModifiedWatchedFiles |
| Modified, but not reloaded yet. | |
| bool | mAutoReloadOnFileModifications |
| Set by derived classes. | |
| QTimer | mWatchedFilesTimer |
| To delay/aggregate the notification & reload. | |
Protected Attributes inherited from WindowTab | |
| GuiApplication & | mApp |
| MainWindow * | mWindow |
The PackageTab class.
|
strong |
|
delete |
|
delete |
|
explicitnoexcept |
|
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 |
|
overridevirtualnoexcept |
Implements PackageEditorFsmAdapter.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Implements PackageEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements PackageEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements PackageEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements PackageEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements PackageEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements PackageEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements PackageEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements PackageEditorFsmAdapter.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Implements PackageEditorFsmAdapter.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Implements PackageEditorFsmAdapter.
|
overridevirtualnoexcept |
Implements PackageEditorFsmAdapter.
|
delete |
|
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:
|
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:
|
overrideprotectedvirtualnoexcept |
Reimplemented from LibraryEditorTab.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Implements LibraryEditorTab.
|
overrideprotectedvirtual |
Implements LibraryEditorTab.
|
protected |
Here is the call graph for this function:
|
protected |
Here is the caller graph for this function:
|
protected |
Here is the call graph for this function:
Here is the caller graph for this function:
|
overrideprotectedvirtualnoexcept |
Implements LibraryEditorTab.
|
overrideprotectedvirtualnoexcept |
Implements LibraryEditorTab.
|
privatenoexcept |
Here is the call graph for this function:
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:
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:
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 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:
|
privatenoexcept |
Here is the call 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 caller graph for this function:
|
privatenoexcept |
Here is the call graph for this function:
Here is the caller graph for this function:| bool autoFix | ( | const MsgNameNotTitleCase & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgMissingAuthor & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgMissingCategories & | msg | ) |
| bool autoFix | ( | const MsgDeprecatedAssemblyType & | msg | ) |
| bool autoFix | ( | const MsgSuspiciousAssemblyType & | msg | ) |
| bool autoFix | ( | const MsgMissingPackageOutline & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgMissingCourtyard & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgMinimumWidthViolation & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgMissingFootprint & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgMissingFootprintModel & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgMissingFootprintName & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgMissingFootprintValue & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgFootprintOriginNotInCenter & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgWrongFootprintTextLayer & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgUnusedCustomPadOutline & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgInvalidCustomPadOutline & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgPadStopMaskOff & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgSmtPadWithSolderPaste & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgThtPadWithSolderPaste & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgPadWithCopperClearance & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgFiducialClearanceLessThanStopMask & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgHoleWithoutStopMask & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgUnspecifiedPadFunction & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgSuspiciousPadFunction & | msg | ) |
Here is the call graph for this function:| Signal<PackageTab> onDerivedUiDataChanged |
|
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 |
|
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 |
|
private |
|
private |
|
private |
|
private |
Broken interface detection.
|
private |
|
private |