summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/TODO2
-rw-r--r--noncore/graphics/opie-eye/gui/imageinfoui.cpp10
2 files changed, 6 insertions, 6 deletions
diff --git a/noncore/graphics/opie-eye/TODO b/noncore/graphics/opie-eye/TODO
index e31cb73..8dbf35e 100644
--- a/noncore/graphics/opie-eye/TODO
+++ b/noncore/graphics/opie-eye/TODO
@@ -1,11 +1,11 @@
1Todo for Opie-Eye 1Todo for Opie-Eye
2 2
31.) Extend BigScreen classes to have something like a combined OSplitter and OWidgetStack. 31.) Extend BigScreen classes to have something like a combined OSplitter and OWidgetStack.
4 On small screens one could toggle this Widget into the View but on BigScreen it would 4 On small screens one could toggle this Widget into the View but on BigScreen it would
5 be a full widget OToggleSplitter 5 be a full widget -> OToggleSplitter
6 6
72.) Write a Image Info Widget which uses the cache to get the thumb and the slave to get 72.) Write a Image Info Widget which uses the cache to get the thumb and the slave to get
8 the info and display it. Make use of OKeyConfigManager to manager keys for up and down 8 the info and display it. Make use of OKeyConfigManager to manager keys for up and down
9 and left and right to switch between views and go from one image to the next. it would 9 and left and right to switch between views and go from one image to the next. it would
10 emit signals (alwin) 10 emit signals (alwin)
11 11
diff --git a/noncore/graphics/opie-eye/gui/imageinfoui.cpp b/noncore/graphics/opie-eye/gui/imageinfoui.cpp
index 2580215..3463ba6 100644
--- a/noncore/graphics/opie-eye/gui/imageinfoui.cpp
+++ b/noncore/graphics/opie-eye/gui/imageinfoui.cpp
@@ -26,15 +26,15 @@ imageinfo::imageinfo(const QString&_path, QWidget* parent, const char* name, WF
26{ 26{
27 { 27 {
28 QCopEnvelope( "QPE/Application/opie-eye_slave", "refUp()" ); 28 QCopEnvelope( "QPE/Application/opie-eye_slave", "refUp()" );
29 } 29 }
30 if ( !name ) 30 if ( !name )
31 setName( "imageinfo" ); 31 setName( "imageinfo" );
32 resize( 289, 335 ); 32 resize( 289, 335 );
33 setCaption( tr( "Image info" ) ); 33 setCaption( tr( "Image info" ) );
34 imageinfoLayout = new QVBoxLayout( this ); 34 imageinfoLayout = new QVBoxLayout( this );
35 imageinfoLayout->setSpacing(2); 35 imageinfoLayout->setSpacing(2);
36 imageinfoLayout->setMargin(4); 36 imageinfoLayout->setMargin(4);
37 37
38 PixmapLabel1 = new QLabel( this, "PixmapLabel1" ); 38 PixmapLabel1 = new QLabel( this, "PixmapLabel1" );
39 PixmapLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, PixmapLabel1->sizePolicy().hasHeightForWidth() ) ); 39 PixmapLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, PixmapLabel1->sizePolicy().hasHeightForWidth() ) );
40 QWhatsThis::add( PixmapLabel1, tr("Displays an thumbnail of the image") ); 40 QWhatsThis::add( PixmapLabel1, tr("Displays an thumbnail of the image") );
@@ -44,22 +44,22 @@ imageinfo::imageinfo(const QString&_path, QWidget* parent, const char* name, WF
44 Line1 = new QFrame( this, "Line1" ); 44 Line1 = new QFrame( this, "Line1" );
45 Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken ); 45 Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken );
46 imageinfoLayout->addWidget( Line1 ); 46 imageinfoLayout->addWidget( Line1 );
47 47
48 fnameLabel = new QLabel( this, "FnameLabel" ); 48 fnameLabel = new QLabel( this, "FnameLabel" );
49 imageinfoLayout->addWidget( fnameLabel); 49 imageinfoLayout->addWidget( fnameLabel);
50 50
51 TextView1 = new QTextView( this, "TextView1" ); 51 TextView1 = new QTextView( this, "TextView1" );
52 TextView1->setFrameShadow( QTextView::Sunken ); 52 TextView1->setFrameShadow( QTextView::Sunken );
53 TextView1->setResizePolicy( QTextView::AutoOneFit ); 53 TextView1->setResizePolicy( QTextView::AutoOneFit );
54 TextView1->setBackgroundOrigin( QTextView::ParentOrigin ); 54 TextView1->setBackgroundOrigin( QTextView::ParentOrigin );
55 TextView1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)3, TextView1->sizePolicy().hasHeightForWidth() ) ); 55 TextView1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)3, TextView1->sizePolicy().hasHeightForWidth() ) );
56// TextView1->setVScrollBarMode(QScrollView::AlwaysOn); 56// TextView1->setVScrollBarMode(QScrollView::AlwaysOn);
57 QWhatsThis::add( TextView1, tr("Displays info of selected image") ); 57 QWhatsThis::add( TextView1, tr("Displays info of selected image") );
58 imageinfoLayout->addWidget( TextView1 ); 58 imageinfoLayout->addWidget( TextView1 );
59 59
60 SlaveMaster* master = SlaveMaster::self(); 60 SlaveMaster* master = SlaveMaster::self();
61 connect( master, SIGNAL(sig_fullInfo(const QString&, const QString&)), 61 connect( master, SIGNAL(sig_fullInfo(const QString&, const QString&)),
62 this, SLOT(slot_fullInfo(const QString&, const QString&)) ); 62 this, SLOT(slot_fullInfo(const QString&, const QString&)) );
63 connect(master, SIGNAL( sig_thumbNail(const QString&, const QPixmap&)), 63 connect(master, SIGNAL( sig_thumbNail(const QString&, const QPixmap&)),
64 this, SLOT(slotThumbNail(const QString&, const QPixmap&))); 64 this, SLOT(slotThumbNail(const QString&, const QPixmap&)));
65 slotChangeName(_path); 65 slotChangeName(_path);
@@ -68,13 +68,13 @@ imageinfo::imageinfo(const QString&_path, QWidget* parent, const char* name, WF
68void imageinfo::slotChangeName(const QString&_path) 68void imageinfo::slotChangeName(const QString&_path)
69{ 69{
70 currentFile=_path; 70 currentFile=_path;
71 QFileInfo fi(_path); 71 QFileInfo fi(_path);
72 fnameLabel->setText("<qt><center><b>"+fi.fileName()+"</b></center></qt>"); 72 fnameLabel->setText("<qt><center><b>"+fi.fileName()+"</b></center></qt>");
73 SlaveMaster::self()->imageInfo( currentFile ); 73 SlaveMaster::self()->imageInfo( currentFile );
74 74
75 QPixmap*m_pix = PPixmapCache::self()->cachedImage( _path, THUMBSIZE,THUMBSIZE ); 75 QPixmap*m_pix = PPixmapCache::self()->cachedImage( _path, THUMBSIZE,THUMBSIZE );
76 if (!m_pix) { 76 if (!m_pix) {
77 PixmapLabel1->setPixmap(QPixmap( Resource::loadPixmap( "UnknownDocument" ))); 77 PixmapLabel1->setPixmap(QPixmap( Resource::loadPixmap( "UnknownDocument" )));
78 SlaveMaster::self()->thumbNail(currentFile,THUMBSIZE,THUMBSIZE); 78 SlaveMaster::self()->thumbNail(currentFile,THUMBSIZE,THUMBSIZE);
79 } else { 79 } else {
80 PixmapLabel1->setPixmap(*m_pix); 80 PixmapLabel1->setPixmap(*m_pix);