leocad/qt/lc_qminifigdialog.h

40 lines
732 B
C
Raw Normal View History

2013-08-09 06:57:18 +02:00
#ifndef LC_QMINIFIGDIALOG_H
#define LC_QMINIFIGDIALOG_H
#include <QDialog>
struct lcMinifig;
class MinifigWizard;
class lcQColorPicker;
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();
2016-08-01 05:44:15 +02:00
MinifigWizard* mMinifigWidget;
2013-08-09 06:57:18 +02:00
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);
};
#endif // LC_QMINIFIGDIALOG_H