My favorites | Sign in
Project Home Issues Source
Checkout   Browse   Changes  
Changes to /trunk/source/const.inc
r4132 vs. r4133 Compare: vs.  Format:
Revision r4133
Go to: 
/trunk/source/const.inc   r4132 /trunk/source/const.inc   r4133
1 // Common constants 1 // Common constants
2 const 2 const
3 3
4 // Line breaks 4 // Line breaks
5 CRLF = #13#10; 5 CRLF = #13#10;
6 LB_UNIX = #10; 6 LB_UNIX = #10;
7 LB_MAC = #13; 7 LB_MAC = #13;
8 LB_WIDE = WideChar($2027); 8 LB_WIDE = WideChar($2027);
9 9
10 // Placeholder text for NULL values 10 // Placeholder text for NULL values
11 TEXT_NULL = '(NULL)'; 11 TEXT_NULL = '(NULL)';
12 12
13 // General things 13 // General things
14 APPNAME = 'HeidiSQL'; 14 APPNAME = 'HeidiSQL';
15 APPDOMAIN = 'http://www.heidisql.com/'; 15 APPDOMAIN = 'http://www.heidisql.com/';
16 REGKEY_SESSIONS = 'Servers\'; 16 REGKEY_SESSIONS = 'Servers\';
17 REGKEY_QUERYHISTORY = 'QueryHistory'; 17 REGKEY_QUERYHISTORY = 'QueryHistory';
18 // Some unique char, used to separate e.g. selected columns in registry 18 // Some unique char, used to separate e.g. selected columns in registry
19 DELIM = '|'; 19 DELIM = '|';
20 CHR10REPLACEMENT = '<}}}>'; 20 CHR10REPLACEMENT = '<}}}>';
21 CHR13REPLACEMENT = '<{{{>'; 21 CHR13REPLACEMENT = '<{{{>';
22 DELIMITER = '<|||>'; 22 DELIMITER = '<|||>';
23 23
24 // Used by maskSQL and fixSQL: 24 // Used by maskSQL and fixSQL:
25 SQL_VERSION_ANSI = -1; 25 SQL_VERSION_ANSI = -1;
26 26
27 // Various names of registry variables 27 // Various names of registry variables
28 // User-changable variables have a default value 28 // User-changable variables have a default value
29 // Note: Color values are in HEX format: $00BBGGRR 29 // Note: Color values are in HEX format: $00BBGGRR
30 REGNAME_HIDDENCOLUMNS = 'HiddenColumns'; 30 REGNAME_HIDDENCOLUMNS = 'HiddenColumns';
31 REGNAME_FILTER = 'Filter'; 31 REGNAME_FILTER = 'Filter';
32 REGNAME_SORT = 'Sort'; 32 REGNAME_SORT = 'Sort';
33 REGNAME_SORTDISPLAYEDCOLUMNS = 'DisplayedColumnsSorted'; 33 REGNAME_SORTDISPLAYEDCOLUMNS = 'DisplayedColumnsSorted';
34 REGNAME_LASTSESSIONS = 'LastSessions'; 34 REGNAME_LASTSESSIONS = 'LastSessions';
35 REGNAME_LASTACTIVESESSION = 'LastActiveSession'; 35 REGNAME_LASTACTIVESESSION = 'LastActiveSession';
36 REGNAME_AUTORECONNECT = 'AutoReconnect'; 36 REGNAME_AUTORECONNECT = 'AutoReconnect';
37 DEFAULT_AUTORECONNECT = False; 37 DEFAULT_AUTORECONNECT = False;
38 REGNAME_RESTORELASTUSEDDB = 'RestoreLastUsedDB'; 38 REGNAME_RESTORELASTUSEDDB = 'RestoreLastUsedDB';
39 DEFAULT_RESTORELASTUSEDDB = True; 39 DEFAULT_RESTORELASTUSEDDB = True;
40 REGNAME_LASTUSEDDB = 'lastUsedDB'; 40 REGNAME_LASTUSEDDB = 'lastUsedDB';
41 REGNAME_TREEBACKGROUND = 'TreeBackground'; 41 REGNAME_TREEBACKGROUND = 'TreeBackground';
42 DEFAULT_TREEBACKGROUND = clNone; 42 DEFAULT_TREEBACKGROUND = clNone;
43 REGNAME_FONTNAME = 'FontName'; 43 REGNAME_FONTNAME = 'FontName';
44 DEFAULT_FONTNAME = 'Courier New'; 44 DEFAULT_FONTNAME = 'Courier New';
45 REGNAME_FONTSIZE = 'FontSize'; 45 REGNAME_FONTSIZE = 'FontSize';
46 DEFAULT_FONTSIZE = 9; 46 DEFAULT_FONTSIZE = 9;
47 REGNAME_TABWIDTH = 'TabWidth'; 47 REGNAME_TABWIDTH = 'TabWidth';
48 DEFAULT_TABWIDTH = 3; 48 DEFAULT_TABWIDTH = 3;
49 REGNAME_DATAFONTNAME = 'DataFontName'; 49 REGNAME_DATAFONTNAME = 'DataFontName';
50 DEFAULT_DATAFONTNAME = 'Tahoma'; 50 DEFAULT_DATAFONTNAME = 'Tahoma';
51 REGNAME_DATAFONTSIZE = 'DataFontSize'; 51 REGNAME_DATAFONTSIZE = 'DataFontSize';
52 DEFAULT_DATAFONTSIZE = 8; 52 DEFAULT_DATAFONTSIZE = 8;
53 // how much memory we're aiming to use for the 53 // how much memory we're aiming to use for the
54 // data grid and it's automatic limit function 54 // data grid and it's automatic limit function
55 REGNAME_LOGSQLNUM = 'logsqlnum'; 55 REGNAME_LOGSQLNUM = 'logsqlnum';
56 DEFAULT_LOGSQLNUM = 300; 56 DEFAULT_LOGSQLNUM = 300;
57 REGNAME_LOGSQLWIDTH = 'logsqlwidth'; 57 REGNAME_LOGSQLWIDTH = 'logsqlwidth';
58 DEFAULT_LOGSQLWIDTH = 2000; 58 DEFAULT_LOGSQLWIDTH = 2000;
59 REGNAME_LOGDIR = 'SessionLogsDirectory'; 59 REGNAME_LOGDIR = 'SessionLogsDirectory';
60 REGNAME_LOG_HORIZONTALSCROLLBAR = 'LogHorizontalScrollbar'; 60 REGNAME_LOG_HORIZONTALSCROLLBAR = 'LogHorizontalScrollbar';
61 REGPREFIX_SQLATTRI = 'SQL Attr '; 61 REGPREFIX_SQLATTRI = 'SQL Attr ';
62 REGPOSTFIX_SQL_FG = ' Foreground'; 62 REGPOSTFIX_SQL_FG = ' Foreground';
63 REGPOSTFIX_SQL_BG = ' Background'; 63 REGPOSTFIX_SQL_BG = ' Background';
64 REGPOSTFIX_SQL_STYLE = ' Style'; 64 REGPOSTFIX_SQL_STYLE = ' Style';
65 REGNAME_SQLCOLACTIVELINE = 'SQLColActiveLine'; 65 REGNAME_SQLCOLACTIVELINE = 'SQLColActiveLine';
66 DEFAULT_SQLCOLACTIVELINE = $00FFFFFF; // clWhite 66 DEFAULT_SQLCOLACTIVELINE = $00FFFFFF; // clWhite
67 REGNAME_MAXCOLWIDTH = 'MaxColWidth'; 67 REGNAME_MAXCOLWIDTH = 'MaxColWidth';
68 DEFAULT_MAXCOLWIDTH = 300; 68 DEFAULT_MAXCOLWIDTH = 300;
69 REGNAME_MAXTOTALROWS = 'DatagridMaximumRows'; 69 REGNAME_MAXTOTALROWS = 'DatagridMaximumRows';
70 DEFAULT_MAXTOTALROWS = 100000; 70 DEFAULT_MAXTOTALROWS = 100000;
71 REGNAME_ROWSPERSTEP = 'DatagridRowsPerStep'; 71 REGNAME_ROWSPERSTEP = 'DatagridRowsPerStep';
72 DEFAULT_ROWSPERSTEP = 1000; 72 DEFAULT_ROWSPERSTEP = 1000;
73 REGNAME_GRIDROWSLINECOUNT = 'GridRowLineCount'; 73 REGNAME_GRIDROWSLINECOUNT = 'GridRowLineCount';
74 DEFAULT_GRIDROWSLINECOUNT = 1; 74 DEFAULT_GRIDROWSLINECOUNT = 1;
75 REGNAME_REMEMBERFILTERS = 'RememberFilters'; 75 REGNAME_REMEMBERFILTERS = 'RememberFilters';
76 DEFAULT_REMEMBERFILTERS = True; 76 DEFAULT_REMEMBERFILTERS = True;
77 REGNAME_LOGTOFILE = 'LogToFile'; 77 REGNAME_LOGTOFILE = 'LogToFile';
78 DEFAULT_LOGTOFILE = False; 78 DEFAULT_LOGTOFILE = False;
79 REGNAME_WINMAXIMIZED = 'MainWinMaximized'; 79 REGNAME_WINMAXIMIZED = 'MainWinMaximized';
80 REGNAME_WINLEFT = 'MainWinLeft'; 80 REGNAME_WINLEFT = 'MainWinLeft';
81 REGNAME_WINTOP = 'MainWinTop'; 81 REGNAME_WINTOP = 'MainWinTop';
82 REGNAME_WINWIDTH = 'MainWinWidth'; 82 REGNAME_WINWIDTH = 'MainWinWidth';
83 REGNAME_WINHEIGHT = 'MainWinHeight'; 83 REGNAME_WINHEIGHT = 'MainWinHeight';
84 REGNAME_WINONMONITOR = 'MainWinOnMonitor'; 84 REGNAME_WINONMONITOR = 'MainWinOnMonitor';
85 REGNAME_TOOLBAR2LEFT = 'ToolBar2Left'; 85 REGNAME_TOOLBAR2LEFT = 'ToolBar2Left';
86 REGNAME_TOOLBAR2TOP = 'ToolBar2Top'; 86 REGNAME_TOOLBAR2TOP = 'ToolBar2Top';
87 REGNAME_TOOLBARDATALEFT = 'ToolBarDataLeft'; 87 REGNAME_TOOLBARDATALEFT = 'ToolBarDataLeft';
88 REGNAME_TOOLBARDATATOP = 'ToolBarDataTop'; 88 REGNAME_TOOLBARDATATOP = 'ToolBarDataTop';
89 REGNAME_TOOLBARQUERYLEFT = 'ToolBarQueryLeft'; 89 REGNAME_TOOLBARQUERYLEFT = 'ToolBarQueryLeft';
90 REGNAME_TOOLBARQUERYTOP = 'ToolBarQueryTop'; 90 REGNAME_TOOLBARQUERYTOP = 'ToolBarQueryTop';
91 REGNAME_QUERYMEMOHEIGHT = 'querymemoheight'; 91 REGNAME_QUERYMEMOHEIGHT = 'querymemoheight';
92 REGNAME_DBTREEWIDTH = 'dbtreewidth'; 92 REGNAME_DBTREEWIDTH = 'dbtreewidth';
93 REGNAME_PREVIEW_HEIGHT = 'DataPreviewHeight'; 93 REGNAME_PREVIEW_HEIGHT = 'DataPreviewHeight';
94 REGNAME_PREVIEW_ENABLED = 'DataPreviewEnabled'; 94 REGNAME_PREVIEW_ENABLED = 'DataPreviewEnabled';
95 REGNAME_SQLOUTHEIGHT = 'sqloutheight'; 95 REGNAME_SQLOUTHEIGHT = 'sqloutheight';
96 REGNAME_QUERYHELPERSWIDTH = 'queryhelperswidth'; 96 REGNAME_QUERYHELPERSWIDTH = 'queryhelperswidth';
97 REGNAME_STOPONERRORSINBATCH = 'StopOnErrorsInBatchMode'; 97 REGNAME_STOPONERRORSINBATCH = 'StopOnErrorsInBatchMode';
98 DEFAULT_STOPONERRORSINBATCH = True; 98 DEFAULT_STOPONERRORSINBATCH = True;
99 REGNAME_WRAPLINES = 'WrapLongLines'; 99 REGNAME_WRAPLINES = 'WrapLongLines';
100 REGNAME_BLOBASTEXT = 'DisplayBLOBsAsText'; 100 REGNAME_BLOBASTEXT = 'DisplayBLOBsAsText';
101 DEFAULT_BLOBASTEXT = False; 101 DEFAULT_BLOBASTEXT = False;
102 REGNAME_SINGLEQUERIES = 'SingleQueries'; 102 REGNAME_SINGLEQUERIES = 'SingleQueries';
103 REGNAME_EDITOR_WIDTH = 'MemoEditorWidth'; 103 REGNAME_EDITOR_WIDTH = 'MemoEditorWidth';
104 DEFAULT_EDITOR_WIDTH = 100; 104 DEFAULT_EDITOR_WIDTH = 100;
105 REGNAME_EDITOR_HEIGHT = 'MemoEditorHeight'; 105 REGNAME_EDITOR_HEIGHT = 'MemoEditorHeight';
106 DEFAULT_EDITOR_HEIGHT = 100; 106 DEFAULT_EDITOR_HEIGHT = 100;
107 REGNAME_EDITOR_WORDWRAP = 'MemoEditorWrap'; 107 REGNAME_EDITOR_WORDWRAP = 'MemoEditorWrap';
108 REGNAME_DELIMITER = 'Delimiter'; 108 REGNAME_DELIMITER = 'Delimiter';
109 DEFAULT_DELIMITER = ';'; 109 DEFAULT_DELIMITER = ';';
110 REGNAME_SQLHELPWINLEFT = 'SQLHelp_WindowLeft'; 110 REGNAME_SQLHELPWINLEFT = 'SQLHelp_WindowLeft';
111 REGNAME_SQLHELPWINTOP = 'SQLHelp_WindowTop'; 111 REGNAME_SQLHELPWINTOP = 'SQLHelp_WindowTop';
112 REGNAME_SQLHELPWINWIDTH = 'SQLHelp_WindowWidth'; 112 REGNAME_SQLHELPWINWIDTH = 'SQLHelp_WindowWidth';
113 REGNAME_SQLHELPWINHEIGHT = 'SQLHelp_WindowHeight'; 113 REGNAME_SQLHELPWINHEIGHT = 'SQLHelp_WindowHeight';
114 REGNAME_SQLHELPPLWIDTH = 'SQLHelp_PnlLeftWidth'; 114 REGNAME_SQLHELPPLWIDTH = 'SQLHelp_PnlLeftWidth';
115 REGNAME_SQLHELPPRHEIGHT = 'SQLHelp_PnlRightTopHeight'; 115 REGNAME_SQLHELPPRHEIGHT = 'SQLHelp_PnlRightTopHeight';
116 REGNAME_TABLEEDITOR_TABSHEIGHT = 'TableEditorTabsHeight'; 116 REGNAME_TABLEEDITOR_TABSHEIGHT = 'TableEditorTabsHeight';
117 DEFAULT_TABLEEDITOR_TABSHEIGHT = 150; 117 DEFAULT_TABLEEDITOR_TABSHEIGHT = 150;
118 REGNAME_HOST = 'Host'; 118 REGNAME_HOST = 'Host';
119 DEFAULT_HOST = '127.0.0.1'; 119 DEFAULT_HOST = '127.0.0.1';
120 REGNAME_USER = 'User'; 120 REGNAME_USER = 'User';
121 DEFAULT_USER = 'root'; 121 DEFAULT_USER = 'root';
122 REGNAME_PASSWORD = 'Password'; 122 REGNAME_PASSWORD = 'Password';
123 REGNAME_WINDOWSAUTH = 'WindowsAuth'; 123 REGNAME_WINDOWSAUTH = 'WindowsAuth';
124 REGNAME_LOGINPROMPT = 'LoginPrompt'; 124 REGNAME_LOGINPROMPT = 'LoginPrompt';
125 REGNAME_PORT = 'Port'; 125 REGNAME_PORT = 'Port';
126 DEFAULT_PORT = 3306; 126 DEFAULT_PORT = 3306;
127 REGNAME_PLINKEXE = 'PlinkExecutable'; 127 REGNAME_PLINKEXE = 'PlinkExecutable';
128 REGNAME_SSHHOST = 'SSHtunnelHost'; 128 REGNAME_SSHHOST = 'SSHtunnelHost';
129 REGNAME_SSHPORT = 'SSHtunnelHostPort'; 129 REGNAME_SSHPORT = 'SSHtunnelHostPort';
130 DEFAULT_SSHPORT = 22; 130 DEFAULT_SSHPORT = 22;
131 REGNAME_SSHLOCALPORT = 'SSHtunnelPort'; 131 REGNAME_SSHLOCALPORT = 'SSHtunnelPort';
132 REGNAME_SSHUSER = 'SSHtunnelUser'; 132 REGNAME_SSHUSER = 'SSHtunnelUser';
133 REGNAME_SSHPASSWORD = 'SSHtunnelPassword'; 133 REGNAME_SSHPASSWORD = 'SSHtunnelPassword';
134 REGNAME_SSHTIMEOUT = 'SSHtunnelTimeout'; 134 REGNAME_SSHTIMEOUT = 'SSHtunnelTimeout';
135 DEFAULT_SSHTIMEOUT = 4; 135 DEFAULT_SSHTIMEOUT = 4;
136 REGNAME_SSHKEY = 'SSHtunnelPrivateKey'; 136 REGNAME_SSHKEY = 'SSHtunnelPrivateKey';
137 REGNAME_SSL_ACTIVE = 'SSL_Active'; 137 REGNAME_SSL_ACTIVE = 'SSL_Active';
138 REGNAME_SSL_KEY = 'SSL_Key'; 138 REGNAME_SSL_KEY = 'SSL_Key';
139 REGNAME_SSL_CERT = 'SSL_Cert'; 139 REGNAME_SSL_CERT = 'SSL_Cert';
140 REGNAME_SSL_CA = 'SSL_CA'; 140 REGNAME_SSL_CA = 'SSL_CA';
141 REGNAME_NETTYPE = 'NetType'; 141 REGNAME_NETTYPE = 'NetType';
142 REGNAME_COMPRESSED = 'Compressed'; 142 REGNAME_COMPRESSED = 'Compressed';
143 DEFAULT_COMPRESSED = False; 143 DEFAULT_COMPRESSED = False;
144 REGNAME_STARTUPSCRIPT = 'StartupScriptFilename'; 144 REGNAME_STARTUPSCRIPT = 'StartupScriptFilename';
145 REGNAME_DATABASES = 'Databases'; 145 REGNAME_DATABASES = 'Databases';
146 REGNAME_DATABASE_FILTER = 'DatabaseFilter'; 146 REGNAME_DATABASE_FILTER = 'DatabaseFilter';
147 REGNAME_EXP_CREATEDB = 'ExportSQL_CreateDatabases'; 147 REGNAME_EXP_CREATEDB = 'ExportSQL_CreateDatabases';
148 REGNAME_EXP_DROPDB = 'ExportSQL_DropDatabases'; 148 REGNAME_EXP_DROPDB = 'ExportSQL_DropDatabases';
149 REGNAME_EXP_CREATETABLE = 'ExportSQL_CreateTables'; 149 REGNAME_EXP_CREATETABLE = 'ExportSQL_CreateTables';
150 REGNAME_EXP_DROPTABLE = 'ExportSQL_DropTables'; 150 REGNAME_EXP_DROPTABLE = 'ExportSQL_DropTables';
151 REGNAME_EXP_DATAHOW = 'ExportSQL_DataHow'; 151 REGNAME_EXP_DATAHOW = 'ExportSQL_DataHow';
152 REGNAME_EXP_OUTFILES = 'ExportSQL_Filenames'; 152 REGNAME_EXP_OUTFILES = 'ExportSQL_Filenames';
153 REGNAME_EXP_OUTDIRS = 'ExportSQL_Directories'; 153 REGNAME_EXP_OUTDIRS = 'ExportSQL_Directories';
154 REGNAME_EXP_OUTDATABASE = 'ExportSQL_Database'; 154 REGNAME_EXP_OUTDATABASE = 'ExportSQL_Database';
155 REGNAME_EXP_OUTSERVERDB = 'ExportSQL_ServerDatabase'; 155 REGNAME_EXP_OUTSERVERDB = 'ExportSQL_ServerDatabase';
156 REGNAME_EXP_OUTPUT = 'ExportSQL_Output'; 156 REGNAME_EXP_OUTPUT = 'ExportSQL_Output';
157 REGNAME_GEXP_OUTPUTCOPY = 'GridExportOutputCopy'; 157 REGNAME_GEXP_OUTPUTCOPY = 'GridExportOutputCopy';
158 REGNAME_GEXP_OUTPUTFILE = 'GridExportOutputFile'; 158 REGNAME_GEXP_OUTPUTFILE = 'GridExportOutputFile';
159 REGNAME_GEXP_FILENAME = 'GridExportFilename'; 159 REGNAME_GEXP_FILENAME = 'GridExportFilename';
160 REGNAME_GEXP_RECENTFILES = 'GridExportRecentFiles'; 160 REGNAME_GEXP_RECENTFILES = 'GridExportRecentFiles';
161 REGNAME_GEXP_ENCODING = 'GridExportEncoding'; 161 REGNAME_GEXP_ENCODING = 'GridExportEncoding';
162 REGNAME_GEXP_FORMAT = 'GridExportFormat'; 162 REGNAME_GEXP_FORMAT = 'GridExportFormat';
163 REGNAME_GEXP_SELECTION = 'GridExportSelection'; 163 REGNAME_GEXP_SELECTION = 'GridExportSelection';
164 REGNAME_GEXP_COLUMNNAMES = 'GridExportColumnNames'; 164 REGNAME_GEXP_COLUMNNAMES = 'GridExportColumnNames';
165 REGNAME_GEXP_SEPARATOR = 'GridExportSeparator'; 165 REGNAME_GEXP_SEPARATOR = 'GridExportSeparator';
166 REGNAME_GEXP_ENCLOSER = 'GridExportEncloser'; 166 REGNAME_GEXP_ENCLOSER = 'GridExportEncloser';
167 REGNAME_GEXP_TERMINATOR = 'GridExportTerminator'; 167 REGNAME_GEXP_TERMINATOR = 'GridExportTerminator';
168 REGNAME_CSV_SEPARATOR = 'CSVSeparatorV2'; 168 REGNAME_CSV_SEPARATOR = 'CSVSeparatorV2';
169 DEFAULT_CSV_SEPARATOR = ';'; 169 DEFAULT_CSV_SEPARATOR = ';';
170 REGNAME_CSV_ENCLOSER = 'CSVEncloserV2'; 170 REGNAME_CSV_ENCLOSER = 'CSVEncloserV2';
171 DEFAULT_CSV_ENCLOSER = '"'; 171 DEFAULT_CSV_ENCLOSER = '"';
172 REGNAME_CSV_TERMINATOR = 'CSVTerminator'; 172 REGNAME_CSV_TERMINATOR = 'CSVTerminator';
173 DEFAULT_CSV_TERMINATOR = '\r\n'; 173 DEFAULT_CSV_TERMINATOR = '\r\n';
174 REGNAME_CSV_ESCAPER = 'CSVImportFieldEscaperV2'; 174 REGNAME_CSV_ESCAPER = 'CSVImportFieldEscaperV2';
175 REGNAME_CSV_WINDOWWIDTH = 'CSVImportWindowWidth'; 175 REGNAME_CSV_WINDOWWIDTH = 'CSVImportWindowWidth';
176 REGNAME_CSV_WINDOWHEIGHT = 'CSVImportWindowHeight'; 176 REGNAME_CSV_WINDOWHEIGHT = 'CSVImportWindowHeight';
177 REGNAME_CSV_FILENAME = 'loadfilename'; 177 REGNAME_CSV_FILENAME = 'loadfilename';
178 REGNAME_CSV_ENCLOPTION = 'CSVImportFieldsEnclosedOptionallyV2'; 178 REGNAME_CSV_ENCLOPTION = 'CSVImportFieldsEnclosedOptionallyV2';
179 REGNAME_CSV_IGNORELINES = 'CSVImportIgnoreLines'; 179 REGNAME_CSV_IGNORELINES = 'CSVImportIgnoreLines';
180 REGNAME_CSV_LOWPRIO = 'CSVImportLowPriority'; 180 REGNAME_CSV_LOWPRIO = 'CSVImportLowPriority';
181 REGNAME_CSV_LOCALNUMBERS = 'CSVImportLocalNumbers'; 181 REGNAME_CSV_LOCALNUMBERS = 'CSVImportLocalNumbers';
182 REGNAME_CSV_TRUNCATETABLE = 'CSVImportTruncateTable'; 182 REGNAME_CSV_TRUNCATETABLE = 'CSVImportTruncateTable';
183 REGNAME_CSV_DUPLICATES = 'CSVImportDuplicateHandling'; 183 REGNAME_CSV_DUPLICATES = 'CSVImportDuplicateHandling';
184 REGNAME_CSV_PARSEMETHOD = 'CSVImportParseMethod'; 184 REGNAME_CSV_PARSEMETHOD = 'CSVImportParseMethod';
185 REGNAME_DO_UPDATECHECK = 'Updatecheck'; 185 REGNAME_DO_UPDATECHECK = 'Updatecheck';
186 DEFAULT_DO_UPDATECHECK = False; 186 DEFAULT_DO_UPDATECHECK = False;
187 REGNAME_DO_UPDATECHECK_BUILDS = 'UpdatecheckBuilds'; 187 REGNAME_DO_UPDATECHECK_BUILDS = 'UpdatecheckBuilds';
188 DEFAULT_DO_UPDATECHECK_BUILDS = False; 188 DEFAULT_DO_UPDATECHECK_BUILDS = False;
189 REGNAME_UPDATECHECK_INTERVAL = 'UpdatecheckInterval'; 189 REGNAME_UPDATECHECK_INTERVAL = 'UpdatecheckInterval';
190 DEFAULT_UPDATECHECK_INTERVAL = 3; 190 DEFAULT_UPDATECHECK_INTERVAL = 3;
191 REGNAME_LAST_UPDATECHECK = 'UpdatecheckLastrun'; 191 REGNAME_LAST_UPDATECHECK = 'UpdatecheckLastrun';
192 REGNAME_TOOLSWINWIDTH = 'TableTools_WindowWidth'; 192 REGNAME_TOOLSWINWIDTH = 'TableTools_WindowWidth';
193 REGNAME_TOOLSWINHEIGHT = 'TableTools_WindowHeight'; 193 REGNAME_TOOLSWINHEIGHT = 'TableTools_WindowHeight';
194 REGNAME_TOOLSTREEWIDTH = 'TableTools_TreeWidth'; 194 REGNAME_TOOLSTREEWIDTH = 'TableTools_TreeWidth';
195 REGNAME_TOOLSFINDTEXT = 'TableTools_FindText'; 195 REGNAME_TOOLSFINDTEXT = 'TableTools_FindText';
196 REGNAME_TOOLSDATATYPE = 'TableTools_Datatype'; 196 REGNAME_TOOLSDATATYPE = 'TableTools_Datatype';
197 REGNAME_TOOLSCASESENSITIVE = 'TableTools_FindCaseSensitive'; 197 REGNAME_TOOLSCASESENSITIVE = 'TableTools_FindCaseSensitive';
198 REGNAME_FILEIMPORTWINWIDTH = 'FileImport_WindowWidth'; 198 REGNAME_FILEIMPORTWINWIDTH = 'FileImport_WindowWidth';
199 REGNAME_FILEIMPORTWINHEIGHT = 'FileImport_WindowHeight'; 199 REGNAME_FILEIMPORTWINHEIGHT = 'FileImport_WindowHeight';
200 REGNAME_USERMNGR_WINWIDTH = 'Usermanager_WindowWidth'; 200 REGNAME_USERMNGR_WINWIDTH = 'Usermanager_WindowWidth';
201 REGNAME_USERMNGR_WINHEIGHT = 'Usermanager_WindowHeight'; 201 REGNAME_USERMNGR_WINHEIGHT = 'Usermanager_WindowHeight';
202 REGNAME_USERMNGR_LISTWIDTH = 'Usermanager_ListWidth'; 202 REGNAME_USERMNGR_LISTWIDTH = 'Usermanager_ListWidth';
203 REGNAME_SELECTDBO_WINWIDTH = 'SelectDBO_WindowWidth'; 203 REGNAME_SELECTDBO_WINWIDTH = 'SelectDBO_WindowWidth';
204 REGNAME_SELECTDBO_WINHEIGHT = 'SelectDBO_WindowHeight'; 204 REGNAME_SELECTDBO_WINHEIGHT = 'SelectDBO_WindowHeight';
205 REGNAME_SESSMNGR_LISTWIDTH = 'SessionManager_ListWidth'; 205 REGNAME_SESSMNGR_LISTWIDTH = 'SessionManager_ListWidth';
206 REGNAME_SESSMNGR_WINWIDTH = 'SessionManager_WindowWidth'; 206 REGNAME_SESSMNGR_WINWIDTH = 'SessionManager_WindowWidth';
207 REGNAME_SESSMNGR_WINHEIGHT = 'SessionManager_WindowHeight'; 207 REGNAME_SESSMNGR_WINHEIGHT = 'SessionManager_WindowHeight';
208 REGNAME_COPYTABLE_WINHEIGHT = 'CopyTable_WindowHeight'; 208 REGNAME_COPYTABLE_WINHEIGHT = 'CopyTable_WindowHeight';
209 REGNAME_COPYTABLE_WINWIDTH = 'CopyTable_WindowWidth'; 209 REGNAME_COPYTABLE_WINWIDTH = 'CopyTable_WindowWidth';
210 REGNAME_COPYTABLE_COLUMNS = 'CopyTable_Columns'; 210 REGNAME_COPYTABLE_COLUMNS = 'CopyTable_Columns';
211 REGNAME_COPYTABLE_KEYS = 'CopyTable_Keys'; 211 REGNAME_COPYTABLE_KEYS = 'CopyTable_Keys';
212 REGNAME_COPYTABLE_FOREIGN = 'CopyTable_ForeignKeys'; 212 REGNAME_COPYTABLE_FOREIGN = 'CopyTable_ForeignKeys';
213 REGNAME_COPYTABLE_DATA = 'CopyTable_Data'; 213 REGNAME_COPYTABLE_DATA = 'CopyTable_Data';
214 REGNAME_FILTERS = 'RecentFilters'; 214 REGNAME_FILTERS = 'RecentFilters';
215 REGNAME_SERVERVERSION = 'ServerVersion'; 215 REGNAME_SERVERVERSION = 'ServerVersion';
216 REGNAME_SERVERVERSION_FULL = 'ServerVersionFull'; 216 REGNAME_SERVERVERSION_FULL = 'ServerVersionFull';
217 REGNAME_LASTCONNECT = 'LastConnect'; 217 REGNAME_LASTCONNECT = 'LastConnect';
218 REGNAME_CONNECTCOUNT = 'ConnectCount'; 218 REGNAME_CONNECTCOUNT = 'ConnectCount';
219 REGNAME_REFUSEDCOUNT = 'RefusedCount'; 219 REGNAME_REFUSEDCOUNT = 'RefusedCount';
220 REGNAME_SESSIONCREATED = 'SessionCreated'; 220 REGNAME_SESSIONCREATED = 'SessionCreated';
221 REGNAME_DO_STATISTICS = 'DoUsageStatistics'; 221 REGNAME_DO_STATISTICS = 'DoUsageStatistics';
222 DEFAULT_DO_STATISTICS = False; 222 DEFAULT_DO_STATISTICS = False;
223 REGNAME_LAST_STATSCALL = 'LastUsageStatisticCall'; 223 REGNAME_LAST_STATSCALL = 'LastUsageStatisticCall';
224 REGNAME_DISPLAYBARS = 'DisplayBars'; 224 REGNAME_DISPLAYBARS = 'DisplayBars';
225 DEFAULT_DISPLAYBARS = true; 225 DEFAULT_DISPLAYBARS = true;
226 REGNAME_BARCOLOR = 'BarColor'; 226 REGNAME_BARCOLOR = 'BarColor';
227 DEFAULT_BARCOLOR = $00BBFFDD; 227 DEFAULT_BARCOLOR = $00BBFFDD;
228 REGNAME_MYSQLBINARIES = 'MySQL_Binaries'; 228 REGNAME_MYSQLBINARIES = 'MySQL_Binaries';
229 DEFAULT_MYSQLBINARIES = ''; 229 DEFAULT_MYSQLBINARIES = '';
230 REGNAME_PROMPTFILESAVE = 'PromptSaveFileOnTabClose'; 230 REGNAME_PROMPTFILESAVE = 'PromptSaveFileOnTabClose';
231 DEFAULT_PROMPTFILESAVE = True; 231 DEFAULT_PROMPTFILESAVE = True;
232 REGNAME_COMPLETIONPROPOSAL = 'CompletionProposal'; 232 REGNAME_COMPLETIONPROPOSAL = 'CompletionProposal';
233 DEFAULT_COMPLETIONPROPOSAL = True; 233 DEFAULT_COMPLETIONPROPOSAL = True;
234 REGNAME_TABSTOSPACES = 'TabsToSpaces'; 234 REGNAME_TABSTOSPACES = 'TabsToSpaces';
235 DEFAULT_TABSTOSPACES = False; 235 DEFAULT_TABSTOSPACES = False;
236 REGNAME_FILTERACTIVE = 'FilterPanel'; 236 REGNAME_FILTERACTIVE = 'FilterPanel';
237 DEFAULT_FILTERACTIVE = False; 237 DEFAULT_FILTERACTIVE = False;
238 REGNAME_MULTI_INSTANCES = 'AllowMultipleInstances'; 238 REGNAME_MULTI_INSTANCES = 'AllowMultipleInstances';
239 DEFAULT_MULTI_INSTANCES = True; 239 DEFAULT_MULTI_INSTANCES = True;
240 REGNAME_SEARCHTEXT = 'FindDialogSearchHistory'; 240 REGNAME_SEARCHTEXT = 'FindDialogSearchHistory';
241 REGNAME_REPLACETEXT = 'FindDialogReplaceHistory'; 241 REGNAME_REPLACETEXT = 'FindDialogReplaceHistory';
242 REGNAME_MAXQUERYRESULTS = 'MaxQueryResults'; 242 REGNAME_MAXQUERYRESULTS = 'MaxQueryResults';
243 DEFAULT_MAXQUERYRESULTS = 10; 243 DEFAULT_MAXQUERYRESULTS = 10;
244 REGNAME_SETEDITORWIDTH = 'SetEditorWidth'; 244 REGNAME_SETEDITORWIDTH = 'SetEditorWidth';
245 DEFAULT_SETEDITORWIDTH = 100; 245 DEFAULT_SETEDITORWIDTH = 100;
246 REGNAME_SETEDITORHEIGHT = 'SetEditorHeight'; 246 REGNAME_SETEDITORHEIGHT = 'SetEditorHeight';
247 DEFAULT_SETEDITORHEIGHT = 130; 247 DEFAULT_SETEDITORHEIGHT = 130;
248 248
249 // Log events 249 // Log events
250 REGNAME_LOG_ERRORS = 'LogErrors'; 250 REGNAME_LOG_ERRORS = 'LogErrors';
251 DEFAULT_LOG_ERRORS = True; 251 DEFAULT_LOG_ERRORS = True;
252 REGNAME_LOG_USERSQL = 'LogUserSQL'; 252 REGNAME_LOG_USERSQL = 'LogUserSQL';
253 DEFAULT_LOG_USERSQL = True; 253 DEFAULT_LOG_USERSQL = True;
254 REGNAME_LOG_SQL = 'LogSQL'; 254 REGNAME_LOG_SQL = 'LogSQL';
255 DEFAULT_LOG_SQL = True; 255 DEFAULT_LOG_SQL = True;
256 REGNAME_LOG_INFOS = 'LogInfos'; 256 REGNAME_LOG_INFOS = 'LogInfos';
257 DEFAULT_LOG_INFOS = True; 257 DEFAULT_LOG_INFOS = True;
258 REGNAME_LOG_DEBUG = 'LogDebug'; 258 REGNAME_LOG_DEBUG = 'LogDebug';
259 DEFAULT_LOG_DEBUG = False; 259 DEFAULT_LOG_DEBUG = False;
260 260
261 REGNAME_FIELDCOLOR_INTEGER = 'FieldColor_Numeric'; 261 REGNAME_FIELDCOLOR_INTEGER = 'FieldColor_Numeric';
262 REGNAME_FIELDCOLOR_REAL = 'FieldColor_Real'; 262 REGNAME_FIELDCOLOR_REAL = 'FieldColor_Real';
263 REGNAME_FIELDCOLOR_TEXT = 'FieldColor_Text'; 263 REGNAME_FIELDCOLOR_TEXT = 'FieldColor_Text';
264 REGNAME_FIELDCOLOR_BINARY = 'FieldColor_Binary'; 264 REGNAME_FIELDCOLOR_BINARY = 'FieldColor_Binary';
265 REGNAME_FIELDCOLOR_DATETIME = 'FieldColor_Datetime'; 265 REGNAME_FIELDCOLOR_DATETIME = 'FieldColor_Datetime';
266 REGNAME_FIELDCOLOR_SPATIAL = 'FieldColor_Spatial'; 266 REGNAME_FIELDCOLOR_SPATIAL = 'FieldColor_Spatial';
267 REGNAME_FIELDCOLOR_OTHER = 'FieldColor_Other'; 267 REGNAME_FIELDCOLOR_OTHER = 'FieldColor_Other';
268 DEFAULT_FIELDCOLOR_INTEGER = $00FF0000; // clBlue 268 DEFAULT_FIELDCOLOR_INTEGER = $00FF0000; // clBlue
269 DEFAULT_FIELDCOLOR_REAL = $00FF0048; // violet 269 DEFAULT_FIELDCOLOR_REAL = $00FF0048; // violet
270 DEFAULT_FIELDCOLOR_TEXT = $00008000; // clGreen 270 DEFAULT_FIELDCOLOR_TEXT = $00008000; // clGreen
271 DEFAULT_FIELDCOLOR_BINARY = $00800080; // clPurple 271 DEFAULT_FIELDCOLOR_BINARY = $00800080; // clPurple
272 DEFAULT_FIELDCOLOR_DATETIME = $00000080; // clMaroon 272 DEFAULT_FIELDCOLOR_DATETIME = $00000080; // clMaroon
273 DEFAULT_FIELDCOLOR_SPATIAL = $00808000; // clOlive 273 DEFAULT_FIELDCOLOR_SPATIAL = $00808000; // clOlive
274 DEFAULT_FIELDCOLOR_OTHER = $00008080; // clTeal 274 DEFAULT_FIELDCOLOR_OTHER = $00008080; // clTeal
275 COLORSHIFT_NULLFIELDS = 70; // Brightness adjustment to add to normal field colors for NULL values 275 COLORSHIFT_NULLFIELDS = 70; // Brightness adjustment to add to normal field colors for NULL values
276 COLORSHIFT_SORTCOLUMNS = 12; // Brightness adjustment to add to sorted column backgrounds 276 COLORSHIFT_SORTCOLUMNS = 12; // Brightness adjustment to add to sorted column backgrounds
277 277
278 REGNAME_FIELDEDITOR_BINARY = 'FieldEditor_Binary'; 278 REGNAME_FIELDEDITOR_BINARY = 'FieldEditor_Binary';
279 REGNAME_FIELDEDITOR_DATETIME = 'FieldEditor_Datetime'; 279 REGNAME_FIELDEDITOR_DATETIME = 'FieldEditor_Datetime';
280 REGNAME_PREFILL_DATETIME = 'FieldEditor_Datetime_Prefill'; 280 REGNAME_PREFILL_DATETIME = 'FieldEditor_Datetime_Prefill';
281 REGNAME_FIELDEDITOR_ENUM = 'FieldEditor_Enum'; 281 REGNAME_FIELDEDITOR_ENUM = 'FieldEditor_Enum';
282 REGNAME_FIELDEDITOR_SET = 'FieldEditor_Set'; 282 REGNAME_FIELDEDITOR_SET = 'FieldEditor_Set';
283 DEFAULT_FIELDEDITOR_BINARY = True; 283 DEFAULT_FIELDEDITOR_BINARY = True;
284 DEFAULT_FIELDEDITOR_DATETIME = True; 284 DEFAULT_FIELDEDITOR_DATETIME = True;
285 DEFAULT_PREFILL_DATETIME = True; 285 DEFAULT_PREFILL_DATETIME = True;
286 DEFAULT_FIELDEDITOR_ENUM = True; 286 DEFAULT_FIELDEDITOR_ENUM = True;
287 DEFAULT_FIELDEDITOR_SET = True; 287 DEFAULT_FIELDEDITOR_SET = True;
288 288
289 REGNAME_BG_NULL = 'Field_NullBackground'; 289 REGNAME_BG_NULL = 'Field_NullBackground';
290 DEFAULT_BG_NULL = $00FF00FF; // clMagenta 290 DEFAULT_BG_NULL = $00FF00FF; // clMagenta
291 291
292 REGNAME_SIZECOL_TREE = 'DisplayObjectSizeColumn'; 292 REGNAME_SIZECOL_TREE = 'DisplayObjectSizeColumn';
293 DEFAULT_SIZECOL_TREE = True; 293 DEFAULT_SIZECOL_TREE = True;
294 294
295 REGPREFIX_COLWIDTHS = 'ColWidths_'; 295 REGPREFIX_COLWIDTHS = 'ColWidths_';
296 REGPREFIX_COLSVISIBLE = 'ColsVisible_'; 296 REGPREFIX_COLSVISIBLE = 'ColsVisible_';
297 REGPREFIX_COLPOS = 'ColPositions_'; 297 REGPREFIX_COLPOS = 'ColPositions_';
298 REGPREFIX_COLSORT = 'ColSort_'; 298 REGPREFIX_COLSORT = 'ColSort_';
299 REGPREFIX_DATEEDITOR_CURSOR = 'DateTimeEditor_CursorPos_Type'; 299 REGPREFIX_DATEEDITOR_CURSOR = 'DateTimeEditor_CursorPos_Type';
300 REGPREFIX_SHORTCUT1 = 'Shortcut1_'; 300 REGPREFIX_SHORTCUT1 = 'Shortcut1_';
301 REGPREFIX_SHORTCUT2 = 'Shortcut2_'; 301 REGPREFIX_SHORTCUT2 = 'Shortcut2_';
302 REGPREFIX_COPYTABLE_FILTERS = 'CopyTable_RecentFilter_'; 302 REGPREFIX_COPYTABLE_FILTERS = 'CopyTable_RecentFilter_';
303 303
304 // Various iconindexes 304 // Various iconindexes
305 ICONINDEX_PRIMARYKEY = 25; 305 ICONINDEX_PRIMARYKEY = 25;
306 ICONINDEX_FIELD = 42; 306 ICONINDEX_FIELD = 42;
307 ICONINDEX_INDEXKEY = 23; 307 ICONINDEX_INDEXKEY = 23;
308 ICONINDEX_UNIQUEKEY = 24; 308 ICONINDEX_UNIQUEKEY = 24;
309 ICONINDEX_FULLTEXTKEY = 22; 309 ICONINDEX_FULLTEXTKEY = 22;
310 ICONINDEX_SPATIALKEY = 126; 310 ICONINDEX_SPATIALKEY = 126;
311 ICONINDEX_FOREIGNKEY = 136; 311 ICONINDEX_FOREIGNKEY = 136;
312 ICONINDEX_SERVER = 36; 312 ICONINDEX_SERVER = 36;
313 ICONINDEX_DB = 5; 313 ICONINDEX_DB = 5;
314 ICONINDEX_HIGHLIGHTMARKER = 157; 314 ICONINDEX_HIGHLIGHTMARKER = 157;
315 ICONINDEX_TABLE = 14; 315 ICONINDEX_TABLE = 14;
316 ICONINDEX_VIEW = 81; 316 ICONINDEX_VIEW = 81;
317 ICONINDEX_STOREDPROCEDURE = 119; 317 ICONINDEX_STOREDPROCEDURE = 119;
318 ICONINDEX_STOREDFUNCTION = 35; 318 ICONINDEX_STOREDFUNCTION = 35;
319 ICONINDEX_TRIGGER = 137; 319 ICONINDEX_TRIGGER = 137;
320 ICONINDEX_FUNCTION = 13; 320 ICONINDEX_FUNCTION = 13;
321 ICONINDEX_EVENT = 80; 321 ICONINDEX_EVENT = 80;
322 ICONINDEX_KEYWORD = 25; 322 ICONINDEX_KEYWORD = 25;
323 323
324 // Size of byte units 324 // Size of byte units
325 {KiloByte} SIZE_KB = 1024; 325 {KiloByte} SIZE_KB = 1024;
326 {MegaByte} SIZE_MB = 1048576; 326 {MegaByte} SIZE_MB = 1048576;
327 {GigaByte} SIZE_GB = 1073741824; 327 {GigaByte} SIZE_GB = 1073741824;
328 {TeraByte} SIZE_TB = 1099511627776; 328 {TeraByte} SIZE_TB = 1099511627776;
329 {PetaByte} SIZE_PB = 1125899906842624; 329 {PetaByte} SIZE_PB = 1125899906842624;
330 330
331 // Abbreviations of byte unit names 331 // Abbreviations of byte unit names
332 {Bytes} NAME_BYTES = ' B'; 332 {Bytes} NAME_BYTES = ' B';
333 {KiloByte} NAME_KB = ' KB'; 333 {KiloByte} NAME_KB = ' KB';
334 {MegaByte} NAME_MB = ' MB'; 334 {MegaByte} NAME_MB = ' MB';
335 {GigaByte} NAME_GB = ' GB'; 335 {GigaByte} NAME_GB = ' GB';
336 {TeraByte} NAME_TB = ' TB'; 336 {TeraByte} NAME_TB = ' TB';
337 {PetaByte} NAME_PB = ' PB'; 337 {PetaByte} NAME_PB = ' PB';
338 338
339 // Used by ListViews and Grids 339 // Used by ListViews and Grids
340 ORDER_ASC = 0; // Used for tag-value of "Direction"-button 340 ORDER_ASC = 0; // Used for tag-value of "Direction"-button
341 ORDER_DESC = 1; // dito 341 ORDER_DESC = 1; // dito
342 TXT_ASC = 'ASC'; // Used for caption of "Direction"-button 342 TXT_ASC = 'ASC'; // Used for caption of "Direction"-button
343 TXT_DESC = 'DESC'; // dito 343 TXT_DESC = 'DESC'; // dito
344 344
345 // Data grid: How many bytes to fetch from data fields that are potentially large. 345 // Data grid: How many bytes to fetch from data fields that are potentially large.
346 GRIDMAXDATA: Integer = 256; 346 GRIDMAXDATA: Integer = 256;
347 347
348 VTREE_NOTLOADED = 0; 348 VTREE_NOTLOADED = 0;
349 VTREE_NOTLOADED_PURGECACHE = 1; 349 VTREE_NOTLOADED_PURGECACHE = 1;
350 VTREE_LOADED = 2; 350 VTREE_LOADED = 2;
351 351
352 // Modification indicator for TControl.Tag
353 MODIFIEDFLAG = 10;
354
352 SContainsNulCharFile = 'This file contains NUL characters. They have been converted to ASCII spaces (SP).'; 355 SContainsNulCharFile = 'This file contains NUL characters. They have been converted to ASCII spaces (SP).';
353 SContainsNulCharGrid = 'This cell contains NUL characters. They have been converted to ASCII spaces (SP). Press ESC to cancel editing.'; 356 SContainsNulCharGrid = 'This cell contains NUL characters. They have been converted to ASCII spaces (SP). Press ESC to cancel editing.';
354 SUnhandledNodeIndex = 'Unhandled tree node index'; 357 SUnhandledNodeIndex = 'Unhandled tree node index';
355 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.'; 358 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.';
356 SIdle = 'Idle.'; 359 SIdle = 'Idle.';
357 SUnsupported = 'Not supported by this server'; 360 SUnsupported = 'Not supported by this server';
358 MsgSQLError: String = 'SQL Error (%d): %s'; 361 MsgSQLError: String = 'SQL Error (%d): %s';
359 MsgUnhandledNetType: String = 'Unhandled connection type (%d)'; 362 MsgUnhandledNetType: String = 'Unhandled connection type (%d)';
360 MsgDisconnect: String = 'Connection to %s closed at %s'; 363 MsgDisconnect: String = 'Connection to %s closed at %s';
361 MsgInvalidColumn: String = 'Column #%d not available. Query returned %d columns and %d rows.'; 364 MsgInvalidColumn: String = 'Column #%d not available. Query returned %d columns and %d rows.';
362 365
363 PKEY = 'PRIMARY'; 366 PKEY = 'PRIMARY';
364 KEY = 'KEY'; 367 KEY = 'KEY';
365 UKEY = 'UNIQUE'; 368 UKEY = 'UNIQUE';
366 FKEY = 'FULLTEXT'; 369 FKEY = 'FULLTEXT';
367 SKEY = 'SPATIAL'; 370 SKEY = 'SPATIAL';
368 371
369 SYNCOMPLETION_PATTERN = '\image{%d}\hspace{5}\color{clGrayText}%s\column{}\color{clWindowText}%s'; 372 SYNCOMPLETION_PATTERN = '\image{%d}\hspace{5}\color{clGrayText}%s\column{}\color{clWindowText}%s';
370 373
371 SizeGripProp = 'SizeGrip'; 374 SizeGripProp = 'SizeGrip';
372 375
373 // Forms are designed at 96 dpi. Use that to scale TFrames, which obviously do not auto-scale. 376 // Forms are designed at 96 dpi. Use that to scale TFrames, which obviously do not auto-scale.
374 FORMS_DPI = 96; 377 FORMS_DPI = 96;
375 378
376 HELPERNODE_COLUMNS = 0; 379 HELPERNODE_COLUMNS = 0;
377 HELPERNODE_FUNCTIONS = 1; 380 HELPERNODE_FUNCTIONS = 1;
378 HELPERNODE_KEYWORDS = 2; 381 HELPERNODE_KEYWORDS = 2;
379 HELPERNODE_SNIPPETS = 3; 382 HELPERNODE_SNIPPETS = 3;
380 HELPERNODE_HISTORY = 4; 383 HELPERNODE_HISTORY = 4;
381 HELPERNODE_PROFILE = 5; 384 HELPERNODE_PROFILE = 5;
382 385
383 // A set of characters which need not to be quoted 386 // A set of characters which need not to be quoted
384 IDENTCHARS = ['A'..'Z', 'a'..'z', '0'..'9', '_']; 387 IDENTCHARS = ['A'..'Z', 'a'..'z', '0'..'9', '_'];
385 388
386 // General declarations 389 // General declarations
387 MYSQL_ERRMSG_SIZE = 512; 390 MYSQL_ERRMSG_SIZE = 512;
388 SQLSTATE_LENGTH = 5; 391 SQLSTATE_LENGTH = 5;
389 SCRAMBLE_LENGTH = 20; 392 SCRAMBLE_LENGTH = 20;
390 MYSQL_PORT = 3306; 393 MYSQL_PORT = 3306;
391 LOCAL_HOST = 'localhost'; 394 LOCAL_HOST = 'localhost';
392 NAME_LEN = 64; 395 NAME_LEN = 64;
393 PROTOCOL_VERSION = 10; 396 PROTOCOL_VERSION = 10;
394 FRM_VER = 6; 397 FRM_VER = 6;
395 398
396 // Field's flags 399 // Field's flags
397 NOT_NULL_FLAG = 1; 400 NOT_NULL_FLAG = 1;
398 PRI_KEY_FLAG = 2; 401 PRI_KEY_FLAG = 2;
399 UNIQUE_KEY_FLAG = 4; 402 UNIQUE_KEY_FLAG = 4;
400 MULTIPLE_KEY_FLAG = 8; 403 MULTIPLE_KEY_FLAG = 8;
401 BLOB_FLAG = 16; 404 BLOB_FLAG = 16;
402 UNSIGNED_FLAG = 32; 405 UNSIGNED_FLAG = 32;
403 ZEROFILL_FLAG = 64; 406 ZEROFILL_FLAG = 64;
404 BINARY_FLAG = 128; 407 BINARY_FLAG = 128;
405 ENUM_FLAG = 256; 408 ENUM_FLAG = 256;
406 AUTO_INCREMENT_FLAG = 512; 409 AUTO_INCREMENT_FLAG = 512;
407 TIMESTAMP_FLAG = 1024; 410 TIMESTAMP_FLAG = 1024;
408 SET_FLAG = 2048; 411 SET_FLAG = 2048;
409 NUM_FLAG = 32768; 412 NUM_FLAG = 32768;
410 PART_KEY_FLAG = 16384; 413 PART_KEY_FLAG = 16384;
411 GROUP_FLAG = 32768; 414 GROUP_FLAG = 32768;
412 UNIQUE_FLAG = 65536; 415 UNIQUE_FLAG = 65536;
413 BINCMP_FLAG = 131072; 416 BINCMP_FLAG = 131072;
414 417
415 // Client connection options 418 // Client connection options
416 CLIENT_LONG_PASSWORD = 1; 419 CLIENT_LONG_PASSWORD = 1;
417 CLIENT_FOUND_ROWS = 2; // Found instead of affected rows 420 CLIENT_FOUND_ROWS = 2; // Found instead of affected rows
418 CLIENT_LONG_FLAG = 4; 421 CLIENT_LONG_FLAG = 4;
419 CLIENT_CONNECT_WITH_DB = 8; 422 CLIENT_CONNECT_WITH_DB = 8;
420 CLIENT_NO_SCHEMA = 16; // Don't allow database.table.column 423 CLIENT_NO_SCHEMA = 16; // Don't allow database.table.column
421 CLIENT_COMPRESS = 32; 424 CLIENT_COMPRESS = 32;
422 CLIENT_ODBC = 64; 425 CLIENT_ODBC = 64;
423 CLIENT_LOCAL_FILES = 128; 426 CLIENT_LOCAL_FILES = 128;
424 CLIENT_IGNORE_SPACE = 256; // Ignore spaces before '(' 427 CLIENT_IGNORE_SPACE = 256; // Ignore spaces before '('
425 CLIENT_PROTOCOL_41 = 512; 428 CLIENT_PROTOCOL_41 = 512;
426 CLIENT_INTERACTIVE = 1024; 429 CLIENT_INTERACTIVE = 1024;
427 CLIENT_SSL = 2048; // Switch to SSL after handshake 430 CLIENT_SSL = 2048; // Switch to SSL after handshake
428 CLIENT_IGNORE_SIGPIPE = 4096; 431 CLIENT_IGNORE_SIGPIPE = 4096;
429 CLIENT_TRANSACTIONS = 8192; 432 CLIENT_TRANSACTIONS = 8192;
430 CLIENT_RESERVED = 16384; 433 CLIENT_RESERVED = 16384;
431 CLIENT_SECURE_CONNECTION = 32768; 434 CLIENT_SECURE_CONNECTION = 32768;
432 CLIENT_MULTI_STATEMENTS = 65536; 435 CLIENT_MULTI_STATEMENTS = 65536;
433 CLIENT_MULTI_RESULTS = 131072; 436 CLIENT_MULTI_RESULTS = 131072;
434 CLIENT_SSL_VERIFY_SERVER_CERT = 67108864; 437 CLIENT_SSL_VERIFY_SERVER_CERT = 67108864;
435 CLIENT_REMEMBER_OPTIONS = 134217728; 438 CLIENT_REMEMBER_OPTIONS = 134217728;
436 439
437 // Enum Field Types 440 // Enum Field Types
438 FIELD_TYPE_DECIMAL = 0; 441 FIELD_TYPE_DECIMAL = 0;
439 FIELD_TYPE_TINY = 1; 442 FIELD_TYPE_TINY = 1;
440 FIELD_TYPE_SHORT = 2; 443 FIELD_TYPE_SHORT = 2;
441 FIELD_TYPE_LONG = 3; 444 FIELD_TYPE_LONG = 3;
442 FIELD_TYPE_FLOAT = 4; 445 FIELD_TYPE_FLOAT = 4;
443 FIELD_TYPE_DOUBLE = 5; 446 FIELD_TYPE_DOUBLE = 5;
444 FIELD_TYPE_NULL = 6; 447 FIELD_TYPE_NULL = 6;
445 FIELD_TYPE_TIMESTAMP = 7; 448 FIELD_TYPE_TIMESTAMP = 7;
446 FIELD_TYPE_LONGLONG = 8; 449 FIELD_TYPE_LONGLONG = 8;
447 FIELD_TYPE_INT24 = 9; 450 FIELD_TYPE_INT24 = 9;
448 FIELD_TYPE_DATE = 10; 451 FIELD_TYPE_DATE = 10;
449 FIELD_TYPE_TIME = 11; 452 FIELD_TYPE_TIME = 11;
450 FIELD_TYPE_DATETIME = 12; 453 FIELD_TYPE_DATETIME = 12;
451 FIELD_TYPE_YEAR = 13; 454 FIELD_TYPE_YEAR = 13;
452 FIELD_TYPE_NEWDATE = 14; 455 FIELD_TYPE_NEWDATE = 14;
453 FIELD_TYPE_VARCHAR = 15; 456 FIELD_TYPE_VARCHAR = 15;
454 FIELD_TYPE_BIT = 16; 457 FIELD_TYPE_BIT = 16;
455 FIELD_TYPE_NEWDECIMAL = 246; 458 FIELD_TYPE_NEWDECIMAL = 246;
456 FIELD_TYPE_ENUM = 247; 459 FIELD_TYPE_ENUM = 247;
457 FIELD_TYPE_SET = 248; 460 FIELD_TYPE_SET = 248;
458 FIELD_TYPE_TINY_BLOB = 249; 461 FIELD_TYPE_TINY_BLOB = 249;
459 FIELD_TYPE_MEDIUM_BLOB = 250; 462 FIELD_TYPE_MEDIUM_BLOB = 250;
460 FIELD_TYPE_LONG_BLOB = 251; 463 FIELD_TYPE_LONG_BLOB = 251;
461 FIELD_TYPE_BLOB = 252; 464 FIELD_TYPE_BLOB = 252;
462 FIELD_TYPE_VAR_STRING = 253; 465 FIELD_TYPE_VAR_STRING = 253;
463 FIELD_TYPE_STRING = 254; 466 FIELD_TYPE_STRING = 254;
464 FIELD_TYPE_GEOMETRY = 255; 467 FIELD_TYPE_GEOMETRY = 255;
465 468
466 COLLATION_BINARY = 63; 469 COLLATION_BINARY = 63;
467 // Equivalent to COLLATION_BINARY, this is what a new driver returns when connected to a pre-4.1 server. 470 // Equivalent to COLLATION_BINARY, this is what a new driver returns when connected to a pre-4.1 server.
468 COLLATION_NONE = 0; 471 COLLATION_NONE = 0;
469 472
Powered by Google Project Hosting