The ProjectEditor class.
More...
#include <projecteditor.h>
Inherits QObject.
◆ ProjectEditor() [1/3]
◆ ProjectEditor() [2/3]
◆ ProjectEditor() [3/3]
◆ ~ProjectEditor()
◆ getApp()
◆ getWorkspace()
◆ getProject()
◆ getUndoStack()
◆ getSchematics()
◆ getBoards()
const QVector< std::shared_ptr< BoardEditor > > & getBoards |
( |
| ) |
|
|
inlinenoexcept |
◆ getUiIndex()
◆ setUiIndex()
void setUiIndex |
( |
int |
index | ) |
|
|
noexcept |
◆ getUiData()
ui::ProjectData getUiData |
( |
| ) |
const |
|
noexcept |
◆ setUiData()
void setUiData |
( |
const ui::ProjectData & |
data | ) |
|
|
noexcept |
◆ trigger()
void trigger |
( |
ui::ProjectAction |
a | ) |
|
|
noexcept |
◆ getUseIeee315Symbols()
bool getUseIeee315Symbols |
( |
| ) |
const |
|
inlinenoexcept |
◆ getHighlightedNetSignals()
std::shared_ptr< const QSet< const NetSignal * > > getHighlightedNetSignals |
( |
| ) |
const |
|
inlinenoexcept |
◆ setHighlightedNetSignals()
void setHighlightedNetSignals |
( |
const QSet< const NetSignal * > & |
netSignals | ) |
|
|
noexcept |
◆ requestClose()
Request to close the project.
If there are unsaved changes to the project, this method will ask the user whether the changes should be saved or not. If the user clicks on "cancel" or the project 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 | Project is safe to be closed. |
false | Project still has unsaved changes. |
◆ saveProject()
Save the whole project to the harddisc.
- Note
- The whole save procedere is described in Atomic Saving Procedure.
- Returns
- true on success, false on failure
◆ autosaveProject()
Make a automatic backup of the project (save to temporary files)
- Note
- The whole save procedere is described in Atomic Saving Procedure.
- Returns
- true on success, false on failure
◆ setManualModificationsMade()
void setManualModificationsMade |
( |
| ) |
|
|
noexcept |
Set the flag that manual modifications (no undo stack) are made.
◆ execSetupDialog()
◆ execOutputJobsDialog()
void execOutputJobsDialog |
( |
| ) |
|
|
noexcept |
◆ execBomGeneratorDialog()
void execBomGeneratorDialog |
( |
const Board * |
board | ) |
|
|
noexcept |
◆ execLppzExportDialog()
void execLppzExportDialog |
( |
QWidget * |
parent | ) |
|
|
noexcept |
Execute the *.lppz export dialog (blocking)
- Parameters
-
parent | parent widget of the dialog |
◆ execNewSheetDialog()
◆ execRenameSheetDialog()
void execRenameSheetDialog |
( |
int |
index | ) |
|
|
noexcept |
◆ execDeleteSheetDialog()
void execDeleteSheetDialog |
( |
int |
index | ) |
|
|
noexcept |
◆ execNewBoardDialog()
std::shared_ptr< BoardEditor > execNewBoardDialog |
( |
std::optional< int > |
copyFromIndex | ) |
|
|
noexcept |
◆ execDeleteBoardDialog()
void execDeleteBoardDialog |
( |
int |
index | ) |
|
|
noexcept |
◆ registerActiveSchematicTab()
◆ unregisterActiveSchematicTab()
◆ operator=()
◆ uiIndexChanged
◆ manualModificationsMade
void manualModificationsMade |
( |
| ) |
|
|
signal |
◆ projectAboutToBeSaved
void projectAboutToBeSaved |
( |
| ) |
|
|
signal |
◆ projectSavedToDisk
void projectSavedToDisk |
( |
| ) |
|
|
signal |
◆ ercUnapprovedCountChanged
void ercUnapprovedCountChanged |
( |
| ) |
|
|
signal |
◆ highlightedNetSignalsChanged
void highlightedNetSignalsChanged |
( |
| ) |
|
|
signal |
◆ projectLibraryUpdaterRequested
void projectLibraryUpdaterRequested |
( |
const FilePath & |
fp | ) |
|
|
signal |
◆ statusBarMessageChanged
void statusBarMessageChanged |
( |
const QString & |
message, |
|
|
int |
timeoutMs |
|
) |
| |
|
signal |
◆ abortBlockingToolsInOtherEditors
void abortBlockingToolsInOtherEditors |
( |
const void * |
source | ) |
|
|
signal |
Abort any active (blocking) tools in other editors.
If an undo command group is already active while starting a new tool, try to abort any active tool in other editors since it is annoying to block one editor by another editor (an error message would appear). However, do NOT abort tools in the own editor since this could lead to unexpected/wrong behavior (e.g. recursion)!
- Parameters
-
source | The calling editor (any kind of type), which will not be aborted. Typically, a librepcb::editor::WindowTab pointer is passed. Pass nullptr to abort in all editors. |
◆ showUpgradeMessages()
void showUpgradeMessages |
( |
| ) |
|
|
privatenoexcept |
Show a dialog with all project file format upgrade messages.
◆ scheduleErcRun()
◆ runErc()
◆ projectSettingsChanged()
void projectSettingsChanged |
( |
| ) |
|
|
privatenoexcept |
◆ onUiDataChanged
◆ mApp
◆ mWorkspace
◆ mProject
◆ mUiIndex
◆ mUseIeee315Symbols
◆ mUpgradeMessages
◆ mSchematics
◆ mBoards
◆ mUndoStack
◆ mHighlightedNetSignals
std::shared_ptr<QSet<const NetSignal*> > mHighlightedNetSignals |
|
private |
◆ mActiveSchematicTabs
◆ mErcMessages
◆ mSupportedErcApprovals
◆ mDisappearedErcApprovals
◆ mErcExecutionError
QString mErcExecutionError |
|
private |
◆ mErcTimer
◆ mManualModificationsMade
bool mManualModificationsMade |
|
private |
Modifications bypassing the undo stack.
◆ mLastAutosaveStateId
uint mLastAutosaveStateId |
|
private |
The UndoStack state ID of the last successful project (auto)save.
◆ mAutoSaveTimer
The documentation for this class was generated from the following files: