leocad/qt/lc_qminifigdialog.h
2017-07-19 14:20:32 -07:00

37 lines
659 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 accept();
void typeChanged(int index);
void colorChanged(int index);
void angleChanged(double value);
private:
Ui::lcQMinifigDialog *ui;
QComboBox *getTypeComboBox(int type);
int getTypeIndex(QObject *widget);
lcQColorPicker* getColorPicker(int index);
int getColorIndex(QObject *widget);
int getAngleIndex(QObject *widget);
};