mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 06:05:49 -06:00
Стандартные иконки можно заменить на SVG иконки. Которые находятся в каталоге include/images. ВАЖНО: иконки для COMMIT и ROLLBACK поменяны местами, зеленая это commit красная rollback (как в PL/SQL Developer). Если это вам не подходит следует изменить имена файлов (query_commit.svg и query_rollback.svg). SVG файлы должны быть размещены: Windos - %APPDATA%/postgresql/svg LINUX - ~/.local/share/pgadmin3/svg
82 lines
3.2 KiB
Text
82 lines
3.2 KiB
Text
#ifndef MODE_TRANSACTION_PNG_H
|
|
#define MODE_TRANSACTION_PNG_H
|
|
|
|
static const unsigned char mode_transaction_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, 0x06, 0x00, 0x00, 0x00, 0x1f, 0xf3, 0xff,
|
|
0x61, 0x00, 0x00, 0x00, 0x09, 0x70, 0x48, 0x59,
|
|
0x73, 0x00, 0x00, 0x00, 0x27, 0x00, 0x00, 0x00,
|
|
0x27, 0x01, 0x2a, 0x09, 0x91, 0x4f, 0x00, 0x00,
|
|
0x00, 0x19, 0x74, 0x45, 0x58, 0x74, 0x53, 0x6f,
|
|
0x66, 0x74, 0x77, 0x61, 0x72, 0x65, 0x00, 0x77,
|
|
0x77, 0x77, 0x2e, 0x69, 0x6e, 0x6b, 0x73, 0x63,
|
|
0x61, 0x70, 0x65, 0x2e, 0x6f, 0x72, 0x67, 0x9b,
|
|
0xee, 0x3c, 0x1a, 0x00, 0x00, 0x00, 0xbd, 0x49,
|
|
0x44, 0x41, 0x54, 0x38, 0x8d, 0xa5, 0x93, 0x3d,
|
|
0x0a, 0xc2, 0x40, 0x10, 0x85, 0xbf, 0x91, 0x80,
|
|
0x60, 0x6f, 0xa7, 0xb5, 0x58, 0xc4, 0xc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, 0xf0, 0xda, 0x00, 0x00, 0x00, 0x00,
|
|
0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82,
|
|
};
|
|
|
|
#include "wx/mstream.h"
|
|
|
|
static wxImage *mode_transaction_png_img()
|
|
{
|
|
if (!wxImage::FindHandler(wxT("PNG file")))
|
|
wxImage::AddHandler(new wxPNGHandler());
|
|
static wxImage *img_mode_transaction_png = new wxImage();
|
|
if (!img_mode_transaction_png || !img_mode_transaction_png->IsOk())
|
|
{
|
|
wxMemoryInputStream img_mode_transaction_pngIS(mode_transaction_png_data, sizeof(mode_transaction_png_data));
|
|
img_mode_transaction_png->LoadFile(img_mode_transaction_pngIS, wxBITMAP_TYPE_PNG);
|
|
}
|
|
return img_mode_transaction_png;
|
|
}
|
|
#define mode_transaction_png_img mode_transaction_png_img()
|
|
|
|
static wxBitmap *mode_transaction_png_bmp()
|
|
{
|
|
static wxBitmap *bmp_mode_transaction_png;
|
|
if (!bmp_mode_transaction_png || !bmp_mode_transaction_png->IsOk())
|
|
bmp_mode_transaction_png = new wxBitmap(*mode_transaction_png_img);
|
|
return bmp_mode_transaction_png;
|
|
}
|
|
#define mode_transaction_png_bmp mode_transaction_png_bmp()
|
|
|
|
static wxIcon *mode_transaction_png_ico()
|
|
{
|
|
static wxIcon *ico_mode_transaction_png;
|
|
if (!ico_mode_transaction_png || !ico_mode_transaction_png->IsOk())
|
|
{
|
|
ico_mode_transaction_png = new wxIcon();
|
|
ico_mode_transaction_png->CopyFromBitmap(*mode_transaction_png_bmp);
|
|
}
|
|
return ico_mode_transaction_png;
|
|
}
|
|
#define mode_transaction_png_ico mode_transaction_png_ico()
|
|
|
|
#endif // MODE_TRANSACTION_PNG_H
|