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,17 +1,17 @@
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
123.) Write Image Display component(zecke) 123.) Write Image Display component(zecke)
13 13
144.) make the cache tunable at runtime 144.) make the cache tunable at runtime
155.) fix config gui 155.) fix config gui
166.) more Configuration 166.) more Configuration
177.) 2 column mode on big screen 177.) 2 column mode on big screen
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
@@ -20,67 +20,67 @@
20#include <qpe/resource.h> 20#include <qpe/resource.h>
21 21
22#define THUMBSIZE 128 22#define THUMBSIZE 128
23 23
24imageinfo::imageinfo(const QString&_path, QWidget* parent, const char* name, WFlags fl ) 24imageinfo::imageinfo(const QString&_path, QWidget* parent, const char* name, WFlags fl )
25 : QWidget( parent, name, fl ),currentFile(_path) 25 : QWidget( parent, name, fl ),currentFile(_path)
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") );
41 41
42 imageinfoLayout->addWidget( PixmapLabel1 ); 42 imageinfoLayout->addWidget( PixmapLabel1 );
43 43
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);
66} 66}
67 67
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);
81 } 81 }
82} 82}
83 83
84imageinfo::~imageinfo() 84imageinfo::~imageinfo()
85{ 85{
86 { 86 {