Files
HeidiSQL/source/const.inc
Ansgar Becker d095fdb7cb Revamp "Advanced table properties" dialog:
- Synchronize height of all listviews after moving the splitter on one page.
- Drop maximum dimensions of form.
- Store/restore form and list dimensions via registry
- Documentation
- Simplify code
- Add useful popupmenu with items "Copy" + "Select all" to SynMemos which display the CREATE statements
- Rely on modalresult of form, drop OnClick handler of Close-button
- Format sum of table sizes using FormatByteNumber instead of always using KB as the unit of choice.
- Add a statusbar to the form to signalize that the form can be resized.
2007-09-03 13:59:29 +00:00

73 lines
2.3 KiB
PHP

// Common constants
const
// Carriage return / Line feed
CRLF = #13#10;
// Names of the system tables and system databases
PRIVTABLE_USERS = 'user';
PRIVTABLE_DB = 'db';
PRIVTABLE_TABLES = 'tables_priv';
PRIVTABLE_COLUMNS = 'columns_priv';
DBNAME_INFORMATION_SCHEMA = 'information_schema';
DBNAME_MYSQL = 'mysql';
LOCAL_HOST = '127.0.0.1';
MYSQL_PORT = 3306;
// Related field things
TBLTYPE_AUTOMATIC: String = '<Automatic>';
TEMPFIELDNAME = 'temp_fieldname';
// General things
APPNAME = 'HeidiSQL';
REGPATH = 'Software\' + APPNAME;
STATUS_MSG_READY = 'Ready.';
STR_NOTSUPPORTED = 'Not supported by this server';
// Used by ListViews
COLOR_SORTCOLUMN = $00F7F7F7;
// Used by maskSQL and fixSQL:
SQL_VERSION_ANSI = -1;
// Used for simulating a TTreeNode which has subnodes
DUMMY_NODE_TEXT : String = 'Dummy node, should never be visible';
// Used for SQL Log display limit (prevents color display errors)
SQLLOG_CHAR_LIMIT = 2000;
// Registry name for storing list of displayed columns
REGNAME_DISPLAYEDCOLUMNS = 'DisplayedColumns';
REGNAME_SORTDISPLAYEDCOLUMNS = 'DisplayedColumnsSorted';
REGNAME_LISTTABLESCOLUMNNAMES = 'ListTablesColumnNames';
REGNAME_TBLPROP_LISTHEIGHT = 'TablePropertiesListHeight';
REGNAME_TBLPROP_FORMHEIGHT = 'TablePropertiesFormHeight';
REGNAME_TBLPROP_FORMWIDTH = 'TablePropertiesFormWidth';
// how much memory we're aiming to use for the
// data grid and it's automatic limit function
// this value should probably be user configurable
LOAD_SIZE = 5*1024*1024;
// Various iconindexes
ICONINDEX_PRIMARYKEY = 26;
ICONINDEX_FIELD = 62;
ICONINDEX_INDEXKEY = 63;
ICONINDEX_UNIQUEKEY = 64;
ICONINDEX_FULLTEXTKEY = 65;
// Size of byte units
{KiloByte} SIZE_KB = 1024;
{MegaByte} SIZE_MB = 1048576;
{GigaByte} SIZE_GB = 1073741824;
{TeraByte} SIZE_TB = 1099511627776;
{PetaByte} SIZE_PB = 1125899906842624;
// Abbreviations of byte unit names
{Bytes} NAME_BYTES = ' B';
{KiloByte} NAME_KB = ' KB';
{MegaByte} NAME_MB = ' MB';
{GigaByte} NAME_GB = ' GB';
{TeraByte} NAME_TB = ' TB';
{PetaByte} NAME_PB = ' PB';