mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-07-19 17:50:58 -04:00
refactor: Restructure project into sources/tests layout and dissolve PluginLLMCore
This commit is contained in:
47
sources/settings/UpdateDialog.hpp
Normal file
47
sources/settings/UpdateDialog.hpp
Normal file
@@ -0,0 +1,47 @@
|
||||
// Copyright (C) 2024-2026 Petr Mironychev
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
// Additional attribution terms under GPLv3 §7(b) apply — see LICENSE
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QDialog>
|
||||
#include <QHBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QMessageBox>
|
||||
#include <QPushButton>
|
||||
#include <QTextEdit>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
#include "PluginUpdater.hpp"
|
||||
|
||||
namespace QodeAssist {
|
||||
|
||||
class UpdateDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit UpdateDialog(QWidget *parent = nullptr);
|
||||
|
||||
static void checkForUpdatesAndShow(QWidget *parent = nullptr);
|
||||
|
||||
private slots:
|
||||
void handleUpdateInfo(const PluginUpdater::UpdateInfo &info);
|
||||
void openReleasePage();
|
||||
void openPluginFolder();
|
||||
void openUpdaterReleasePage();
|
||||
|
||||
private:
|
||||
PluginUpdater *m_updater;
|
||||
QVBoxLayout *m_layout;
|
||||
QLabel *m_titleLabel;
|
||||
QLabel *m_versionLabel;
|
||||
QLabel *m_changelogLabel;
|
||||
QTextEdit *m_changelogText;
|
||||
QPushButton *m_buttonOpenReleasePage;
|
||||
QPushButton *m_buttonOpenPluginFolder;
|
||||
QPushButton *m_buttonOpenUpdaterRelease;
|
||||
QPushButton *m_closeButton;
|
||||
PluginUpdater::UpdateInfo m_updateInfo;
|
||||
};
|
||||
|
||||
} // namespace QodeAssist
|
||||
Reference in New Issue
Block a user