完成热力图,等待测试吧
This commit is contained in:
@@ -6,17 +6,38 @@
|
||||
#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(BasicSelect& self) noexcept
|
||||
: self{self} {
|
||||
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:
|
||||
|
||||
private:
|
||||
QString xlabel;
|
||||
QString ylabel;
|
||||
QSize matrix_size;
|
||||
BasicPlot& self;
|
||||
};
|
||||
|
||||
#endif //TOUCHSENSOR_HEATMAP_IMPL_HH
|
||||
#endif // TOUCHSENSOR_HEATMAP_IMPL_HH
|
||||
|
||||
Reference in New Issue
Block a user