20#ifndef LIBREPCB_EDITOR_MAINWINDOW_H
21#define LIBREPCB_EDITOR_MAINWINDOW_H
44class MainWindowTestAdapter;
45class ProjectReadmeRenderer;
64 slint::ComponentHandle<ui::AppWindow> win,
int id,
65 QObject* parent =
nullptr) noexcept;
86 void trigger(ui::Action a) noexcept;
87 void triggerSection(
int section, ui::WindowSectionAction a) noexcept;
88 void triggerTab(
int section,
int tab, ui::TabAction a) noexcept;
89 void triggerLibrary(slint::SharedString path, ui::LibraryAction a) noexcept;
91 ui::LibraryElementAction a) noexcept;
94 ui::SchematicAction a) noexcept;
95 void triggerBoard(
int project,
int board, ui::BoardAction a) noexcept;
98 bool copyFrom) noexcept;
100 bool copyFrom) noexcept;
102 bool copyFrom) noexcept;
109 void splitSection(
int index,
bool makeCurrent) noexcept;
112 template <typename T>
114 template <typename T>
116 template <typename T>
122 slint::ComponentHandle<ui::AppWindow>
mWindow;
This class represents absolute, well-formatted paths to files or directories.
Definition filepath.h:127
The GuiApplication class.
Definition guiapplication.h:61
The LibraryEditor class.
Definition libraryeditor.h:57
The MainWindow class.
Definition mainwindow.h:56
void openComponentCategoryTab(LibraryEditor &editor, const FilePath &fp, bool copyFrom) noexcept
Definition mainwindow.cpp:826
void triggerProject(int index, ui::ProjectAction a) noexcept
Definition mainwindow.cpp:674
slint::CloseRequestResponse closeRequested() noexcept
Definition mainwindow.cpp:387
std::unique_ptr< MainWindowTestAdapter > mTestAdapter
Definition mainwindow.h:126
void addTab(std::shared_ptr< WindowTab > tab) noexcept
Definition mainwindow.cpp:1052
void popUpNotifications() noexcept
Definition mainwindow.cpp:354
void triggerSection(int section, ui::WindowSectionAction a) noexcept
Definition mainwindow.cpp:521
void trigger(ui::Action a) noexcept
Definition mainwindow.cpp:420
void showPanelPage(ui::PanelPage page) noexcept
Definition mainwindow.cpp:350
void openPackageTab(LibraryEditor &editor, const FilePath &fp) noexcept
Definition mainwindow.cpp:969
std::unique_ptr< ProjectReadmeRenderer > mProjectPreviewRenderer
Definition mainwindow.h:125
void openBoard3dTab(int projectIndex, int index) noexcept
Definition mainwindow.cpp:1004
bool isCurrentWindow() const noexcept
Definition mainwindow.cpp:340
void updateHomeTabSection() noexcept
Definition mainwindow.cpp:1046
bool switchToLibraryElementTab(const FilePath &fp) noexcept
Definition mainwindow.cpp:1072
void openComponentTab(LibraryEditor &editor, const FilePath &fp) noexcept
Definition mainwindow.cpp:974
int getId() const noexcept
Definition mainwindow.h:69
void openDeviceTab(LibraryEditor &editor, const FilePath &fp) noexcept
Definition mainwindow.cpp:979
void openPackageCategoryTab(LibraryEditor &editor, const FilePath &fp, bool copyFrom) noexcept
Definition mainwindow.cpp:865
void splitSection(int index, bool makeCurrent) noexcept
Definition mainwindow.cpp:1014
void triggerBoard(int project, int board, ui::BoardAction a) noexcept
Definition mainwindow.cpp:730
const QString mSettingsPrefix
Definition mainwindow.h:120
void triggerLibraryElement(slint::SharedString path, ui::LibraryElementAction a) noexcept
Definition mainwindow.cpp:622
bool switchToProjectTab(int prjIndex, int objIndex) noexcept
Definition mainwindow.cpp:1082
slint::ComponentHandle< ui::AppWindow > mWindow
Definition mainwindow.h:122
void setCurrentLibrary(int index) noexcept
Definition mainwindow.cpp:373
void triggerLibrary(slint::SharedString path, ui::LibraryAction a) noexcept
Definition mainwindow.cpp:553
std::shared_ptr< UiObjectList< WindowSection, ui::WindowSectionData > > mSections
Definition mainwindow.h:124
MainWindow(const MainWindow &other)=delete
void openSchematicTab(int projectIndex, int index) noexcept
Definition mainwindow.cpp:984
void triggerTab(int section, int tab, ui::TabAction a) noexcept
Definition mainwindow.cpp:547
const int mId
Definition mainwindow.h:119
void openBoard2dTab(int projectIndex, int index) noexcept
Definition mainwindow.cpp:994
void openLibraryTab(const FilePath &fp, bool wizardMode) noexcept
Definition mainwindow.cpp:805
void makeCurrentWindow() noexcept
Definition mainwindow.cpp:344
QWidget * mWidget
Definition mainwindow.h:123
bool switchToTab() noexcept
Definition mainwindow.cpp:1062
void openSymbolTab(LibraryEditor &editor, const FilePath &fp, bool copyFrom) noexcept
Definition mainwindow.cpp:904
void triggerSchematic(int project, int schematic, ui::SchematicAction a) noexcept
Definition mainwindow.cpp:704
void setCurrentProject(int index) noexcept
Definition mainwindow.cpp:378
void showStatusBarMessage(const QString &message, int timeoutMs)
Definition mainwindow.cpp:360
GuiApplication & mApp
Definition mainwindow.h:121
Adapter class for automated GUI tests.
Definition mainwindowtestadapter.h:47
Renders a README.md or other file types as a QPixmap.
Definition projectreadmerenderer.h:44
The UiObjectList class.
Definition uiobjectlist.h:47
The WindowSection class.
Definition windowsection.h:56
The WindowTab class.
Definition windowtab.h:51
Definition occmodel.cpp:77