From cee09c07899dfec32672e7e2d175972530a7dfd4 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 4 Aug 2012 18:19:19 +0200 Subject: this bit is nowhere near finished but I'm pushing it so I can pull on my netbook --- lslayoutwindow.cpp | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 lslayoutwindow.cpp (limited to 'lslayoutwindow.cpp') 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 +#include +#include + +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"); +} + + -- cgit v1.2.3