![]() |
LibrePCB Developers Documentation
|
The LibraryEditor class. More...
#include <libraryeditor.h>
Inherits QObject.
Collaboration diagram for LibraryEditor:Signals | |
| void | uiIndexChanged () |
| void | manualModificationsMade () |
| void | aboutToBeDestroyed () |
Public Member Functions | |
| LibraryEditor ()=delete | |
| LibraryEditor (const LibraryEditor &other)=delete | |
| LibraryEditor (GuiApplication &app, std::unique_ptr< Library > lib, int uiIndex, QObject *parent=nullptr) noexcept | |
| ~LibraryEditor () noexcept | |
| GuiApplication & | getApp () noexcept |
| Workspace & | getWorkspace () noexcept |
| FilePath | getFilePath () const noexcept |
| Library & | getLibrary () noexcept |
| UndoStack & | getUndoStack () noexcept |
| bool | isWritable () const noexcept |
| int | getUiIndex () const noexcept |
| void | setUiIndex (int index) noexcept |
| ui::LibraryData | getUiData () const noexcept |
| void | setUiData (const ui::LibraryData &data) noexcept |
| bool | requestClose () noexcept |
| Request to close the library. | |
| bool | hasUnsavedChanges () const noexcept |
| void | setManualModificationsMade () noexcept |
| Set the flag that manual modifications (no undo stack) are made. | |
| bool | save () noexcept |
| Save the library to the harddisc. | |
| void | registerTab (LibraryEditorTab &tab) noexcept |
| void | unregisterTab (LibraryEditorTab &tab) noexcept |
| void | forceClosingTabs (const QSet< FilePath > &fp) noexcept |
| LibraryEditor & | operator= (const LibraryEditor &rhs)=delete |
Public Attributes | |
| Signal< LibraryEditor > | onUiDataChanged |
Private Attributes | |
| GuiApplication & | mApp |
| Workspace & | mWorkspace |
| std::unique_ptr< Library > | mLibrary |
| int | mUiIndex |
| std::unique_ptr< UndoStack > | mUndoStack |
| bool | mManualModificationsMade |
| Modifications bypassing the undo stack. | |
| QVector< QPointer< LibraryEditorTab > > | mRegisteredTabs |
The LibraryEditor class.
|
delete |
|
delete |
|
noexcept |
Here is the call graph for this function:
|
noexcept |
Here is the call graph for this function:
|
inlinenoexcept |
|
inlinenoexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
inlinenoexcept |
Here is the caller graph for this function:
|
inlinenoexcept |
Here is the caller graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
inlinenoexcept |
Here is the caller graph for this function:
|
noexcept |
|
noexcept |
Here is the call graph for this function:
|
noexcept |
|
noexcept |
Request to close the library.
If there are unsaved changes to the library, this method will ask the user whether the changes should be saved or not. If the user clicks on "cancel" or the library 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.
Here is the call graph for this function:
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
Set the flag that manual modifications (no undo stack) are made.
Here is the call graph for this function:
|
noexcept |
Save the library to the harddisc.
Here is the call graph for this function:
Here is the caller graph for this function:
|
noexcept |
|
noexcept |
Here is the caller graph for this function:
|
noexcept |
|
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<LibraryEditor> onUiDataChanged |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Modifications bypassing the undo stack.
|
private |