The ControlPanel class.
More...
#include <controlpanel.h>
Inherits QMainWindow.
|
virtual void | closeEvent (QCloseEvent *event) override |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) override |
|
◆ ControlPanel() [1/3]
◆ ControlPanel() [2/3]
◆ ControlPanel() [3/3]
◆ ~ControlPanel()
◆ operator=()
◆ showControlPanel
void showControlPanel |
( |
| ) |
|
|
slotnoexcept |
◆ openProjectLibraryUpdater
void openProjectLibraryUpdater |
( |
const FilePath & |
project | ) |
|
|
slotnoexcept |
◆ closeEvent()
void closeEvent |
( |
QCloseEvent * |
event | ) |
|
|
overrideprotectedvirtual |
◆ eventFilter()
bool eventFilter |
( |
QObject * |
watched, |
|
|
QEvent * |
event |
|
) |
| |
|
overrideprotectedvirtual |
◆ openProjectsPassedByCommandLine
void openProjectsPassedByCommandLine |
( |
| ) |
|
|
privateslotnoexcept |
◆ openProjectPassedByOs
void openProjectPassedByOs |
( |
const QString & |
file, |
|
|
bool |
silent = false |
|
) |
| |
|
privateslotnoexcept |
◆ projectEditorClosed
void projectEditorClosed |
( |
| ) |
|
|
privateslotnoexcept |
◆ on_projectTreeView_clicked
void on_projectTreeView_clicked |
( |
const QModelIndex & |
index | ) |
|
|
privateslot |
◆ on_projectTreeView_doubleClicked
void on_projectTreeView_doubleClicked |
( |
const QModelIndex & |
index | ) |
|
|
privateslot |
◆ on_projectTreeView_customContextMenuRequested
void on_projectTreeView_customContextMenuRequested |
( |
const QPoint & |
pos | ) |
|
|
privateslot |
◆ on_recentProjectsListView_entered
void on_recentProjectsListView_entered |
( |
const QModelIndex & |
index | ) |
|
|
privateslot |
◆ on_favoriteProjectsListView_entered
void on_favoriteProjectsListView_entered |
( |
const QModelIndex & |
index | ) |
|
|
privateslot |
◆ on_recentProjectsListView_clicked
void on_recentProjectsListView_clicked |
( |
const QModelIndex & |
index | ) |
|
|
privateslot |
◆ on_favoriteProjectsListView_clicked
void on_favoriteProjectsListView_clicked |
( |
const QModelIndex & |
index | ) |
|
|
privateslot |
◆ on_recentProjectsListView_customContextMenuRequested
void on_recentProjectsListView_customContextMenuRequested |
( |
const QPoint & |
pos | ) |
|
|
privateslot |
◆ on_favoriteProjectsListView_customContextMenuRequested
void on_favoriteProjectsListView_customContextMenuRequested |
( |
const QPoint & |
pos | ) |
|
|
privateslot |
◆ createActions()
◆ createMenus()
◆ saveSettings()
◆ loadSettings()
◆ updateDesktopIntegrationMessage()
void updateDesktopIntegrationMessage |
( |
| ) |
|
|
privatenoexcept |
◆ openLibraryManager()
void openLibraryManager |
( |
| ) |
|
|
privatenoexcept |
◆ addExampleProjects()
void addExampleProjects |
( |
| ) |
|
|
privatenoexcept |
◆ switchWorkspace()
◆ showProjectReadmeInBrowser()
void showProjectReadmeInBrowser |
( |
const FilePath & |
projectFilePath | ) |
|
|
privatenoexcept |
◆ removeProjectsTreeItem()
void removeProjectsTreeItem |
( |
const FilePath & |
fp | ) |
|
|
privatenoexcept |
◆ newProject()
◆ 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 (the default), a file dialog will be shown to select it. |
- Returns
- The pointer to the opened project editor (nullptr on error)
◆ closeProject() [1/2]
Close an opened project editor.
- Parameters
-
editor | The reference to the open project editor |
askForSave | If true, the user will be asked to save the projects |
- Return values
-
true | if the project was successfully closed, false otherwise |
◆ closeProject() [2/2]
bool closeProject |
( |
const FilePath & |
filepath, |
|
|
bool |
askForSave |
|
) |
| |
|
privatenoexcept |
Close an opened project editor.
- Parameters
-
filepath | The filepath to the *.lpp project file to close |
askForSave | If true, the user will be asked to save the projects |
- Return values
-
true | if the project was successfully closed, false otherwise |
◆ closeAllProjects()
bool closeAllProjects |
( |
bool |
askForSave | ) |
|
|
privatenoexcept |
Close all open project editors.
- Parameters
-
askForSave | If true, the user will be asked to save all modified projects |
- Return values
-
true | if all projects successfully closed, false otherwise |
◆ 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
-
◆ 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 |
◆ ProjectLibraryUpdater
◆ mWorkspace
◆ mUi
QScopedPointer<Ui::ControlPanel> mUi |
|
private |
◆ mStandardCommandHandler
◆ mProjectTreeModel
◆ mRecentProjectsModel
◆ mFavoriteProjectsModel
◆ mLibraryManager
◆ mOpenProjectEditors
◆ mOpenLibraryEditors
◆ mProjectLibraryUpdater
◆ mActionLibraryManager
QScopedPointer<QAction> mActionLibraryManager |
|
private |
◆ mActionWorkspaceSettings
QScopedPointer<QAction> mActionWorkspaceSettings |
|
private |
◆ mActionRescanLibraries
QScopedPointer<QAction> mActionRescanLibraries |
|
private |
◆ mActionSwitchWorkspace
QScopedPointer<QAction> mActionSwitchWorkspace |
|
private |
◆ mActionNewProject
QScopedPointer<QAction> mActionNewProject |
|
private |
◆ mActionOpenProject
QScopedPointer<QAction> mActionOpenProject |
|
private |
◆ mActionCloseAllProjects
QScopedPointer<QAction> mActionCloseAllProjects |
|
private |
◆ mActionAddExampleProjects
QScopedPointer<QAction> mActionAddExampleProjects |
|
private |
◆ mActionImportEagleProject
QScopedPointer<QAction> mActionImportEagleProject |
|
private |
◆ mActionAboutLibrePcb
QScopedPointer<QAction> mActionAboutLibrePcb |
|
private |
◆ mActionAboutQt
QScopedPointer<QAction> mActionAboutQt |
|
private |
◆ mActionOnlineDocumentation
QScopedPointer<QAction> mActionOnlineDocumentation |
|
private |
◆ mActionKeyboardShortcutsReference
QScopedPointer<QAction> mActionKeyboardShortcutsReference |
|
private |
◆ mActionWebsite
QScopedPointer<QAction> mActionWebsite |
|
private |
◆ mActionQtQuickTest
QScopedPointer<QAction> mActionQtQuickTest |
|
private |
◆ mActionQuit
QScopedPointer<QAction> mActionQuit |
|
private |
The documentation for this class was generated from the following files: