New features UI query tools.

1. Добавлена подсветка строки с курсором. В настройках можно выбрать цвет фона.
2. Можно указать ширину курсора для раскладки отличной от 0x409 "En" (только Windows).
3. Исправлена проблема с выделением найденного UNICODE текста.
This commit is contained in:
lsv 2024-12-09 11:52:37 +05:00 committed by lsv
parent 925c8e119f
commit f92c101ace
5 changed files with 158 additions and 12 deletions

View file

@ -453,6 +453,17 @@ public:
{
WriteInt(wxT("LineEndingType"), newval);
}
int GetWidthCaretForKeyboardLayout() const
{
int i;
int defval = 1;
Read(wxT("WidthCaretForKeyboardLayout"), &i, defval);
return i;
}
void SetWidthCaretForKeyboardLayout(const int newval)
{
WriteInt(wxT("WidthCaretForKeyboardLayout"), newval);
}
wxString GetFavouritesFile();
void SetFavouritesFile(const wxString &newval)
{
@ -599,6 +610,16 @@ public:
{
WriteBool(wxT("ctlSQLBox/UseSystemBackground"), newval);
}
bool GetCaretUseSystemBackground() const
{
bool b;
Read(wxT("ctlSQLBox/CaretUseSystemBackground"), &b, true);
return b;
}
void SetCaretUseSystemBackground(const bool newval)
{
WriteBool(wxT("ctlSQLBox/CaretUseSystemBackground"), newval);
}
bool GetSQLBoxUseSystemForeground() const
{
bool b;
@ -609,6 +630,16 @@ public:
{
WriteBool(wxT("ctlSQLBox/UseSystemForeground"), newval);
}
wxString GetCaretColourBackground() const
{
wxString s;
Read(wxT("ctlSQLBox/CaretColourBackground"), &s, wxT("#ffffff"));
return s;
}
void SetCaretColourBackground(const wxString& newval)
{
Write(wxT("ctlSQLBox/CaretColourBackground"), newval);
}
wxString GetSQLBoxColourBackground() const
{