LibrePCB Developers Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MainWindow Class Referencefinal

The MainWindow class. More...

#include <mainwindow.h>

Inherits QObject.

+ Collaboration diagram for MainWindow:

Signals

void aboutToClose ()
 

Public Member Functions

 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
 
void showPanelPage (ui::PanelPage page) noexcept
 
void popUpNotifications () noexcept
 
MainWindowoperator= (const MainWindow &rhs)=delete
 

Private Member Functions

slint::CloseRequestResponse closeRequested () noexcept
 
void triggerAsync (ui::Action a) noexcept
 
bool trigger (ui::Action a) noexcept
 
void splitSection (int index) noexcept
 
void updateHomeTabSection () noexcept
 
void addTab (std::shared_ptr< WindowTab > tab) noexcept
 
template<typename T >
bool switchToTab () noexcept
 

Private Attributes

const int mId
 
const QString mSettingsPrefix
 
GuiApplicationmApp
 
slint::ComponentHandle< ui::AppWindow > mWindow
 
QWidget * mWidget
 
std::shared_ptr< UiObjectList< WindowSection, ui::WindowSectionData > > mSections
 
std::unique_ptr< ProjectReadmeRenderermProjectPreviewRenderer
 
std::unique_ptr< MainWindowTestAdaptermTestAdapter
 

Detailed Description

The MainWindow class.

Constructor & Destructor Documentation

◆ MainWindow() [1/3]

MainWindow ( )
delete

◆ MainWindow() [2/3]

MainWindow ( const MainWindow other)
delete

◆ MainWindow() [3/3]

MainWindow ( GuiApplication app,
slint::ComponentHandle< ui::AppWindow >  win,
int  id,
QObject *  parent = nullptr 
)
explicitnoexcept
+ Here is the call graph for this function:

◆ ~MainWindow()

~MainWindow ( )
noexcept

Member Function Documentation

◆ getId()

int getId ( ) const
inlinenoexcept

◆ isCurrentWindow()

bool isCurrentWindow ( ) const
noexcept

◆ makeCurrentWindow()

void makeCurrentWindow ( )
noexcept

◆ showPanelPage()

void showPanelPage ( ui::PanelPage  page)
noexcept
+ Here is the caller graph for this function:

◆ popUpNotifications()

void popUpNotifications ( )
noexcept
+ Here is the call graph for this function:

◆ operator=()

MainWindow & operator= ( const MainWindow rhs)
delete

◆ aboutToClose

void aboutToClose ( )
signal
+ Here is the caller graph for this function:

◆ closeRequested()

slint::CloseRequestResponse closeRequested ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ triggerAsync()

void triggerAsync ( ui::Action  a)
privatenoexcept
+ Here is the caller graph for this function:

◆ trigger()

bool trigger ( ui::Action  a)
privatenoexcept
+ Here is the call graph for this function:

◆ splitSection()

void splitSection ( int  index)
privatenoexcept
+ Here is the call graph for this function:

◆ updateHomeTabSection()

void updateHomeTabSection ( )
privatenoexcept

◆ addTab()

void addTab ( std::shared_ptr< WindowTab tab)
privatenoexcept

◆ switchToTab()

template<typename T >
bool switchToTab ( )
privatenoexcept

Member Data Documentation

◆ mId

const int mId
private

◆ mSettingsPrefix

const QString mSettingsPrefix
private

◆ mApp

GuiApplication& mApp
private

◆ mWindow

slint::ComponentHandle<ui::AppWindow> mWindow
private

◆ mWidget

QWidget* mWidget
private

◆ mSections

std::shared_ptr<UiObjectList<WindowSection, ui::WindowSectionData> > mSections
private

◆ mProjectPreviewRenderer

std::unique_ptr<ProjectReadmeRenderer> mProjectPreviewRenderer
private

◆ mTestAdapter

std::unique_ptr<MainWindowTestAdapter> mTestAdapter
private

The documentation for this class was generated from the following files: