The WindowSection class.
More...
#include <windowsection.h>
Inherits QObject.
◆ 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 |
|
) |
| |
|
noexcept |
◆ removeTab()
std::shared_ptr< WindowTab > removeTab |
( |
int |
index | ) |
|
|
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 >
bool 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
◆ mTabs
◆ mUiData
ui::WindowSectionData mUiData |
|
private |
The documentation for this class was generated from the following files: