daily update
This commit is contained in:
@@ -2,10 +2,14 @@
|
||||
// Created by Lenn on 2025/10/14.
|
||||
//
|
||||
|
||||
#include <qsize.h>
|
||||
#include <random>
|
||||
|
||||
#include "component.hh"
|
||||
|
||||
#include "modern-qt/utility/theme/theme.hh"
|
||||
#include "modern-qt/utility/wrapper/layout.hh"
|
||||
#include "modern-qt/utility/wrapper/widget.hh"
|
||||
#include "components/charts/heatmap.hh"
|
||||
#include <modern-qt/layout/flow.hh>
|
||||
#include <modern-qt/layout/linear.hh>
|
||||
#include <modern-qt/utility/material-icon.hh>
|
||||
@@ -27,12 +31,12 @@ namespace lnpro = linear::pro;
|
||||
namespace impro = image::pro;
|
||||
namespace ibpro = icon_button::pro;
|
||||
namespace slpro = select_widget::pro;
|
||||
namespace pwpro = plot_widget::pro;
|
||||
|
||||
static auto ComConfigComponent(ThemeManager& manager, auto&& callback) {
|
||||
auto slogen_context = std::make_shared<MutableValue<QString>>();
|
||||
slogen_context->set_silent("BanG Bream! It's MyGo!!!");
|
||||
|
||||
// 创建一个MutableValue<QStringList>来存储MatSelect的选项
|
||||
auto select_com_context = std::make_shared<MutableValue<QStringList>>();
|
||||
select_com_context->set_silent(QStringList {});
|
||||
|
||||
@@ -138,6 +142,18 @@ static auto ComConfigComponent(ThemeManager& manager, auto&& callback) {
|
||||
};
|
||||
}
|
||||
|
||||
static auto DisplayComponent(ThemeManager& manager, int index = 0) noexcept {
|
||||
const auto row = new Row{
|
||||
lnpro::Item<HeatMapPlot> {
|
||||
pwpro::MatrixSize {
|
||||
QSize{3, 4}
|
||||
},
|
||||
},
|
||||
};
|
||||
return new Widget {
|
||||
widget::pro::Layout{row},
|
||||
};
|
||||
}
|
||||
auto ViewComponent(ViewComponentState& state) noexcept -> raw_pointer<QWidget> {
|
||||
const auto texts = std::array {
|
||||
std::make_shared<MutableValue<QString>>("0.500"),
|
||||
@@ -173,6 +189,10 @@ auto ViewComponent(ViewComponentState& state) noexcept -> raw_pointer<QWidget> {
|
||||
}
|
||||
}),
|
||||
},
|
||||
|
||||
lnpro::Item {
|
||||
DisplayComponent(state.manager),
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user