diff options
author | Slávek Banko <[email protected]> | 2016-04-05 02:46:02 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2016-04-05 02:46:02 +0200 |
commit | 0fa8770a5566743737ef2812d1f4e6c04d968cda (patch) | |
tree | 2b21a699d9c5a5b4af649f3a7046bb9ae4cb9ad7 /dominoConfig/configData.h | |
download | tde-style-domino-0fa8770a5566743737ef2812d1f4e6c04d968cda.tar.gz tde-style-domino-0fa8770a5566743737ef2812d1f4e6c04d968cda.zip |
Initial import of kde-style-domino 0.4
Diffstat (limited to 'dominoConfig/configData.h')
-rw-r--r-- | dominoConfig/configData.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/dominoConfig/configData.h b/dominoConfig/configData.h new file mode 100644 index 0000000..60478fd --- /dev/null +++ b/dominoConfig/configData.h @@ -0,0 +1,73 @@ +/* + Copyright (C) 2006 Michael Lentner <[email protected]> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +*/ + + +#ifndef _QEMBED_Config +#define _QEMBED_Config +#include <qimage.h> +#include <qdict.h> +static const QRgb tabIndicatorArrow_data[] = { + 0x0,0x0,0x0,0x10000000,0x4e000000,0x10000000,0x0,0x0,0x0,0x0,0x0,0x18000000,0x5f000000,0x66000000, + 0x5f000000,0x18000000,0x0,0x0,0x0,0x21000000,0x63000000,0x66000000,0x66000000,0x66000000,0x63000000,0x20000000,0x0,0x28000000, + 0x62000000,0x63000000,0x66000000,0x66000000,0x66000000,0x63000000,0x62000000,0x27000000,0x0,0x0,0x0,0x60000000,0x66000000,0x60000000, + 0x0,0x0,0x0,0x0,0x0,0x0,0x60000000,0x66000000,0x60000000,0x0,0x0,0x0,0x0,0x0, + 0x0,0x61000000,0x66000000,0x61000000,0x0,0x0,0x0,0x0,0x0,0x0,0x61000000,0x66000000,0x61000000,0x0, + 0x0,0x0,0x0,0x0,0x0,0x62000000,0x66000000,0x62000000,0x0,0x0,0x0 +}; + +/* Generated by qembed */ +static struct ConfigEmbedImage { + int width, height, depth; + const unsigned char *data; + int numColors; + const QRgb *colorTable; + bool alpha; + const char *name; +} config_embed_image_vec[] = { + { 9, 9, 32, (const unsigned char*)tabIndicatorArrow_data, 0, 0, TRUE, "tabIndicatorArrow" }, + { 0, 0, 0, 0, 0, 0, 0, 0 } +}; + +static const QImage& config_findImage( const QString& name ) +{ + static QDict<QImage> dict; + QImage* img = dict.find( name ); + if ( !img ) { + for ( int i = 0; config_embed_image_vec[i].data; i++ ) { + if ( strcmp(config_embed_image_vec[i].name, name.latin1()) == 0 ) { + img = new QImage((uchar*)config_embed_image_vec[i].data, + config_embed_image_vec[i].width, + config_embed_image_vec[i].height, + config_embed_image_vec[i].depth, + (QRgb*)config_embed_image_vec[i].colorTable, + config_embed_image_vec[i].numColors, + QImage::BigEndian ); + if ( config_embed_image_vec[i].alpha ) + img->setAlphaBuffer( TRUE ); + dict.insert( name, img ); + break; + } + } + if ( !img ) { + static QImage dummy; + return dummy; + } + } + return *img; +} + +#endif |