Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

png_slave.cpp File Reference

#include "png_slave.h"
#include "thumbnailtool.h"
#include <qobject.h>
#include <qfile.h>
#include <qimage.h>
#include <qpixmap.h>
#include <qstring.h>

Include dependency graph for png_slave.cpp:

Go to the source code of this file.

Defines

#define CHUNK_SIZE(data, index)
#define CHUNK_TYPE(data, index)   &data[index+4]
#define CHUNK_HEADER_SIZE   12
#define CHUNK_DATA(data, index, offset)   data[8+index+offset]

Functions

 PHUNK_VIEW_INTERFACE ("PNG", PNGSlave)
static void read_comment (const QString &inf, bool readComments, QString &str)

Variables

static const char * knownTranslations []
static const char * colors []
static const char * compressions []
static const char * interlaceModes []


Define Documentation

#define CHUNK_DATA data,
index,
offset   )     data[8+index+offset]
 

Definition at line 20 of file png_slave.cpp.

Referenced by read_comment().

#define CHUNK_HEADER_SIZE   12
 

Definition at line 19 of file png_slave.cpp.

Referenced by read_comment().

#define CHUNK_SIZE data,
index   ) 
 

Value:

((data[index  ]<<24) + (data[index+1]<<16) + \
                                 (data[index+2]<< 8) +  data[index+3])

Definition at line 16 of file png_slave.cpp.

Referenced by read_comment().

#define CHUNK_TYPE data,
index   )     &data[index+4]
 

Definition at line 18 of file png_slave.cpp.

Referenced by read_comment().


Function Documentation

PHUNK_VIEW_INTERFACE "PNG"  ,
PNGSlave 
 

static void read_comment const QString inf,
bool  readComments,
QString str
[static]
 

Definition at line 66 of file png_slave.cpp.

References CHUNK_DATA, CHUNK_HEADER_SIZE, CHUNK_SIZE, CHUNK_TYPE, data, end, QFile::exists(), f, IO_ReadOnly, QFile::open(), QFile::readBlock(), QFile::size(), text, tr, type, Opie::MM::x, and Opie::MM::y.

Referenced by PNGSlave::fullImageInfo(), and PNGSlave::iconViewName().


Variable Documentation

const char* colors[] [static]
 

Initial value:

 {
  QT_TR_NOOP("Grayscale"),
  QT_TR_NOOP("Unknown"),
  QT_TR_NOOP("RGB"),
  QT_TR_NOOP("Palette"),
  QT_TR_NOOP("Grayscale/Alpha"),
  QT_TR_NOOP("Unknown"),

}

Definition at line 43 of file png_slave.cpp.

Referenced by KateView::configDialog(), darken(), Appearance::editSchemeClicked(), Opie::Ui::OImageEffect::equalize(), kColorBitmaps(), Stream::makeFilter(), Opie::Ui::OImageEffect::normalize(), and ShadedListItem::paintCell().

const char* compressions[] [static]
 

Initial value:

{

}

Definition at line 54 of file png_slave.cpp.

const char* interlaceModes[] [static]
 

Initial value:

 {
  QT_TR_NOOP("None"),

}

Definition at line 60 of file png_slave.cpp.

const char* knownTranslations[] [static]
 

Initial value:

 {
  QT_TR_NOOP("Title"),
  QT_TR_NOOP("Author"),
  QT_TR_NOOP("Description"),
  QT_TR_NOOP("Copyright"),
  QT_TR_NOOP("Creation Time"),
  QT_TR_NOOP("Software"),
  QT_TR_NOOP("Disclaimer"),
  QT_TR_NOOP("Warning"),
  QT_TR_NOOP("Source"),

}

Definition at line 29 of file png_slave.cpp.


Generated on Sat Nov 5 17:00:13 2005 for OPIE by  doxygen 1.4.2