-
Notifications
You must be signed in to change notification settings - Fork 9
/
optiondialog.h
60 lines (52 loc) · 1.41 KB
/
optiondialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef OPTIONDIALOG_H
#define OPTIONDIALOG_H
#include <QDialog>
#include <QDebug>
#include <QComboBox>
#include <QVector3D>
#include <QFontDialog>
#include <QTableWidgetItem>
#include <QFileDialog>
#include <QColorDialog>
#include <material.h>
namespace Ui {
class OptionDialog;
}
class OptionDialog : public QDialog
{
Q_OBJECT
public:
explicit OptionDialog(QWidget *parent = 0);
~OptionDialog();
QString getSlicerDir();
QString getConfigDir();
QString getOutputDir();
QVector3D getSize();
QList< QPair<int, QString > > getExtruders();
void addExtruder(QPair<int, QString>);
inline QFont getCurrentFont() { return currentFont;}
void setCurrentFont(QString font);
public slots:
void setSlicerDir(QString dir);
void setConfigDir(QString dir);
void setOutputDir(QString dir);
void setSize(QVector3D size);
private slots:
void on_closeBtn_clicked();
void on_slicerDirBtn_clicked();
void on_configDirBtn_clicked();
void on_outputDirBtn_clicked();
void on_extruderNum_valueChanged(int arg1);
void on_tableWidget_cellDoubleClicked(int row, int column);
void on_changeFontBtn_clicked();
signals:
void slicerPathChanged(QString);
void outputPathChanged(QString);
void newSize(QVector3D);
void newList(QList<Material*>*);
private:
Ui::OptionDialog *ui;
QList<Material*>* materials;
QFont currentFont;
};
#endif // OPTIONDIALOG_H