/****************************************************************************
** Image collection for project 'textedit'.
**
** Generated from reading image files: 
**      editcopy.xpm
**      editcut.xpm
**      editpaste.xpm
**      editredo.xpm
**      editundo.xpm
**      filenew.xpm
**      fileopen.xpm
**      fileprint.xpm
**      filesave.xpm
**      textbold.xpm
**      textcenter.xpm
**      textitalic.xpm
**      textjustify.xpm
**      textleft.xpm
**      textright.xpm
**      textunder.xpm
**
** Created: dom 1. oct 13:58:31 2017
**      by: The User Interface Compiler ($Id: embed.cpp 2051 2007-02-21 10:04:20Z chehrlic $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include <qimage.h>
#include <qdict.h>
#include <qmime.h>
#include <qdragobject.h>

// editcopy.xpm
static const unsigned char image_0_data[] = {
    0x00,0x00,0x02,0x10,0x78,0x9c,0x95,0xd1,0xdb,0x0a,0xc0,0x20,0x0c,0x03,
    0xd0,0x6c,0xd5,0xff,0xff,0xe5,0xd9,0x1b,0xd6,0xb6,0x08,0xcb,0x8b,0x23,
    0x39,0x43,0xd8,0xe6,0xec,0x02,0xb4,0xf5,0xea,0x87,0xa5,0xf4,0x90,0xa4,
    0x81,0x7b,0xd6,0x7c,0xf4,0x1e,0xc7,0xb0,0x3d,0x59,0xb2,0x27,0x3d,0x6d,
    0x70,0x3f,0x40,0xfa,0x1e,0xbd,0x74,0x78,0xb8,0x7f,0x64,0xa8,0x1e,0x32,
    0x54,0xaf,0x97,0x17,0xaf,0x63,0xf5,0xa1,0x8f,0xde,0x9e,0x6f,0xde,0x92,
    0xbd,0x7f,0x91,0xec,0x77,0xff,0xd3,0xc7,0x5c,0xfe,0xef,0x07,0x66,0xd4,
    0x05,0xcb
};

static const QRgb image_0_ctable[] = {
    0xffffffff,0xff8b8bfd,0xff3c3cfd,0xff000082,0xff000000,0xc6c6c6,0xff000000,0xff000000
};

// editcut.xpm
static const unsigned char image_1_data[] = {
    0x00,0x00,0x02,0x10,0x78,0x9c,0xa5,0xd0,0x81,0x0a,0xc0,0x20,0x08,0x04,
    0xd0,0xce,0xfb,0xff,0x7f,0x5e,0x2c,0x57,0x67,0xda,0x18,0xac,0x22,0xe2,
    0x29,0x87,0x44,0x56,0xab,0x35,0x7f,0x98,0xdc,0xbf,0xdd,0x0a,0x37,0x6d,
    0x5f,0xce,0xa3,0x9b,0xc4,0x88,0x77,0x5d,0xfc,0xc5,0x25,0x3d,0x38,0x0c,
    0x95,0x03,0xfd,0x20,0x39,0xee,0x4d,0x6c,0x8e,0x51,0x99,0x05,0x77,0xf0,
    0x71,0x2f,0x0c,0x07,0x5f,0x5d,0x82,0x92,0x87,0xfc,0xd9,0x87,0x6d,0x1e,
    0x99,0x3c,0xff,0x43,0xf4,0x0b,0x92,0x94,0x05,0x47
};

static const QRgb image_1_ctable[] = {
    0xffffffff,0xff000082,0xff000000,0xc6c6c6
};

// editpaste.xpm
static const unsigned char image_2_data[] = {
    0x00,0x00,0x02,0x10,0x78,0x9c,0x75,0x91,0x01,0x0e,0xc0,0x20,0x08,0x03,
    0x71,0x0a,0xfe,0xff,0xc7,0x13,0x70,0x60,0xd5,0xd5,0x98,0xe0,0xf5,0x12,
    0x13,0xed,0xfd,0x16,0xa2,0x39,0x88,0x06,0xb9,0x21,0x29,0xa5,0x48,0x96,
    0x83,0x07,0x5e,0x0b,0x22,0x91,0xda,0xea,0xe0,0x62,0xdb,0x66,0xe7,0x3a,
    0x3e,0x5f,0xec,0xe4,0xbc,0xd5,0xb6,0x70,0x3d,0xa5,0x9f,0x01,0x1f,0x57,
    0xfa,0xb8,0xd0,0xe7,0x08,0xfa,0x4c,0x1e,0x26,0x46,0x9f,0x4c,0x1e,0x5c,
    0x8b,0x9b,0xaf,0xc5,0xd5,0xb7,0xf2,0xf0,0xbd,0x3e,0x7c,0xfa,0xf1,0x83,
    0xa3,0x1f,0x97,0xcc,0xf7,0x97,0xdd,0xff,0x7e,0x8e,0x21,0xc9,0xf7,0x7f,
    0x7f,0x01,0x36,0xc4,0x08,0x38
};

static const QRgb image_2_ctable[] = {
    0xffffffff,0xffffff00,0xffc6c3c6,0xff848284,0xff848200,0xff000084,0xff000000,0xc6c6c6
};

// editredo.xpm
static const unsigned char image_3_data[] = {
    0x00,0x00,0x02,0x10,0x78,0x9c,0xc5,0xd0,0x41,0x0a,0x00,0x20,0x08,0x04,
    0xc0,0x5c,0xf6,0xff,0x6f,0x0e,0xb3,0xa4,0x44,0xe9,0x12,0xb4,0x37,0xc7,
    0x90,0x94,0xcc,0xd2,0x5a,0xca,0x8f,0x5d,0x30,0x12,0x1d,0x1e,0x43,0x98,
    0x8b,0xd7,0xd6,0xc1,0xf4,0x6d,0x80,0x36,0x90,0x38,0xd7,0xb8,0xe8,0x2c,
    0xbc,0x78,0x8f,0xdd,0xfd,0x3f,0xc4,0xe1,0x5a,0x4a,0xba,0xef,0xb9,0xeb,
    0xfd,0x3e,0x3f,0xbc,0x03,0x16,0x39,0x06,0xe3
};

static const QRgb image_3_ctable[] = {
    0xffffffff,0xff848284,0xff000084,0xff000000,0xc6c6c6,0xff000000,0xff000000,0xff000000
};

// editundo.xpm
static const unsigned char image_4_data[] = {
    0x00,0x00,0x02,0x10,0x78,0x9c,0xbd,0xd0,0x4b,0x0a,0x00,0x20,0x08,0x04,
    0x50,0x95,0xb9,0xff,0x99,0xa3,0x52,0x53,0x50,0x68,0x53,0xb3,0x7c,0x7e,
    0x10,0x81,0x2a,0x44,0x25,0xbf,0x71,0x59,0x61,0x73,0x89,0x3a,0x63,0x2e,
    0xaa,0x56,0x67,0x73,0x81,0x2b,0x76,0x9f,0x7a,0xe4,0xec,0x68,0xbc,0xeb,
    0x6f,0xf7,0x7b,0xc1,0xef,0x49,0xe1,0x73,0x7f,0x8a,0xce,0x7d,0xfd,0xf3,
    0x95,0x0f,0x15,0xff,0x06,0xe3
};

static const QRgb image_4_ctable[] = {
    0xffffffff,0xff848284,0xff000084,0xff000000,0xc6c6c6,0xff000000,0xff000000,0xff000000
};

// filenew.xpm
static const unsigned char image_5_data[] = {
    0x00,0x00,0x02,0x10,0x78,0x9c,0x63,0x63,0xc3,0x06,0x18,0x18,0x40,0x24,
    0x2b,0x1c,0xa0,0x89,0x33,0x40,0x00,0x2b,0x0b,0x2b,0x76,0x71,0x66,0x98,
    0x04,0x9a,0x38,0x13,0x4c,0x02,0x4d,0x9c,0x11,0x26,0x81,0x26,0xce,0x00,
    0x93,0x40,0x13,0x87,0x3b,0x0a,0x55,0x1c,0x2a,0x3b,0x72,0xc5,0x51,0x01,
    0x5c,0x1c,0x57,0xfc,0x62,0x13,0x07,0x00,0xe8,0x16,0x06,0x8b
};

static const QRgb image_5_ctable[] = {
    0xffffffff,0xffc2c2c2,0xff878787,0xff5c5c5c,0xff2e2e2e,0xff000000,0xc6c6c6,0xff000000
};

// fileopen.xpm
static const unsigned char image_6_data[] = {
    0x00,0x00,0x02,0x10,0x78,0x9c,0x8d,0xd1,0x01,0x0a,0xc0,0x20,0x0c,0x03,
    0xc0,0x76,0xf1,0xff,0x6f,0x76,0x6d,0x55,0x22,0x06,0x34,0x13,0x06,0x47,
    0x08,0x82,0xad,0xa9,0x98,0x49,0x7e,0x74,0xfc,0xc9,0xff,0xee,0x65,0x88,
    0xa3,0x76,0xa0,0x1d,0xc3,0xe7,0x28,0x71,0x38,0xdc,0xdc,0xb0,0xb2,0xee,
    0x03,0x73,0xfa,0xc8,0x99,0xfd,0xb9,0x8f,0x3d,0xb3,0x0f,0x7c,0x94,0x74,
    0xc5,0x63,0xff,0xe0,0xda,0x3f,0x39,0xfb,0x82,0xc3,0x15,0xa7,0x0b,0xae,
    0x3e,0xe7,0xfa,0x8e,0x1d,0x41,0xa9,0x05,0x9b
};

static const QRgb image_6_ctable[] = {
    0xffffffff,0xffffff00,0xff848200,0xff000000,0xc6c6c6,0xff000000,0xff000000,0xff000000
};

// fileprint.xpm
static const unsigned char image_7_data[] = {
    0x00,0x00,0x02,0x10,0x78,0x9c,0x5d,0x90,0x0d,0x53,0x82,0x30,0x18,0xc7,
    0x57,0x0a,0x86,0x26,0x98,0x52,0x99,0x56,0xf6,0xaa,0x06,0xa4,0x80,0x10,
    0x0a,0x6d,0xd5,0x4d,0x34,0x91,0x2c,0x8b,0x92,0xef,0xff,0x49,0x7a,0x36,
    0xce,0x4e,0xfb,0xed,0xe5,0x6e,0xbf,0xfd,0x9f,0xdd,0xed,0x49,0x53,0x06,
    0x26,0x21,0x40,0x29,0x21,0x3e,0x61,0x67,0x84,0xb8,0x4e,0x49,0xb2,0x64,
    0x24,0x49,0x12,0x6f,0x7b,0x4a,0x29,0xcb,0x43,0x05,0xdd,0xf4,0x98,0x00,
    0xb0,0x61,0xbc,0xf5,0x0e,0xf5,0x29,0xab,0x80,0x3b,0x8a,0xd3,0x0d,0xcf,
    0xb3,0x0c,0xfa,0xcf,0x63,0x9a,0x69,0x42,0xfd,0x4d,0x9f,0x59,0xce,0x56,
    0xde,0x0f,0x97,0x31,0x67,0x16,0x7b,0x5e,0xb0,0xf6,0xc4,0x6a,0xe2,0x59,
    0xc8,0x47,0x1c,0x1b,0x47,0xea,0x09,0xe6,0x9e,0xf4,0x6f,0xce,0x4e,0x33,
    0x6e,0xdb,0x5a,0xa3,0x2a,0x89,0xaa,0x07,0x9e,0x58,0xf3,0xcf,0xc5,0x3c,
    0x02,0xa6,0xaf,0xcf,0x97,0x4f,0x8e,0x5a,0x28,0xe4,0xab,0x08,0x91,0xc1,
    0xd7,0x6a,0xcd,0x7b,0xeb,0xbc,0x15,0xb6,0x65,0x71,0xb7,0x80,0xd0,0xe8,
    0xe7,0x4f,0xaf,0xbe,0xaf,0x2e,0xae,0x57,0x6f,0xa7,0x22,0x02,0x3f,0x8c,
    0x26,0xe3,0xc9,0x2c,0x8a,0xe2,0x8f,0xc5,0x7c,0x11,0xbd,0x4c,0x27,0x63,
    0x3d,0x8f,0x44,0x84,0x8c,0xc7,0x60,0x34,0x74,0x87,0x8e,0xeb,0x7a,0xae,
    0xe3,0x3e,0xd8,0x7d,0xbd,0x9e,0x63,0x79,0x23,0x08,0xc0,0x3a,0xce,0xc0,
    0x19,0x00,0xb6,0x69,0x6a,0xe0,0x05,0x84,0x7a,0xae,0x9b,0x39,0xdb,0x02,
    0x69,0xda,0x46,0xa7,0x9e,0x47,0x87,0x90,0x87,0x30,0x53,0x7c,0x99,0x7d,
    0x43,0xef,0x36,0x72,0x82,0x0f,0xf9,0x4e,0x57,0xbb,0xd3,0xba,0x3a,0x4c,
    0xdd,0xd0,0x8d,0x7b,0x5d,0xab,0x0b,0x3d,0xf8,0x2f,0x6e,0x4a,0xe2,0x9e,
    0x54,0x2c,0x16,0xf7,0xcb,0x65,0x45,0xa9,0x54,0x94,0xb2,0xd2,0xcb,0xfa,
    0xe3,0x1f,0xd7,0x6a,0x07,0x8a,0x2c,0xcb,0xa5,0x92,0x24,0x08,0x3b,0xaa,
    0xc5,0xfb,0xf6,0x0b,0x80,0x20,0x6f,0x1d
};

static const QRgb image_7_ctable[] = {
    0xff000000,0xff100810,0xff101010,0xff101018,0xff181018,0xff181818,0xff181821,0xff211821,0xff212121,0xff212129,0xff292129,0xff292929,0xff292931,0xff312931,
    0xff313131,0xff313139,0xff393139,0xff393939,0xff393942,0xff423942,0xff424242,0xff4a4a52,0xff5a525a,0xff5a5a63,0xff6b636b,0xff6b6b6b,0xff6b6b73,0xff736b73,
    0xff7b737b,0xff7b7384,0xff08ff08,0xff29ff29,0xff31ff31,0xff5ace5a,0xff6bff63,0xff7bff7b,0xff847b84,0xff847b8c,0xff8c7b94,0xff84848c,0xff8c848c,0xff8c8c8c,
    0xff8c8494,0xff8c8c94,0xff948c94,0xff948c9c,0xff949494,0xff94949c,0xff9c949c,0xff9c9c9c,0xff9c94a5,0xff9c9ca5,0xffa59ca5,0xffa59cad,0xffad9cad,0xffa5a5a5,
    0xffa5a5ad,0xffada5ad,0xffadadad,0xffadadb5,0xffb5adb5,0xffb5b5b5,0xffbdbdbd,0xff94c694,0xff9ccea5,0xffbdd6bd,0xffc0c0c0,0xffc6c6c6,0xffcec6ce,0xffcecece,
    0xffceced6,0xffd6ced6,0xffd6cede,0xffd6d6d6,0xffd6d6de,0xffded6de,0xffdedede,0xffded6e7,0xffdedee7,0xffd6ffd6,0xffe7dee7,0xffe7e7e7,0xffe7e7ef,0xffefe7ef,
    0xffefefef,0xffe7ffe7,0xfff7f7f7,0xffffffff,0xc6c6c6
};

// filesave.xpm
static const unsigned char image_8_data[] = {
    0x00,0x00,0x02,0x10,0x78,0x9c,0x63,0x65,0xc5,0x06,0x18,0x18,0x58,0x59,
    0xb0,0x00,0xb0,0x38,0x33,0x33,0x0b,0x13,0x12,0x00,0x72,0x88,0x17,0x67,
    0x04,0x0a,0xa2,0x9a,0xc3,0xc8,0x08,0x53,0x0f,0xe4,0x13,0x21,0x8e,0x30,
    0x9f,0xfa,0xe2,0xcc,0xc8,0x7e,0x65,0x46,0x12,0x47,0x03,0x04,0xc5,0x59,
    0x50,0x0d,0xc2,0x14,0xc7,0x65,0x2f,0x0d,0xc4,0xb1,0x44,0x24,0x38,0x7e,
    0x71,0xc4,0x3b,0x00,0x77,0x4d,0x06,0x7e
};

static const QRgb image_8_ctable[] = {
    0xffffffff,0xffcab5d1,0xffc1c1c1,0xff848200,0xff000000,0xc6c6c6,0xff000000,0xff000000
};

// textbold.xpm
static const unsigned char image_9_data[] = {
    0x00,0x00,0x02,0x10,0x78,0x9c,0x63,0x60,0xa0,0x03,0x60,0x84,0x01,0x2c,
    0x12,0x70,0x12,0x53,0x1c,0x53,0x82,0x3c,0x71,0xac,0xe6,0xe3,0x77,0x0f,
    0x4e,0xf3,0x19,0xb1,0x89,0x63,0xd8,0x40,0xa6,0x38,0x16,0x61,0x1c,0x0e,
    0xa5,0x19,0x00,0x00,0x63,0xf8,0x00,0x60
};

static const QRgb image_9_ctable[] = {
    0xc6c6c6,0xff000000
};

// textcenter.xpm
static const unsigned char image_10_data[] = {
    0x00,0x00,0x02,0x10,0x78,0x9c,0x63,0x60,0x20,0x19,0x30,0xa2,0x03,0xd2,
    0x74,0x8c,0x9a,0x4f,0x77,0xf3,0x49,0x00,0x00,0x96,0x4d,0x00,0x8a
};

static const QRgb image_10_ctable[] = {
    0xc6c6c6,0xff000000
};

// textitalic.xpm
static const unsigned char image_11_data[] = {
    0x00,0x00,0x02,0x10,0x78,0x9c,0x63,0x60,0xa0,0x17,0x60,0x04,0x01,0x1c,
    0x12,0xb8,0x34,0x50,0x43,0x7c,0xc8,0x1b,0x8f,0x43,0x03,0x6d,0x00,0x00,
    0x31,0xae,0x00,0x2f
};

static const QRgb image_11_ctable[] = {
    0xc6c6c6,0xff000000
};

// textjustify.xpm
static const unsigned char image_12_data[] = {
    0x00,0x00,0x02,0x10,0x78,0x9c,0x63,0x60,0x20,0x19,0x30,0xa2,0x83,0x51,
    0xf5,0x03,0xa7,0x9e,0x80,0x5a,0x92,0x01,0x00,0xa6,0x63,0x00,0x96
};

static const QRgb image_12_ctable[] = {
    0xc6c6c6,0xff000000
};

// textleft.xpm
static const unsigned char image_13_data[] = {
    0x00,0x00,0x02,0x10,0x78,0x9c,0x63,0x60,0x20,0x15,0x30,0xa2,0x03,0x52,
    0xd4,0x8f,0x9a,0x4f,0x77,0xf3,0x49,0x03,0x00,0x97,0x3e,0x00,0x8a
};

static const QRgb image_13_ctable[] = {
    0xc6c6c6,0xff000000
};

// textright.xpm
static const unsigned char image_14_data[] = {
    0x00,0x00,0x02,0x10,0x78,0x9c,0x63,0x60,0x20,0x19,0x30,0xa2,0x03,0x52,
    0xf5,0x8c,0x9a,0x4f,0x77,0xf3,0x89,0x06,0x00,0x95,0xe5,0x00,0x8a
};

static const QRgb image_14_ctable[] = {
    0xc6c6c6,0xff000000
};

// textunder.xpm
static const unsigned char image_15_data[] = {
    0x00,0x00,0x02,0x10,0x78,0x9c,0x63,0x60,0xa0,0x03,0x60,0x04,0x01,0x28,
    0x8d,0x2e,0x01,0x65,0x60,0x68,0x18,0x16,0xe2,0x68,0xde,0x85,0x49,0x60,
    0x08,0x43,0x83,0x08,0x53,0x18,0x3b,0x60,0x44,0x02,0x44,0x6a,0x21,0x16,
    0x00,0x00,0x49,0x45,0x00,0x4a
};

static const QRgb image_15_ctable[] = {
    0xc6c6c6,0xff000000
};

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[] = {
    { 22, 22, 8, (const unsigned char*)image_0_data, 100, 8, image_0_ctable, TRUE, "editcopy.xpm" },
    { 22, 22, 8, (const unsigned char*)image_1_data, 94, 4, image_1_ctable, TRUE, "editcut.xpm" },
    { 22, 22, 8, (const unsigned char*)image_2_data, 118, 8, image_2_ctable, TRUE, "editpaste.xpm" },
    { 22, 22, 8, (const unsigned char*)image_3_data, 79, 8, image_3_ctable, TRUE, "editredo.xpm" },
    { 22, 22, 8, (const unsigned char*)image_4_data, 76, 8, image_4_ctable, TRUE, "editundo.xpm" },
    { 22, 22, 8, (const unsigned char*)image_5_data, 68, 8, image_5_ctable, TRUE, "filenew.xpm" },
    { 22, 22, 8, (const unsigned char*)image_6_data, 93, 8, image_6_ctable, TRUE, "fileopen.xpm" },
    { 22, 22, 8, (const unsigned char*)image_7_data, 330, 89, image_7_ctable, TRUE, "fileprint.xpm" },
    { 22, 22, 8, (const unsigned char*)image_8_data, 78, 8, image_8_ctable, TRUE, "filesave.xpm" },
    { 22, 22, 8, (const unsigned char*)image_9_data, 50, 2, image_9_ctable, TRUE, "textbold.xpm" },
    { 22, 22, 8, (const unsigned char*)image_10_data, 27, 2, image_10_ctable, TRUE, "textcenter.xpm" },
    { 22, 22, 8, (const unsigned char*)image_11_data, 32, 2, image_11_ctable, TRUE, "textitalic.xpm" },
    { 22, 22, 8, (const unsigned char*)image_12_data, 27, 2, image_12_ctable, TRUE, "textjustify.xpm" },
    { 22, 22, 8, (const unsigned char*)image_13_data, 27, 2, image_13_ctable, TRUE, "textleft.xpm" },
    { 22, 22, 8, (const unsigned char*)image_14_data, 27, 2, image_14_ctable, TRUE, "textright.xpm" },
    { 22, 22, 8, (const unsigned char*)image_15_data, 48, 2, image_15_ctable, TRUE, "textunder.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_textedit : public QMimeSourceFactory
{
public:
    MimeSourceFactory_textedit() {}
    ~MimeSourceFactory_textedit() {}
    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_textedit()
{
    if ( !factory ) {
	factory = new MimeSourceFactory_textedit;
	QMimeSourceFactory::defaultFactory()->addFactory( factory );
    }
}

void qCleanupImages_textedit()
{
    if ( factory ) {
	QMimeSourceFactory::defaultFactory()->removeFactory( factory );
	delete factory;
	factory = 0;
    }
}

class StaticInitImages_textedit
{
public:
    StaticInitImages_textedit() { qInitImages_textedit(); }
#if defined(Q_OS_SCO) || defined(Q_OS_UNIXWARE)
    ~StaticInitImages_textedit() { }
#else
    ~StaticInitImages_textedit() { qCleanupImages_textedit(); }
#endif
};

static StaticInitImages_textedit staticImages;
