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