2017-07-19 23:20:32 +02:00
|
|
|
#pragma once
|
2013-08-09 06:57:18 +02:00
|
|
|
|
2020-12-19 20:50:44 +01:00
|
|
|
#include "minifig.h"
|
2023-05-16 06:02:17 +02:00
|
|
|
class lcColorPicker;
|
2013-08-09 06:57:18 +02:00
|
|
|
|
2020-12-25 19:54:33 +01:00
|
|
|
namespace Ui
|
|
|
|
{
|
2020-12-20 20:24:50 +01:00
|
|
|
class lcMinifigDialog;
|
2013-08-09 06:57:18 +02:00
|
|
|
}
|
|
|
|
|
2020-12-20 20:24:50 +01:00
|
|
|
class lcMinifigDialog : public QDialog
|
2013-08-09 06:57:18 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-12-20 20:24:50 +01:00
|
|
|
explicit lcMinifigDialog(QWidget* Parent);
|
|
|
|
~lcMinifigDialog();
|
2013-08-09 06:57:18 +02:00
|
|
|
|
2020-12-20 01:05:29 +01:00
|
|
|
MinifigWizard* mMinifigWizard;
|
2013-08-09 06:57:18 +02:00
|
|
|
|
2020-12-19 20:50:44 +01:00
|
|
|
protected slots:
|
2018-03-12 04:35:04 +01:00
|
|
|
void on_TemplateComboBox_currentIndexChanged(const QString& TemplateName);
|
|
|
|
void on_TemplateSaveButton_clicked();
|
|
|
|
void on_TemplateDeleteButton_clicked();
|
2019-09-15 02:05:13 +02:00
|
|
|
void on_TemplateImportButton_clicked();
|
|
|
|
void on_TemplateExportButton_clicked();
|
2020-12-19 20:50:44 +01:00
|
|
|
void TypeChanged(int Index);
|
|
|
|
void ColorChanged(int Index);
|
|
|
|
void AngleChanged(double Value);
|
2013-08-09 06:57:18 +02:00
|
|
|
|
2018-03-12 04:35:04 +01:00
|
|
|
protected:
|
|
|
|
void UpdateTemplateCombo();
|
2013-08-09 06:57:18 +02:00
|
|
|
|
2020-12-20 20:24:50 +01:00
|
|
|
Ui::lcMinifigDialog* ui;
|
2020-12-19 20:50:44 +01:00
|
|
|
|
2020-12-25 19:54:33 +01:00
|
|
|
lcView* mView;
|
2020-12-19 20:50:44 +01:00
|
|
|
std::array<QComboBox*, LC_MFW_NUMITEMS> mComboBoxes;
|
2023-05-16 06:02:17 +02:00
|
|
|
std::array<lcColorPicker*, LC_MFW_NUMITEMS> mColorPickers;
|
2020-12-19 20:50:44 +01:00
|
|
|
std::array<QDoubleSpinBox*, LC_MFW_NUMITEMS> mSpinBoxes;
|
|
|
|
};
|