author | leseb <leseb> | 2002-06-07 20:30:30 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-06-07 20:30:30 (UTC) |
commit | 9dcd598f9b815511cae884d26b18e3c8913b9fcf (patch) (side-by-side diff) | |
tree | 4b18e7fa7c864b2dca4da76bc89c2a975e80a73c /noncore/graphics/drawpad/thumbnailview.h | |
parent | 640d964cfdc7467f6cacb513087cd3acda2c04f0 (diff) | |
download | opie-9dcd598f9b815511cae884d26b18e3c8913b9fcf.zip opie-9dcd598f9b815511cae884d26b18e3c8913b9fcf.tar.gz opie-9dcd598f9b815511cae884d26b18e3c8913b9fcf.tar.bz2 |
Make progress in thumbnail view
Diffstat (limited to 'noncore/graphics/drawpad/thumbnailview.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/thumbnailview.h | 51 |
1 files changed, 42 insertions, 9 deletions
diff --git a/noncore/graphics/drawpad/thumbnailview.h b/noncore/graphics/drawpad/thumbnailview.h index c74730d..ae97ff1 100644 --- a/noncore/graphics/drawpad/thumbnailview.h +++ b/noncore/graphics/drawpad/thumbnailview.h @@ -13,28 +13,61 @@ #ifndef THUMBNAILVIEW_H #define THUMBNAILVIEW_H -#include <qdialog.h> +#include <qwidget.h> +#include <qlistview.h> -#include <qlist.h> +class DrawPadCanvas; +class Page; + +class PageListViewItem : public QListViewItem +{ +public: + PageListViewItem(Page* page, QListView* parent); + ~PageListViewItem(); -class QListView; + Page* page() const; -class Page; +private: + Page* m_pPage; +}; + +class PageListView : public QListView +{ +public: + PageListView(DrawPadCanvas* drawPadCanvas, QWidget* parent = 0, const char* name = 0); + ~PageListView(); + + void updateView(); -class ThumbnailView : public QDialog + Page* selected() const; + +protected: + void resizeEvent(QResizeEvent* e); + +private: + DrawPadCanvas* m_pDrawPadCanvas; +}; + +class ThumbnailView : public QWidget { Q_OBJECT public: - ThumbnailView(QList<Page> pages, QWidget* parent = 0, const char* name = 0); + ThumbnailView(DrawPadCanvas* drawPadCanvas, QWidget* parent = 0, const char* name = 0); ~ThumbnailView(); -protected: - void resizeEvent(QResizeEvent* e); + void hide(); + void exec(); + +public slots: + void deletePage(); private: - QListView* m_pListView; + bool inLoop; + DrawPadCanvas* m_pDrawPadCanvas; + + PageListView* m_pPageListView; }; #endif // THUMBNAILVIEW_H |