The LibraryEditor class.
More...
#include <libraryeditor.h>
Inherits QObject.
◆ LibraryEditor() [1/3]
◆ LibraryEditor() [2/3]
◆ LibraryEditor() [3/3]
◆ ~LibraryEditor()
◆ getApp()
◆ getWorkspace()
◆ getFilePath()
◆ getLibrary()
◆ getUndoStack()
◆ isWritable()
bool isWritable |
( |
| ) |
const |
|
noexcept |
◆ getUiIndex()
◆ setUiIndex()
void setUiIndex |
( |
int |
index | ) |
|
|
noexcept |
◆ getUiData()
ui::LibraryData getUiData |
( |
| ) |
const |
|
noexcept |
◆ setUiData()
void setUiData |
( |
const ui::LibraryData & |
data | ) |
|
|
noexcept |
◆ requestClose()
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.
- Return values
-
true | Library is safe to be closed. |
false | Library still has unsaved changes. |
◆ hasUnsavedChanges()
bool hasUnsavedChanges |
( |
| ) |
const |
|
noexcept |
◆ setManualModificationsMade()
void setManualModificationsMade |
( |
| ) |
|
|
noexcept |
Set the flag that manual modifications (no undo stack) are made.
◆ save()
Save the library to the harddisc.
- Returns
- true on success, false on failure
◆ registerTab()
◆ unregisterTab()
◆ forceClosingTabs()
void forceClosingTabs |
( |
const QSet< FilePath > & |
fp | ) |
|
|
noexcept |
◆ openLegacyPackageEditor()
void openLegacyPackageEditor |
( |
const FilePath & |
fp | ) |
|
|
noexcept |
◆ openLegacyComponentEditor()
void openLegacyComponentEditor |
( |
const FilePath & |
fp | ) |
|
|
noexcept |
◆ openLegacyDeviceEditor()
void openLegacyDeviceEditor |
( |
const FilePath & |
fp | ) |
|
|
noexcept |
◆ duplicateInLegacyPackageEditor()
void duplicateInLegacyPackageEditor |
( |
const FilePath & |
fp | ) |
|
|
noexcept |
◆ duplicateInLegacyComponentEditor()
void duplicateInLegacyComponentEditor |
( |
const FilePath & |
fp | ) |
|
|
noexcept |
◆ duplicateInLegacyDeviceEditor()
void duplicateInLegacyDeviceEditor |
( |
const FilePath & |
fp | ) |
|
|
noexcept |
◆ operator=()
◆ uiIndexChanged
◆ manualModificationsMade
void manualModificationsMade |
( |
| ) |
|
|
signal |
◆ aboutToBeDestroyed
void aboutToBeDestroyed |
( |
| ) |
|
|
signal |
◆ onUiDataChanged
◆ mApp
◆ mWorkspace
◆ mLibrary
◆ mUiIndex
◆ mUndoStack
◆ mManualModificationsMade
bool mManualModificationsMade |
|
private |
Modifications bypassing the undo stack.
◆ mRegisteredTabs
◆ mLegacyEditor
The documentation for this class was generated from the following files: