mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
41 lines
872 B
C++
41 lines
872 B
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
struct lcMinifig;
|
|
class MinifigWizard;
|
|
class lcQColorPicker;
|
|
|
|
namespace Ui {
|
|
class lcQMinifigDialog;
|
|
}
|
|
|
|
class lcQMinifigDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit lcQMinifigDialog(QWidget* Parent);
|
|
~lcQMinifigDialog();
|
|
|
|
MinifigWizard* mMinifigWidget;
|
|
|
|
public slots:
|
|
void on_TemplateComboBox_currentIndexChanged(const QString& TemplateName);
|
|
void on_TemplateSaveButton_clicked();
|
|
void on_TemplateDeleteButton_clicked();
|
|
void typeChanged(int index);
|
|
void colorChanged(int index);
|
|
void angleChanged(double value);
|
|
|
|
protected:
|
|
Ui::lcQMinifigDialog *ui;
|
|
|
|
void UpdateTemplateCombo();
|
|
QComboBox *getTypeComboBox(int type);
|
|
int getTypeIndex(QObject *widget);
|
|
lcQColorPicker* getColorPicker(int index);
|
|
int getColorIndex(QObject *widget);
|
|
QDoubleSpinBox* getAngleEdit(int index);
|
|
int getAngleIndex(QObject *widget);
|
|
};
|
|
|