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

The WindowSection class. More...

#include <windowsection.h>

Inherits QObject.

+ Collaboration diagram for WindowSection:

Signals

void panelPageRequested (ui::PanelPage p)
 
void splitRequested ()
 
void closeRequested ()
 
void derivedUiDataChanged (std::size_t index)
 
void statusBarMessageChanged (const QString &message, int timeoutMs)
 

Public Member Functions

 WindowSection ()=delete
 
 WindowSection (const WindowSection &other)=delete
 
 WindowSection (GuiApplication &app, QObject *parent=nullptr) noexcept
 
 ~WindowSection () noexcept
 
const ui::WindowSectionData & getUiData () const noexcept
 
void setUiData (const ui::WindowSectionData &data) noexcept
 
void setHomeTabVisible (bool visible) noexcept
 
void addTab (std::shared_ptr< WindowTab > tab, int index=-1) noexcept
 
std::shared_ptr< WindowTabremoveTab (int index) noexcept
 
template<typename T >
bool switchToTab () noexcept
 
WindowSectionoperator= (const WindowSection &rhs)=delete
 

Public Attributes

Signal< WindowSectiononUiDataChanged
 

Private Types

typedef UiObjectList< WindowTab, ui::TabData > TabList
 

Private Member Functions

void setCurrentTab (int index) noexcept
 
void trigger (ui::Action a) noexcept
 
void highlight () noexcept
 
void tabCloseRequested () noexcept
 

Private Attributes

GuiApplicationmApp
 
std::shared_ptr< TabListmTabs
 
ui::WindowSectionData mUiData
 

Detailed Description

The WindowSection class.

Member Typedef Documentation

◆ TabList

typedef UiObjectList<WindowTab, ui::TabData> TabList
private

Constructor & Destructor Documentation

◆ WindowSection() [1/3]

WindowSection ( )
delete

◆ WindowSection() [2/3]

WindowSection ( const WindowSection other)
delete

◆ WindowSection() [3/3]

WindowSection ( GuiApplication app,
QObject *  parent = nullptr 
)
explicitnoexcept

◆ ~WindowSection()

~WindowSection ( )
noexcept

Member Function Documentation

◆ getUiData()

const ui::WindowSectionData & getUiData ( ) const
inlinenoexcept

◆ setUiData()

void setUiData ( const ui::WindowSectionData &  data)
noexcept

◆ setHomeTabVisible()

void setHomeTabVisible ( bool  visible)
noexcept

◆ addTab()

void addTab ( std::shared_ptr< WindowTab tab,
int  index = -1 
)
noexcept
+ Here is the call graph for this function:

◆ removeTab()

std::shared_ptr< WindowTab > removeTab ( int  index)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ switchToTab()

template<typename T >
bool switchToTab ( )
inlinenoexcept
+ Here is the call graph for this function:

◆ operator=()

WindowSection & operator= ( const WindowSection rhs)
delete

◆ panelPageRequested

void panelPageRequested ( ui::PanelPage  p)
signal
+ Here is the caller graph for this function:

◆ splitRequested

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

◆ closeRequested

void closeRequested ( )
signal

◆ derivedUiDataChanged

void derivedUiDataChanged ( std::size_t  index)
signal

◆ statusBarMessageChanged

void statusBarMessageChanged ( const QString &  message,
int  timeoutMs 
)
signal
+ Here is the caller graph for this function:

◆ setCurrentTab()

void setCurrentTab ( int  index)
privatenoexcept
+ Here is the caller graph for this function:

◆ trigger()

void trigger ( ui::Action  a)
privatenoexcept

◆ highlight()

void highlight ( )
privatenoexcept
+ Here is the caller graph for this function:

◆ tabCloseRequested()

void tabCloseRequested ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ onUiDataChanged

Signal<WindowSection> onUiDataChanged

◆ mApp

GuiApplication& mApp
private

◆ mTabs

std::shared_ptr<TabList> mTabs
private

◆ mUiData

ui::WindowSectionData mUiData
private

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