-rw-r--r-- | noncore/graphics/opie-eye/gui/imageinfoui.cpp | 2 | ||||
-rw-r--r-- | noncore/graphics/opie-eye/gui/imageinfoui.h | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/noncore/graphics/opie-eye/gui/imageinfoui.cpp b/noncore/graphics/opie-eye/gui/imageinfoui.cpp index 039dfa3..d56d65a 100644 --- a/noncore/graphics/opie-eye/gui/imageinfoui.cpp +++ b/noncore/graphics/opie-eye/gui/imageinfoui.cpp | |||
@@ -54,25 +54,25 @@ Opie::Ui::OKeyConfigManager* imageinfo::manager() | |||
54 | } | 54 | } |
55 | 55 | ||
56 | void imageinfo::initKeys() | 56 | void imageinfo::initKeys() |
57 | { | 57 | { |
58 | odebug << "init imageinfo keys" << oendl; | 58 | odebug << "init imageinfo keys" << oendl; |
59 | m_cfg = new Opie::Core::OConfig("phunkview"); | 59 | m_cfg = new Opie::Core::OConfig("phunkview"); |
60 | m_cfg->setGroup("Zecke_view" ); | 60 | m_cfg->setGroup("Zecke_view" ); |
61 | Opie::Ui::OKeyPair::List lst; | 61 | Opie::Ui::OKeyPair::List lst; |
62 | lst.append( Opie::Ui::OKeyPair::upArrowKey() ); | 62 | lst.append( Opie::Ui::OKeyPair::upArrowKey() ); |
63 | lst.append( Opie::Ui::OKeyPair::downArrowKey() ); | 63 | lst.append( Opie::Ui::OKeyPair::downArrowKey() ); |
64 | lst.append( Opie::Ui::OKeyPair::leftArrowKey() ); | 64 | lst.append( Opie::Ui::OKeyPair::leftArrowKey() ); |
65 | lst.append( Opie::Ui::OKeyPair::rightArrowKey() ); | 65 | lst.append( Opie::Ui::OKeyPair::rightArrowKey() ); |
66 | // lst.append( Opie::Ui::OKeyPair::returnKey() ); | 66 | lst.append( Opie::Ui::OKeyPair::returnKey() ); |
67 | 67 | ||
68 | m_viewManager = new Opie::Ui::OKeyConfigManager(m_cfg, "Imageinfo-KeyBoard-Config", | 68 | m_viewManager = new Opie::Ui::OKeyConfigManager(m_cfg, "Imageinfo-KeyBoard-Config", |
69 | lst, false,this, "keyconfig name" ); | 69 | lst, false,this, "keyconfig name" ); |
70 | m_viewManager->addKeyConfig( Opie::Ui::OKeyConfigItem(tr("View Full Image"), "view", | 70 | m_viewManager->addKeyConfig( Opie::Ui::OKeyConfigItem(tr("View Full Image"), "view", |
71 | Resource::loadPixmap("1to1"), ViewItem, | 71 | Resource::loadPixmap("1to1"), ViewItem, |
72 | Opie::Ui::OKeyPair(Qt::Key_V, Qt::ShiftButton), | 72 | Opie::Ui::OKeyPair(Qt::Key_V, Qt::ShiftButton), |
73 | this, SLOT(slotShowImage()))); | 73 | this, SLOT(slotShowImage()))); |
74 | m_viewManager->load(); | 74 | m_viewManager->load(); |
75 | m_viewManager->handleWidget( this ); | 75 | m_viewManager->handleWidget( this ); |
76 | m_viewManager->handleWidget( TextView1 ); | 76 | m_viewManager->handleWidget( TextView1 ); |
77 | } | 77 | } |
78 | 78 | ||
diff --git a/noncore/graphics/opie-eye/gui/imageinfoui.h b/noncore/graphics/opie-eye/gui/imageinfoui.h index 0a5e183..0ffa423 100644 --- a/noncore/graphics/opie-eye/gui/imageinfoui.h +++ b/noncore/graphics/opie-eye/gui/imageinfoui.h | |||
@@ -22,35 +22,36 @@ namespace Opie { | |||
22 | } | 22 | } |
23 | 23 | ||
24 | class imageinfo : public QWidget | 24 | class imageinfo : public QWidget |
25 | { | 25 | { |
26 | Q_OBJECT | 26 | Q_OBJECT |
27 | enum ActionIds { | 27 | enum ActionIds { |
28 | ViewItem | 28 | ViewItem |
29 | }; | 29 | }; |
30 | 30 | ||
31 | public: | 31 | public: |
32 | imageinfo( QWidget* parent = 0, const char* name = 0, WFlags fl =0); | 32 | imageinfo( QWidget* parent = 0, const char* name = 0, WFlags fl =0); |
33 | imageinfo(const QString&_path, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 33 | imageinfo(const QString&_path, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
34 | ~imageinfo(); | 34 | virtual ~imageinfo(); |
35 | 35 | ||
36 | void setDestructiveClose(); | 36 | void setDestructiveClose(); |
37 | Opie::Ui::OKeyConfigManager* manager(); | 37 | Opie::Ui::OKeyConfigManager* manager(); |
38 | 38 | ||
39 | signals: | 39 | signals: |
40 | void dispImage(const QString&); | 40 | void dispImage(const QString&); |
41 | void sig_return(); | ||
41 | 42 | ||
42 | public slots: | 43 | public slots: |
43 | void setPath( const QString& path ); | 44 | virtual void setPath( const QString& path ); |
44 | void slotShowImage(); | 45 | virtual void slotShowImage(); |
45 | 46 | ||
46 | private: | 47 | private: |
47 | void init(const char* name); | 48 | void init(const char* name); |
48 | 49 | ||
49 | protected: | 50 | protected: |
50 | QLabel* PixmapLabel1; | 51 | QLabel* PixmapLabel1; |
51 | QLabel* fnameLabel; | 52 | QLabel* fnameLabel; |
52 | QFrame* Line1; | 53 | QFrame* Line1; |
53 | QTextView* TextView1; | 54 | QTextView* TextView1; |
54 | QVBoxLayout* imageinfoLayout; | 55 | QVBoxLayout* imageinfoLayout; |
55 | QString currentFile; | 56 | QString currentFile; |
56 | 57 | ||