leocad/qt/lc_qminifigdialog.h

44 lines
954 B
C
Raw Normal View History

#pragma once
2013-08-09 06:57:18 +02:00
#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 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();
2013-08-09 06:57:18 +02:00
void typeChanged(int index);
void colorChanged(int index);
void angleChanged(double value);
protected:
2013-08-09 06:57:18 +02:00
Ui::lcQMinifigDialog *ui;
void UpdateTemplateCombo();
2013-08-09 06:57:18 +02:00
QComboBox *getTypeComboBox(int type);
int getTypeIndex(QObject *widget);
lcQColorPicker* getColorPicker(int index);
int getColorIndex(QObject *widget);
QDoubleSpinBox* getAngleEdit(int index);
2013-08-09 06:57:18 +02:00
int getAngleIndex(QObject *widget);
};