![]() |
LibrePCB Developers Documentation
|
The ComponentTab class. More...
#include <componenttab.h>
Inheritance diagram for ComponentTab:
Collaboration diagram for ComponentTab:Public Types | |
| enum class | Mode |
Public Member Functions | |
| ComponentTab ()=delete | |
| ComponentTab (const ComponentTab &other)=delete | |
| ComponentTab (LibraryEditor &editor, std::unique_ptr< Component > cmp, Mode mode, QObject *parent=nullptr) noexcept | |
| ~ComponentTab () noexcept | |
| FilePath | getDirectoryPath () const noexcept override |
| ui::TabData | getUiData () const noexcept override |
| ui::ComponentTabData | getDerivedUiData () const noexcept |
| void | setDerivedUiData (const ui::ComponentTabData &data) noexcept |
| void | trigger (ui::TabAction a) noexcept override |
| slint::Image | renderScene (float width, float height, int scene) noexcept override |
| bool | requestClose () noexcept override |
| Request to close the tab. | |
| ComponentTab & | operator= (const ComponentTab &rhs)=delete |
| template<> | |
| bool | autoFix (const MsgNameNotTitleCase &msg) |
| template<> | |
| bool | autoFix (const MsgMissingAuthor &msg) |
| template<> | |
| bool | autoFix (const MsgMissingCategories &msg) |
| template<> | |
| bool | autoFix (const MsgMissingComponentDefaultValue &msg) |
| template<> | |
| bool | autoFix (const MsgMissingSymbolVariant &msg) |
| template<> | |
| bool | autoFix (const MsgNonFunctionalComponentSignalInversionSign &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 |
| virtual void | activate () noexcept |
| virtual void | deactivate () noexcept |
| virtual bool | processScenePointerEvent (const QPointF &pos, slint::private_api::PointerEvent e) noexcept |
| virtual bool | processSceneScrolled (const QPointF &pos, slint::private_api::PointerScrollEvent e) noexcept |
| virtual bool | processSceneKeyEvent (const slint::private_api::KeyEvent &e) noexcept |
| WindowTab & | operator= (const WindowTab &rhs)=delete |
Public Attributes | |
| Signal< ComponentTab > | 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 > | |
| bool | 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 | setWatchedFiles (const TransactionalDirectory &dir, const QSet< QString > &filenames) noexcept |
| virtual void | watchedFilesModifiedChanged () noexcept |
| virtual void | reloadFromDisk () |
| void | scheduleChecks () noexcept |
| void | runChecks () noexcept |
| QString | getWorkspaceSettingsUserName () const noexcept |
Protected Member Functions inherited from WindowTab | |
| QWidget * | getWindow () const noexcept |
Private Member Functions | |
| bool | isWritable () const noexcept |
| bool | isInterfaceBroken () const noexcept |
| void | refreshUiData () noexcept |
| void | commitUiData () noexcept |
| bool | save () noexcept |
Additional Inherited Members | |
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) |
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 ComponentTab 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 |
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:
|
delete |
|
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 |
Implements LibraryEditorTab.
|
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 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 MsgMissingComponentDefaultValue & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgMissingSymbolVariant & | msg | ) |
Here is the call graph for this function:| bool autoFix | ( | const MsgNonFunctionalComponentSignalInversionSign & | msg | ) |
Here is the call graph for this function:| Signal<ComponentTab> 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 |
Broken interface detection.
|
private |
|
private |
|
private |