The WindowSection class.
More...
#include <windowsection.h>
Inherits QObject.
|
| | WindowSection ()=delete |
| |
| | WindowSection (const WindowSection &other)=delete |
| |
| | WindowSection (GuiApplication &app, MainWindow &win, 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, bool switchToTab=true) noexcept |
| |
| std::shared_ptr< WindowTab > | removeTab (int index, bool *wasCurrent=nullptr) noexcept |
| |
| void | triggerTab (int index, ui::TabAction a) noexcept |
| |
| slint::Image | renderScene (float width, float height, int scene) noexcept |
| |
| bool | processScenePointerEvent (const QPointF &pos, slint::private_api::PointerEvent e) noexcept |
| |
| bool | processSceneScrolled (const QPointF &pos, slint::private_api::PointerScrollEvent e) noexcept |
| |
| bool | processSceneKeyEvent (const slint::private_api::KeyEvent &e) 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 |
| |
| bool | requestCloseAllTabs () noexcept |
| | Request to close all tabs.
|
| |
| WindowSection & | operator= (const WindowSection &rhs)=delete |
| |
◆ TabList
◆ WindowSection() [1/3]
◆ WindowSection() [2/3]
◆ WindowSection() [3/3]
◆ ~WindowSection()
◆ 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, |
|
|
bool |
switchToTab = true |
|
) |
| |
|
noexcept |
◆ removeTab()
| std::shared_ptr< WindowTab > removeTab |
( |
int |
index, |
|
|
bool * |
wasCurrent = nullptr |
|
) |
| |
|
noexcept |
◆ triggerTab()
| void triggerTab |
( |
int |
index, |
|
|
ui::TabAction |
a |
|
) |
| |
|
noexcept |
◆ renderScene()
| slint::Image renderScene |
( |
float |
width, |
|
|
float |
height, |
|
|
int |
scene |
|
) |
| |
|
noexcept |
◆ processScenePointerEvent()
| bool processScenePointerEvent |
( |
const QPointF & |
pos, |
|
|
slint::private_api::PointerEvent |
e |
|
) |
| |
|
noexcept |
◆ processSceneScrolled()
| bool processSceneScrolled |
( |
const QPointF & |
pos, |
|
|
slint::private_api::PointerScrollEvent |
e |
|
) |
| |
|
noexcept |
◆ processSceneKeyEvent()
| bool processSceneKeyEvent |
( |
const slint::private_api::KeyEvent & |
e | ) |
|
|
noexcept |
◆ switchToTab()
◆ switchToLibraryElementTab()
template<typename T >
| bool switchToLibraryElementTab |
( |
const FilePath & |
fp | ) |
|
|
inlinenoexcept |
◆ switchToProjectTab()
template<typename T >
| std::shared_ptr< T > switchToProjectTab |
( |
int |
prjIndex, |
|
|
int |
objIndex |
|
) |
| |
|
inlinenoexcept |
◆ requestCloseAllTabs()
| bool requestCloseAllTabs |
( |
| ) |
|
|
noexcept |
Request to close all tabs.
If there are unsaved changes in any tabs, this method will ask the user whether the changes should be saved or not. If the user clicks on "cancel" or the changes could not be saved successfully, this method will return false. If there were no unsaved changes or they were successfully saved, the method returns true.
- Return values
-
| true | All tabs are safe to be closed. |
| false | Some tabs still has unsaved changes. |
◆ operator=()
◆ currentTabChanged
| void currentTabChanged |
( |
| ) |
|
|
signal |
◆ panelPageRequested
| void panelPageRequested |
( |
ui::PanelPage |
p | ) |
|
|
signal |
◆ derivedUiDataChanged
| void derivedUiDataChanged |
( |
std::size_t |
index | ) |
|
|
signal |
◆ statusBarMessageChanged
| void statusBarMessageChanged |
( |
const QString & |
message, |
|
|
int |
timeoutMs |
|
) |
| |
|
signal |
◆ cursorCoordinatesChanged
| void cursorCoordinatesChanged |
( |
const Point & |
pos, |
|
|
const LengthUnit & |
unit |
|
) |
| |
|
signal |
◆ setCurrentTab()
| void setCurrentTab |
( |
int |
index, |
|
|
bool |
forceUpdate = false |
|
) |
| |
|
privatenoexcept |
◆ getCurrentTab()
| std::shared_ptr< WindowTab > getCurrentTab |
( |
| ) |
|
|
privatenoexcept |
◆ highlight()
◆ tabCloseRequested()
| void tabCloseRequested |
( |
| ) |
|
|
privatenoexcept |
◆ onUiDataChanged
◆ mApp
◆ mWindow
◆ mTabs
◆ mUiData
| ui::WindowSectionData mUiData |
|
private |
The documentation for this class was generated from the following files: