LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
OllamaSetupDialog.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <QDialog>
4
5class QPushButton;
6class QLabel;
7
8namespace ui::qt
9{
10
15{
16 Q_OBJECT
17
18public:
19 explicit OllamaSetupDialog(QWidget* parent = nullptr);
20
21 static bool CheckOllamaInstalled();
22 static bool CheckOllamaRunning();
23
24private slots:
25 void OnOpenDownloadPage();
26 void OnCheckStatus();
27
28private:
29 void BuildUi();
30 void UpdateStatus();
31
32 QLabel* m_statusLabel{nullptr};
33 QPushButton* m_downloadButton{nullptr};
34 QPushButton* m_checkButton{nullptr};
35 QPushButton* m_closeButton{nullptr};
36};
37
38} // namespace ui::qt
Dialog to guide users through Ollama installation.
Definition OllamaSetupDialog.hpp:15
void UpdateStatus()
Definition OllamaSetupDialog.cpp:169
static bool CheckOllamaInstalled()
Definition OllamaSetupDialog.cpp:26
QPushButton * m_checkButton
Definition OllamaSetupDialog.hpp:34
static bool CheckOllamaRunning()
Definition OllamaSetupDialog.cpp:63
QLabel * m_statusLabel
Definition OllamaSetupDialog.hpp:32
QPushButton * m_downloadButton
Definition OllamaSetupDialog.hpp:33
void OnCheckStatus()
Definition OllamaSetupDialog.cpp:164
QPushButton * m_closeButton
Definition OllamaSetupDialog.hpp:35
void BuildUi()
Definition OllamaSetupDialog.cpp:69
void OnOpenDownloadPage()
Definition OllamaSetupDialog.cpp:159
Definition ConfigEditorDialog.cpp:19