Toolbar set size 32x32 for query tool. Use SVG icons.

Стандартные иконки можно заменить на 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
This commit is contained in:
lsv 2026-04-16 23:15:01 +05:00
parent 46fce82dd8
commit 982845b946
11 changed files with 383 additions and 84 deletions

View file

@ -81,6 +81,8 @@
#include "images/query_cancel.pngc"
#include "images/query_commit.pngc"
#include "images/query_rollback.pngc"
#include "images/mode_transaction.pngc"
#include "images/mode_autocommit.pngc"
#include "images/help.pngc"
#include "images/gqbJoin.pngc"
#include <map>
@ -144,6 +146,7 @@ BEGIN_EVENT_TABLE(frmQuery, pgFrame)
EVT_MENU(MNU_AUTOSELECTQUERY, frmQuery::OnAutoSelectQuery)
EVT_MENU(MNU_AUTOROLLBACK, frmQuery::OnAutoRollback)
EVT_MENU(MNU_AUTOCOMMIT, frmQuery::OnAutoCommit)
EVT_MENU(MNU_MODE_TRANSACTION, frmQuery::OnModeTransaction)
EVT_MENU(MNU_CONTENTS, frmQuery::OnContents)
EVT_MENU(MNU_HELP, frmQuery::OnHelp)
EVT_MENU(MNU_CLEARHISTORY, frmQuery::OnClearHistory)
@ -603,8 +606,8 @@ frmQuery::frmQuery(frmMain *form, const wxString &_title, pgConn *_conn, const w
SetStatusText(_("ready"), STATUSPOS_MSGS);
toolBar = new ctlMenuToolbar(this, -1, wxDefaultPosition, wxDefaultSize, wxTB_FLAT | wxTB_NODIVIDER);
wxSize tbsz(32,32);
//toolBar->SetToolBitmapSize(wxSize(22, 22));
wxSize tbsz((32), (32));
toolBar->SetToolBitmapSize(FromDIP(wxSize(32, 32)));
wxLogInfo(wxT("frmQuery::Create tool bar .."));
toolBar->AddTool(MNU_NEWSQLTAB, wxEmptyString, GetBundleSVG(file_new_png_bmp, "file_new.svg", tbsz), _("New SQL tab"), wxITEM_NORMAL);
toolBar->AddTool(MNU_OPEN, wxEmptyString, GetBundleSVG(file_open_png_bmp, "file_open.svg", tbsz) , _("Open file"), wxITEM_NORMAL);
@ -630,9 +633,18 @@ frmQuery::frmQuery(frmMain *form, const wxString &_title, pgConn *_conn, const w
toolBar->AddTool(MNU_DOCOMMIT, wxEmptyString, GetBundleSVG(query_commit_png_bmp, "query_commit.svg", tbsz), _("Commit"), wxITEM_NORMAL);
toolBar->AddTool(MNU_DOROLLBACK, wxEmptyString, GetBundleSVG(query_rollback_png_bmp, "query_rollback.svg", tbsz), _("Rollback"), wxITEM_NORMAL);
bool chk = settings->GetAutoCommit();
mode_a = GetBundleSVG(mode_autocommit_png_bmp, "mode_autocommit.svg", tbsz);
mode_t = GetBundleSVG(mode_transaction_png_bmp, "mode_transaction.svg", tbsz);
if (chk)
toolBar->AddTool(MNU_MODE_TRANSACTION, wxEmptyString, mode_a, _("Mode transaction"), wxITEM_NORMAL);
else
toolBar->AddTool(MNU_MODE_TRANSACTION, wxEmptyString, mode_t, _("Mode transaction"), wxITEM_NORMAL);
toolBar->AddSeparator();
toolBar->AddTool(MNU_HELP, wxEmptyString, GetBundleSVG(help_png_bmp, "help.svg", tbsz), _("Display help on SQL commands."), wxITEM_NORMAL);
toolBar->Realize();
wxLogInfo(wxT("frmQuery::Create tool bar Ok"));
wxSize toolw = toolBar->GetBestSize();
@ -640,24 +652,6 @@ frmQuery::frmQuery(frmMain *form, const wxString &_title, pgConn *_conn, const w
cbConnection = new wxBitmapComboBox(this, CTRLID_CONNECTION, wxEmptyString, wxDefaultPosition, wxSize(-1, -1), wxArrayString(), wxCB_READONLY | wxCB_DROPDOWN);
cbConnection->Append(conn->GetName(), CreateBitmap(GetServerColour(conn)), (void *)conn);
cbConnection->Append(_("<new connection>"), wxNullBitmap, (void *) NULL);
//CTL_BUTTONTRANSACTION
btnModeTransaction = new wxButton(this, CTL_BUTTONTRANSACTION, "A",wxDefaultPosition,wxSize(-1, -1),wxMINIMIZE_BOX);
//btnModeTransaction->SetMaxSize(wxSize(24,24));
// btnModeTransaction->Enable(true);
wxFont stdFont = settings->GetSystemFont();
wxFont boldFont = stdFont;
boldFont.SetWeight(wxFONTWEIGHT_BOLD);
btnModeTransaction->SetFont(boldFont);
if (settings->GetAutoCommit())
btnModeTransaction->SetLabel("A");
else
btnModeTransaction->SetLabel("T");
// btnModeTransaction->Fit();
//Create SQL editor notebook
sqlNotebook = new ctlAuiNotebook(this, CTL_NTBKCENTER, wxDefaultPosition, wxDefaultSize, wxAUI_NB_TOP | wxAUI_NB_TAB_SPLIT | wxAUI_NB_TAB_MOVE | wxAUI_NB_SCROLL_BUTTONS | wxAUI_NB_WINDOWLIST_BUTTON);
@ -753,7 +747,6 @@ frmQuery::frmQuery(frmMain *form, const wxString &_title, pgConn *_conn, const w
wxSize w1 = cbConnection->GetBestSize();
// Kickstart wxAUI
manager.AddPane(toolBar, wxAuiPaneInfo().Name(wxT("toolBar")).Caption(_("Tool bar")).ToolbarPane().Top().LeftDockable(false).RightDockable(false));
manager.AddPane(btnModeTransaction, wxAuiPaneInfo().Name(wxT("ModeTransaction")).Caption(_("Mode transaction")).ToolbarPane().Top().LeftDockable(false).RightDockable(false).Left().LeftDockable(false));
manager.AddPane(cbConnection, wxAuiPaneInfo().Name(wxT("databaseBar")).Caption(_("Connection bar")).ToolbarPane().Top().LeftDockable(false).RightDockable(false));
manager.AddPane(outputPane, wxAuiPaneInfo().Name(wxT("outputPane")).Caption(_("Output pane")).Bottom().MinSize(wxSize(200, 100)).BestSize(wxSize(550, 300)));
@ -770,17 +763,6 @@ frmQuery::frmQuery(frmMain *form, const wxString &_title, pgConn *_conn, const w
manager.GetPane(wxT("databaseBar")).BestSize(w1);
manager.GetPane(wxT("toolBar")).BestSize(toolw);
manager.GetPane(wxT("databaseBar")).Caption(_("Connection bar"));
//manager.GetPane(wxT("ModeTransaction")).Caption(_("Mode transaction"));
if (!manager.GetPane(wxT("ModeTransaction")).IsShown()) {
//manager.GetPane(wxT("ModeTransaction")).MaxSize(wxSize(22, 22));
//manager.GetPane(wxT("ModeTransaction")).BestSize(wxSize(22, 22));
wxSize sz=btnModeTransaction->GetSize();
int m= std::max(sz.GetWidth(), sz.GetHeight());
manager.GetPane(wxT("ModeTransaction")).BestSize(wxSize(m, m));
manager.GetPane(wxT("ModeTransaction")).MaxSize(wxSize(m, m));
manager.GetPane(wxT("ModeTransaction")).Show(true);
}
manager.GetPane(wxT("sqlQuery")).Caption(_("SQL query"));
manager.GetPane(wxT("outputPane")).Caption(_("Output pane"));
manager.GetPane(wxT("scratchPad")).Caption(_("Scratch pad"));
@ -1228,9 +1210,10 @@ void frmQuery::OnAutoCommit(wxCommandEvent &event)
bool chk=queryMenu->IsChecked(MNU_AUTOCOMMIT);
queryMenu->Check(MNU_AUTOCOMMIT, chk);
if (chk)
btnModeTransaction->SetLabel("A");
toolBar->SetToolNormalBitmap(MNU_MODE_TRANSACTION, mode_a.GetBitmap(wxDefaultSize));
else
btnModeTransaction->SetLabel("T");
toolBar->SetToolNormalBitmap(MNU_MODE_TRANSACTION, mode_t.GetBitmap(wxDefaultSize));
toolBar->Realize();
if(chk && conn->GetTxStatus() != PQTRANS_IDLE)
wxMessageBox(

View file

@ -35,14 +35,14 @@
//
// This number MUST be incremented if changing any of the default perspectives
//
#define FRMQUERY_PERSPECTIVE_VER wxT("8322")
#define FRMQUERY_PERSPECTIVE_VER wxT("8323")
#ifdef __WXMAC__
#define FRMQUERY_DEFAULT_PERSPECTIVE wxT("layout2|name=toolBar;caption=Tool bar;state=16788208;dir=1;layer=10;row=0;pos=0;prop=100000;bestw=465;besth=23;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=databaseBar;caption=Database bar;state=16788208;dir=1;layer=10;row=0;pos=396;prop=100000;bestw=300;besth=21;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=sqlQuery;caption=SQL query;state=17404;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=350;besth=200;minw=200;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=outputPane;caption=Output pane;state=16779260;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=550;besth=300;minw=200;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=scratchPad;caption=Scratch pad;state=16779260;dir=2;layer=0;row=0;pos=0;prop=100000;bestw=250;besth=200;minw=100;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(1,10,0)=25|dock_size(5,0,0)=200|dock_size(3,0,0)=290|dock_size(2,0,0)=255|")
#else
#ifdef __WXGTK__
#define FRMQUERY_DEFAULT_PERSPECTIVE wxT("layout2|name=toolBar;caption=Tool bar;state=2108144;dir=1;layer=10;row=0;pos=0;prop=100000;bestw=564;besth=39;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=databaseBar;caption=Connection bar;state=2108144;dir=1;layer=10;row=0;pos=671;prop=100000;bestw=232;besth=32;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=ModeTransaction;caption=Mode transaction;state=2108148;dir=1;layer=10;row=0;pos=575;prop=100000;bestw=32;besth=32;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=672;floaty=90;floatw=32;floath=32|name=outputPane;caption=Output pane;state=6293500;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=550;besth=300;minw=200;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=scratchPad;caption=Scratch pad;state=2099196;dir=2;layer=0;row=0;pos=0;prop=100000;bestw=250;besth=200;minw=100;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=sqlQuery;caption=SQL query;state=1020;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=350;besth=200;minw=200;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(1,10,0)=41|dock_size(3,0,0)=217|dock_size(2,0,0)=252|dock_size(5,0,0)=293|")
#define FRMQUERY_DEFAULT_PERSPECTIVE wxT("layout2|name=toolBar;caption=Tool bar;state=2108144;dir=1;layer=10;row=0;pos=0;prop=100000;bestw=564;besth=39;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=databaseBar;caption=Connection bar;state=2108144;dir=1;layer=10;row=0;pos=671;prop=100000;bestw=232;besth=32;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=outputPane;caption=Output pane;state=6293500;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=550;besth=300;minw=200;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=scratchPad;caption=Scratch pad;state=2099196;dir=2;layer=0;row=0;pos=0;prop=100000;bestw=250;besth=200;minw=100;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=sqlQuery;caption=SQL query;state=1020;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=350;besth=200;minw=200;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(1,10,0)=41|dock_size(3,0,0)=217|dock_size(2,0,0)=252|dock_size(5,0,0)=293|")
#else
#define FRMQUERY_DEFAULT_PERSPECTIVE wxT("layout2|name=toolBar;caption=Tool bar;state=16788208;dir=1;layer=10;row=0;pos=0;prop=100000;bestw=500;besth=28;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=ModeTransaction;caption=ModeTransaction;state=16788208;dir=1;layer=10;row=0;pos=396;prop=100000;bestw=24;besth=24;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=databaseBar;caption=Database bar;state=16788208;dir=1;layer=10;row=0;pos=430;prop=100000;bestw=300;besth=21;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=sqlQuery;caption=SQL query;state=17404;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=350;besth=200;minw=200;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=outputPane;caption=Output pane;state=16779260;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=550;besth=300;minw=200;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=scratchPad;caption=Scratch pad;state=16779260;dir=2;layer=0;row=0;pos=0;prop=100000;bestw=250;besth=200;minw=100;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(1,10,0)=25|dock_size(5,0,0)=200|dock_size(3,0,0)=290|dock_size(2,0,0)=255|")
#define FRMQUERY_DEFAULT_PERSPECTIVE wxT("layout2|name=toolBar;caption=Tool bar;state=16788208;dir=1;layer=10;row=0;pos=0;prop=100000;bestw=500;besth=28;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=databaseBar;caption=Database bar;state=16788208;dir=1;layer=10;row=0;pos=430;prop=100000;bestw=300;besth=21;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=sqlQuery;caption=SQL query;state=17404;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=350;besth=200;minw=200;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=outputPane;caption=Output pane;state=16779260;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=550;besth=300;minw=200;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=scratchPad;caption=Scratch pad;state=16779260;dir=2;layer=0;row=0;pos=0;prop=100000;bestw=250;besth=200;minw=100;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(1,10,0)=25|dock_size(5,0,0)=200|dock_size(3,0,0)=290|dock_size(2,0,0)=255|")
#endif
#endif
@ -348,7 +348,7 @@ private:
bool aborted;
bool lastFileFormat;
bool m_loadingfile;
wxBitmapBundle mode_a, mode_t;
// A simple mutex-like flag to prevent concurrent script execution.
// Required because the pgScript parser isn't currently thread-safe :-(
static bool ms_pgScriptRunning;

View file

@ -73,6 +73,7 @@ enum
MNU_EXPLAINOPTIONS,
MNU_DOCOMMIT,
MNU_DOROLLBACK,
MNU_MODE_TRANSACTION,
MNU_VERBOSE,
MNU_COSTS,
MNU_BUFFERS,

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

View file

@ -0,0 +1,98 @@
#ifndef MODE_AUTOCOMMIT_PNG_H
#define MODE_AUTOCOMMIT_PNG_H
static const unsigned char mode_autocommit_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, 0x01, 0x38, 0x49,
0x44, 0x41, 0x54, 0x38, 0x8d, 0xa5, 0xd3, 0xcf,
0x4a, 0x55, 0x61, 0x14, 0x05, 0xf0, 0xdf, 0xbe,
0xfd, 0x01, 0xa7, 0x41, 0x88, 0x38, 0x51, 0x1a,
0xf8, 0x26, 0xa1, 0xa1, 0x97, 0xfb, 0x08, 0x21,
0x98, 0x03, 0x1f, 0x43, 0x7a, 0x8a, 0x84, 0xe8,
0x05, 0x42, 0x12, 0x53, 0x1f, 0xc1, 0x6a, 0xe2,
0x20, 0x9a, 0x49, 0x83, 0xa2, 0x51, 0x36, 0x30,
0x9b, 0x24, 0xee, 0x06, 0xee, 0x7b, 0xf9, 0xee,
0xf1, 0x90, 0x03, 0x17, 0x6c, 0x0e, 0x67, 0xed,
0xfd, 0xad, 0xbd, 0xce, 0x3e, 0xdf, 0x8e, 0xcc,
0x74, 0x27, 0x64, 0xa6, 0x12, 0x19, 0xe1, 0x33,
0x2e, 0x91, 0x3d, 0x71, 0x81, 0x33, 0x9c, 0x60,
0x65, 0x7c, 0x2e, 0x32, 0x53, 0x44, 0x8c, 0xf0,
0x16, 0xef, 0xf1, 0xee, 0x96, 0x9e, 0x43, 0x2c,
0x63, 0x35, 0x33, 0x0f, 0xc7, 0xdd, 0xbf, 0x60,
0x6f, 0xac, 0xda, 0xb8, 0x9a, 0xc1, 0x4c, 0x0f,
0xbf, 0x87, 0xe3, 0xcc, 0x34, 0x28, 0xd5, 0x05,
0xec, 0xf7, 0x74, 0x7b, 0x53, 0xd1, 0xc5, 0x3e,
0x96, 0xe0, 0x7e, 0x11, 0x83, 0x6e, 0x45, 0x44,
0xcc, 0xd6, 0x5c, 0x44, 0xc4, 0x5c, 0x66, 0xfe,
0xe8, 0x94, 0xdc, 0xeb, 0x3d, 0xd8, 0x60, 0x1d,
0xbf, 0x2b, 0x9e, 0xf7, 0xe4, 0x07, 0xad, 0x40,
0x74, 0xba, 0x0f, 0xb0, 0x81, 0xd7, 0x15, 0x1b,
0xc5, 0x4d, 0x95, 0xb5, 0x02, 0x57, 0x9d, 0xe4,
0x53, 0x2c, 0xe2, 0x67, 0xc5, 0x62, 0x71, 0x37,
0x30, 0x9e, 0xc1, 0x65, 0x87, 0xdf, 0xac, 0xe7,
0xcb, 0x86, 0x7b, 0x81, 0xc3, 0xe6, 0x3d, 0x5b,
0x07, 0x7f, 0x1b, 0xfb, 0xf3, 0x58, 0xc5, 0x16,
0x9e, 0x54, 0x6c, 0x61, 0xad, 0x72, 0xff, 0x17,
0xc0, 0x33, 0x7c, 0xc3, 0x4e, 0x66, 0x9e, 0x66,
0xe6, 0x29, 0x5e, 0xe1, 0x2b, 0x56, 0x9a, 0xba,
0x6b, 0xd7, 0x75, 0x31, 0x3e, 0xe2, 0xa0, 0x04,
0x1f, 0xe2, 0x51, 0xcf, 0xe5, 0x79, 0x8c, 0x07,
0xcd, 0x45, 0xfa, 0x94, 0x99, 0x93, 0x19, 0x6c,
0x63, 0x17, 0x47, 0xf5, 0x9d, 0xe7, 0x11, 0x53,
0x3f, 0x66, 0x82, 0x88, 0x18, 0x96, 0xcb, 0xd1,
0xc4, 0x41, 0xa9, 0x0e, 0x71, 0x8c, 0xef, 0xae,
0x97, 0xe6, 0x97, 0x9b, 0x0b, 0xf5, 0x07, 0x1f,
0xb0, 0x36, 0xb5, 0x4c, 0x77, 0xc1, 0x3f, 0x16,
0xa2, 0x9e, 0x88, 0x56, 0x3b, 0x46, 0x2a, 0x00,
0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae,
0x42, 0x60, 0x82,
};
#include "wx/mstream.h"
static wxImage *mode_autocommit_png_img()
{
if (!wxImage::FindHandler(wxT("PNG file")))
wxImage::AddHandler(new wxPNGHandler());
static wxImage *img_mode_autocommit_png = new wxImage();
if (!img_mode_autocommit_png || !img_mode_autocommit_png->IsOk())
{
wxMemoryInputStream img_mode_autocommit_pngIS(mode_autocommit_png_data, sizeof(mode_autocommit_png_data));
img_mode_autocommit_png->LoadFile(img_mode_autocommit_pngIS, wxBITMAP_TYPE_PNG);
}
return img_mode_autocommit_png;
}
#define mode_autocommit_png_img mode_autocommit_png_img()
static wxBitmap *mode_autocommit_png_bmp()
{
static wxBitmap *bmp_mode_autocommit_png;
if (!bmp_mode_autocommit_png || !bmp_mode_autocommit_png->IsOk())
bmp_mode_autocommit_png = new wxBitmap(*mode_autocommit_png_img);
return bmp_mode_autocommit_png;
}
#define mode_autocommit_png_bmp mode_autocommit_png_bmp()
static wxIcon *mode_autocommit_png_ico()
{
static wxIcon *ico_mode_autocommit_png;
if (!ico_mode_autocommit_png || !ico_mode_autocommit_png->IsOk())
{
ico_mode_autocommit_png = new wxIcon();
ico_mode_autocommit_png->CopyFromBitmap(*mode_autocommit_png_bmp);
}
return ico_mode_autocommit_png;
}
#define mode_autocommit_png_ico mode_autocommit_png_ico()
#endif // MODE_AUTOCOMMIT_PNG_H

View file

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
version="1.1"
id="svg2"
width="4096"
height="4096"
viewBox="0 0 4096 4096"
sodipodi:docname="mode_autocommit.svg"
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs6" />
<sodipodi:namedview
id="namedview4"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="0.1809082"
inkscape:cx="909.30096"
inkscape:cy="2056.2915"
inkscape:window-width="1920"
inkscape:window-height="921"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="g8" />
<g
inkscape:groupmode="layer"
inkscape:label="Image"
id="g8"
style="display:inline">
<path
style="display:inline;fill:#000000;stroke-width:16"
d="M 931.0496,3807.6003 C 598.9713,3720.6053 354.91187,3466.0098 279.57362,3128 258.06824,3031.5149 255.31181,2874.1502 259.67514,1992 l 5.06494,-1024 36.95176,-99.5645 C 399.24403,605.58642 605.58642,399.24403 868.4355,301.69184 L 968,264.74008 1992,259.67514 c 1140.6283,-5.64183 1154.1254,-4.64543 1364.0573,100.69915 198.4048,99.56032 370.9769,306.00704 440.4953,526.96131 C 3831.6416,998.86096 3832,1010.5953 3832,2048 c 0,1037.4046 -0.3584,1049.139 -35.4474,1160.6645 -93.2344,296.332 -332.5137,521.5755 -636.7313,599.3813 -118.4976,30.3065 -176.1669,31.9088 -1118.3807,31.0732 -925.6755,-0.8208 -1001.4181,-2.9708 -1110.391,-31.5187 z m 2239.5936,-379.7552 c 123.2667,-60.7005 207.8974,-147.463 267.1941,-273.9249 L 3480,3064 V 2048 1032 l -42.1627,-89.92018 C 3378.5291,815.59336 3293.9122,728.85414 3170.6146,668.15496 L 3064.6728,616 H 2048 1031.3271 L 925.38536,668.15496 C 802.08781,728.85414 717.47085,815.59336 658.16264,942.07982 L 616,1032 v 1016 1016 l 42.16264,89.9202 c 77.09362,164.4174 223.02282,284.6116 385.39766,317.4318 37.6418,7.6085 507.8039,12.6667 1044.8047,11.2408 L 3064.7299,3480 Z M 1252.1011,3103.5389 c -43.178,-17.3594 -99.9583,-105.604 -100.0413,-155.4783 -0.1043,-62.6552 734.2052,-1879.986 777.4346,-1924.0606 31.3915,-32.00536 55.0768,-40 118.5056,-40 63.4288,0 87.1141,7.99464 118.5056,40 43.2294,44.0746 777.5389,1861.4054 777.4346,1924.0606 -0.08,52.5829 -57.6872,138.354 -104.9892,156.3383 -141.1659,53.6712 -203.6145,-3.0362 -317.5971,-288.3989 l -86.2771,-216 H 2048 1660.9232 l -86.2771,216 c -96.3768,241.2854 -145.5691,304.7365 -234.8985,302.9858 -28.4612,-0.5584 -67.9021,-7.509 -87.6465,-15.4469 z M 2170.4454,1936.1792 C 2107.5005,1777.8778 2052.4,1648.3586 2048,1648.3586 c -4.4,0 -59.5005,129.5192 -122.4454,287.8206 L 1811.1093,2224 H 2048 2284.8907 Z"
id="path5270" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

View file

@ -0,0 +1,82 @@
#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, 0xc6, 0x2b,
0x78, 0x86, 0xdc, 0xc3, 0x03, 0xa4, 0xf2, 0x36,
0x5a, 0x78, 0x02, 0xaf, 0x60, 0xa1, 0x9d, 0x8d,
0x87, 0x10, 0x04, 0xc1, 0xf8, 0x6c, 0x56, 0x59,
0x4d, 0x76, 0xcd, 0x9a, 0x81, 0x81, 0x9d, 0x9f,
0xf7, 0x78, 0xcb, 0xcc, 0x98, 0x24, 0xba, 0x58,
0x06, 0x60, 0x66, 0x2b, 0xe0, 0x90, 0x88, 0x9d,
0x49, 0x2a, 0x33, 0x17, 0x1c, 0x25, 0x6d, 0x52,
0xd0, 0x66, 0x66, 0x6f, 0x05, 0x5f, 0x85, 0x29,
0x30, 0x08, 0xe0, 0x2e, 0x92, 0x4e, 0x7e, 0xa2,
0x46, 0x00, 0x6c, 0x81, 0x49, 0x80, 0x60, 0x0f,
0xcc, 0x7f, 0x11, 0x2c, 0x81, 0x31, 0x30, 0x02,
0x4a, 0x2f, 0x77, 0x05, 0xce, 0xb5, 0x6e, 0x37,
0x85, 0x42, 0x12, 0xbe, 0x03, 0x43, 0x40, 0xce,
0xfb, 0x0d, 0xf5, 0x42, 0x12, 0xbd, 0x80, 0x54,
0x80, 0x47, 0xe0, 0xfd, 0x61, 0x31, 0x82, 0xca,
0x17, 0xda, 0x95, 0xa0, 0x0a, 0x35, 0xb5, 0xfa,
0x82, 0x22, 0xeb, 0xda, 0x46, 0x41, 0x74, 0xd7,
0x9b, 0xc6, 0xf8, 0xb2, 0x1b, 0xb0, 0x00, 0xee,
0x7f, 0x11, 0x38, 0xd9, 0xbb, 0x18, 0xd8, 0x27,
0xc8, 0xcd, 0x2c, 0xf5, 0x2c, 0x73, 0x60, 0x6d,
0x5d, 0xcf, 0xf9, 0x09, 0x3b, 0xa6, 0x50, 0x72,
0xaf, 0x4a, 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

View file

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
version="1.1"
id="svg2"
width="4096"
height="4096"
viewBox="0 0 4096 4096"
sodipodi:docname="mode_transaction.svg"
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs6">
<inkscape:path-effect
effect="powerclip"
id="path-effect9256"
is_visible="true"
lpeversion="1"
inverse="true"
flatten="false"
hide_clip="false"
message="Используйте чётно-нечётное правило заливки в диалоговом окне &lt;b&gt;заливки и обводки&lt;/b&gt;, если результат выравнивания после преобразования вырезки в контуры отсутствует." />
<linearGradient
id="linearGradient7497"
inkscape:swatch="solid">
<stop
style="stop-color:#000000;stop-opacity:1;"
offset="0"
id="stop7495" />
</linearGradient>
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath9252">
<path
style="display:block;opacity:1;fill:#000000;fill-opacity:0;stroke:#000000;stroke-width:10;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:0.707207"
d="m 1813.6135,2216.2044 234.5189,-574.5715 234.519,582.3888 z"
id="path9254" />
</clipPath>
</defs>
<sodipodi:namedview
id="namedview4"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="0.1809082"
inkscape:cx="257.03644"
inkscape:cy="2106.0405"
inkscape:window-width="1920"
inkscape:window-height="921"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="g8" />
<g
inkscape:groupmode="layer"
inkscape:label="Image"
id="g8">
<path
style="display:inline;fill:#000000;stroke-width:4.70489"
d="m 1809.6834,3135.1244 c -8.2062,-3.3004 -18.6421,-11.2478 -23.1912,-17.6596 -7.6783,-10.821 -8.3644,-71.9521 -9.5589,-851.7449 -1.0478,-683.8493 -2.4838,-842.0238 -7.7198,-850.502 -3.5377,-5.7282 -13.4521,-14.3679 -22.0321,-19.199 -15.0108,-8.4525 -27.2762,-8.7837 -325.4218,-8.8007 -337.1133,0 -332.4943,0.3151 -351.3468,-25.3975 -9.0726,-12.3743 -9.5686,-21.8352 -9.5686,-182.6006 0,-184.87553 -0.2742,-182.98364 28.4636,-199.16431 15.3025,-8.61641 33.4256,-8.78367 953.1641,-8.78367 919.7393,0 937.8616,0.16967 953.1641,8.78367 28.7343,16.18067 28.4645,14.28878 28.4645,199.16431 0,160.7654 -0.4951,170.2263 -9.5686,182.6006 -18.8605,25.7232 -14.1,25.3805 -352.8146,25.3805 -341.5403,0 -331.9134,-0.7435 -347.4397,26.9806 -6.5597,11.714 -7.427,110.4553 -7.427,845.5586 0,916.0797 2.1458,854.311 -30.3046,872.5813 -15.6261,8.7983 -24.0082,9.1191 -234.0741,8.9648 -170.0116,-0.1217 -221.1448,-1.4781 -232.7885,-6.1621 z"
id="pathT"
sodipodi:insensitive="true" />
<rect
style="display:inline;opacity:1;fill:none;fill-opacity:0;stroke:#000000;stroke-width:85.1079;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="rect9312"
width="3437.5723"
height="3514.9597"
x="329.21384"
y="290.52017" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

View file

@ -1636,6 +1636,8 @@
<png2c Include="include\images\language.png" />
<png2c Include="include\images\languages.png" />
<png2c Include="include\images\loginroles.png" />
<png2c Include="include\images\mode_autocommit.png" />
<png2c Include="include\images\mode_transaction.png" />
<png2c Include="include\images\mview.png" />
<png2c Include="include\images\mview-sm.png" />
<png2c Include="include\images\namespace-sm.png" />

View file

@ -4648,6 +4648,12 @@
<png2c Include="include\images\warning_amber_48dp.png">
<Filter>include\images</Filter>
</png2c>
<png2c Include="include\images\mode_autocommit.png">
<Filter>include\images</Filter>
</png2c>
<png2c Include="include\images\mode_transaction.png">
<Filter>include\images</Filter>
</png2c>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="pgAdmin3.rc" />