leocad/qt/lc_qminifigdialog.h

41 lines
884 B
C
Raw Normal View History

#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;
class View;
2013-08-09 06:57:18 +02:00
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();
MinifigWizard* mMinifigWizard;
2013-08-09 06:57:18 +02:00
2020-12-19 20:50:44 +01:00
protected slots:
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
protected:
void UpdateTemplateCombo();
2013-08-09 06:57:18 +02:00
2020-12-19 20:50:44 +01:00
Ui::lcQMinifigDialog* ui;
View* mView;
2020-12-19 20:50:44 +01:00
std::array<QComboBox*, LC_MFW_NUMITEMS> mComboBoxes;
std::array<lcQColorPicker*, LC_MFW_NUMITEMS> mColorPickers;
std::array<QDoubleSpinBox*, LC_MFW_NUMITEMS> mSpinBoxes;
};