mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
101 lines
4 KiB
Text
101 lines
4 KiB
Text
#ifndef QUERY_PGSCRIPT_PNG_H
|
|
#define QUERY_PGSCRIPT_PNG_H
|
|
|
|
static const unsigned char query_pgscript_png_data[] = {
|
|
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a,
|
|
0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52,
|
|
0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10,
|
|
0x08, 0x03, 0x00, 0x00, 0x00, 0x28, 0x2d, 0x0f,
|
|
0x53, 0x00, 0x00, 0x00, 0x7b, 0x50, 0x4c, 0x54,
|
|
0x45, 0x00, 0x00, 0x00, 0x8b, 0xb1, 0x61, 0x5a,
|
|
0x9b, 0x13, 0xc5, 0xda, 0x8d, 0x00, 0x00, 0x66,
|
|
0xaf, 0xcc, 0x63, 0xaf, 0xcc, 0x64, 0xa9, 0xc8,
|
|
0x56, 0x94, 0xbb, 0x2f, 0xb1, 0xcd, 0x69, 0xaa,
|
|
0xc8, 0x5a, 0x8e, 0xb7, 0x26, 0x97, 0xbc, 0x38,
|
|
0xb4, 0xcf, 0x70, 0xab, 0xc9, 0x5e, 0x90, 0xb8,
|
|
0x2c, 0x92, 0xb9, 0x31, 0x9b, 0xbf, 0x43, 0xb6,
|
|
0xd1, 0x78, 0xad, 0xcb, 0x62, 0x92, 0xba, 0x33,
|
|
0x94, 0xbb, 0x38, 0x96, 0xbc, 0x3d, 0xa5, 0xc5,
|
|
0x5a, 0xcc, 0xdf, 0xa3, 0xae, 0xcb, 0x67, 0x95,
|
|
0xbb, 0x39, 0x96, 0xbd, 0x3e, 0x9e, 0xc2, 0x4f,
|
|
0xba, 0xd3, 0x81, 0xb0, 0xcd, 0x6c, 0x97, 0xbd,
|
|
0x40, 0x9f, 0xc2, 0x51, 0xba, 0xd3, 0x83, 0xb2,
|
|
0xce,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x0c, 0x9a,
|
|
0x51, 0x42, 0x32, 0x39, 0x7e, 0x01, 0xd4, 0xd7,
|
|
0xce, 0x3f, 0x7d, 0x00, 0x1c, 0xed, 0x07, 0x6f,
|
|
0x41, 0x27, 0xa7, 0x0b, 0x00, 0x00, 0x00, 0x25,
|
|
0x74, 0x45, 0x58, 0x74, 0x64, 0x61, 0x74, 0x65,
|
|
0x3a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x00,
|
|
0x32, 0x30, 0x31, 0x30, 0x2d, 0x31, 0x32, 0x2d,
|
|
0x30, 0x31, 0x54, 0x32, 0x30, 0x3a, 0x34, 0x33,
|
|
0x3a, 0x34, 0x35, 0x2b, 0x30, 0x35, 0x3a, 0x30,
|
|
0x30, 0x9e, 0xee, 0x2e, 0xaa, 0x00, 0x00, 0x00,
|
|
0x25, 0x74, 0x45, 0x58, 0x74, 0x64, 0x61, 0x74,
|
|
0x65, 0x3a, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79,
|
|
0x00, 0x32, 0x30, 0x31, 0x30, 0x2d, 0x30, 0x39,
|
|
0x2d, 0x30, 0x31, 0x54, 0x32, 0x33, 0x3a, 0x34,
|
|
0x34, 0x3a, 0x30, 0x36, 0x2b, 0x30, 0x35, 0x3a,
|
|
0x30, 0x30, 0xca, 0x97, 0x55, 0xac, 0x00, 0x00,
|
|
0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42,
|
|
0x60, 0x82,
|
|
};
|
|
|
|
#include "wx/mstream.h"
|
|
|
|
static wxImage *query_pgscript_png_img()
|
|
{
|
|
if (!wxImage::FindHandler(wxT("PNG file")))
|
|
wxImage::AddHandler(new wxPNGHandler());
|
|
static wxImage *img_query_pgscript_png = new wxImage();
|
|
if (!img_query_pgscript_png || !img_query_pgscript_png->IsOk())
|
|
{
|
|
wxMemoryInputStream img_query_pgscript_pngIS(query_pgscript_png_data, sizeof(query_pgscript_png_data));
|
|
img_query_pgscript_png->LoadFile(img_query_pgscript_pngIS, wxBITMAP_TYPE_PNG);
|
|
}
|
|
return img_query_pgscript_png;
|
|
}
|
|
#define query_pgscript_png_img query_pgscript_png_img()
|
|
|
|
static wxBitmap *query_pgscript_png_bmp()
|
|
{
|
|
static wxBitmap *bmp_query_pgscript_png;
|
|
if (!bmp_query_pgscript_png || !bmp_query_pgscript_png->IsOk())
|
|
bmp_query_pgscript_png = new wxBitmap(*query_pgscript_png_img);
|
|
return bmp_query_pgscript_png;
|
|
}
|
|
#define query_pgscript_png_bmp query_pgscript_png_bmp()
|
|
|
|
static wxIcon *query_pgscript_png_ico()
|
|
{
|
|
static wxIcon *ico_query_pgscript_png;
|
|
if (!ico_query_pgscript_png || !ico_query_pgscript_png->IsOk())
|
|
{
|
|
ico_query_pgscript_png = new wxIcon();
|
|
ico_query_pgscript_png->CopyFromBitmap(*query_pgscript_png_bmp);
|
|
}
|
|
return ico_query_pgscript_png;
|
|
}
|
|
#define query_pgscript_png_ico query_pgscript_png_ico()
|
|
|
|
#endif // QUERY_PGSCRIPT_PNG_H
|