📄 qmake_image_collection.cpp
字号:
/****************************************************************************** Image collection for project 'LinPacker'.**** Generated from reading image files: ** images/LP-pixmap-16x16.png** images/LP-pixmap-16x16.xpm** images/LP-pixmap.png** images/LP-pixmap.xpm** images/ni.xpm** images/pixmap-linpacker.png** images/pixmap-linpacker.xpm** images/pixmap-linpackerB.png** images/pixmap-linpackerB.xpm**** Created: ven f関 28 13:07:54 2003** by: The User Interface Compiler ($Id: qt/embed.cpp 3.1.1 edited Nov 16 10:56 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include <qimage.h>#include <qdict.h>#include <qmime.h>#include <qdragobject.h>// images/LP-pixmap-16x16.pngstatic const unsigned char image_0_data[] = { 0x00,0x00,0x04,0x00,0x78,0x9c,0x63,0x60,0x60,0xf8,0xcf,0x40,0x31,0xfe, 0x4f,0x04,0x06,0xaa,0x43,0x87,0xc3,0x46,0x3f,0x91,0x18,0x87,0x7e,0x20, 0x13,0x05,0x33,0x60,0x71,0xc0,0x48,0xd3,0x4f,0x0a,0xc6,0xaa,0xff,0x3f, 0x86,0x30,0x26,0x1e,0x26,0xfa,0x29,0xc1,0x00,0x43,0x7e,0xe6,0x28};// images/LP-pixmap-16x16.xpmstatic const unsigned char image_1_data[] = { 0x00,0x00,0x01,0x00,0x78,0x9c,0x63,0x60,0x40,0x03,0xcc,0x30,0xc0,0xc0, 0x04,0x04,0xa4,0xf3,0x11,0x00,0xc2,0x67,0x01,0x02,0x06,0x46,0x20,0xa0, 0x84,0x8f,0x04,0xc0,0x7c,0x56,0x18,0x20,0x9d,0x8f,0x06,0x00,0xe4,0xf8, 0x02,0x09};static const QRgb image_1_ctable[] = { 0xff000040,0xff0000ff,0xff00ff00,0xffff0000,0xffff00ff,0xffffff00};// images/LP-pixmap.pngstatic const unsigned char image_2_data[] = { 0x00,0x00,0x10,0x00,0x78,0x9c,0xed,0xd4,0xc1,0x09,0x00,0x20,0x0c,0x04, 0xc1,0x94,0x74,0xfd,0x37,0x17,0x45,0x0b,0xf0,0x02,0x4a,0x40,0x16,0x59, 0xf0,0x11,0x1c,0xf0,0x11,0x49,0xa9,0xe6,0x22,0xf2,0x6a,0xeb,0x4d,0xe3, 0xe0,0xe3,0xe3,0xe3,0x3f,0xd9,0x69,0x05,0x7f,0x5e,0x8f,0xed,0x39,0xef, 0x03,0xf0,0xf1,0xf1,0xf1,0x7f,0xf3,0x5f,0xe5,0xfa,0xc6,0x58,0x29,0x7c, 0x7c,0x7c,0xfc,0xce,0x06,0x01,0x49,0x06,0xac};// images/LP-pixmap.xpmstatic const unsigned char image_3_data[] = { 0x00,0x00,0x04,0x00,0x78,0x9c,0x63,0x64,0xc6,0x0b,0x18,0x99,0x59,0x30, 0x01,0x33,0x13,0x1c,0x30,0x8f,0xca,0x13,0x90,0xc7,0x06,0x90,0xe5,0x59, 0xe1,0x80,0x99,0x01,0x0a,0x46,0xaa,0x3c,0x56,0x80,0x24,0xcf,0x86,0x09, 0x46,0xe5,0x09,0xc8,0x33,0x12,0xc8,0xdf,0x00,0x94,0x37,0x0e,0xef};static const QRgb image_3_ctable[] = { 0xff0000ff,0xff004000,0xff00ff00,0xff303030,0xffff0000,0xffff00ff,0xffffff00};// images/ni.xpmstatic const unsigned char image_4_data[] = { 0x00,0x00,0x01,0x00,0x78,0x9c,0x63,0x64,0x40,0x01,0x8c,0x0c,0x2c,0x30, 0xc0,0xc0,0x0c,0x04,0x0c,0x24,0xf3,0x21,0xa6,0x80,0x08,0x08,0x9f,0x15, 0x08,0x18,0x98,0x80,0x80,0x81,0x7c,0x3e,0x23,0xdc,0x50,0xa8,0x3c,0x1b, 0x0c,0x90,0xcc,0x67,0x44,0xf3,0x2f,0x00,0x39,0x5b,0x02,0xb1};static const QRgb image_4_ctable[] = { 0xff000000,0xff000040,0xff0000ff,0xff00ff00,0xffff0000,0xffff00ff,0xffffff00};// images/pixmap-linpacker.pngstatic const unsigned char image_5_data[] = { 0x00,0x00,0x10,0x00,0x78,0x9c,0xed,0xd3,0x61,0x0a,0x80,0x20,0x0c,0x05, 0xe0,0x1d,0x69,0x87,0xf0,0xfe,0x57,0x32,0xeb,0x47,0xd8,0x78,0x8e,0x99, 0x3a,0x89,0x46,0x3c,0x10,0xc1,0x3e,0xe7,0x94,0x99,0x33,0x6f,0x0e,0x51, 0xce,0x94,0x40,0x08,0xa4,0xcc,0x9f,0x6b,0xca,0xc8,0x94,0xfb,0xff,0x20, 0xaa,0x5f,0x79,0x72,0xce,0xd5,0x07,0x7b,0xf8,0x45,0xfd,0xc9,0xd9,0x47, 0x56,0xe3,0x0e,0x4e,0xf7,0x65,0xad,0x72,0x4c,0xcf,0xfd,0x2c,0x79,0x7f, 0x5a,0x0f,0x80,0xaf,0x55,0x7d,0x9d,0x4f,0xab,0xe8,0x2a,0xd0,0x57,0xce, 0xdd,0xc5,0xd7,0xf6,0xe0,0x55,0x3f,0xf2,0xd3,0x62,0xdf,0xd2,0xfb,0x0f, 0xf9,0xc3,0xf7,0x1f,0xf5,0xbe,0xc3,0x27,0xc3,0x37,0xf4,0x66,0x27,0xfa, 0x96,0x5e,0xc9,0xbe,0x85,0x1f,0xfe,0x4e,0x7f,0x66,0x5e,0xd5,0xdf,0xb7, 0x04,0x26,0xfc,0xf0,0xc3,0x0f,0x7f,0x67,0x0e,0x98,0xe7,0x41,0x8a};// images/pixmap-linpacker.xpmstatic const unsigned char image_6_data[] = { 0x00,0x00,0x04,0x00,0x78,0x9c,0xed,0x90,0xcb,0x12,0x80,0x20,0x08,0x45, 0x87,0x4b,0xd9,0xff,0xff,0x71,0xf1,0xd0,0x31,0x06,0x75,0x6a,0xd5,0xa2, 0xb3,0x70,0xe1,0x01,0xe1,0x4a,0xb4,0x00,0x2c,0x40,0x60,0xda,0x1a,0xa4, 0x37,0x70,0x0f,0xe8,0x31,0xf1,0x5a,0xf0,0xba,0x9f,0x27,0x5e,0x95,0x2d, 0x98,0x79,0x69,0x85,0x6d,0x80,0x34,0x5f,0x0b,0x78,0xf9,0xdd,0xa0,0x52, 0x51,0xef,0xaf,0x0f,0xbd,0x17,0x8c,0xfb,0x61,0x1f,0x90,0xfb,0x36,0xfe, 0x81,0x8f,0xfb,0x23,0xf8,0xa3,0x12,0xc2,0x26,0xbe,0x74,0x7c,0xde,0x27, 0xdc,0x3c,0x22,0xbf,0x5f,0x70,0x02,0x40,0x78,0x0d,0xb6};static const QRgb image_6_ctable[] = { 0xc6c6c6,0xff303030,0xffff0000,0xffff4400,0xff00ffff,0xffffff00,0xff0000ff,0xff00ff00};// images/pixmap-linpackerB.pngstatic const unsigned char image_7_data[] = { 0x00,0x00,0x10,0x00,0x78,0x9c,0xed,0x93,0x61,0x0a,0x80,0x20,0x0c,0x46, 0x77,0xa4,0x1d,0xc2,0xfb,0x5f,0x69,0x95,0xf4,0x23,0xd7,0x9a,0x13,0x75, 0x16,0x8d,0x78,0x20,0x21,0xbd,0x7d,0x7e,0x86,0x88,0x84,0x01,0x41,0xa2, 0x12,0x38,0x11,0xde,0x1d,0xfb,0xf7,0x95,0x89,0xfc,0x6d,0xa0,0x1b,0x66, 0xbf,0x30,0x83,0xab,0x7f,0x55,0xfe,0xe4,0xec,0x97,0x5c,0xbc,0x07,0x2f, 0x3f,0x5f,0x43,0x39,0xcf,0x94,0xfb,0xcf,0xf3,0x57,0xfc,0x5a,0xea,0x7c, 0x3e,0x52,0xe8,0x0b,0x8f,0x7e,0xe5,0xdc,0x5d,0xfc,0xda,0x0c,0x5e,0xf9, 0x25,0x7f,0x9a,0xec,0xb7,0x74,0xff,0x21,0x7f,0xf7,0xfd,0x97,0xba,0x6f, 0xf0,0x43,0xe5,0xe9,0xfe,0x5f,0x07,0xfb,0x6b,0x7d,0xf1,0xee,0xc2,0x1f, 0xfe,0x95,0xfe,0xd1,0x34,0xe7,0xb7,0x6f,0x17,0x09,0x7f,0xf8,0xc3,0xff, 0x1e,0xff,0x5f,0xd9,0x00,0x23,0x89,0x06,0x75};// images/pixmap-linpackerB.xpmstatic const unsigned char image_8_data[] = { 0x00,0x00,0x04,0x00,0x78,0x9c,0xe5,0x90,0xd1,0x0a,0x80,0x30,0x08,0x45, 0xd1,0x5b,0xeb,0xff,0xff,0xb8,0x52,0xdb,0x86,0xa8,0x10,0x7b,0x09,0x3a, 0x0f,0xc2,0x38,0xba,0xdd,0x49,0xb4,0x0a,0x5f,0x00,0x52,0x68,0xeb,0x10, 0x6e,0x86,0x97,0x86,0xc2,0xd7,0xf3,0x5c,0x78,0x51,0xac,0xc7,0xc4,0x43, 0x13,0x20,0xcc,0x0f,0x7e,0x12,0x82,0x76,0x85,0x9a,0xa1,0xde,0x6e,0x4f, 0xbd,0x35,0xe4,0xf3,0xd0,0x05,0xc4,0xbe,0x3f,0xff,0xc2,0xfb,0xfc,0x70, 0xfe,0x30,0xfc,0x5f,0x23,0xdf,0x06,0x9f,0xf7,0x11,0xb3,0x87,0xe3,0x0f, 0x7e,0x8d,0x13,0xdf,0x3a,0x0d,0x23};static const QRgb image_8_ctable[] = { 0xc6c6c6,0xff303030,0xffff4400,0xffff0000,0xff00ffff,0xffffff00,0xff0000ff,0xff00ff00};static struct EmbedImage { int width, height, depth; const unsigned char *data; ulong compressed; int numColors; const QRgb *colorTable; bool alpha; const char *name;} embed_image_vec[] = { { 16, 16, 32, (const unsigned char*)image_0_data, 55, 0, 0, FALSE, "LP-pixmap-16x16.png" }, { 16, 16, 8, (const unsigned char*)image_1_data, 44, 6, image_1_ctable, FALSE, "LP-pixmap-16x16.xpm" }, { 32, 32, 32, (const unsigned char*)image_2_data, 79, 0, 0, FALSE, "LP-pixmap.png" }, { 32, 32, 8, (const unsigned char*)image_3_data, 55, 7, image_3_ctable, FALSE, "LP-pixmap.xpm" }, { 16, 16, 8, (const unsigned char*)image_4_data, 54, 7, image_4_ctable, FALSE, "ni.xpm" }, { 32, 32, 32, (const unsigned char*)image_5_data, 153, 0, 0, FALSE, "pixmap-linpacker.png" }, { 32, 32, 8, (const unsigned char*)image_6_data, 109, 8, image_6_ctable, TRUE, "pixmap-linpacker.xpm" }, { 32, 32, 32, (const unsigned char*)image_7_data, 149, 0, 0, FALSE, "pixmap-linpackerB.png" }, { 32, 32, 8, (const unsigned char*)image_8_data, 105, 8, image_8_ctable, TRUE, "pixmap-linpackerB.xpm" }, { 0, 0, 0, 0, 0, 0, 0, 0, 0 }};static QImage uic_findImage( const QString& name ){ for (int i=0; embed_image_vec[i].data; i++) { if ( QString::fromUtf8(embed_image_vec[i].name) == name ) { QByteArray baunzip; baunzip = qUncompress( embed_image_vec[i].data, embed_image_vec[i].compressed ); QImage img((uchar*)baunzip.data(), embed_image_vec[i].width, embed_image_vec[i].height, embed_image_vec[i].depth, (QRgb*)embed_image_vec[i].colorTable, embed_image_vec[i].numColors, QImage::BigEndian ); img = img.copy(); if ( embed_image_vec[i].alpha ) img.setAlphaBuffer(TRUE); return img; } } return QImage();}class MimeSourceFactory_LinPacker : public QMimeSourceFactory{public: MimeSourceFactory_LinPacker() {} ~MimeSourceFactory_LinPacker() {} const QMimeSource* data( const QString& abs_name ) const { const QMimeSource* d = QMimeSourceFactory::data( abs_name ); if ( d || abs_name.isNull() ) return d; QImage img = uic_findImage( abs_name ); if ( !img.isNull() ) ((QMimeSourceFactory*)this)->setImage( abs_name, img ); return QMimeSourceFactory::data( abs_name ); };};static QMimeSourceFactory* factory = 0;void qInitImages_LinPacker(){ if ( !factory ) { factory = new MimeSourceFactory_LinPacker; QMimeSourceFactory::defaultFactory()->addFactory( factory ); }}void qCleanupImages_LinPacker(){ if ( factory ) { QMimeSourceFactory::defaultFactory()->removeFactory( factory ); delete factory; factory = 0; }}class StaticInitImages_LinPacker{public: StaticInitImages_LinPacker() { qInitImages_LinPacker(); } ~StaticInitImages_LinPacker() { qCleanupImages_LinPacker(); }};static StaticInitImages_LinPacker staticImages;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -