author | leseb <leseb> | 2002-06-10 20:24:06 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-06-10 20:24:06 (UTC) |
commit | 743296b2abaa9278ce7b83ebde55fbf2c198e218 (patch) (side-by-side diff) | |
tree | 22776ec0e2921fc36a61c9522e8a105e7a3eba13 /noncore/graphics/drawpad/thumbnailview.h | |
parent | 4e125ad47285d36a4be02e8b20b6fa36e387c1bc (diff) | |
download | opie-743296b2abaa9278ce7b83ebde55fbf2c198e218.zip opie-743296b2abaa9278ce7b83ebde55fbf2c198e218.tar.gz opie-743296b2abaa9278ce7b83ebde55fbf2c198e218.tar.bz2 |
Thumbnail view ready for page attributes
Diffstat (limited to 'noncore/graphics/drawpad/thumbnailview.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/thumbnailview.h | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/noncore/graphics/drawpad/thumbnailview.h b/noncore/graphics/drawpad/thumbnailview.h index eb748fa..88c3b27 100644 --- a/noncore/graphics/drawpad/thumbnailview.h +++ b/noncore/graphics/drawpad/thumbnailview.h @@ -14,8 +14,8 @@ #ifndef THUMBNAILVIEW_H #define THUMBNAILVIEW_H +#include <qlistbox.h> #include <qwidget.h> -#include <qlistview.h> class DrawPad; class DrawPadCanvas; @@ -23,32 +23,41 @@ class Page; class QToolButton; -class PageListViewItem : public QListViewItem +class PageListBoxItem : public QListBoxItem { public: - PageListViewItem(Page* page, QListView* parent); - ~PageListViewItem(); + PageListBoxItem(Page* page, QListBox* parent); + ~PageListBoxItem(); + + int height(const QListBox* lb) const; + int width(const QListBox* lb) const; + void paint(QPainter *painter); Page* page() const; private: Page* m_pPage; + + QPixmap m_thumbnail; + + QString m_titleText; + QString m_dimensionText; + QString m_dateTimeText; + + QColor m_alternateColor; }; -class PageListView : public QListView +class PageListBox : public QListBox { public: - PageListView(DrawPadCanvas* drawPadCanvas, QWidget* parent = 0, const char* name = 0); - ~PageListView(); + PageListBox(DrawPadCanvas* drawPadCanvas, QWidget* parent = 0, const char* name = 0); + ~PageListBox(); void updateView(); void select(Page* page); Page* selected() const; -protected: - void resizeEvent(QResizeEvent* e); - private: DrawPadCanvas* m_pDrawPadCanvas; }; @@ -83,7 +92,7 @@ private: QToolButton* m_pMovePageUpButton; QToolButton* m_pMovePageDownButton; - PageListView* m_pPageListView; + PageListBox* m_pPageListBox; }; #endif // THUMBNAILVIEW_H |