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

Unified Preferences dialog consolidating all application settings. More...

#include <PreferencesDialog.hpp>

Inheritance diagram for ui::qt::PreferencesDialog:
Inheritance graph
Collaboration diagram for ui::qt::PreferencesDialog:
Collaboration graph

Public Member Functions

 PreferencesDialog (config::Config &config, QWidget *parent=nullptr)
 
 ~PreferencesDialog () override
 
int exec () override
 Show dialog and return true if settings were applied.
 

Private Slots

void onApply ()
 
void onCancel ()
 
void onReset ()
 
void onExportSettings ()
 
void onImportSettings ()
 
void onOkay ()
 

Private Member Functions

void setupUI ()
 
void createTabs ()
 
void createButtonBar ()
 
void loadCurrentSettings ()
 

Private Attributes

config::Config & m_config
 
QTabWidget * m_tabWidget {nullptr}
 
std::unique_ptr< GeneralPreferencesPanel > m_generalPanel
 
std::unique_ptr< DisplayPreferencesPanel > m_displayPanel
 
std::unique_ptr< AIPreferencesPanel > m_aiPanel
 
std::unique_ptr< PluginsPreferencesPanel > m_pluginsPanel
 
std::unique_ptr< PerformancePreferencesPanel > m_performancePanel
 
QPushButton * m_okButton {nullptr}
 
QPushButton * m_applyButton {nullptr}
 
QPushButton * m_cancelButton {nullptr}
 
QPushButton * m_resetButton {nullptr}
 
QPushButton * m_exportButton {nullptr}
 
QPushButton * m_importButton {nullptr}
 

Detailed Description

Unified Preferences dialog consolidating all application settings.

Organizes settings into logical categories:

  • General (app name, paths, logging)
  • Display (columns, colors, themes)
  • AI (model selection, API keys, inference settings)
  • Plugins (plugin management, configuration)
  • Performance (caching, threading, buffer sizes)
  • Advanced (debug options, expert settings)

Constructor & Destructor Documentation

◆ PreferencesDialog()

ui::qt::PreferencesDialog::PreferencesDialog ( config::Config &  config,
QWidget *  parent = nullptr 
)
explicit
Here is the call graph for this function:

◆ ~PreferencesDialog()

ui::qt::PreferencesDialog::~PreferencesDialog ( )
overridedefault

Member Function Documentation

◆ createButtonBar()

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

◆ createTabs()

void ui::qt::PreferencesDialog::createTabs ( )
private
Here is the caller graph for this function:

◆ exec()

int ui::qt::PreferencesDialog::exec ( )
override

Show dialog and return true if settings were applied.

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

◆ loadCurrentSettings()

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

◆ onApply

void ui::qt::PreferencesDialog::onApply ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onCancel

void ui::qt::PreferencesDialog::onCancel ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onExportSettings

void ui::qt::PreferencesDialog::onExportSettings ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onImportSettings

void ui::qt::PreferencesDialog::onImportSettings ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onOkay

void ui::qt::PreferencesDialog::onOkay ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onReset

void ui::qt::PreferencesDialog::onReset ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setupUI()

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

Member Data Documentation

◆ m_aiPanel

std::unique_ptr<AIPreferencesPanel> ui::qt::PreferencesDialog::m_aiPanel
private

◆ m_applyButton

QPushButton* ui::qt::PreferencesDialog::m_applyButton {nullptr}
private

◆ m_cancelButton

QPushButton* ui::qt::PreferencesDialog::m_cancelButton {nullptr}
private

◆ m_config

config::Config& ui::qt::PreferencesDialog::m_config
private

◆ m_displayPanel

std::unique_ptr<DisplayPreferencesPanel> ui::qt::PreferencesDialog::m_displayPanel
private

◆ m_exportButton

QPushButton* ui::qt::PreferencesDialog::m_exportButton {nullptr}
private

◆ m_generalPanel

std::unique_ptr<GeneralPreferencesPanel> ui::qt::PreferencesDialog::m_generalPanel
private

◆ m_importButton

QPushButton* ui::qt::PreferencesDialog::m_importButton {nullptr}
private

◆ m_okButton

QPushButton* ui::qt::PreferencesDialog::m_okButton {nullptr}
private

◆ m_performancePanel

std::unique_ptr<PerformancePreferencesPanel> ui::qt::PreferencesDialog::m_performancePanel
private

◆ m_pluginsPanel

std::unique_ptr<PluginsPreferencesPanel> ui::qt::PreferencesDialog::m_pluginsPanel
private

◆ m_resetButton

QPushButton* ui::qt::PreferencesDialog::m_resetButton {nullptr}
private

◆ m_tabWidget

QTabWidget* ui::qt::PreferencesDialog::m_tabWidget {nullptr}
private

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