DYTSrouce/src/ui/Panel/DataPanelFactory.h

21 lines
681 B
C
Raw Normal View History

2025-10-16 03:29:25 +00:00
#pragma once
2025-10-20 18:17:40 +00:00
#include "ui/Panel/DataPanel.h"
2025-10-27 00:35:04 +00:00
#include "workspace/FileEntry.h"
2025-10-16 03:29:25 +00:00
#include <memory>
class DataPanelFactory
{
public:
2025-10-20 18:17:40 +00:00
// Create panel with file path
static DataPanel* CreatePanel(FileEntryType type, int index, const QString& filePath, QWidget* parent = nullptr);
// Create panel with chart data
2025-10-27 00:35:04 +00:00
static DataPanel* CreatePanelWithChartData(FileEntryType type, int index, std::shared_ptr<FileEntryCurve> fileEntry, QWidget* parent = nullptr);
2025-10-20 18:17:40 +00:00
// Check if a panel type is supported
static bool IsTypeSupported(FileEntryType type);
// Get display name for a panel type
static QString GetTypeDisplayName(FileEntryType type);
2025-10-16 03:29:25 +00:00
};