Files
ts-qt/components/charts/heatmap.impl.hh

44 lines
1.0 KiB
C++

//
// Created by Lenn on 2025/10/17.
//
#ifndef TOUCHSENSOR_HEATMAP_IMPL_HH
#define TOUCHSENSOR_HEATMAP_IMPL_HH
#include "heatmap.hh"
#include "modern-qt/utility/theme/theme.hh"
#include "modern-qt/widget/sliders.hh"
#include <memory>
using namespace creeper::plot_widget::internal;
struct BasicPlot::Impl {
explicit Impl(BasicPlot& self) noexcept : self{self} {}
public:
auto set_xlabel_text(const QString& text) -> void { xlabel = text; }
auto set_ylabel_text(const QString& text) -> void { ylabel = text; }
auto set_matrix_size(const QSize& size) {
matrix_size.setWidth(size.width());
matrix_size.setHeight(size.height());
}
auto load_theme_manager(ThemeManager& mgr) {
mgr.append_handler(&self, [this](const ThemeManager& mgr){
set_color_scheme(mgr.color_scheme());
});
}
auto set_color_scheme(slider::pro::Measurements measurements) {
}
private:
QString xlabel;
QString ylabel;
QSize matrix_size;
BasicPlot& self;
};
#endif // TOUCHSENSOR_HEATMAP_IMPL_HH