general ui work

This commit is contained in:
2024-06-11 14:15:08 +02:00
parent 8a26f9e1e4
commit b111e15fd5
8 changed files with 272 additions and 47 deletions

View File

@ -5,16 +5,27 @@
#include <QLineEdit>
#include <QRadioButton>
#include <QComboBox>
#include <QSpinBox>
#include <QLabel>
class KateAiConfigPage : public KTextEditor::ConfigPage
{
Q_OBJECT
private:
QLineEdit lineUrl;
QLabel systemPromptLabel;
QLineEdit lineSystemPrompt;
QRadioButton btnCompletion;
QRadioButton btnInstruct;
QComboBox cmbxServerType;
QSpinBox contextSpinBox;
KateAiPlugin* m_plugin;
private:
void instructBtnToggeled(bool checked);
public:
explicit KateAiConfigPage(QWidget *parent = nullptr, KateAiPlugin *plugin = nullptr);
~KateAiConfigPage() override