LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
ui::qt::LayoutManager Class Reference

#include <LayoutManager.hpp>

Collaboration diagram for ui::qt::LayoutManager:
Collaboration graph

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LayoutManager()

ui::qt::LayoutManager::LayoutManager ( )
Here is the call graph for this function:

Member Function Documentation

◆ BuiltInLayouts()

std::vector< LayoutDescriptor > ui::qt::LayoutManager::BuiltInLayouts ( )
static

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

Here is the call graph for this function:

◆ LoadFromSettings()

void ui::qt::LayoutManager::LoadFromSettings ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Remove()

void ui::qt::LayoutManager::Remove ( const QString &  name)

Delete a user layout by name. No-op if not found.

Here is the call graph for this function:

◆ Save()

void ui::qt::LayoutManager::Save ( LayoutDescriptor  layout)

Save or overwrite a user layout (matched by name).

Here is the call graph for this function:

◆ SaveToSettings()

void ui::qt::LayoutManager::SaveToSettings ( ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UserLayouts()

const std::vector< LayoutDescriptor > & ui::qt::LayoutManager::UserLayouts ( ) const

Returns user-saved layouts in save order.

Member Data Documentation

◆ m_userLayouts

std::vector<LayoutDescriptor> ui::qt::LayoutManager::m_userLayouts
private

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