author | alwin <alwin> | 2004-04-06 15:36:15 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-04-06 15:36:15 (UTC) |
commit | a0f97fe74df5e6ec3ceea771380a3c61acb2f96c (patch) (side-by-side diff) | |
tree | 1d0819d5ffdf9f212829c35db579695bfe0b4b11 /noncore/graphics/opie-eye/gui/imageinfoui.h | |
parent | 9273c064f2ae699885ddef32155df4f5aab9d574 (diff) | |
download | opie-a0f97fe74df5e6ec3ceea771380a3c61acb2f96c.zip opie-a0f97fe74df5e6ec3ceea771380a3c61acb2f96c.tar.gz opie-a0f97fe74df5e6ec3ceea771380a3c61acb2f96c.tar.bz2 |
added keyboard handler for info window
Diffstat (limited to 'noncore/graphics/opie-eye/gui/imageinfoui.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/imageinfoui.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/noncore/graphics/opie-eye/gui/imageinfoui.h b/noncore/graphics/opie-eye/gui/imageinfoui.h index 300c92a..0a5e183 100644 --- a/noncore/graphics/opie-eye/gui/imageinfoui.h +++ b/noncore/graphics/opie-eye/gui/imageinfoui.h @@ -3,51 +3,70 @@ #include <qvariant.h> #include <qwidget.h> #include <qdialog.h> class QVBoxLayout; class QHBoxLayout; class QGridLayout; class QFrame; class QLabel; class QTextView; +namespace Opie { + namespace Core { + class OConfig; + } + namespace Ui { + class OKeyConfigManager; + } +} + class imageinfo : public QWidget { Q_OBJECT + enum ActionIds { + ViewItem + }; public: imageinfo( QWidget* parent = 0, const char* name = 0, WFlags fl =0); imageinfo(const QString&_path, QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~imageinfo(); void setDestructiveClose(); + Opie::Ui::OKeyConfigManager* manager(); + +signals: + void dispImage(const QString&); public slots: void setPath( const QString& path ); + void slotShowImage(); private: void init(const char* name); protected: QLabel* PixmapLabel1; QLabel* fnameLabel; QFrame* Line1; QTextView* TextView1; - -protected: QVBoxLayout* imageinfoLayout; QString currentFile; + Opie::Core::OConfig * m_cfg; + Opie::Ui::OKeyConfigManager*m_viewManager; + void initKeys(); + protected slots: virtual void slot_fullInfo(const QString&, const QString&); virtual void slotThumbNail(const QString&, const QPixmap&); virtual void slotChangeName(const QString&); }; /* for testing purpose */ class infoDlg:public QDialog { Q_OBJECT public: |