author | zecke <zecke> | 2004-04-04 21:38:46 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-04-04 21:38:46 (UTC) |
commit | fad3886132f81ff5f1f84c09e9a0b3048d91296d (patch) (side-by-side diff) | |
tree | a6badf47f7e2a737d801e55388b67c8aa81508b0 | |
parent | 4da953f1ef0349acc5b86ee15b9e3005dabc319f (diff) | |
download | opie-fad3886132f81ff5f1f84c09e9a0b3048d91296d.zip opie-fad3886132f81ff5f1f84c09e9a0b3048d91296d.tar.gz opie-fad3886132f81ff5f1f84c09e9a0b3048d91296d.tar.bz2 |
Update todo
use owarn right
-rw-r--r-- | noncore/graphics/opie-eye/TODO | 2 | ||||
-rw-r--r-- | noncore/graphics/opie-eye/gui/imageinfoui.cpp | 10 |
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,19 +1,19 @@ Todo for Opie-Eye 1.) Extend BigScreen classes to have something like a combined OSplitter and OWidgetStack. On small screens one could toggle this Widget into the View but on BigScreen it would - be a full widget OToggleSplitter + be a full widget -> OToggleSplitter 2.) Write a Image Info Widget which uses the cache to get the thumb and the slave to get the info and display it. Make use of OKeyConfigManager to manager keys for up and down and left and right to switch between views and go from one image to the next. it would emit signals (alwin) 3.) Write Image Display component(zecke) 4.) make the cache tunable at runtime 5.) fix config gui 6.) more Configuration 7.) 2 column mode on big screen 8.) 2/4 pix without info on a row 9.) Performance 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 @@ -8,91 +8,91 @@ #include <qvariant.h> #include <qtooltip.h> #include <qwhatsthis.h> #include <qimage.h> #include <qpixmap.h> #include <qstring.h> #include <qfileinfo.h> #include <lib/slavemaster.h> #include <lib/imagecache.h> #include <qpe/qcopenvelope_qws.h> #include <qpe/resource.h> #define THUMBSIZE 128 imageinfo::imageinfo(const QString&_path, QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ),currentFile(_path) { { QCopEnvelope( "QPE/Application/opie-eye_slave", "refUp()" ); } if ( !name ) setName( "imageinfo" ); - resize( 289, 335 ); + resize( 289, 335 ); setCaption( tr( "Image info" ) ); - imageinfoLayout = new QVBoxLayout( this ); + imageinfoLayout = new QVBoxLayout( this ); imageinfoLayout->setSpacing(2); imageinfoLayout->setMargin(4); PixmapLabel1 = new QLabel( this, "PixmapLabel1" ); PixmapLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, PixmapLabel1->sizePolicy().hasHeightForWidth() ) ); QWhatsThis::add( PixmapLabel1, tr("Displays an thumbnail of the image") ); imageinfoLayout->addWidget( PixmapLabel1 ); Line1 = new QFrame( this, "Line1" ); Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken ); imageinfoLayout->addWidget( Line1 ); fnameLabel = new QLabel( this, "FnameLabel" ); imageinfoLayout->addWidget( fnameLabel); - + TextView1 = new QTextView( this, "TextView1" ); TextView1->setFrameShadow( QTextView::Sunken ); TextView1->setResizePolicy( QTextView::AutoOneFit ); TextView1->setBackgroundOrigin( QTextView::ParentOrigin ); TextView1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)3, TextView1->sizePolicy().hasHeightForWidth() ) ); // TextView1->setVScrollBarMode(QScrollView::AlwaysOn); QWhatsThis::add( TextView1, tr("Displays info of selected image") ); imageinfoLayout->addWidget( TextView1 ); - + SlaveMaster* master = SlaveMaster::self(); connect( master, SIGNAL(sig_fullInfo(const QString&, const QString&)), this, SLOT(slot_fullInfo(const QString&, const QString&)) ); connect(master, SIGNAL( sig_thumbNail(const QString&, const QPixmap&)), this, SLOT(slotThumbNail(const QString&, const QPixmap&))); slotChangeName(_path); } void imageinfo::slotChangeName(const QString&_path) { currentFile=_path; QFileInfo fi(_path); fnameLabel->setText("<qt><center><b>"+fi.fileName()+"</b></center></qt>"); SlaveMaster::self()->imageInfo( currentFile ); - + QPixmap*m_pix = PPixmapCache::self()->cachedImage( _path, THUMBSIZE,THUMBSIZE ); if (!m_pix) { PixmapLabel1->setPixmap(QPixmap( Resource::loadPixmap( "UnknownDocument" ))); SlaveMaster::self()->thumbNail(currentFile,THUMBSIZE,THUMBSIZE); } else { PixmapLabel1->setPixmap(*m_pix); } } imageinfo::~imageinfo() { { QCopEnvelope( "QPE/Application/opie-eye_slave", "refDown()" ); } } void imageinfo::slot_fullInfo(const QString&_path, const QString&_t) { if (_path == currentFile) { qDebug(_t); QString t = _t; t.replace(QRegExp("\n"),"<br>"); /* t.replace(QRegeExp("<qt>",""); t.replace(QRegeExp("</qt>","");*/ |