Files
Renderive/YSGraphic_Core/DemoGallery/Demo_Gallery.h
T
2026-07-23 18:11:07 +08:00

43 lines
1.1 KiB
C++

#pragma once
#include <QHBoxLayout>
#include <QMainWindow>
#include <QStandardItem>
#include <QStandardItemModel>
#include <QTabWidget>
#include <QTreeView>
#include <QVBoxLayout>
#include <QtWidgets>
#include "Afterglow_Plot.h"
#include "Audio_Plot.h"
#include "Norml_test.h"
#include "PlanispherePlot.h"
#include "Spectrum_Plot.h"
#include "Sweep_Frequent_Plot.h"
#include "Waterfall_Plot.h"
#include "base/Axis_Test.h"
#include "base/Frequent_Axis_Test.h"
#include "base/Muti_Select_Test.h"
#include "base/Time_Axis_Test.h"
#include "../component/Table/Table_View.h"
#include "../component/Tree/Tree_View.h"
class QTreeView;
class QStandardItemModel;
class QStandardItem;
class Demo_Gallery : public QWidget {
public:
Demo_Gallery();
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);
};