Diffstat (limited to 'noncore/graphics/opie-eye/gui/iconview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/iconview.h | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/noncore/graphics/opie-eye/gui/iconview.h b/noncore/graphics/opie-eye/gui/iconview.h index 439833a..0fba327 100644 --- a/noncore/graphics/opie-eye/gui/iconview.h +++ b/noncore/graphics/opie-eye/gui/iconview.h | |||
@@ -8,7 +8,6 @@ | |||
8 | 8 | ||
9 | #include <qvbox.h> | 9 | #include <qvbox.h> |
10 | 10 | ||
11 | #include <qpe/config.h> | ||
12 | 11 | ||
13 | class QIconView; | 12 | class QIconView; |
14 | class QIconViewItem; | 13 | class QIconViewItem; |
@@ -16,15 +15,30 @@ class QComboBox; | |||
16 | class PIconViewItem; | 15 | class PIconViewItem; |
17 | class PDirLister; | 16 | class PDirLister; |
18 | class Ir; | 17 | class Ir; |
18 | |||
19 | namespace Opie { | ||
20 | namespace Core{ | ||
21 | class OConfig; | ||
22 | } | ||
23 | namespace Ui { | ||
24 | class OKeyConfigManager; | ||
25 | } | ||
26 | } | ||
27 | |||
19 | class PIconView : public QVBox { | 28 | class PIconView : public QVBox { |
20 | Q_OBJECT | 29 | Q_OBJECT |
21 | friend class PIconViewItem; | 30 | friend class PIconViewItem; |
31 | enum ActionIds { | ||
32 | BeamItem, DeleteItem, ViewItem, InfoItem | ||
33 | }; | ||
22 | public: | 34 | public: |
23 | PIconView( QWidget* wid, Config *cfg ); | 35 | PIconView( QWidget* wid, Opie::Core::OConfig *cfg ); |
24 | ~PIconView(); | 36 | ~PIconView(); |
25 | void resetView(); | 37 | void resetView(); |
38 | Opie::Ui::OKeyConfigManager* manager(); | ||
26 | 39 | ||
27 | private: | 40 | private: |
41 | void initKeys(); | ||
28 | QString currentFileName(bool &isDir)const; | 42 | QString currentFileName(bool &isDir)const; |
29 | void loadViews(); | 43 | void loadViews(); |
30 | 44 | ||
@@ -38,6 +52,11 @@ private slots: | |||
38 | void slotBeam(); | 52 | void slotBeam(); |
39 | void slotBeamDone( Ir* ); | 53 | void slotBeamDone( Ir* ); |
40 | 54 | ||
55 | void slotShowImage(); | ||
56 | void slotShowImage( const QString& ); | ||
57 | void slotImageInfo(); | ||
58 | void slotImageInfo( const QString& ); | ||
59 | |||
41 | void slotStart(); | 60 | void slotStart(); |
42 | void slotEnd(); | 61 | void slotEnd(); |
43 | 62 | ||
@@ -50,7 +69,8 @@ private slots: | |||
50 | void slotThumbInfo(const QString&, const QString&); | 69 | void slotThumbInfo(const QString&, const QString&); |
51 | void slotThumbNail(const QString&, const QPixmap&); | 70 | void slotThumbNail(const QString&, const QPixmap&); |
52 | private: | 71 | private: |
53 | Config *m_cfg; | 72 | Opie::Ui::OKeyConfigManager *m_viewManager; |
73 | Opie::Core::OConfig *m_cfg; | ||
54 | QComboBox* m_views; | 74 | QComboBox* m_views; |
55 | QIconView* m_view; | 75 | QIconView* m_view; |
56 | QString m_path; | 76 | QString m_path; |