summaryrefslogtreecommitdiff
path: root/lspackagemodel.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-12 14:57:44 +0200
committerTreeki <treeki@gmail.com>2012-09-12 14:57:44 +0200
commit3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10 (patch)
treed10e8cd4e462db28dd3c2f995905c4df57a20fed /lspackagemodel.h
parentbe8b56a7f0a8f6ba5456a099b61d032fd8aa2f61 (diff)
downloadLayoutStudio-3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10.tar.gz
LayoutStudio-3189ca5efc5826405bf2e9c7d9949ad5ea9a8a10.zip
initial un-exporter version
Diffstat (limited to 'lspackagemodel.h')
-rw-r--r--lspackagemodel.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/lspackagemodel.h b/lspackagemodel.h
deleted file mode 100644
index 58ad62d..0000000
--- a/lspackagemodel.h
+++ /dev/null
@@ -1,45 +0,0 @@
-#ifndef LSPACKAGEMODEL_H
-#define LSPACKAGEMODEL_H
-
-#include <QAbstractItemModel>
-#include "lyt/packagebase.h"
-
-class LSPackageModel : public QAbstractItemModel {
- Q_OBJECT
-public:
- explicit LSPackageModel(LYTPackageBase *pkg, QObject *parent = 0);
- ~LSPackageModel();
-
- LYTPackageBase *package() const { return m_package; }
-
- QModelIndex index(int row, int column, const QModelIndex &parent) const;
- QModelIndex parent(const QModelIndex &child) const;
- int rowCount(const QModelIndex &parent) const;
- int columnCount(const QModelIndex &parent) const;
- QVariant data(const QModelIndex &index, int role) const;
-
- QString itemNameForIndex(const QModelIndex &index) const;
- LYTPackageBase::ItemType itemTypeForIndex(const QModelIndex &index) const;
-
-signals:
-
-private slots:
- //void handleAboutToAddFile(LYTPackageBase::ItemType type, QString name);
- //void handleAboutToRemoveFile(LYTPackageBase::ItemType type, QString name);
- //void handleAboutToRenameFile(LYTPackageBase::ItemType type, QString from, QString to);
- //void handleAboutToModifyFile(LYTPackageBase::ItemType type, QString name);
-
- void handleFileWasAdded(LYTPackageBase::ItemType type, QString name);
- void handleFileWasRemoved(LYTPackageBase::ItemType type, QString name);
- void handleFileWasRenamed(LYTPackageBase::ItemType type, QString from, QString to);
- //void handleFileWasModified(LYTPackageBase::ItemType type, QString name);
-
-public slots:
-
-protected:
- LYTPackageBase *m_package;
-
- QStringList *m_caches;
-};
-
-#endif // LSPACKAGEMODEL_H