Files
HeidiSQL/source/const.inc

119 lines
3.9 KiB
PHP

// Common constants
const
// Line breaks
// TODO: use sLineBreak instead
CRLF = #13#10;
LB_UNIX = #10;
LB_MAC = #13;
LB_WIDE = WideChar($2027);
// Placeholder text for NULL values
TEXT_NULL = '(NULL)';
// General things
APPNAME = 'HeidiSQL';
APPDOMAIN = 'https://www.heidisql.com/';
REGKEY_SESSIONS = 'Servers';
REGKEY_QUERYHISTORY = 'QueryHistory';
REGKEY_RECENTFILTERS = 'RecentFilters';
// Some unique char, used to separate e.g. selected columns in registry
DELIM = '|';
CHR10REPLACEMENT = '<}}}>';
CHR13REPLACEMENT = '<{{{>';
DELIMITER = '<|||>';
COLORSHIFT_NULLFIELDS = 70; // Brightness adjustment to add to normal field colors for NULL values
COLORSHIFT_SORTCOLUMNS = 12; // Brightness adjustment to add to sorted column backgrounds
// Various iconindexes
ICONINDEX_PRIMARYKEY = 25;
ICONINDEX_FIELD = 42;
ICONINDEX_INDEXKEY = 23;
ICONINDEX_UNIQUEKEY = 24;
ICONINDEX_FULLTEXTKEY = 22;
ICONINDEX_SPATIALKEY = 126;
ICONINDEX_FOREIGNKEY = 136;
ICONINDEX_SERVER = 36;
ICONINDEX_DB = 5;
ICONINDEX_HIGHLIGHTMARKER = 157;
ICONINDEX_TABLE = 14;
ICONINDEX_VIEW = 81;
ICONINDEX_STOREDPROCEDURE = 119;
ICONINDEX_STOREDFUNCTION = 35;
ICONINDEX_TRIGGER = 137;
ICONINDEX_FUNCTION = 13;
ICONINDEX_EVENT = 80;
ICONINDEX_KEYWORD = 25;
// Size of byte units
{Kibibyte} SIZE_KB = 1024;
{Mebibyte} SIZE_MB = 1048576;
{Gibibyte} SIZE_GB = 1073741824;
{Tebibyte} SIZE_TB = 1099511627776;
{Pebibyte} SIZE_PB = 1125899906842624;
{Exbibyte} SIZE_EB = 1152921504606846976;
// Size of byte units for formatting purposes
{Kibibyte} FSIZE_KB = 1000;
{Mebibyte} FSIZE_MB = 1024000;
{Gibibyte} FSIZE_GB = 1048576000;
{Tebibyte} FSIZE_TB = 1073741824000;
{Pebibyte} FSIZE_PB = 1099511627776000;
{Exbibyte} FSIZE_EB = 1125899906842624000;
// Abbreviations of byte unit names
{Bytes} NAME_BYTES = ' B';
{Kibibyte} NAME_KB = ' KiB';
{Mebibyte} NAME_MB = ' MiB';
{Gibibyte} NAME_GB = ' GiB';
{Tebibyte} NAME_TB = ' TiB';
{Pebibyte} NAME_PB = ' PiB';
{Exbibyte} NAME_EB = ' EiB';
// Used by ListViews and Grids
ORDER_ASC = 0; // Used for tag-value of "Direction"-button
ORDER_DESC = 1; // dito
TXT_ASC = 'ASC'; // Used for caption of "Direction"-button
TXT_DESC = 'DESC'; // dito
// Data grid: How many bytes to fetch from data fields that are potentially large.
GRIDMAXDATA: Integer = 256;
BACKUP_MAXFILESIZE: Integer = 10 * SIZE_MB;
BACKUP_FILEPATTERN: String = 'query-tab-%s.sql';
VTREE_NOTLOADED = 0;
VTREE_NOTLOADED_PURGECACHE = 1;
VTREE_LOADED = 2;
// Modification indicator for TControl.Tag
MODIFIEDFLAG = 10;
SUnhandledNodeIndex = 'Unhandled tree node index';
MSG_NOGRIDEDITING = 'Selected columns don''t contain a sufficient set of key columns to allow editing. Please select primary or unique key columns, or just all columns.';
SIdle = 'Idle.';
SUnsupported = 'Unsupported by this server';
SUnsupportedSettingsDatatype = 'Unsupported datatype for setting "%s"';
SNotImplemented = 'Method not implemented for this connection type';
MsgSQLError: String = 'SQL Error (%d): %s';
MsgSQLErrorMultiStatements: String = 'SQL Error (%d) in statement #%d: %s';
MsgUnhandledNetType: String = 'Unhandled connection type (%d)';
MsgDisconnect: String = 'Connection to %s closed at %s';
MsgInvalidColumn: String = 'Column #%d not available. Query returned %d columns and %d rows.';
SPortableLockFile: String = 'portable.lock';
FILEFILTER_SQLITEDB = '*.sqlite3;*.sqlite;*.db;*.s3db';
FILEEXT_SQLITEDB = 'sqlite3';
SYNCOMPLETION_PATTERN = '\image{%d}\hspace{5}\color{clGrayText}%s\column{}\color{clWindowText}%s\color{clGrayText}%s';
HELPERNODE_COLUMNS = 0;
HELPERNODE_FUNCTIONS = 1;
HELPERNODE_KEYWORDS = 2;
HELPERNODE_SNIPPETS = 3;
HELPERNODE_HISTORY = 4;
HELPERNODE_PROFILE = 5;
HELPERNODE_BINDING = 6;