The GuiApplication class.
More...
#include <guiapplication.h>
Inherits QObject.
|
bool | eventFilter (QObject *watched, QEvent *event) noexcept override |
|
◆ GuiApplication() [1/3]
◆ GuiApplication() [2/3]
◆ GuiApplication() [3/3]
◆ ~GuiApplication()
◆ getWorkspace()
◆ getNotifications()
◆ getQuickAccess()
◆ getLocalLibraries()
◆ getRemoteLibraries()
◆ openFile()
void openFile |
( |
const FilePath & |
fp, |
|
|
QWidget * |
parent |
|
) |
| |
|
noexcept |
◆ switchWorkspace()
void switchWorkspace |
( |
QWidget * |
parent | ) |
|
|
noexcept |
◆ execWorkspaceSettingsDialog()
void execWorkspaceSettingsDialog |
( |
QWidget * |
parent | ) |
|
|
noexcept |
◆ addExampleProjects()
void addExampleProjects |
( |
QWidget * |
parent | ) |
|
|
noexcept |
◆ createProject()
void createProject |
( |
const FilePath & |
parentDir, |
|
|
bool |
eagleImport, |
|
|
QWidget * |
parent |
|
) |
| |
|
noexcept |
◆ openProject()
Open a project with the editor (or bring an already opened editor to front)
- Parameters
-
filepath | The filepath to the *.lpp project file to open. If invalid, a file dialog will be shown to select it. |
parent | Parent widget for dialogs. |
- Returns
- The pointer to the opened project editor (nullptr on error)
◆ createNewWindow()
void createNewWindow |
( |
int |
id = -1 | ) |
|
|
noexcept |
◆ requestClosingWindow()
bool requestClosingWindow |
( |
QWidget * |
parent | ) |
|
|
noexcept |
◆ exec()
◆ quit()
void quit |
( |
QPointer< QWidget > |
parent | ) |
|
|
noexcept |
◆ operator=()
◆ eventFilter()
bool eventFilter |
( |
QObject * |
watched, |
|
|
QEvent * |
event |
|
) |
| |
|
overrideprotectednoexcept |
◆ openProjectsPassedByCommandLine()
void openProjectsPassedByCommandLine |
( |
| ) |
|
|
privatenoexcept |
◆ openProjectPassedByOs()
void openProjectPassedByOs |
( |
const QString & |
file, |
|
|
bool |
silent = false |
|
) |
| |
|
privatenoexcept |
◆ getOpenProject()
Get the pointer to an already open project editor by its project filepath.
This method can also be used to check whether a project (by its filepath) is already open or not.
- Parameters
-
filepath | The filepath to a *.lpp project file |
- Returns
- The pointer to the open project editor, or nullptr if the project is not open
◆ askForRestoringBackup()
bool askForRestoringBackup |
( |
const FilePath & |
dir | ) |
|
|
staticprivate |
Ask the user whether to restore a backup of a project.
- Parameters
-
dir | The project directory to be restored. |
- Return values
-
true | Restore backup. |
false | Do not restore backup. |
- Exceptions
-
◆ closeAllProjects()
bool closeAllProjects |
( |
bool |
askForSave, |
|
|
QWidget * |
parent |
|
) |
| |
|
privatenoexcept |
Close all open project editors.
- Parameters
-
askForSave | If true, the user will be asked to save all modified projects |
parent | Parent for message boxes |
- Return values
-
true | if all projects successfully closed, false otherwise |
◆ projectEditorClosed()
void projectEditorClosed |
( |
| ) |
|
|
privatenoexcept |
◆ openProjectLibraryUpdater()
void openProjectLibraryUpdater |
( |
const FilePath & |
project | ) |
|
|
privatenoexcept |
◆ openLibraryEditor()
void openLibraryEditor |
( |
const FilePath & |
libDir | ) |
|
|
privatenoexcept |
◆ libraryEditorDestroyed()
void libraryEditorDestroyed |
( |
| ) |
|
|
privatenoexcept |
◆ closeAllLibraryEditors()
bool closeAllLibraryEditors |
( |
bool |
askForSave | ) |
|
|
privatenoexcept |
Close all open library editors.
- Parameters
-
askForSave | If true, the user will be asked to save all modified libraries |
- Return values
-
true | if all library editors successfully closed, false otherwise |
◆ getCurrentWindow()
std::shared_ptr< MainWindow > getCurrentWindow |
( |
| ) |
|
|
privatenoexcept |
◆ updateNoLibrariesInstalledNotification()
void updateNoLibrariesInstalledNotification |
( |
| ) |
|
|
privatenoexcept |
◆ updateDesktopIntegrationNotification()
void updateDesktopIntegrationNotification |
( |
| ) |
|
|
privatenoexcept |
◆ mWorkspace
◆ mNotifications
◆ mNotificationNoLibrariesInstalled
std::shared_ptr<Notification> mNotificationNoLibrariesInstalled |
|
private |
◆ mNotificationDesktopIntegration
std::shared_ptr<Notification> mNotificationDesktopIntegration |
|
private |
◆ mQuickAccessModel
◆ mLocalLibraries
◆ mRemoteLibraries
◆ mLibrariesFilter
◆ mOpenProjectEditors
◆ mOpenLibraryEditors
◆ mProjectLibraryUpdater
◆ mWindows
◆ mSaveOpenedWindowsCountdown
QTimer mSaveOpenedWindowsCountdown |
|
private |
The documentation for this class was generated from the following files: