leocad/common/lc_minifigdialog.h

41 lines
867 B
C
Raw Permalink Normal View History

#pragma once
2013-08-09 04:57:18 +00:00
2020-12-19 11:50:44 -08:00
#include "minifig.h"
2023-05-15 21:02:17 -07:00
class lcColorPicker;
2013-08-09 04:57:18 +00:00
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
MinifigWizard* mMinifigWizard;
2013-08-09 04:57:18 +00:00
2020-12-19 11:50:44 -08:00
protected slots:
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
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;
2023-05-15 21:02:17 -07:00
std::array<lcColorPicker*, LC_MFW_NUMITEMS> mColorPickers;
2020-12-19 11:50:44 -08:00
std::array<QDoubleSpinBox*, LC_MFW_NUMITEMS> mSpinBoxes;
};