#ifndef LSLAYOUTWINDOW_H #define LSLAYOUTWINDOW_H #include #include #include #include #include #include #include #include #include #include "lyt/packagebase.h" #include "lyt/layout.h" class LSPaneEditor; class LGLWidget; 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; LGLWidget *m_renderer; QTabWidget *m_tabWidget; // settings QDoubleSpinBox *m_widthBox, *m_heightBox; // scene graph QSplitter *m_sceneSplitter; QStackedLayout *m_sceneListSwitcher; QLineEdit *m_searchBox; QPushButton *m_clearSearchButton; QTreeView *m_sceneGraph; QListView *m_sceneSearchList; QStackedLayout *m_paneEditorSwitcher; LSPaneEditor *m_paneEditor; bool m_loadingSettings; private slots: void handleWidthChanged(double v); void handleHeightChanged(double v); void selectedPaneChanged(const QModelIndex ¤t, const QModelIndex &previous); signals: public slots: }; #endif // LSLAYOUTWINDOW_H