In the query results, integers can be viewed in a human-readable form.

В расширенном представлении ячейки большие числа будут показаны в удобочитаемом виде.
This commit is contained in:
lsv 2026-02-27 12:12:37 +05:00
parent 90c328085e
commit f434a890fe
2 changed files with 20 additions and 2 deletions

View file

@ -10,6 +10,8 @@
#define PREVIEW_ENDFIELD 16
#define PREVIEW_ENDROW 32
#define PREVIEW_QUOTE 64
#define PREVIEW_RAWHTML 128
#define CHKFLAG2(val,par) ((val & par)>0)
enum class fmtpreview {
AUTO, AUTOVACCUM,CSV,SIMPLE_TEXT
@ -61,8 +63,12 @@ private:
bool saveTokenIfNotEmpty(wxString& savestr, int flag) {
if (savestr.Length() > 0) {
wxString tmp = savestr;
tmp=escapeHtml(tmp,true);
tmp.Replace(" ", " ");
if (CHKFLAG2(flag, PREVIEW_RAWHTML)) {
// nothing
} else {
tmp=escapeHtml(tmp,true);
tmp.Replace(" ", " ");
}
if (CHKFLAG2(flag, PREVIEW_ENDROW)) tmp = "<br>";
if (CHKFLAG2(flag, PREVIEW_DIGITS)) {
int l = savestr.Length();