Add hightlight event frmStatus

1. Добавлена подсветка клиентов c окрытой транзакцией превышающей время idle_in_transaction_session_timeout.
   Цвет выбирается в настройках.
2. Добавлен фильтр показывающий только строки с подсветкой.
This commit is contained in:
levinsv 2025-08-19 16:25:26 +05:00
parent a77fcfcd5a
commit f02ecba5b4
13 changed files with 661 additions and 410 deletions

View file

@ -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);

View file

@ -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;