summaryrefslogtreecommitdiff
path: root/lslayoutwindow.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-08-04 18:19:19 +0200
committerTreeki <treeki@gmail.com>2012-08-04 18:19:19 +0200
commitcee09c07899dfec32672e7e2d175972530a7dfd4 (patch)
treeb3e4b1a0960ed1b95e2b838b5bfa4b9f132ff2c8 /lslayoutwindow.cpp
parent362976328ecb796d670b32af924f76e25922cb78 (diff)
downloadLayoutStudio-cee09c07899dfec32672e7e2d175972530a7dfd4.tar.gz
LayoutStudio-cee09c07899dfec32672e7e2d175972530a7dfd4.zip
this bit is nowhere near finished but I'm pushing it so I can pull on my netbook
Diffstat (limited to '')
-rw-r--r--lslayoutwindow.cpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/lslayoutwindow.cpp b/lslayoutwindow.cpp
new file mode 100644
index 0000000..25baf41
--- /dev/null
+++ b/lslayoutwindow.cpp
@@ -0,0 +1,46 @@
+#include "lslayoutwindow.h"
+#include <QGridLayout>
+#include <QFormLayout>
+#include <QGroupBox>
+
+LSLayoutWindow::LSLayoutWindow(LYTPackageBase *pkg, const QString &layoutName, QWidget *parent) :
+ QMainWindow(parent) {
+
+ m_layoutName = layoutName;
+ m_package = pkg;
+
+
+ m_tabWidget = new QTabWidget(this);
+ setCentralWidget(m_tabWidget);
+
+ QWidget *w;
+
+ // prepare the Settings tab
+ w = new QWidget(this);
+ QGridLayout *sgrid = new QGridLayout(w);
+
+ QGroupBox *sizeGroup = new QGroupBox("Layout Size", this);
+ sgrid->addWidget(sizeGroup, 0, 0, 1, 2);
+
+ QFormLayout *sizeForm = new QFormLayout(sizeGroup);
+
+ m_widthBox = new QDoubleSpinBox(this);
+ m_widthBox->setRange(0.0, 1000.0);
+ m_heightBox = new QDoubleSpinBox(this);
+ m_heightBox->setRange(0.0, 1000.0);
+
+ sizeForm->addRow("Width", m_widthBox);
+ sizeForm->addRow("Height", m_heightBox);
+
+
+ QGroupBox *matGroup = new QGroupBox("Materials", this);
+ QGroupBox *grpGroup = new QGroupBox("Groups", this);
+
+ sgrid->addWidget(matGroup, 1, 0, 1, 1);
+ sgrid->addWidget(grpGroup, 1, 1, 1, 1);
+ sgrid->setRowStretch(1, 1);
+
+ m_tabWidget->addTab(w, "Settings");
+}
+
+