summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye/gui/imageinfoui.cpp
authorzecke <zecke>2004-04-13 14:53:58 (UTC)
committer zecke <zecke>2004-04-13 14:53:58 (UTC)
commitb51d88d7b0b517b71ae3b59d8228335f38ca9fc7 (patch) (unidiff)
tree302377973a897934c944c7a126e5e0a510694979 /noncore/graphics/opie-eye/gui/imageinfoui.cpp
parentc4c842558e1457f64d43b237f24f6ea1a4f9d76b (diff)
downloadopie-b51d88d7b0b517b71ae3b59d8228335f38ca9fc7.zip
opie-b51d88d7b0b517b71ae3b59d8228335f38ca9fc7.tar.gz
opie-b51d88d7b0b517b71ae3b59d8228335f38ca9fc7.tar.bz2
Split the KeyConfig Manager and Widget into Ui and Core parts
Adjust the only user... Don't add a 2nd example to core but mention the one for the classes in opieui/okeyconfigwidget
Diffstat (limited to 'noncore/graphics/opie-eye/gui/imageinfoui.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/gui/imageinfoui.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/noncore/graphics/opie-eye/gui/imageinfoui.cpp b/noncore/graphics/opie-eye/gui/imageinfoui.cpp
index 0b3250c..27a67a6 100644
--- a/noncore/graphics/opie-eye/gui/imageinfoui.cpp
+++ b/noncore/graphics/opie-eye/gui/imageinfoui.cpp
@@ -43,13 +43,13 @@ imageinfo::imageinfo(const QString&_path, QWidget* parent, const char* name, WF
43 m_cfg = 0; 43 m_cfg = 0;
44 init(name); 44 init(name);
45 initKeys(); 45 initKeys();
46 slotChangeName(_path); 46 slotChangeName(_path);
47} 47}
48 48
49Opie::Ui::OKeyConfigManager* imageinfo::manager() 49Opie::Core::OKeyConfigManager* imageinfo::manager()
50{ 50{
51 if (!m_viewManager) { 51 if (!m_viewManager) {
52 initKeys(); 52 initKeys();
53 } 53 }
54 return m_viewManager; 54 return m_viewManager;
55} 55}
@@ -60,24 +60,24 @@ void imageinfo::initKeys()
60#if 0 60#if 0
61 if (!m_cfg) { 61 if (!m_cfg) {
62 m_cfg = new Opie::Core::OConfig("phunkview"); 62 m_cfg = new Opie::Core::OConfig("phunkview");
63 m_cfg->setGroup("imageinfo_keys" ); 63 m_cfg->setGroup("imageinfo_keys" );
64 } 64 }
65#endif 65#endif
66 Opie::Ui::OKeyPair::List lst; 66 Opie::Core::OKeyPair::List lst;
67 lst.append( Opie::Ui::OKeyPair::upArrowKey() ); 67 lst.append( Opie::Core::OKeyPair::upArrowKey() );
68 lst.append( Opie::Ui::OKeyPair::downArrowKey() ); 68 lst.append( Opie::Core::OKeyPair::downArrowKey() );
69 lst.append( Opie::Ui::OKeyPair::leftArrowKey() ); 69 lst.append( Opie::Core::OKeyPair::leftArrowKey() );
70 lst.append( Opie::Ui::OKeyPair::rightArrowKey() ); 70 lst.append( Opie::Core::OKeyPair::rightArrowKey() );
71 lst.append( Opie::Ui::OKeyPair::returnKey() ); 71 lst.append( Opie::Core::OKeyPair::returnKey() );
72 72
73 m_viewManager = new Opie::Ui::OKeyConfigManager(m_cfg, "imageinfo_keys", 73 m_viewManager = new Opie::Core::OKeyConfigManager(m_cfg, "imageinfo_keys",
74 lst, false,this, "keyconfig name" ); 74 lst, false,this, "keyconfig name" );
75 m_viewManager->addKeyConfig( Opie::Ui::OKeyConfigItem(tr("View Full Image"), "infoview", 75 m_viewManager->addKeyConfig( Opie::Core::OKeyConfigItem(tr("View Full Image"), "infoview",
76 Resource::loadPixmap("1to1"), ViewItem, 76 Resource::loadPixmap("1to1"), ViewItem,
77 Opie::Ui::OKeyPair(Qt::Key_V, Qt::ShiftButton), 77 Opie::Core::OKeyPair(Qt::Key_V, Qt::ShiftButton),
78 this, SLOT(slotShowImage()))); 78 this, SLOT(slotShowImage())));
79 m_viewManager->load(); 79 m_viewManager->load();
80 m_viewManager->handleWidget( this ); 80 m_viewManager->handleWidget( this );
81 m_viewManager->handleWidget( TextView1 ); 81 m_viewManager->handleWidget( TextView1 );
82} 82}
83 83