20#ifndef LIBREPCB_EDITOR_LIBRARYEDITORTAB_H
21#define LIBREPCB_EDITOR_LIBRARYEDITORTAB_H
26#include "../windowtab.h"
44class RuleCheckMessagesModel;
62 QObject* parent =
nullptr) noexcept;
81 bool approved) noexcept = 0;
87 bool checkOnly) noexcept;
This class represents absolute, well-formatted paths to files or directories.
Definition filepath.h:127
The RuleCheckMessage class.
Definition rulecheckmessage.h:45
The SExpression class.
Definition sexpression.h:69
The LibraryEditor class.
Definition libraryeditor.h:57
Specialized base class for all library editor tabs.
Definition libraryeditortab.h:54
virtual bool autoFixImpl(const std::shared_ptr< const RuleCheckMessage > &msg, bool checkOnly)=0
LibraryEditor & mEditor
Definition libraryeditortab.h:90
bool isPathOutsideLibDir() const noexcept
Definition libraryeditortab.cpp:89
virtual void notifyDerivedUiDataChanged() noexcept=0
QSet< SExpression > mDisappearedApprovals
Definition libraryeditortab.h:96
std::unique_ptr< UndoStack > mUndoStack
Definition libraryeditortab.h:91
LibraryEditorTab()=delete
LibraryEditorTab(const LibraryEditorTab &other)=delete
std::shared_ptr< RuleCheckMessagesModel > mCheckMessages
Definition libraryeditortab.h:97
bool mManualModificationsMade
Definition libraryeditortab.h:92
QSet< SExpression > mSupportedApprovals
Definition libraryeditortab.h:95
virtual void messageApprovalChanged(const SExpression &approval, bool approved) noexcept=0
void runChecks() noexcept
Definition libraryeditortab.cpp:103
virtual FilePath getDirectoryPath() const noexcept=0
bool autoFixHandler(const std::shared_ptr< const RuleCheckMessage > &msg, bool checkOnly) noexcept
Definition libraryeditortab.cpp:140
QString getWorkspaceSettingsUserName() const noexcept
Definition libraryeditortab.cpp:125
QTimer mRuleCheckDelayTimer
Definition libraryeditortab.h:99
bool hasUnsavedChanges() const noexcept
Definition libraryeditortab.cpp:95
void scheduleChecks() noexcept
Definition libraryeditortab.cpp:99
slint::SharedString mCheckError
Definition libraryeditortab.h:98
virtual std::optional< std::pair< RuleCheckMessageList, QSet< SExpression > > > runChecksImpl()=0
The RuleCheckMessagesModel class.
Definition rulecheckmessagesmodel.h:46
The UndoStack class holds UndoCommand objects and provides undo/redo commands.
Definition undostack.h:106
The WindowTab class.
Definition windowtab.h:51
Definition occmodel.cpp:77
QVector< std::shared_ptr< const RuleCheckMessage > > RuleCheckMessageList
Definition rulecheckmessage.h:104