初步重构

This commit is contained in:
2026-07-23 18:11:07 +08:00
parent 4530cd3fbe
commit a13a0e15f2
13 changed files with 57 additions and 57 deletions
@@ -18,15 +18,15 @@ static double max = 160;
QWidget* IntermediateFrequencyWidget::createSpectrogramPowerPlot() {
class SpectrumPlot : public YSG::Plot {
public:
YSG::FrequentAxis *xAxis{};
YSG::Frequent_Axis *xAxis{};
YSG::Axis *yAxis{};
YSG::MutiSelectRect* msr{};
YSG::Muti_Select_Rect* msr{};
YSG::Spectrum *sp{};
QMenu *mMenu{};
void init() override {
Plot::init();
mObjectName = "SpectrumPlot";
xAxis = YSG::FrequentAxis::Builder(this, Qt::Horizontal)
object_name = "SpectrumPlot";
xAxis = YSG::Frequent_Axis::Builder(this, Qt::Horizontal)
.set_tick_length(-10)
.set_coord_range(frequent_range)
.set_tick_length(-10)
@@ -46,7 +46,7 @@ QWidget* IntermediateFrequencyWidget::createSpectrogramPowerPlot() {
.set_frequent_point_size(1024)
.build();
msr = YSG::MutiSelectRect::Builder(xAxis, yAxis).build();
msr = YSG::Muti_Select_Rect::Builder(xAxis, yAxis).build();
}
protected:
void resizeEvent(QResizeEvent* event) override {
@@ -83,15 +83,15 @@ QWidget* IntermediateFrequencyWidget::createSpectrogramPowerPlot() {
QWidget* IntermediateFrequencyWidget::create_Afterglow_Plot(){
class AfterglowPlot : public YSG::Plot {
public:
YSG::FrequentAxis *xAxis{};
YSG::Frequent_Axis *xAxis{};
YSG::Axis *yAxis{};
YSG::Afterglow *ag{};
YSG::MutiSelectRect* msr{};
YSG::Muti_Select_Rect* msr{};
QMenu *mMenu{};
void init() override {
Plot::init();
mObjectName = "AfterglowPlot";
xAxis = YSG::FrequentAxis::Builder(this, Qt::Horizontal)
object_name = "AfterglowPlot";
xAxis = YSG::Frequent_Axis::Builder(this, Qt::Horizontal)
.set_coord_range(frequent_range)
.set_tick_length(-10)
.set_sub_tick_length(-5)
@@ -113,7 +113,7 @@ QWidget* IntermediateFrequencyWidget::create_Afterglow_Plot(){
.build();
msr = YSG::MutiSelectRect::Builder(xAxis, yAxis).build();
msr = YSG::Muti_Select_Rect::Builder(xAxis, yAxis).build();
}
protected:
void resizeEvent(QResizeEvent* event) override {