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

Configuration panel for AI settings. More...

#include <AIConfigPanel.hpp>

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

Signals

void ConfigurationChanged ()
 

Public Member Functions

 AIConfigPanel (std::shared_ptr< ai::AIServiceWrapper > aiService, std::shared_ptr< ai::LogAnalyzer > analyzer, QWidget *parent=nullptr)
 
ai::LogAnalyzer::AnalysisType GetAnalysisType () const
 
int GetMaxEvents () const
 
std::shared_ptr< ai::AIServiceWrapper > GetAIService () const
 
std::shared_ptr< ai::LogAnalyzer > GetAnalyzer () const
 
void RefreshAIClient ()
 
void SavePluginConfig ()
 
nlohmann::json LoadPluginConfig ()
 

Private Slots

void OnProviderChanged (int index)
 
void OnModelChanged (int index)
 
void OnRefreshModels ()
 
void OnShowInstalledModels ()
 

Private Member Functions

void BuildUi ()
 
void UpdateStatusLabel ()
 
void PopulateModelList ()
 

Private Attributes

std::shared_ptr< ai::AIServiceWrapper > m_aiService
 
std::shared_ptr< ai::LogAnalyzer > m_analyzer
 
QComboBox * m_providerCombo {nullptr}
 
QComboBox * m_modelCombo {nullptr}
 
QComboBox * m_analysisTypeCombo {nullptr}
 
QSpinBox * m_maxEventsSpin {nullptr}
 
QSpinBox * m_timeoutSpin {nullptr}
 
QLabel * m_statusLabel {nullptr}
 
QLineEdit * m_baseUrlEdit {nullptr}
 
QLineEdit * m_openaiKeyEdit {nullptr}
 
QLineEdit * m_anthropicKeyEdit {nullptr}
 
QLineEdit * m_googleKeyEdit {nullptr}
 
QLineEdit * m_xaiKeyEdit {nullptr}
 

Detailed Description

Configuration panel for AI settings.

Constructor & Destructor Documentation

◆ AIConfigPanel()

ui::qt::AIConfigPanel::AIConfigPanel ( std::shared_ptr< ai::AIServiceWrapper >  aiService,
std::shared_ptr< ai::LogAnalyzer >  analyzer,
QWidget *  parent = nullptr 
)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ BuildUi()

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

◆ ConfigurationChanged

void ui::qt::AIConfigPanel::ConfigurationChanged ( )
signal
Here is the caller graph for this function:

◆ GetAIService()

std::shared_ptr< ai::AIServiceWrapper > ui::qt::AIConfigPanel::GetAIService ( ) const
inline

◆ GetAnalysisType()

ai::LogAnalyzer::AnalysisType ui::qt::AIConfigPanel::GetAnalysisType ( ) const
Here is the caller graph for this function:

◆ GetAnalyzer()

std::shared_ptr< ai::LogAnalyzer > ui::qt::AIConfigPanel::GetAnalyzer ( ) const
inline

◆ GetMaxEvents()

int ui::qt::AIConfigPanel::GetMaxEvents ( ) const
Here is the caller graph for this function:

◆ LoadPluginConfig()

nlohmann::json ui::qt::AIConfigPanel::LoadPluginConfig ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnModelChanged

void ui::qt::AIConfigPanel::OnModelChanged ( int  index)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnProviderChanged

void ui::qt::AIConfigPanel::OnProviderChanged ( int  index)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnRefreshModels

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

◆ OnShowInstalledModels

void ui::qt::AIConfigPanel::OnShowInstalledModels ( )
privateslot
Here is the caller graph for this function:

◆ PopulateModelList()

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

◆ RefreshAIClient()

void ui::qt::AIConfigPanel::RefreshAIClient ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SavePluginConfig()

void ui::qt::AIConfigPanel::SavePluginConfig ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateStatusLabel()

void ui::qt::AIConfigPanel::UpdateStatusLabel ( )
private
Here is the caller graph for this function:

Member Data Documentation

◆ m_aiService

std::shared_ptr<ai::AIServiceWrapper> ui::qt::AIConfigPanel::m_aiService
private

◆ m_analysisTypeCombo

QComboBox* ui::qt::AIConfigPanel::m_analysisTypeCombo {nullptr}
private

◆ m_analyzer

std::shared_ptr<ai::LogAnalyzer> ui::qt::AIConfigPanel::m_analyzer
private

◆ m_anthropicKeyEdit

QLineEdit* ui::qt::AIConfigPanel::m_anthropicKeyEdit {nullptr}
private

◆ m_baseUrlEdit

QLineEdit* ui::qt::AIConfigPanel::m_baseUrlEdit {nullptr}
private

◆ m_googleKeyEdit

QLineEdit* ui::qt::AIConfigPanel::m_googleKeyEdit {nullptr}
private

◆ m_maxEventsSpin

QSpinBox* ui::qt::AIConfigPanel::m_maxEventsSpin {nullptr}
private

◆ m_modelCombo

QComboBox* ui::qt::AIConfigPanel::m_modelCombo {nullptr}
private

◆ m_openaiKeyEdit

QLineEdit* ui::qt::AIConfigPanel::m_openaiKeyEdit {nullptr}
private

◆ m_providerCombo

QComboBox* ui::qt::AIConfigPanel::m_providerCombo {nullptr}
private

◆ m_statusLabel

QLabel* ui::qt::AIConfigPanel::m_statusLabel {nullptr}
private

◆ m_timeoutSpin

QSpinBox* ui::qt::AIConfigPanel::m_timeoutSpin {nullptr}
private

◆ m_xaiKeyEdit

QLineEdit* ui::qt::AIConfigPanel::m_xaiKeyEdit {nullptr}
private

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