mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-07-21 10:40:57 -04:00
refactor: Restructure project into sources/tests layout and dissolve PluginLLMCore
This commit is contained in:
39
sources/widgets/AddCustomInstructionDialog.hpp
Normal file
39
sources/widgets/AddCustomInstructionDialog.hpp
Normal file
@@ -0,0 +1,39 @@
|
||||
// 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 <QString>
|
||||
|
||||
#include "CustomInstructionsManager.hpp"
|
||||
|
||||
class QLineEdit;
|
||||
class QPlainTextEdit;
|
||||
class QCheckBox;
|
||||
|
||||
namespace QodeAssist {
|
||||
|
||||
class AddCustomInstructionDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AddCustomInstructionDialog(QWidget *parent = nullptr);
|
||||
explicit AddCustomInstructionDialog(const CustomInstruction &instruction, QWidget *parent = nullptr);
|
||||
~AddCustomInstructionDialog() override = default;
|
||||
|
||||
CustomInstruction getInstruction() const;
|
||||
|
||||
private:
|
||||
void setupUi();
|
||||
|
||||
QLineEdit *m_nameEdit;
|
||||
QPlainTextEdit *m_bodyEdit;
|
||||
QCheckBox *m_defaultCheckBox;
|
||||
CustomInstruction m_instruction;
|
||||
};
|
||||
|
||||
} // namespace QodeAssist
|
||||
|
||||
Reference in New Issue
Block a user