|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
#include <LayoutManager.hpp>

Public Member Functions | |
| LayoutManager () | |
| const std::vector< LayoutDescriptor > & | UserLayouts () const |
| Returns user-saved layouts in save order. | |
| void | Save (LayoutDescriptor layout) |
| Save or overwrite a user layout (matched by name). | |
| void | Remove (const QString &name) |
| Delete a user layout by name. No-op if not found. | |
Static Public Member Functions | |
| static std::vector< LayoutDescriptor > | BuiltInLayouts () |
| Returns the two predefined layouts (XML Log Analysis, CAN Bus Analysis). | |
Private Member Functions | |
| void | SaveToSettings () const |
| void | LoadFromSettings () |
Private Attributes | |
| std::vector< LayoutDescriptor > | m_userLayouts |
Manages named window layouts.
Built-in layouts are static and computed on demand. User layouts are persisted in QSettings as the "userLayouts/layouts" array and loaded at construction time.
| ui::qt::LayoutManager::LayoutManager | ( | ) |

|
static |
Returns the two predefined layouts (XML Log Analysis, CAN Bus Analysis).

|
private |


| void ui::qt::LayoutManager::Remove | ( | const QString & | name | ) |
Delete a user layout by name. No-op if not found.

| void ui::qt::LayoutManager::Save | ( | LayoutDescriptor | layout | ) |
Save or overwrite a user layout (matched by name).

|
private |


| const std::vector< LayoutDescriptor > & ui::qt::LayoutManager::UserLayouts | ( | ) | const |
Returns user-saved layouts in save order.
|
private |