~ubuntu-branches/ubuntu/precise/gwenview/precise-proposed

« back to all changes in this revision

Viewing changes to importer/thumbnailpage.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:54 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20111215141754-z043hyx69dulbggf
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// vim: set tabstop=4 shiftwidth=4 noexpandtab:
 
1
// vim: set tabstop=4 shiftwidth=4 expandtab:
2
2
/*
3
3
Gwenview: an image viewer
4
4
Copyright 2009 Aurélien Gâteau <agateau@kde.org>
31
31
// Local
32
32
#include "documentdirfinder.h"
33
33
 
34
 
namespace Gwenview {
35
 
 
 
34
namespace Gwenview
 
35
{
36
36
 
37
37
class ThumbnailPagePrivate;
38
 
class ThumbnailPage : public QWidget {
39
 
        Q_OBJECT
 
38
class ThumbnailPage : public QWidget
 
39
{
 
40
    Q_OBJECT
40
41
public:
41
 
        ThumbnailPage();
42
 
        ~ThumbnailPage();
43
 
 
44
 
        /**
45
 
         * Returns the list of urls to import
46
 
         * Only valid after importRequested() has been emitted
47
 
         */
48
 
        KUrl::List urlList() const;
49
 
 
50
 
        KUrl destinationUrl() const;
51
 
        void setDestinationUrl(const KUrl&);
52
 
 
53
 
        void setSourceUrl(const KUrl&);
 
42
    ThumbnailPage();
 
43
    ~ThumbnailPage();
 
44
 
 
45
    /**
 
46
     * Returns the list of urls to import
 
47
     * Only valid after importRequested() has been emitted
 
48
     */
 
49
    KUrl::List urlList() const;
 
50
 
 
51
    KUrl destinationUrl() const;
 
52
    void setDestinationUrl(const KUrl&);
 
53
 
 
54
    void setSourceUrl(const KUrl&);
54
55
 
55
56
Q_SIGNALS:
56
 
        void importRequested();
57
 
        void rejected();
 
57
    void importRequested();
 
58
    void rejected();
58
59
 
59
60
private Q_SLOTS:
60
 
        void slotImportSelected();
61
 
        void slotImportAll();
62
 
        void updateImportButtons();
63
 
        void slotThumbnailViewIndexActivated(const QModelIndex&);
64
 
        void openUrl(const KUrl&);
65
 
        void slotDocumentDirFinderDone(const KUrl& url, DocumentDirFinder::Status status);
66
 
        void showConfigDialog();
 
61
    void slotImportSelected();
 
62
    void slotImportAll();
 
63
    void updateImportButtons();
 
64
    void slotThumbnailViewIndexActivated(const QModelIndex&);
 
65
    void openUrl(const KUrl&);
 
66
    void slotDocumentDirFinderDone(const KUrl& url, DocumentDirFinder::Status status);
 
67
    void showConfigDialog();
67
68
 
68
69
private:
69
 
        friend class ThumbnailPagePrivate;
70
 
        ThumbnailPagePrivate* const d;
71
 
        void importList(const QModelIndexList&);
 
70
    friend class ThumbnailPagePrivate;
 
71
    ThumbnailPagePrivate* const d;
 
72
    void importList(const QModelIndexList&);
72
73
};
73
74
 
74
 
 
75
75
} // namespace
76
76
 
77
77
#endif /* THUMBNAILPAGE_H */