Move preferences dialog layout code into separate ui file
[vlp.git] / src / edit / PreferencesDialog.cpp
diff --git a/src/edit/PreferencesDialog.cpp b/src/edit/PreferencesDialog.cpp
new file mode 100644 (file)
index 0000000..4e7d3a0
--- /dev/null
@@ -0,0 +1,44 @@
+#include "PreferencesDialog.h"
+
+PreferencesDialog::PreferencesDialog(QWidget * parent)
+       : QDialog(parent)
+{
+       setupUi(this);
+
+       connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
+       connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
+}
+
+PreferencesDialog::~PreferencesDialog()
+{
+}
+
+QString PreferencesDialog::getCompilerPath()
+{
+       return compilerPath->text();
+}
+
+void PreferencesDialog::setCompilerPath(QString path)
+{
+       return compilerPath->setText(path);
+}
+
+QString PreferencesDialog::getFilesPath()
+{
+       return filesPath->text();
+}
+
+void PreferencesDialog::setFilesPath(QString path)
+{
+       return filesPath->setText(path);
+}
+
+QString PreferencesDialog::getGenPath()
+{
+       return genPath->text();
+}
+
+void PreferencesDialog::setGenPath(QString path)
+{
+       return genPath->setText(path);
+}