The MainWindow class.
More...
#include <mainwindow.h>
Inherits QObject.
|
| | MainWindow ()=delete |
| |
| | MainWindow (const MainWindow &other)=delete |
| |
| | MainWindow (GuiApplication &app, slint::ComponentHandle< ui::AppWindow > win, int id, QObject *parent=nullptr) noexcept |
| |
| | ~MainWindow () noexcept |
| |
| int | getId () const noexcept |
| |
| bool | isCurrentWindow () const noexcept |
| |
| void | makeCurrentWindow () noexcept |
| |
| QWidget & | getWidget () noexcept |
| |
| void | addSection (int newIndex, bool makeCurrent) noexcept |
| |
| void | addTab (std::shared_ptr< WindowTab > tab, int section=-1, int index=-1, bool switchToTab=true, bool switchToSection=true) noexcept |
| |
| std::shared_ptr< WindowTab > | removeTab (int section, int tab, bool *wasCurrentTab=nullptr, bool *wasCurrentSection=nullptr) noexcept |
| |
| void | showPanelPage (ui::PanelPage page) noexcept |
| |
| void | popUpNotifications () noexcept |
| |
| void | showStatusBarMessage (const QString &message, int timeoutMs) |
| |
| void | highlightErcMessage (ProjectEditor &prjEditor, std::shared_ptr< const RuleCheckMessage > msg, bool zoomTo) noexcept |
| |
| void | setCurrentLibrary (int index) noexcept |
| |
| void | setCurrentProject (int index) noexcept |
| |
| std::shared_ptr< SchematicTab > | openSchematicTab (int projectIndex, int index) noexcept |
| |
| void | openBoard2dTab (int projectIndex, int index, bool switchToTab=true) noexcept |
| |
| MainWindow & | operator= (const MainWindow &rhs)=delete |
| |
|
| slint::CloseRequestResponse | closeRequested () noexcept |
| |
| void | trigger (ui::Action a) noexcept |
| |
| void | triggerSection (int section, ui::WindowSectionAction a) noexcept |
| |
| void | triggerTab (int section, int tab, ui::TabAction a) noexcept |
| |
| void | triggerLibrary (slint::SharedString path, ui::LibraryAction a) noexcept |
| |
| void | triggerLibraryElement (slint::SharedString path, ui::LibraryElementAction a) noexcept |
| |
| void | triggerProject (int index, ui::ProjectAction a) noexcept |
| |
| void | triggerSchematic (int project, int schematic, ui::SchematicAction a) noexcept |
| |
| void | triggerBoard (int project, int board, ui::BoardAction a) noexcept |
| |
| void | openLibraryTab (const FilePath &fp, bool wizardMode) noexcept |
| |
| void | openComponentCategoryTab (LibraryEditor &editor, const FilePath &fp, bool copyFrom) noexcept |
| |
| void | openPackageCategoryTab (LibraryEditor &editor, const FilePath &fp, bool copyFrom) noexcept |
| |
| void | openSymbolTab (LibraryEditor &editor, const FilePath &fp, bool copyFrom) noexcept |
| |
| void | openPackageTab (LibraryEditor &editor, const FilePath &fp, bool copyFrom) noexcept |
| |
| void | openComponentTab (LibraryEditor &editor, const FilePath &fp, bool copyFrom) noexcept |
| |
| void | openDeviceTab (LibraryEditor &editor, const FilePath &fp, bool copyFrom) noexcept |
| |
| void | openOrganizationTab (LibraryEditor &editor, const FilePath &fp, bool copyFrom) noexcept |
| |
| void | openBoard3dTab (int projectIndex, int index) noexcept |
| |
| void | updateHomeTabSection () noexcept |
| |
| template<typename T > |
| bool | switchToTab () noexcept |
| |
| template<typename T > |
| bool | switchToLibraryElementTab (const FilePath &fp) noexcept |
| |
| template<typename T > |
| std::shared_ptr< T > | switchToProjectTab (int prjIndex, int objIndex) noexcept |
| |
◆ MainWindow() [1/3]
◆ MainWindow() [2/3]
◆ MainWindow() [3/3]
◆ ~MainWindow()
◆ getId()
◆ isCurrentWindow()
| bool isCurrentWindow |
( |
| ) |
const |
|
noexcept |
◆ makeCurrentWindow()
| void makeCurrentWindow |
( |
| ) |
|
|
noexcept |
◆ getWidget()
◆ addSection()
| void addSection |
( |
int |
newIndex, |
|
|
bool |
makeCurrent |
|
) |
| |
|
noexcept |
◆ addTab()
| void addTab |
( |
std::shared_ptr< WindowTab > |
tab, |
|
|
int |
section = -1, |
|
|
int |
index = -1, |
|
|
bool |
switchToTab = true, |
|
|
bool |
switchToSection = true |
|
) |
| |
|
noexcept |
◆ removeTab()
| std::shared_ptr< WindowTab > removeTab |
( |
int |
section, |
|
|
int |
tab, |
|
|
bool * |
wasCurrentTab = nullptr, |
|
|
bool * |
wasCurrentSection = nullptr |
|
) |
| |
|
noexcept |
◆ showPanelPage()
| void showPanelPage |
( |
ui::PanelPage |
page | ) |
|
|
noexcept |
◆ popUpNotifications()
| void popUpNotifications |
( |
| ) |
|
|
noexcept |
◆ showStatusBarMessage()
| void showStatusBarMessage |
( |
const QString & |
message, |
|
|
int |
timeoutMs |
|
) |
| |
◆ highlightErcMessage()
◆ setCurrentLibrary()
| void setCurrentLibrary |
( |
int |
index | ) |
|
|
noexcept |
◆ setCurrentProject()
| void setCurrentProject |
( |
int |
index | ) |
|
|
noexcept |
◆ openSchematicTab()
| std::shared_ptr< SchematicTab > openSchematicTab |
( |
int |
projectIndex, |
|
|
int |
index |
|
) |
| |
|
noexcept |
◆ openBoard2dTab()
| void openBoard2dTab |
( |
int |
projectIndex, |
|
|
int |
index, |
|
|
bool |
switchToTab = true |
|
) |
| |
|
noexcept |
◆ operator=()
◆ aboutToClose
◆ closeRequested()
| slint::CloseRequestResponse closeRequested |
( |
| ) |
|
|
privatenoexcept |
◆ trigger()
| void trigger |
( |
ui::Action |
a | ) |
|
|
privatenoexcept |
◆ triggerSection()
| void triggerSection |
( |
int |
section, |
|
|
ui::WindowSectionAction |
a |
|
) |
| |
|
privatenoexcept |
◆ triggerTab()
| void triggerTab |
( |
int |
section, |
|
|
int |
tab, |
|
|
ui::TabAction |
a |
|
) |
| |
|
privatenoexcept |
◆ triggerLibrary()
| void triggerLibrary |
( |
slint::SharedString |
path, |
|
|
ui::LibraryAction |
a |
|
) |
| |
|
privatenoexcept |
◆ triggerLibraryElement()
| void triggerLibraryElement |
( |
slint::SharedString |
path, |
|
|
ui::LibraryElementAction |
a |
|
) |
| |
|
privatenoexcept |
◆ triggerProject()
| void triggerProject |
( |
int |
index, |
|
|
ui::ProjectAction |
a |
|
) |
| |
|
privatenoexcept |
◆ triggerSchematic()
| void triggerSchematic |
( |
int |
project, |
|
|
int |
schematic, |
|
|
ui::SchematicAction |
a |
|
) |
| |
|
privatenoexcept |
◆ triggerBoard()
| void triggerBoard |
( |
int |
project, |
|
|
int |
board, |
|
|
ui::BoardAction |
a |
|
) |
| |
|
privatenoexcept |
◆ openLibraryTab()
| void openLibraryTab |
( |
const FilePath & |
fp, |
|
|
bool |
wizardMode |
|
) |
| |
|
privatenoexcept |
◆ openComponentCategoryTab()
◆ openPackageCategoryTab()
◆ openSymbolTab()
◆ openPackageTab()
◆ openComponentTab()
◆ openDeviceTab()
◆ openOrganizationTab()
◆ openBoard3dTab()
| void openBoard3dTab |
( |
int |
projectIndex, |
|
|
int |
index |
|
) |
| |
|
privatenoexcept |
◆ updateHomeTabSection()
| void updateHomeTabSection |
( |
| ) |
|
|
privatenoexcept |
◆ switchToTab()
◆ switchToLibraryElementTab()
template<typename T >
| bool switchToLibraryElementTab |
( |
const FilePath & |
fp | ) |
|
|
privatenoexcept |
◆ switchToProjectTab()
template<typename T >
| std::shared_ptr< T > switchToProjectTab |
( |
int |
prjIndex, |
|
|
int |
objIndex |
|
) |
| |
|
privatenoexcept |
◆ MainWindowTestAdapter
◆ mId
◆ mSettingsPrefix
| const QString mSettingsPrefix |
|
private |
◆ mApp
◆ mWindow
| slint::ComponentHandle<ui::AppWindow> mWindow |
|
private |
◆ mWidget
◆ mSections
◆ mProjectPreviewRenderer
◆ mTestAdapter
The documentation for this class was generated from the following files: