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

Dialog for downloading AI models (Gemma, Llama, Mistral, etc.) More...

#include <GemmaDownloadDialog.hpp>

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

Public Member Functions

 GemmaDownloadDialog (QWidget *parent=nullptr)
 
 ~GemmaDownloadDialog () override
 
bool ModelAvailable () const
 Returns true if model is available (either already downloaded or just downloaded)
 

Private Slots

void OnDownloadClicked ()
 
void OnOpenUrlClicked ()
 
void OnOpenFolderClicked ()
 
void OnModelTypeChanged (int index)
 
void OnDownloadFinished (const QString &error)
 
void OnDownloadProgress (int current, int total)
 

Private Member Functions

void UpdateUI ()
 
void SetDownloading (bool downloading)
 
void LoadModelPresets ()
 
void SaveModelPreferences ()
 

Private Attributes

QLabel * m_statusLabel {nullptr}
 
QLabel * m_sizeLabel {nullptr}
 
QComboBox * m_modelTypeCombo {nullptr}
 
QLineEdit * m_modelUrlEdit {nullptr}
 
QLineEdit * m_modelNameEdit {nullptr}
 
QPushButton * m_downloadBtn {nullptr}
 
QPushButton * m_openUrlBtn {nullptr}
 
QPushButton * m_openFolderBtn {nullptr}
 
QPushButton * m_closeBtn {nullptr}
 
QProgressBar * m_progressBar {nullptr}
 
QThread * m_downloadThread {nullptr}
 
bool m_modelAvailable {false}
 
bool m_downloading {false}
 

Detailed Description

Dialog for downloading AI models (Gemma, Llama, Mistral, etc.)

Constructor & Destructor Documentation

◆ GemmaDownloadDialog()

ui::qt::GemmaDownloadDialog::GemmaDownloadDialog ( QWidget *  parent = nullptr)
explicit
Here is the call graph for this function:

◆ ~GemmaDownloadDialog()

ui::qt::GemmaDownloadDialog::~GemmaDownloadDialog ( )
override

Member Function Documentation

◆ LoadModelPresets()

void ui::qt::GemmaDownloadDialog::LoadModelPresets ( )
private
Here is the caller graph for this function:

◆ ModelAvailable()

bool ui::qt::GemmaDownloadDialog::ModelAvailable ( ) const
inline

Returns true if model is available (either already downloaded or just downloaded)

◆ OnDownloadClicked

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

◆ OnDownloadFinished

void ui::qt::GemmaDownloadDialog::OnDownloadFinished ( const QString &  error)
privateslot
Here is the call graph for this function:

◆ OnDownloadProgress

void ui::qt::GemmaDownloadDialog::OnDownloadProgress ( int  current,
int  total 
)
privateslot

◆ OnModelTypeChanged

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

◆ OnOpenFolderClicked

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

◆ OnOpenUrlClicked

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

◆ SaveModelPreferences()

void ui::qt::GemmaDownloadDialog::SaveModelPreferences ( )
private
Here is the call graph for this function:

◆ SetDownloading()

void ui::qt::GemmaDownloadDialog::SetDownloading ( bool  downloading)
private
Here is the caller graph for this function:

◆ UpdateUI()

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

Member Data Documentation

◆ m_closeBtn

QPushButton* ui::qt::GemmaDownloadDialog::m_closeBtn {nullptr}
private

◆ m_downloadBtn

QPushButton* ui::qt::GemmaDownloadDialog::m_downloadBtn {nullptr}
private

◆ m_downloading

bool ui::qt::GemmaDownloadDialog::m_downloading {false}
private

◆ m_downloadThread

QThread* ui::qt::GemmaDownloadDialog::m_downloadThread {nullptr}
private

◆ m_modelAvailable

bool ui::qt::GemmaDownloadDialog::m_modelAvailable {false}
private

◆ m_modelNameEdit

QLineEdit* ui::qt::GemmaDownloadDialog::m_modelNameEdit {nullptr}
private

◆ m_modelTypeCombo

QComboBox* ui::qt::GemmaDownloadDialog::m_modelTypeCombo {nullptr}
private

◆ m_modelUrlEdit

QLineEdit* ui::qt::GemmaDownloadDialog::m_modelUrlEdit {nullptr}
private

◆ m_openFolderBtn

QPushButton* ui::qt::GemmaDownloadDialog::m_openFolderBtn {nullptr}
private

◆ m_openUrlBtn

QPushButton* ui::qt::GemmaDownloadDialog::m_openUrlBtn {nullptr}
private

◆ m_progressBar

QProgressBar* ui::qt::GemmaDownloadDialog::m_progressBar {nullptr}
private

◆ m_sizeLabel

QLabel* ui::qt::GemmaDownloadDialog::m_sizeLabel {nullptr}
private

◆ m_statusLabel

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

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