diff options
author | Arno <arno@disconnect.de> | 2016-10-16 00:26:48 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-10-16 00:26:48 +0200 |
commit | 4bbcd75f1ff29c8dbd9befcbe8913587d35a3ed0 (patch) | |
tree | 2d6fdbb21258aa02ae192eae13b281b035566d0b /newpicsdialog.h | |
parent | 0da05ce76ab01a4bc8debde448905e0c83611792 (diff) | |
download | SheMov-4bbcd75f1ff29c8dbd9befcbe8913587d35a3ed0.tar.gz SheMov-4bbcd75f1ff29c8dbd9befcbe8913587d35a3ed0.tar.bz2 SheMov-4bbcd75f1ff29c8dbd9befcbe8913587d35a3ed0.zip |
Add Next> to NewPicsDialog
Make archiving various pictures easier. When NewPicsDialog is calles
with a directory, the Next> button archives the current pic and selects
the next.
Diffstat (limited to 'newpicsdialog.h')
-rw-r--r-- | newpicsdialog.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/newpicsdialog.h b/newpicsdialog.h index d526e58..79a6acb 100644 --- a/newpicsdialog.h +++ b/newpicsdialog.h @@ -19,6 +19,7 @@ class QLabel; class QMenu; class SmTreeView; class NewPicFilesModel; +class PictureViewer2; class QSortFilterProxyModel; class MappingTreeWidget; class MappingEditWidget; @@ -35,11 +36,15 @@ class NewPicsDialog : public QDialog { void removeFiles(); void addFiles(const QStringList &files); void setFile(const QString &file); + void setDir(const QString &dir); void clearFiles(); void setFocusToMappings(); + void setNextPic(); + void next(); void accept(); private slots: + void archive(); void writeSettings(); void readSettings(); @@ -55,8 +60,11 @@ class NewPicsDialog : public QDialog { QPushButton *mRemoveFiles; QPushButton *mOk; QPushButton *mCancel; + QPushButton *mNext; QSqlDatabase mDb; QPoint mPos; + QStringList mFiles; + int mFilesCtr; }; class NewPicFilesModel : public SmTreeModel { |