diff options
author | Treeki <treeki@gmail.com> | 2012-08-05 17:35:52 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-08-05 17:35:52 +0200 |
commit | 3b2fb505d58f28f0ce9b4de121f12fc924c1ec0c (patch) | |
tree | 2f6a0303927dbb2b16205e74034255cb70a7d1d4 /lslayoutwindow.h | |
parent | cee09c07899dfec32672e7e2d175972530a7dfd4 (diff) | |
download | LayoutStudio-3b2fb505d58f28f0ce9b4de121f12fc924c1ec0c.tar.gz LayoutStudio-3b2fb505d58f28f0ce9b4de121f12fc924c1ec0c.zip |
getting further... basic read-only Scene Graph model/widget
Diffstat (limited to '')
-rw-r--r-- | lslayoutwindow.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/lslayoutwindow.h b/lslayoutwindow.h index 51158a0..e83a034 100644 --- a/lslayoutwindow.h +++ b/lslayoutwindow.h @@ -4,25 +4,46 @@ #include <QMainWindow> #include <QTabWidget> #include <QDoubleSpinBox> +#include <QTreeView> +#include <QStackedLayout> +#include <QPushButton> +#include <QLineEdit> +#include <QListView> #include "lyt/packagebase.h" +#include "lyt/layout.h" class LSLayoutWindow : public QMainWindow { Q_OBJECT public: explicit LSLayoutWindow(LYTPackageBase *pkg, const QString &layoutName, QWidget *parent = 0); + ~LSLayoutWindow(); QString layoutName() const { return m_layoutName; } // TODO: set layoutname method + LYTLayout *editedLayout() const { return m_layout; } + private: QString m_layoutName; LYTPackageBase *m_package; + LYTLayout *m_layout; QTabWidget *m_tabWidget; // settings QDoubleSpinBox *m_widthBox, *m_heightBox; - + + // scene graph + QStackedLayout *m_sceneListSwitcher; + QLineEdit *m_searchBox; + QPushButton *m_clearSearchButton; + QTreeView *m_sceneGraph; + QListView *m_sceneSearchList; + +private slots: + void handleWidthChanged(double v); + void handleHeightChanged(double v); + signals: public slots: |