2025-01-05 14:29:59 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
#include "ui_SimuRunMenu.h"
|
2025-10-13 16:15:18 +00:00
|
|
|
#include "workspace/CommandManager.h"
|
|
|
|
|
#include "workspace/CommandExecutor.h"
|
2025-01-05 14:29:59 +00:00
|
|
|
|
2025-10-13 16:15:18 +00:00
|
|
|
class SimuRunMenu : public QWidget {
|
|
|
|
|
Q_OBJECT
|
2025-01-05 14:29:59 +00:00
|
|
|
|
|
|
|
|
public:
|
2025-10-13 16:15:18 +00:00
|
|
|
SimuRunMenu(QWidget *parent = nullptr);
|
|
|
|
|
~SimuRunMenu();
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
void OnWorkspaceChanged(class WorkSpace* ws);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void RefreshButtons();
|
|
|
|
|
void CreateGroup(const QString& title,
|
|
|
|
|
const std::vector<Command>& items);
|
|
|
|
|
|
2025-01-05 14:29:59 +00:00
|
|
|
|
|
|
|
|
private:
|
2025-10-13 16:15:18 +00:00
|
|
|
Ui::SimuRunMenuClass ui;
|
2025-01-05 14:29:59 +00:00
|
|
|
};
|