20#ifndef LIBREPCB_EDITOR_LIBRARYEDITOR_H
21#define LIBREPCB_EDITOR_LIBRARYEDITOR_H
46class LibraryEditorLegacy;
47class LibraryEditorTab;
68 QObject* parent =
nullptr) noexcept;
80 ui::LibraryData
getUiData() const noexcept;
81 void setUiData(const ui::LibraryData& data) noexcept;
109 bool save() noexcept;
This class represents absolute, well-formatted paths to files or directories.
Definition filepath.h:127
The Library class represents a library directory.
Definition library.h:46
The Signal class is used to emit signals on non-QObject derived classes.
Definition signalslot.h:65
The Workspace class represents a workspace with all its data (library, projects, settings,...
Definition workspace.h:54
The GuiApplication class.
Definition guiapplication.h:61
The LibraryEditor class.
Definition libraryeditor.h:57
bool save() noexcept
Save the library to the harddisc.
Definition libraryeditor.cpp:158
Signal< LibraryEditor > onUiDataChanged
Definition libraryeditor.h:62
std::unique_ptr< UndoStack > mUndoStack
Definition libraryeditor.h:137
void duplicateInLegacyPackageEditor(const FilePath &fp) noexcept
Definition libraryeditor.cpp:216
QVector< QPointer< LibraryEditorTab > > mRegisteredTabs
Definition libraryeditor.h:142
Library & getLibrary() noexcept
Definition libraryeditor.h:75
void manualModificationsMade()
bool mManualModificationsMade
Modifications bypassing the undo stack.
Definition libraryeditor.h:140
void openLegacyPackageEditor(const FilePath &fp) noexcept
Definition libraryeditor.cpp:195
Workspace & getWorkspace() noexcept
Definition libraryeditor.h:73
void unregisterTab(LibraryEditorTab &tab) noexcept
Definition libraryeditor.cpp:180
UndoStack & getUndoStack() noexcept
Definition libraryeditor.h:76
int mUiIndex
Definition libraryeditor.h:136
void setManualModificationsMade() noexcept
Set the flag that manual modifications (no undo stack) are made.
Definition libraryeditor.cpp:151
void openLegacyDeviceEditor(const FilePath &fp) noexcept
Definition libraryeditor.cpp:209
GuiApplication & getApp() noexcept
Definition libraryeditor.h:72
ui::LibraryData getUiData() const noexcept
Definition libraryeditor.cpp:97
void setUiIndex(int index) noexcept
Definition libraryeditor.cpp:90
std::unique_ptr< LibraryEditorLegacy > mLegacyEditor
Definition libraryeditor.h:144
std::unique_ptr< Library > mLibrary
Definition libraryeditor.h:135
FilePath getFilePath() const noexcept
Definition libraryeditor.cpp:82
bool hasUnsavedChanges() const noexcept
Definition libraryeditor.cpp:147
int getUiIndex() const noexcept
Definition libraryeditor.h:78
void forceClosingTabs(const QSet< FilePath > &fp) noexcept
Definition libraryeditor.cpp:185
Workspace & mWorkspace
Definition libraryeditor.h:134
void registerTab(LibraryEditorTab &tab) noexcept
Definition libraryeditor.cpp:175
LibraryEditor(const LibraryEditor &other)=delete
void duplicateInLegacyDeviceEditor(const FilePath &fp) noexcept
Definition libraryeditor.cpp:232
bool requestClose() noexcept
Request to close the library.
Definition libraryeditor.cpp:110
bool isWritable() const noexcept
Definition libraryeditor.cpp:86
void openLegacyComponentEditor(const FilePath &fp) noexcept
Definition libraryeditor.cpp:202
void aboutToBeDestroyed()
void duplicateInLegacyComponentEditor(const FilePath &fp) noexcept
Definition libraryeditor.cpp:224
GuiApplication & mApp
Definition libraryeditor.h:133
void setUiData(const ui::LibraryData &data) noexcept
Definition libraryeditor.cpp:106
The LibraryEditorLegacy class.
Definition libraryeditorlegacy.h:63
Specialized base class for all library editor tabs.
Definition libraryeditortab.h:54
The UndoStack class holds UndoCommand objects and provides undo/redo commands.
Definition undostack.h:106
Definition occmodel.cpp:77