feat: implement AI schedule app with multi-device sync
- Qt 6 desktop client with day/month/year views, AI scheduling, and TOML settings\n- Go sync server with SQLite change stream, WebSocket notifications, and Docker deployment\n- Client outbox/LWW sync, offline retry, and dual-client integration tests\n- Linux fcitx5 setup, validation reports, and Windows MinGW preset
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
#pragma once
|
||||
|
||||
#include "ElaDialog.h"
|
||||
|
||||
class AppSettings;
|
||||
class ElaComboBox;
|
||||
class ElaLineEdit;
|
||||
class ElaToggleSwitch;
|
||||
class ElaToolButton;
|
||||
class ThemeManager;
|
||||
|
||||
/*
|
||||
* 类名: SettingsDialog
|
||||
* 功能: 外观设置(主题、ElaMica)与 AI 服务配置
|
||||
* 线程安全: 否;UI 线程
|
||||
*/
|
||||
class SettingsDialog : public ElaDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
SettingsDialog(ThemeManager& themeManager, AppSettings& settings, QWidget* parent = nullptr);
|
||||
|
||||
signals:
|
||||
void micaChanged(bool enabled);
|
||||
void syncSettingsChanged();
|
||||
|
||||
private:
|
||||
void saveAiConfig();
|
||||
void saveSyncConfig();
|
||||
void toggleKeyVisibility();
|
||||
|
||||
ThemeManager& m_themeManager;
|
||||
AppSettings& m_settings;
|
||||
ElaComboBox* m_themeCombo = nullptr;
|
||||
ElaToggleSwitch* m_micaSwitch = nullptr;
|
||||
ElaLineEdit* m_baseUrlEdit = nullptr;
|
||||
ElaLineEdit* m_modelEdit = nullptr;
|
||||
ElaLineEdit* m_apiKeyEdit = nullptr;
|
||||
ElaToolButton* m_keyVisibilityButton = nullptr;
|
||||
ElaLineEdit* m_syncUrlEdit = nullptr;
|
||||
ElaToggleSwitch* m_syncEnabledSwitch = nullptr;
|
||||
};
|
||||
Reference in New Issue
Block a user