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

Namespaces

namespace  anonymous_namespace{SessionManager.cpp}
 

Classes

class  AppSettings
 
class  EventGroupManager
 Event grouping and clustering system for v1.10.0 Phase 10. More...
 
class  EventTagManager
 Manages tags/annotations for log events. More...
 
class  KeyboardNavigationManager
 Manages keyboard navigation and shortcuts throughout the application. More...
 
class  NotificationManager
 Smart notification system for v1.10.0 Phase 9. More...
 
class  ReportGenerator
 Report generation system for v1.10.0 Phase 11. More...
 
class  SearchEngine
 Advanced search engine supporting multiple search modes. More...
 
struct  SearchMatch
 
class  SessionManager
 Manages session state (open files, filters, scroll position, etc.) More...
 
class  ThemeManager
 Manages application themes and customization (v1.10.0 Phase 8). More...
 

Typedefs

using json = nlohmann::json
 

Enumerations

enum class  SearchMode { Substring , CaseSensitive , Regex , Advanced }
 

Functions

QString PathToQString (const std::filesystem::path &path)
 
QString AppDataDir (QStandardPaths::StandardLocation location=QStandardPaths::AppDataLocation)
 
void UsePortableSettingsIfPortable ()
 
void BindTabVisibilityAction (QAction *action, QTabWidget *tabs, QWidget *page)
 
void SyncTabVisibilityActions (const QList< QAction * > &actions, QTabWidget *tabs)
 
void RemoveTrackedTabs (QTabWidget *tabs, std::map< std::string, QWidget * > &tracked)
 

Typedef Documentation

◆ json

typedef nlohmann::json ui::qt::utils::json

Enumeration Type Documentation

◆ SearchMode

enum class ui::qt::utils::SearchMode
strong
Enumerator
Substring 
CaseSensitive 
Regex 
Advanced 

Function Documentation

◆ AppDataDir()

QString ui::qt::utils::AppDataDir ( QStandardPaths::StandardLocation  location = QStandardPaths::AppDataLocation)
inline

Per-user data directory: the data/ folder next to the executable in portable mode, otherwise Qt's standard location location.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BindTabVisibilityAction()

void ui::qt::utils::BindTabVisibilityAction ( QAction *  action,
QTabWidget *  tabs,
QWidget *  page 
)
inline

Makes action show/hide the tab that holds page.

The tab is looked up by its widget each time the action fires. A tab position captured when the menu is built goes stale as soon as tabs are sorted or removed, and then hides a different tab.

◆ PathToQString()

QString ui::qt::utils::PathToQString ( const std::filesystem::path &  path)
inline

Lossless path -> QString. path::string() converts to the ANSI code page on Windows, which garbles or throws on non-ASCII user / folder names.

Here is the caller graph for this function:

◆ RemoveTrackedTabs()

void ui::qt::utils::RemoveTrackedTabs ( QTabWidget *  tabs,
std::map< std::string, QWidget * > &  tracked 
)
inline

Removes every page listed in tracked (id -> page) from tabs, schedules it for deletion and clears tracked.

Pages are looked up by widget, so tabs that are not tracked (the built-in Events, Statistics, ... tabs) stay untouched wherever they sit, even after the tabs were reordered.

◆ SyncTabVisibilityActions()

void ui::qt::utils::SyncTabVisibilityActions ( const QList< QAction * > &  actions,
QTabWidget *  tabs 
)
inline

Ticks each action bound by BindTabVisibilityAction() according to whether its own tab is visible. Matched by page, not by tab text: a plugin tab may carry the same label as a built-in one.

◆ UsePortableSettingsIfPortable()

void ui::qt::utils::UsePortableSettingsIfPortable ( )
inline

Portable copy (portable.txt next to the exe): keep QSettings (window layout, layouts, scenarios, recent files, ...) in data/settings instead of the registry / plist. Call once at startup, before any QSettings is created.

Here is the call graph for this function:
Here is the caller graph for this function: