Diffstat (limited to 'noncore/graphics/drawpad/thumbnailview.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/graphics/drawpad/thumbnailview.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/graphics/drawpad/thumbnailview.h b/noncore/graphics/drawpad/thumbnailview.h index ae97ff1..9417655 100644 --- a/noncore/graphics/drawpad/thumbnailview.h +++ b/noncore/graphics/drawpad/thumbnailview.h | |||
@@ -31,43 +31,45 @@ public: | |||
31 | private: | 31 | private: |
32 | Page* m_pPage; | 32 | Page* m_pPage; |
33 | }; | 33 | }; |
34 | 34 | ||
35 | class PageListView : public QListView | 35 | class PageListView : public QListView |
36 | { | 36 | { |
37 | public: | 37 | public: |
38 | PageListView(DrawPadCanvas* drawPadCanvas, QWidget* parent = 0, const char* name = 0); | 38 | PageListView(DrawPadCanvas* drawPadCanvas, QWidget* parent = 0, const char* name = 0); |
39 | ~PageListView(); | 39 | ~PageListView(); |
40 | 40 | ||
41 | void updateView(); | 41 | void updateView(); |
42 | 42 | ||
43 | void select(Page* page); | ||
43 | Page* selected() const; | 44 | Page* selected() const; |
44 | 45 | ||
45 | protected: | 46 | protected: |
46 | void resizeEvent(QResizeEvent* e); | 47 | void resizeEvent(QResizeEvent* e); |
47 | 48 | ||
48 | private: | 49 | private: |
49 | DrawPadCanvas* m_pDrawPadCanvas; | 50 | DrawPadCanvas* m_pDrawPadCanvas; |
50 | }; | 51 | }; |
51 | 52 | ||
52 | class ThumbnailView : public QWidget | 53 | class ThumbnailView : public QWidget |
53 | { | 54 | { |
54 | Q_OBJECT | 55 | Q_OBJECT |
55 | 56 | ||
56 | public: | 57 | public: |
57 | ThumbnailView(DrawPadCanvas* drawPadCanvas, QWidget* parent = 0, const char* name = 0); | 58 | ThumbnailView(DrawPadCanvas* drawPadCanvas, QWidget* parent = 0, const char* name = 0); |
58 | ~ThumbnailView(); | 59 | ~ThumbnailView(); |
59 | 60 | ||
60 | void hide(); | 61 | void hide(); |
61 | void exec(); | 62 | void exec(); |
62 | 63 | ||
63 | public slots: | 64 | public slots: |
64 | void deletePage(); | 65 | void deletePage(); |
66 | void changePage(); | ||
65 | 67 | ||
66 | private: | 68 | private: |
67 | bool inLoop; | 69 | bool inLoop; |
68 | DrawPadCanvas* m_pDrawPadCanvas; | 70 | DrawPadCanvas* m_pDrawPadCanvas; |
69 | 71 | ||
70 | PageListView* m_pPageListView; | 72 | PageListView* m_pPageListView; |
71 | }; | 73 | }; |
72 | 74 | ||
73 | #endif // THUMBNAILVIEW_H | 75 | #endif // THUMBNAILVIEW_H |