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

Panel for AI-powered log analysis. More...

#include <AIAnalysisPanel.hpp>

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

Signals

void AnalysisStarted ()
 
void AnalysisCompleted (const QString &result)
 

Public Member Functions

 AIAnalysisPanel (std::shared_ptr< ai::AIServiceWrapper > aiService, std::shared_ptr< ai::LogAnalyzer > analyzer, EventsTableView *eventsView=nullptr, QWidget *parent=nullptr)
 
void SetConfigPanel (AIConfigPanel *configPanel)
 

Private Slots

void OnAnalyzeClicked ()
 
void OnSetupClicked ()
 
void OnPredefinedPromptSelected (int index)
 
void OnLoadPromptFile ()
 
void OnSavePromptFile ()
 

Private Member Functions

void BuildUi ()
 
void LoadPredefinedPrompts ()
 
QString LoadPromptFromFile (const QString &filePath)
 

Private Attributes

std::shared_ptr< ai::AIServiceWrapper > m_aiService
 
std::shared_ptr< ai::LogAnalyzer > m_analyzer
 
EventsTableView * m_eventsView {nullptr}
 
AIConfigPanel * m_configPanel {nullptr}
 
QPushButton * m_analyzeButton {nullptr}
 
QTextEdit * m_resultsText {nullptr}
 
QCheckBox * m_useCustomPromptCheckbox {nullptr}
 
QTextEdit * m_customPromptEdit {nullptr}
 
QComboBox * m_predefinedPromptCombo {nullptr}
 
QPushButton * m_loadPromptButton {nullptr}
 
QPushButton * m_savePromptButton {nullptr}
 
QMap< QString, QString > m_predefinedPrompts
 

Detailed Description

Panel for AI-powered log analysis.

Constructor & Destructor Documentation

◆ AIAnalysisPanel()

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

Member Function Documentation

◆ AnalysisCompleted

void ui::qt::AIAnalysisPanel::AnalysisCompleted ( const QString &  result)
signal
Here is the caller graph for this function:

◆ AnalysisStarted

void ui::qt::AIAnalysisPanel::AnalysisStarted ( )
signal
Here is the caller graph for this function:

◆ BuildUi()

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

◆ LoadPredefinedPrompts()

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

◆ LoadPromptFromFile()

QString ui::qt::AIAnalysisPanel::LoadPromptFromFile ( const QString &  filePath)
private
Here is the caller graph for this function:

◆ OnAnalyzeClicked

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

◆ OnLoadPromptFile

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

◆ OnPredefinedPromptSelected

void ui::qt::AIAnalysisPanel::OnPredefinedPromptSelected ( int  index)
privateslot
Here is the caller graph for this function:

◆ OnSavePromptFile

void ui::qt::AIAnalysisPanel::OnSavePromptFile ( )
privateslot
Here is the caller graph for this function:

◆ OnSetupClicked

void ui::qt::AIAnalysisPanel::OnSetupClicked ( )
privateslot

◆ SetConfigPanel()

void ui::qt::AIAnalysisPanel::SetConfigPanel ( AIConfigPanel *  configPanel)
Here is the caller graph for this function:

Member Data Documentation

◆ m_aiService

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

◆ m_analyzeButton

QPushButton* ui::qt::AIAnalysisPanel::m_analyzeButton {nullptr}
private

◆ m_analyzer

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

◆ m_configPanel

AIConfigPanel* ui::qt::AIAnalysisPanel::m_configPanel {nullptr}
private

◆ m_customPromptEdit

QTextEdit* ui::qt::AIAnalysisPanel::m_customPromptEdit {nullptr}
private

◆ m_eventsView

EventsTableView* ui::qt::AIAnalysisPanel::m_eventsView {nullptr}
private

◆ m_loadPromptButton

QPushButton* ui::qt::AIAnalysisPanel::m_loadPromptButton {nullptr}
private

◆ m_predefinedPromptCombo

QComboBox* ui::qt::AIAnalysisPanel::m_predefinedPromptCombo {nullptr}
private

◆ m_predefinedPrompts

QMap<QString, QString> ui::qt::AIAnalysisPanel::m_predefinedPrompts
private

◆ m_resultsText

QTextEdit* ui::qt::AIAnalysisPanel::m_resultsText {nullptr}
private

◆ m_savePromptButton

QPushButton* ui::qt::AIAnalysisPanel::m_savePromptButton {nullptr}
private

◆ m_useCustomPromptCheckbox

QCheckBox* ui::qt::AIAnalysisPanel::m_useCustomPromptCheckbox {nullptr}
private

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