Move preferences dialog layout code into separate ui file
[vlp.git] / src / edit / PreferencesDialog.cpp
1 #include "PreferencesDialog.h"
2
3 PreferencesDialog::PreferencesDialog(QWidget * parent)
4         : QDialog(parent)
5 {
6         setupUi(this);
7
8         connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
9         connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
10 }
11
12 PreferencesDialog::~PreferencesDialog()
13 {
14 }
15
16 QString PreferencesDialog::getCompilerPath()
17 {
18         return compilerPath->text();
19 }
20
21 void PreferencesDialog::setCompilerPath(QString path)
22 {
23         return compilerPath->setText(path);
24 }
25
26 QString PreferencesDialog::getFilesPath()
27 {
28         return filesPath->text();
29 }
30
31 void PreferencesDialog::setFilesPath(QString path)
32 {
33         return filesPath->setText(path);
34 }
35
36 QString PreferencesDialog::getGenPath()
37 {
38         return genPath->text();
39 }
40
41 void PreferencesDialog::setGenPath(QString path)
42 {
43         return genPath->setText(path);
44 }