summaryrefslogtreecommitdiff
path: root/lsmainwindow.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-08-03 05:16:52 +0200
committerTreeki <treeki@gmail.com>2012-08-03 05:16:52 +0200
commit7a183cfa367db01413c001306741d06e1826d077 (patch)
treee50e2e222ddf924e4d868e79ed87a0ced85d01e1 /lsmainwindow.h
parentebcc95da4c26369511caa90d89c5ed06e1e4853a (diff)
downloadLayoutStudio-7a183cfa367db01413c001306741d06e1826d077.tar.gz
LayoutStudio-7a183cfa367db01413c001306741d06e1826d077.zip
might as well push all this. a massive amount of changes
Diffstat (limited to 'lsmainwindow.h')
-rw-r--r--lsmainwindow.h40
1 files changed, 37 insertions, 3 deletions
diff --git a/lsmainwindow.h b/lsmainwindow.h
index 18d694d..f989e7a 100644
--- a/lsmainwindow.h
+++ b/lsmainwindow.h
@@ -18,18 +18,52 @@
#ifndef LSMAINWINDOW_H
#define LSMAINWINDOW_H
-#include "ui_lsmainwindow.h"
+#include "lyt/packagebase.h"
+#include "lspackagemodel.h"
+#include <QMainWindow>
+#include <QTreeView>
+#include <QSignalMapper>
class LSMainWindow : public QMainWindow {
Q_OBJECT
public:
LSMainWindow(QWidget *parent = 0);
+ ~LSMainWindow();
protected:
- void changeEvent(QEvent *e);
+ bool ensureSaved();
+
+public:
+ void updateTitleBar();
+
+public slots:
+ void newArchive();
+ void openArchive();
+ void save();
+ void saveArchiveAs();
+
+private slots:
+ void handleAddSomething(int whatToAdd);
private:
- Ui::LSMainWindow ui;
+ LYTPackageBase *m_package;
+ void setCurrentPackage(LYTPackageBase *pkg);
+
+ void createActions();
+ QAction *m_newArchiveAction, *m_openArchiveAction, *m_saveArchiveAsAction;
+ QAction *m_saveAction;
+
+ QAction *m_addLayoutAction, *m_addAnimationAction;
+ QAction *m_addTextureAction;
+ QSignalMapper *m_addActionMapper;
+ QAction *m_importNewAction, *m_importAction;
+ QAction *m_renameAction, *m_removeAction, *m_exportAction;
+
+ LSPackageModel *m_model;
+ QTreeView *m_view;
+
+ bool m_dirty;
+ bool m_isSaved;
};
#endif // LSMAINWINDOW_H