mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
Add hightlight event frmStatus
1. Добавлена подсветка клиентов c окрытой транзакцией превышающей время idle_in_transaction_session_timeout. Цвет выбирается в настройках. 2. Добавлен фильтр показывающий только строки с подсветкой.
This commit is contained in:
parent
a77fcfcd5a
commit
f02ecba5b4
13 changed files with 661 additions and 410 deletions
|
|
@ -9,6 +9,7 @@
|
|||
#include <map>
|
||||
#include <vector>
|
||||
#include "wx/display.h"
|
||||
#include "frm/menuServerStatus.h"
|
||||
|
||||
class popuphelp :
|
||||
public wxPopupTransientWindow
|
||||
|
|
@ -155,7 +156,7 @@ public:
|
|||
wxString wname = GetParent()->GetName();
|
||||
if (wname == "frmStatus") {
|
||||
//CMD_EVENT_FIND_STR
|
||||
wxCommandEvent event(wxEVT_MENU, 281);
|
||||
wxCommandEvent event(wxEVT_MENU, CMD_EVENT_FIND_STR);
|
||||
event.SetEventObject(this);
|
||||
// Give it some contents
|
||||
event.SetString(ctext);
|
||||
|
|
|
|||
|
|
@ -584,6 +584,16 @@ public:
|
|||
{
|
||||
Write(wxT("SlowProcessColour"), newval);
|
||||
}
|
||||
void SetIdle_in_transaction_session_timeoutProcessColour(const wxString& newval)
|
||||
{
|
||||
Write(wxT("Idle_in_transaction_session_timeoutProcessColour"), newval);
|
||||
}
|
||||
wxString GetIdle_in_transaction_session_timeoutProcessColour() const
|
||||
{
|
||||
wxString s;
|
||||
Read(wxT("Idle_in_transaction_session_timeoutProcessColour"), &s, wxT("#ad5bff"));
|
||||
return s;
|
||||
}
|
||||
wxString GetBlockedProcessColour() const
|
||||
{
|
||||
wxString s;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue