Files
envi-code/SourceCode/Code2026/CoreCommand/AICloudSettingDlg.h
T

38 lines
897 B
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
#pragma once
2026-09-28 15:28:50 +08:00
#include "resource.h"
#include "SH_AI.h"
class CAICloudSettingDlg : public CDialog
{
DECLARE_DYNAMIC(CAICloudSettingDlg)
public:
CAICloudSettingDlg(CWnd* pParent = NULL);
virtual ~CAICloudSettingDlg();
enum { IDD = IDD_AI_CLOUD_SETTING };
protected:
virtual void DoDataExchange(CDataExchange* pDX);
virtual BOOL OnInitDialog();
DECLARE_MESSAGE_MAP()
afx_msg void OnBnClickedOk();
afx_msg void OnBnClickedAdd();
afx_msg void OnBnClickedDel();
afx_msg void OnLbnSelchangeListCloud();
afx_msg void OnCbnSelchangeComboModel();
public:
void initModelsCombox();
void saveCurrentCloud();
static bool getActiveAIClouds(SHAI::AICloud *&cloud);
public:
SHAI::AICloud *m_pCurrentCloud;
CString m_sApiKey;
CString m_sApiEndPoint;
int m_iSelectModelIdx;
BOOL m_bCurrent;
CListBox m_wndListCloud;
std::vector<SHAI::AICloud*> m_clouds;
CComboBox m_wndComboxModels;
};