mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
40 lines
867 B
C++
40 lines
867 B
C++
#pragma once
|
|
|
|
#include "minifig.h"
|
|
class lcColorPicker;
|
|
|
|
namespace Ui
|
|
{
|
|
class lcMinifigDialog;
|
|
}
|
|
|
|
class lcMinifigDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit lcMinifigDialog(QWidget* Parent);
|
|
~lcMinifigDialog();
|
|
|
|
MinifigWizard* mMinifigWizard;
|
|
|
|
protected slots:
|
|
void on_TemplateComboBox_currentIndexChanged(const QString& TemplateName);
|
|
void on_TemplateSaveButton_clicked();
|
|
void on_TemplateDeleteButton_clicked();
|
|
void on_TemplateImportButton_clicked();
|
|
void on_TemplateExportButton_clicked();
|
|
void TypeChanged(int Index);
|
|
void ColorChanged(int Index);
|
|
void AngleChanged(double Value);
|
|
|
|
protected:
|
|
void UpdateTemplateCombo();
|
|
|
|
Ui::lcMinifigDialog* ui;
|
|
|
|
lcView* mView;
|
|
std::array<QComboBox*, LC_MFW_NUMITEMS> mComboBoxes;
|
|
std::array<lcColorPicker*, LC_MFW_NUMITEMS> mColorPickers;
|
|
std::array<QDoubleSpinBox*, LC_MFW_NUMITEMS> mSpinBoxes;
|
|
};
|