Guitar
Classes | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
SettingAiForm Class Reference

#include <SettingAiForm.h>

Inheritance diagram for SettingAiForm:
Inheritance graph
[legend]
Collaboration diagram for SettingAiForm:
Collaboration graph
[legend]

Classes

struct  AI
 
struct  Private
 

Public Member Functions

 SettingAiForm (QWidget *parent=nullptr)
 
 ~SettingAiForm ()
 
void exchange (bool save) override
 
- Public Member Functions inherited from AbstractSettingForm
 AbstractSettingForm (QWidget *parent=nullptr)
 
void reset (MainWindow *mw, ApplicationSettings *s)
 

Private Slots

void on_groupBox_generate_commit_message_by_ai_clicked (bool checked)
 
void on_lineEdit_api_key_textChanged (const QString &arg1)
 
void on_radioButton_use_environment_value_clicked ()
 
void on_radioButton_use_custom_api_key_clicked ()
 
void on_comboBox_provider_currentIndexChanged (int index)
 
void on_comboBox_ai_model_currentTextChanged (const QString &arg1)
 

Private Member Functions

void refrectSettingsToUI ()
 
void changeAI (AI *ai)
 
void setRadioButtons (bool enabled, bool use_env_value)
 
void configureModelByString (const std::string &s)
 
void configureModel (const GenerativeAI::Model &model)
 
SettingAiForm::AIai_from_provider (const GenerativeAI::Provider &provider)
 
void updateProviderComboBox (AI *newai)
 
void guessProviderFromModelName (const std::string &s)
 

Private Attributes

Ui::SettingAiForm * ui
 
Privatem
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractSettingForm
MainWindowmainwindow ()
 
ApplicationSettingssettings ()
 

Constructor & Destructor Documentation

◆ SettingAiForm()

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

◆ ~SettingAiForm()

SettingAiForm::~SettingAiForm ( )

Member Function Documentation

◆ ai_from_provider()

SettingAiForm::AI * SettingAiForm::ai_from_provider ( const GenerativeAI::Provider provider)
private

◆ changeAI()

void SettingAiForm::changeAI ( AI ai)
private
Here is the call graph for this function:

◆ configureModel()

void SettingAiForm::configureModel ( const GenerativeAI::Model model)
private
Here is the call graph for this function:

◆ configureModelByString()

void SettingAiForm::configureModelByString ( const std::string &  s)
private
Here is the call graph for this function:

◆ exchange()

void SettingAiForm::exchange ( bool  save)
overridevirtual

Implements AbstractSettingForm.

Here is the call graph for this function:

◆ guessProviderFromModelName()

void SettingAiForm::guessProviderFromModelName ( const std::string &  s)
private
Here is the call graph for this function:

◆ on_comboBox_ai_model_currentTextChanged

void SettingAiForm::on_comboBox_ai_model_currentTextChanged ( const QString &  arg1)
privateslot
Here is the call graph for this function:

◆ on_comboBox_provider_currentIndexChanged

void SettingAiForm::on_comboBox_provider_currentIndexChanged ( int  index)
privateslot
Here is the call graph for this function:

◆ on_groupBox_generate_commit_message_by_ai_clicked

void SettingAiForm::on_groupBox_generate_commit_message_by_ai_clicked ( bool  checked)
privateslot

◆ on_lineEdit_api_key_textChanged

void SettingAiForm::on_lineEdit_api_key_textChanged ( const QString &  arg1)
privateslot

◆ on_radioButton_use_custom_api_key_clicked

void SettingAiForm::on_radioButton_use_custom_api_key_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_radioButton_use_environment_value_clicked

void SettingAiForm::on_radioButton_use_environment_value_clicked ( )
privateslot
Here is the call graph for this function:

◆ refrectSettingsToUI()

void SettingAiForm::refrectSettingsToUI ( )
private
Here is the call graph for this function:

◆ setRadioButtons()

void SettingAiForm::setRadioButtons ( bool  enabled,
bool  use_env_value 
)
private

◆ updateProviderComboBox()

void SettingAiForm::updateProviderComboBox ( AI newai)
private

Member Data Documentation

◆ m

Private* SettingAiForm::m
private

◆ ui

Ui::SettingAiForm* SettingAiForm::ui
private

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