Integrate pinned libcurl, libtorrent and static OpenSSL dependencies with license notices. Enable verified HTTPS trackers and authenticated HTTP/SOCKS5 proxies, add tracker TXT import without arbitrary list caps, and allow resizing the main window. Organize client sources by responsibility and update Visual Studio projects, filters and tests. Debug and Release builds passed, along with UI, HTTP, tracker import and browser bridge regressions. Full protocol tests have an unresolved intermittent HTTPS tracker wait timeout; Windows 7 runtime validation remains outstanding.
26 lines
807 B
C++
26 lines
807 B
C++
#pragma once
|
|
#include "ttui/window.h"
|
|
#include "settings/skin_settings.h"
|
|
#include <functional>
|
|
class SettingsForm final : public ttui::Window {
|
|
public:
|
|
using ChangeCallback=std::function<void()>;
|
|
using CloseCallback=std::function<void()>;
|
|
SettingsForm(SkinSettings*,ChangeCallback,CloseCallback);
|
|
~SettingsForm() override;
|
|
static const std::wstring kClassName;
|
|
void RefreshOpacity();
|
|
private:
|
|
void OnCreate() override;
|
|
void OnLayout() override;
|
|
void OnPaint(ttui::Canvas&) override;
|
|
void OnCommand(int) override;
|
|
std::optional<LRESULT> OnMessage(UINT,WPARAM,LPARAM) override;
|
|
void PickBackgroundImage();
|
|
SkinSettings* settings_;
|
|
ChangeCallback on_changed_;
|
|
CloseCallback on_closed_;
|
|
HWND slider_=nullptr;
|
|
HWND opacity_slider_=nullptr;
|
|
};
|