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"
|
2013-08-09 06:57:18 +02:00
|
|
|
class lcQColorPicker;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class lcQMinifigDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class lcQMinifigDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2016-08-01 05:44:15 +02:00
|
|
|
explicit lcQMinifigDialog(QWidget* Parent);
|
2013-08-09 06:57:18 +02:00
|
|
|
~lcQMinifigDialog();
|
|
|
|
|
2016-08-01 05:44:15 +02:00
|
|
|
MinifigWizard* mMinifigWidget;
|
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-19 20:50:44 +01:00
|
|
|
Ui::lcQMinifigDialog* ui;
|
|
|
|
|
|
|
|
std::array<QComboBox*, LC_MFW_NUMITEMS> mComboBoxes;
|
|
|
|
std::array<lcQColorPicker*, LC_MFW_NUMITEMS> mColorPickers;
|
|
|
|
std::array<QDoubleSpinBox*, LC_MFW_NUMITEMS> mSpinBoxes;
|
|
|
|
};
|