Files
Renderive/YSGraphic_Core/DemoGallery/DemoGallery.h
T
2026-06-16 13:33:27 +08:00

51 lines
1.1 KiB
C++

#pragma once
#include <QHBoxLayout>
#include <QMainWindow>
#include <QStandardItem>
#include <QStandardItemModel>
#include <QTabWidget>
#include <QTreeView>
#include <QVBoxLayout>
#include <QtWidgets>
#include "AfterglowPlot.h"
#include "AudioPlot.h"
#include "Norml_test.h"
#include "PlanispherePlot.h"
#include "SpectrumPlot.h"
#include "SweepFrequentPlot.h"
#include "WaterFallPlot.h"
#include "base/AxisTest.h"
#include "base/FrequentAxisTest.h"
#include "base/MutiSelectTest.h"
#include "base/TimeAxisTest.h"
#include "../component/Table/Table_View.h"
#include "../component/Tree/Tree_View.h"
class QTreeView;
class QStandardItemModel;
class QStandardItem;
class DemoGallery : public QWidget
{
public:
DemoGallery();
QTreeView *treeView;
QStandardItemModel *standardModel;
QHBoxLayout *mMainLayout;
QTabWidget *mTabWidget{};
QWidget* mCurWidget{};
struct TData {
QString mName;
QWidget* mPlot;
};
QMap<QString, QWidget*> mDataMap;
QStandardItem* getFromData(const TData& data);
QList<QStandardItem*> getList(const QVector<TData>& datas);
void change_to(const QString& name);
};