27 lines
475 B
C++
27 lines
475 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include <QDialog>
|
|
|
|
#include "SchematicChoiceOption.h"
|
|
|
|
struct RecipesConfig;
|
|
|
|
class SchematicChoiceDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SchematicChoiceDialog(const std::vector<SchematicChoiceOption>& options,
|
|
const RecipesConfig& recipes,
|
|
QWidget* parent = nullptr);
|
|
|
|
int getChosenIndex() const;
|
|
|
|
private:
|
|
void onOptionClicked(int index);
|
|
|
|
int m_chosenIndex;
|
|
};
|