summaryrefslogtreecommitdiffstats
path: root/archiveview.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-06-02 11:24:06 +0200
committerArno <am@disconnect.de>2013-06-02 11:24:06 +0200
commit721fd40222440c6e8a81f4379f894d8908772a8a (patch)
treea7b54efd2ec9168efb4c7ae8e49851430b84a1b6 /archiveview.h
parent459f58c57bfa1021783134b11853e8e4140055f3 (diff)
downloadSheMov-721fd40222440c6e8a81f4379f894d8908772a8a.tar.gz
SheMov-721fd40222440c6e8a81f4379f894d8908772a8a.tar.bz2
SheMov-721fd40222440c6e8a81f4379f894d8908772a8a.zip
Implement Rename
Rename items: spits out an error message if the new item already exists.
Diffstat (limited to 'archiveview.h')
-rw-r--r--archiveview.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/archiveview.h b/archiveview.h
index 33969d9..850794c 100644
--- a/archiveview.h
+++ b/archiveview.h
@@ -36,9 +36,11 @@ class ArchiveView : public QWidget {
// center of the main window...
void setConstructingDone() { mConstructing = false; }
ArchiveModel *archiveModel() { return mArchiveModel; }
+ ArchiveTree *archiveTree() { return mTree; }
QWidget *progressDialog();
public slots:
+ void refreshArchive();
void setExpanded();
private slots:
@@ -46,6 +48,7 @@ class ArchiveView : public QWidget {
void clearFilter();
void collectorStarted();
void collectorFinished();
+ void showDatabaseError(const QString &errorMsg);
void expandItem(const QModelIndex &idx);
void collapseItem(const QModelIndex &idx);
@@ -62,11 +65,16 @@ class ArchiveView : public QWidget {
};
class ArchiveTree : public SmTreeView {
+ Q_OBJECT
public:
explicit ArchiveTree(QWidget *parent = 0);
+ virtual void setModel(ArchiveProxy *model);
+
+ public slots:
+ void rename();
private:
- QSortFilterProxyModel *mProxy;
+ ArchiveProxy *mProxy;
ArchiveModel *mModel;
};