diff --git a/index.html b/index.html
index 51d70aa..f51116e 100644
--- a/index.html
+++ b/index.html
@@ -1,294 +1,312 @@
-
+
-
- WWW SQL Designer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ WWW SQL Designer
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
\ No newline at end of file
diff --git a/js/config.js b/js/config.js
index 52dafa5..3e2b9c7 100644
--- a/js/config.js
+++ b/js/config.js
@@ -1,36 +1,98 @@
var CONFIG = {
- AVAILABLE_DBS: ["mysql", "sqlite", "web2py", "mssql", "postgresql", "oracle", "sqlalchemy", "vfp9", "cubrid", "web2py"],
- DEFAULT_DB: "mysql",
+ AVAILABLE_DBS: [
+ "mysql",
+ "sqlite",
+ "web2py",
+ "mssql",
+ "postgresql",
+ "oracle",
+ "sqlalchemy",
+ "vfp9",
+ "cubrid",
+ "web2py",
+ ],
+ DEFAULT_DB: "mysql",
- AVAILABLE_LOCALES: ["ar", "cs", "de", "el", "en", "eo", "es", "fr", "hu", "it", "ja", "ko", "nl", "pl", "pt_BR", "ro", "ru", "sv", "tr", "zh"],
- DEFAULT_LOCALE: "en",
-
- AVAILABLE_BACKENDS: ["php-mysql", "php-s3", "php-blank", "php-file", "php-sqlite", "php-mysql+file", "php-postgresql", "php-pdo", "perl-file", "php-cubrid", "asp-file", "web2py"],
- DEFAULT_BACKEND: ["php-mysql"],
+ AVAILABLE_LOCALES: [
+ "ar",
+ "cs",
+ "de",
+ "el",
+ "en",
+ "eo",
+ "es",
+ "fr",
+ "hu",
+ "it",
+ "ja",
+ "ko",
+ "nl",
+ "pl",
+ "pt_BR",
+ "ro",
+ "ru",
+ "sv",
+ "tr",
+ "zh",
+ ],
+ DEFAULT_LOCALE: "en",
- RELATION_THICKNESS: 2,
- RELATION_SPACING: 15,
- RELATION_COLORS: ["#000", "#800", "#080", "#008", "#088", "#808", "#088"],
+ AVAILABLE_BACKENDS: [
+ "php-mysql",
+ "php-s3",
+ "php-blank",
+ "php-file",
+ "php-sqlite",
+ "php-mysql+file",
+ "php-postgresql",
+ "php-pdo",
+ "perl-file",
+ "php-cubrid",
+ "asp-file",
+ "web2py",
+ ],
+ DEFAULT_BACKEND: ["php-mysql"],
- RELATION_HIGHLIGHTED_COLOR: "#FF0000",
- RELATION_HIGHLIGHTED_THICKNESS: 5,
-
- STYLES: ["material-inspired", "original"],
- MATERIAL_RELATION_COLORS: ["#323232", "#F44336", "#E91E63", "#9C27B0", "#3F51B5", "#673AB7", "#2196F3", "#03A9F4", "#00BCD4", "#009688", "#4CAF50", "#8BC34A", "#CDDC39", "#FFC107", "#FF5722", "#795548", "#607D8B"],
-
- STATIC_PATH: "",
- XHR_PATH: "",
+ RELATION_THICKNESS: 2,
+ RELATION_SPACING: 15,
+ RELATION_COLORS: ["#000", "#800", "#080", "#008", "#088", "#808", "#088"],
- /*
- * The key below needs to be set individually by you if you want to use the Dropbox load/save feature.
- * To do that, first sign up with Dropbox (may require a specific developer / SDK sign-up), go to
- * https://www.dropbox.com/developers/apps and use "Create app" to add a new "Dropbox API app".
- * Limit the app to its own folder. Call it, for instance, "wwwsqldesigner".
- * Under "OAuth 2", "Redirect URIs", add the URL to the "dropbox-oauth-receiver.html" file on your server.
- * E.g, if you install wwwsqldesigner on your local web server under "http://localhost/sqldesigner/", then add
- * http://localhost/sqldesigner/dropbox-oauth-receiver.html as a Redirection URI.
- * Copy the shown "App key" and paste it here below instead of the null value:
- */
- DROPBOX_KEY: null // such as: "d6stdscwewhl6sa"
+ RELATION_HIGHLIGHTED_COLOR: "#FF0000",
+ RELATION_HIGHLIGHTED_THICKNESS: 5,
-}
+ STYLES: ["material-inspired", "original"],
+ MATERIAL_RELATION_COLORS: [
+ "#323232",
+ "#F44336",
+ "#E91E63",
+ "#9C27B0",
+ "#3F51B5",
+ "#673AB7",
+ "#2196F3",
+ "#03A9F4",
+ "#00BCD4",
+ "#009688",
+ "#4CAF50",
+ "#8BC34A",
+ "#CDDC39",
+ "#FFC107",
+ "#FF5722",
+ "#795548",
+ "#607D8B",
+ ],
+
+ STATIC_PATH: "",
+ XHR_PATH: "",
+
+ /*
+ * The key below needs to be set individually by you if you want to use the Dropbox load/save feature.
+ * To do that, first sign up with Dropbox (may require a specific developer / SDK sign-up), go to
+ * https://www.dropbox.com/developers/apps and use "Create app" to add a new "Dropbox API app".
+ * Limit the app to its own folder. Call it, for instance, "wwwsqldesigner".
+ * Under "OAuth 2", "Redirect URIs", add the URL to the "dropbox-oauth-receiver.html" file on your server.
+ * E.g, if you install wwwsqldesigner on your local web server under "http://localhost/sqldesigner/", then add
+ * http://localhost/sqldesigner/dropbox-oauth-receiver.html as a Redirection URI.
+ * Copy the shown "App key" and paste it here below instead of the null value:
+ */
+ DROPBOX_KEY: null, // such as: "d6stdscwewhl6sa"
+};
diff --git a/js/globals.js b/js/globals.js
index 46c7699..b469f47 100644
--- a/js/globals.js
+++ b/js/globals.js
@@ -1,65 +1,83 @@
-function _(str) { /* getText */
- if (!(str in window.LOCALE)) { return str; }
- return window.LOCALE[str];
+function _(str) {
+ /* getText */
+ if (!(str in window.LOCALE)) {
+ return str;
+ }
+ return window.LOCALE[str];
}
-if (typeof String.prototype.endsWith !== 'function') {
- String.prototype.endsWith = function(suffix) {
- return this.indexOf(suffix, this.length - suffix.length) !== -1;
- };
+if (typeof String.prototype.endsWith !== "function") {
+ String.prototype.endsWith = function (suffix) {
+ return this.indexOf(suffix, this.length - suffix.length) !== -1;
+ };
}
if (!String.prototype.trim) {
- String.prototype.trim = function() {
- return this.match(/^\s*([\s\S]*?)\s*$/)[1];
- }
+ String.prototype.trim = function () {
+ return this.match(/^\s*([\s\S]*?)\s*$/)[1];
+ };
}
if (!String.trim) {
- String.trim = function(obj) { return String.prototype.trim.call(obj);}
+ String.trim = function (obj) {
+ return String.prototype.trim.call(obj);
+ };
}
if (!Object.create) {
- Object.create = function (o) {
- if (arguments.length > 1) { throw new Error("Object.create polyfill only accepts the first parameter"); }
- var tmp = function() {};
- tmp.prototype = o;
- return new tmp();
- };
+ Object.create = function (o) {
+ if (arguments.length > 1) {
+ throw new Error(
+ "Object.create polyfill only accepts the first parameter"
+ );
+ }
+ var tmp = function () {};
+ tmp.prototype = o;
+ return new tmp();
+ };
}
var DATATYPES = false;
var LOCALE = {};
var SQL = {
- _subscribers: {},
-
- publish: function(message, publisher, data) {
- var subscribers = this._subscribers[message] || [];
- var obj = {
- target: publisher,
- data: data
- }
- subscribers.forEach(function(subscriber) { subscriber(obj); });
- },
-
- subscribe: function(message, subscriber) {
- if (!(message in this._subscribers)) {
- this._subscribers[message] = [];
- }
- var index = this._subscribers[message].indexOf(subscriber);
- if (index == -1) { this._subscribers[message].push(subscriber); }
- },
-
- unsubscribe: function(message, subscriber) {
- var index = this._subscribers[message].indexOf(subscriber);
- if (index > -1) { this._subscribers[message].splice(index, 1); }
- },
+ _subscribers: {},
- escape: function(str) {
- return str.replace(/&/g, "&").replace(/>/g, ">").replace(/ -1) {
+ this._subscribers[message].splice(index, 1);
+ }
+ },
+
+ escape: function (str) {
+ return str
+ .replace(/&/g, "&")
+ .replace(/>/g, ">")
+ .replace(/= (5*1024*1024)/2) { /* this is a very big db structure... */
- alert("Warning: your database structure is above 5 megabytes in size, this is above the localStorage single key limit allowed by some browsers, example Mozilla Firefox 10");
- return;
- }
+SQL.IO.prototype.clientsave = function () {
+ var xml = this.owner.toXML();
+ this.dom.ta.value = xml;
+};
- var key = this.promptName("serversaveprompt");
- if (!key) { return; }
+SQL.IO.prototype.clientload = function () {
+ var xml = this.dom.ta.value;
+ if (!xml) {
+ alert(_("empty"));
+ return;
+ }
- key = "wwwsqldesigner_databases_" + (key || "default");
-
- try {
- localStorage.setItem(key, xml);
- if (localStorage.getItem(key) != xml) { throw new Error("Content verification failed"); }
- } catch (e) {
- alert("Error saving database structure to localStorage! ("+e.message+")");
- }
-}
+ this.fromXMLText(xml);
+};
-SQL.IO.prototype.clientlocalload = function() {
- if (!window.localStorage) {
- alert("Sorry, your browser does not seem to support localStorage.");
- return;
- }
-
- var key = this.promptName("serverloadprompt");
- if (!key) { return; }
+SQL.IO.prototype.promptName = function (title, suffix) {
+ var lastUsedName =
+ this.owner.getOption("lastUsedName") || this.lastUsedName;
+ var name = prompt(_(title), lastUsedName);
+ if (!name) {
+ return null;
+ }
+ if (suffix && name.endsWith(suffix)) {
+ // remove suffix from name
+ name = name.substr(0, name.length - 4);
+ }
+ this.owner.setOption("lastUsedName", name);
+ this.lastUsedName = name; // save this also in variable in case cookies are disabled
+ return name;
+};
- key = "wwwsqldesigner_databases_" + (key || "default");
-
- try {
- var xml = localStorage.getItem(key);
- if (!xml) { throw new Error("No data available"); }
- } catch (e) {
- alert("Error loading database structure from localStorage! ("+e.message+")");
- return;
- }
-
- this.fromXMLText(xml);
-}
+SQL.IO.prototype.clientlocalsave = function () {
+ if (!window.localStorage) {
+ alert("Sorry, your browser does not seem to support localStorage.");
+ return;
+ }
-SQL.IO.prototype.clientlocallist = function() {
- if (!window.localStorage) {
- alert("Sorry, your browser does not seem to support localStorage.");
- return;
- }
-
- /* --- Define some useful vars --- */
- var baseKeysName = "wwwsqldesigner_databases_";
- var localLen = localStorage.length;
- var data = "";
- var schemasFound = false;
- var code = 200;
-
- /* --- work --- */
- try {
- for (var i = 0; i< localLen; ++i) {
- var key = localStorage.key(i);
- if((new RegExp(baseKeysName)).test(key)) {
- var result = key.substring(baseKeysName.length);
- schemasFound = true;
- data += result + "\n";
- }
- }
- if (!schemasFound) {
- throw new Error("No data available");
- }
- } catch (e) {
- alert("Error loading database names from localStorage! ("+e.message+")");
- return;
- }
- this.listresponse(data, code);
-}
+ var xml = this.owner.toXML();
+ if (xml.length >= (5 * 1024 * 1024) / 2) {
+ /* this is a very big db structure... */
+ alert(
+ "Warning: your database structure is above 5 megabytes in size, this is above the localStorage single key limit allowed by some browsers, example Mozilla Firefox 10"
+ );
+ return;
+ }
+
+ var key = this.promptName("serversaveprompt");
+ if (!key) {
+ return;
+ }
+
+ key = "wwwsqldesigner_databases_" + (key || "default");
+
+ try {
+ localStorage.setItem(key, xml);
+ if (localStorage.getItem(key) != xml) {
+ throw new Error("Content verification failed");
+ }
+ } catch (e) {
+ alert(
+ "Error saving database structure to localStorage! (" +
+ e.message +
+ ")"
+ );
+ }
+};
+
+SQL.IO.prototype.clientlocalload = function () {
+ if (!window.localStorage) {
+ alert("Sorry, your browser does not seem to support localStorage.");
+ return;
+ }
+
+ var key = this.promptName("serverloadprompt");
+ if (!key) {
+ return;
+ }
+
+ key = "wwwsqldesigner_databases_" + (key || "default");
+
+ try {
+ var xml = localStorage.getItem(key);
+ if (!xml) {
+ throw new Error("No data available");
+ }
+ } catch (e) {
+ alert(
+ "Error loading database structure from localStorage! (" +
+ e.message +
+ ")"
+ );
+ return;
+ }
+
+ this.fromXMLText(xml);
+};
+
+SQL.IO.prototype.clientlocallist = function () {
+ if (!window.localStorage) {
+ alert("Sorry, your browser does not seem to support localStorage.");
+ return;
+ }
+
+ /* --- Define some useful vars --- */
+ var baseKeysName = "wwwsqldesigner_databases_";
+ var localLen = localStorage.length;
+ var data = "";
+ var schemasFound = false;
+ var code = 200;
+
+ /* --- work --- */
+ try {
+ for (var i = 0; i < localLen; ++i) {
+ var key = localStorage.key(i);
+ if (new RegExp(baseKeysName).test(key)) {
+ var result = key.substring(baseKeysName.length);
+ schemasFound = true;
+ data += result + "\n";
+ }
+ }
+ if (!schemasFound) {
+ throw new Error("No data available");
+ }
+ } catch (e) {
+ alert(
+ "Error loading database names from localStorage! (" +
+ e.message +
+ ")"
+ );
+ return;
+ }
+ this.listresponse(data, code);
+};
/* ------------------------- Dropbox start ------------------------ */
/**
* The following code uses this lib: https://github.com/dropbox/dropbox-js
*/
-SQL.IO.prototype.dropBoxInit = function() {
- if (CONFIG.DROPBOX_KEY) {
- this.dropboxClient = new Dropbox.Client({ key: CONFIG.DROPBOX_KEY });
- } else {
- this.dropboxClient = null;
- // Hide the Dropbox buttons
- var elems = document.querySelectorAll("[id^=dropbox]"); // gets all tags whose id start with "dropbox"
- [].slice.call(elems).forEach(
- function(elem) { elem.style.display = "none"; }
- );
- }
-}
-
-SQL.IO.prototype.showDropboxError = function(error) {
- var prefix = _("Dropbox error")+": ";
- var msg = error.status;
-
- switch (error.status) {
- case Dropbox.ApiError.INVALID_TOKEN:
- // If you're using dropbox.js, the only cause behind this error is that
- // the user token expired.
- // Get the user through the authentication flow again.
- msg = _("Token expired - retry the operation, authenticating again with Dropbox");
- this.dropboxClient.reset();
- break;
-
- case Dropbox.ApiError.NOT_FOUND:
- // The file or folder you tried to access is not in the user's Dropbox.
- // Handling this error is specific to your application.
- msg = _("File not found");
- break;
-
- case Dropbox.ApiError.OVER_QUOTA:
- // The user is over their Dropbox quota.
- // Tell them their Dropbox is full. Refreshing the page won't help.
- msg = _("Dropbox is full");
- break;
-
- case Dropbox.ApiError.RATE_LIMITED:
- // Too many API requests. Tell the user to try again later.
- // Long-term, optimize your code to use fewer API calls.
- break;
-
- case Dropbox.ApiError.NETWORK_ERROR:
- // An error occurred at the XMLHttpRequest layer.
- // Most likely, the user's network connection is down.
- // API calls will not succeed until the user gets back online.
- msg = _("Network error");
- break;
-
- case Dropbox.ApiError.INVALID_PARAM:
- case Dropbox.ApiError.OAUTH_ERROR:
- case Dropbox.ApiError.INVALID_METHOD:
- default:
- // Caused by a bug in dropbox.js, in your application, or in Dropbox.
- // Tell the user an error occurred, ask them to refresh the page.
- }
-
- alert (prefix+msg);
+SQL.IO.prototype.dropBoxInit = function () {
+ if (CONFIG.DROPBOX_KEY) {
+ this.dropboxClient = new Dropbox.Client({ key: CONFIG.DROPBOX_KEY });
+ } else {
+ this.dropboxClient = null;
+ // Hide the Dropbox buttons
+ var elems = document.querySelectorAll("[id^=dropbox]"); // gets all tags whose id start with "dropbox"
+ [].slice.call(elems).forEach(function (elem) {
+ elem.style.display = "none";
+ });
+ }
};
-SQL.IO.prototype.showDropboxAuthenticate = function(connectedCallBack) {
- if (!this.dropboxClient) return false;
+SQL.IO.prototype.showDropboxError = function (error) {
+ var prefix = _("Dropbox error") + ": ";
+ var msg = error.status;
- // We want to use a popup window for authentication as the default redirection won't work for us as it'll make us lose our schema data
- var href = window.location.href;
- var prefix = href.substring(0, href.lastIndexOf('/')) + "/";
- this.dropboxClient.authDriver(new Dropbox.AuthDriver.Popup({ receiverUrl: prefix+"dropbox-oauth-receiver.html" }));
+ switch (error.status) {
+ case Dropbox.ApiError.INVALID_TOKEN:
+ // If you're using dropbox.js, the only cause behind this error is that
+ // the user token expired.
+ // Get the user through the authentication flow again.
+ msg = _(
+ "Token expired - retry the operation, authenticating again with Dropbox"
+ );
+ this.dropboxClient.reset();
+ break;
- // Now let's authenticate us
- var sql_io = this;
- sql_io.dropboxClient.authenticate( function(error, client) {
- if (error) {
- sql_io.showDropboxError(error);
- } else {
- // We're authenticated
- connectedCallBack();
- }
- return;
- });
+ case Dropbox.ApiError.NOT_FOUND:
+ // The file or folder you tried to access is not in the user's Dropbox.
+ // Handling this error is specific to your application.
+ msg = _("File not found");
+ break;
- return true;
-}
+ case Dropbox.ApiError.OVER_QUOTA:
+ // The user is over their Dropbox quota.
+ // Tell them their Dropbox is full. Refreshing the page won't help.
+ msg = _("Dropbox is full");
+ break;
-SQL.IO.prototype.dropboxsave = function() {
- var sql_io = this;
- sql_io.showDropboxAuthenticate( function() {
- var key = sql_io.promptName("serversaveprompt", ".xml");
- if (!key) { return; }
+ case Dropbox.ApiError.RATE_LIMITED:
+ // Too many API requests. Tell the user to try again later.
+ // Long-term, optimize your code to use fewer API calls.
+ break;
- var filename = (key || "default") + ".xml";
-
- sql_io.listresponse("Saving...", 200);
- var xml = sql_io.owner.toXML();
- sql_io.dropboxClient.writeFile(filename, xml, function(error, stat) {
- if (error) {
- sql_io.listresponse("", 200);
- return sql_io.showDropboxError(error);
- }
- sql_io.listresponse(filename+" "+_("was saved to Dropbox"), 200);
- });
- });
-}
+ case Dropbox.ApiError.NETWORK_ERROR:
+ // An error occurred at the XMLHttpRequest layer.
+ // Most likely, the user's network connection is down.
+ // API calls will not succeed until the user gets back online.
+ msg = _("Network error");
+ break;
-SQL.IO.prototype.dropboxload = function() {
- var sql_io = this;
- sql_io.showDropboxAuthenticate( function() {
- var key = sql_io.promptName("serverloadprompt", ".xml");
- if (!key) { return; }
+ case Dropbox.ApiError.INVALID_PARAM:
+ case Dropbox.ApiError.OAUTH_ERROR:
+ case Dropbox.ApiError.INVALID_METHOD:
+ default:
+ // Caused by a bug in dropbox.js, in your application, or in Dropbox.
+ // Tell the user an error occurred, ask them to refresh the page.
+ }
- var filename = (key || "default") + ".xml";
-
- sql_io.listresponse("Loading...", 200);
- sql_io.dropboxClient.readFile(filename, function(error, data) {
- sql_io.listresponse("", 200);
- if (error) {
- return sql_io.showDropboxError(error);
- }
- sql_io.fromXMLText(data);
- });
- });
-}
+ alert(prefix + msg);
+};
-SQL.IO.prototype.dropboxlist = function() {
- var sql_io = this;
- sql_io.showDropboxAuthenticate( function() {
- sql_io.listresponse("Loading...", 200);
- sql_io.dropboxClient.readdir("/", function(error, entries) {
- if (error) {
- sql_io.listresponse("", 200);
- return sql_io.showDropboxError(error);
- }
- var data = entries.join("\n")+"\n";
- sql_io.listresponse(data, 200);
- });
- });
-}
+SQL.IO.prototype.showDropboxAuthenticate = function (connectedCallBack) {
+ if (!this.dropboxClient) return false;
+ // We want to use a popup window for authentication as the default redirection won't work for us as it'll make us lose our schema data
+ var href = window.location.href;
+ var prefix = href.substring(0, href.lastIndexOf("/")) + "/";
+ this.dropboxClient.authDriver(
+ new Dropbox.AuthDriver.Popup({
+ receiverUrl: prefix + "dropbox-oauth-receiver.html",
+ })
+ );
+
+ // Now let's authenticate us
+ var sql_io = this;
+ sql_io.dropboxClient.authenticate(function (error, client) {
+ if (error) {
+ sql_io.showDropboxError(error);
+ } else {
+ // We're authenticated
+ connectedCallBack();
+ }
+ return;
+ });
+
+ return true;
+};
+
+SQL.IO.prototype.dropboxsave = function () {
+ var sql_io = this;
+ sql_io.showDropboxAuthenticate(function () {
+ var key = sql_io.promptName("serversaveprompt", ".xml");
+ if (!key) {
+ return;
+ }
+
+ var filename = (key || "default") + ".xml";
+
+ sql_io.listresponse("Saving...", 200);
+ var xml = sql_io.owner.toXML();
+ sql_io.dropboxClient.writeFile(filename, xml, function (error, stat) {
+ if (error) {
+ sql_io.listresponse("", 200);
+ return sql_io.showDropboxError(error);
+ }
+ sql_io.listresponse(
+ filename + " " + _("was saved to Dropbox"),
+ 200
+ );
+ });
+ });
+};
+
+SQL.IO.prototype.dropboxload = function () {
+ var sql_io = this;
+ sql_io.showDropboxAuthenticate(function () {
+ var key = sql_io.promptName("serverloadprompt", ".xml");
+ if (!key) {
+ return;
+ }
+
+ var filename = (key || "default") + ".xml";
+
+ sql_io.listresponse("Loading...", 200);
+ sql_io.dropboxClient.readFile(filename, function (error, data) {
+ sql_io.listresponse("", 200);
+ if (error) {
+ return sql_io.showDropboxError(error);
+ }
+ sql_io.fromXMLText(data);
+ });
+ });
+};
+
+SQL.IO.prototype.dropboxlist = function () {
+ var sql_io = this;
+ sql_io.showDropboxAuthenticate(function () {
+ sql_io.listresponse("Loading...", 200);
+ sql_io.dropboxClient.readdir("/", function (error, entries) {
+ if (error) {
+ sql_io.listresponse("", 200);
+ return sql_io.showDropboxError(error);
+ }
+ var data = entries.join("\n") + "\n";
+ sql_io.listresponse(data, 200);
+ });
+ });
+};
/* ------------------------- Dropbox end ------------------------ */
-SQL.IO.prototype.clientsql = function() {
- var bp = this.owner.getOption("staticpath");
- var path = bp + "db/"+window.DATATYPES.getAttribute("db")+"/output.xsl";
- var h = this.owner.getXhrHeaders();
- this.owner.window.showThrobber();
- OZ.Request(path, this.finish.bind(this), {xml:true, headers:h});
-}
+SQL.IO.prototype.clientsql = function () {
+ var bp = this.owner.getOption("staticpath");
+ var path = bp + "db/" + window.DATATYPES.getAttribute("db") + "/output.xsl";
+ var h = this.owner.getXhrHeaders();
+ this.owner.window.showThrobber();
+ OZ.Request(path, this.finish.bind(this), { xml: true, headers: h });
+};
-SQL.IO.prototype.finish = function(xslDoc) {
- this.owner.window.hideThrobber();
- var xml = this.owner.toXML();
- var sql = "";
- try {
- if (window.XSLTProcessor && window.DOMParser) {
- var parser = new DOMParser();
- var xmlDoc = parser.parseFromString(xml, "text/xml");
- var xsl = new XSLTProcessor();
- xsl.importStylesheet(xslDoc);
- var result = xsl.transformToDocument(xmlDoc);
- sql = result.documentElement.textContent;
- } else if (window.ActiveXObject || "ActiveXObject" in window) {
- var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
- xmlDoc.loadXML(xml);
- sql = xmlDoc.transformNode(xslDoc);
- } else {
- throw new Error("No XSLT processor available");
- }
- } catch(e) {
- alert(_("xmlerror")+': '+e.message);
- return;
- }
- this.dom.ta.value = sql.trim();
-}
+SQL.IO.prototype.finish = function (xslDoc) {
+ this.owner.window.hideThrobber();
+ var xml = this.owner.toXML();
+ var sql = "";
+ try {
+ if (window.XSLTProcessor && window.DOMParser) {
+ var parser = new DOMParser();
+ var xmlDoc = parser.parseFromString(xml, "text/xml");
+ var xsl = new XSLTProcessor();
+ xsl.importStylesheet(xslDoc);
+ var result = xsl.transformToDocument(xmlDoc);
+ sql = result.documentElement.textContent;
+ } else if (window.ActiveXObject || "ActiveXObject" in window) {
+ var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
+ xmlDoc.loadXML(xml);
+ sql = xmlDoc.transformNode(xslDoc);
+ } else {
+ throw new Error("No XSLT processor available");
+ }
+ } catch (e) {
+ alert(_("xmlerror") + ": " + e.message);
+ return;
+ }
+ this.dom.ta.value = sql.trim();
+};
-SQL.IO.prototype.serversave = function(e, keyword) {
- var name = keyword || prompt(_("serversaveprompt"), this._name);
- if (!name) { return; }
- this._name = name;
- var xml = this.owner.toXML();
- var bp = this.owner.getOption("xhrpath");
- var url = bp + "backend/"+this.dom.backend.value+"/?action=save&keyword="+encodeURIComponent(name);
- var h = this.owner.getXhrHeaders();
- h["Content-type"] = "application/xml";
- this.owner.window.showThrobber();
- this.owner.setTitle(name);
- OZ.Request(url, this.saveresponse, {xml:true, method:"post", data:xml, headers:h});
-}
+SQL.IO.prototype.serversave = function (e, keyword) {
+ var name = keyword || prompt(_("serversaveprompt"), this._name);
+ if (!name) {
+ return;
+ }
+ this._name = name;
+ var xml = this.owner.toXML();
+ var bp = this.owner.getOption("xhrpath");
+ var url =
+ bp +
+ "backend/" +
+ this.dom.backend.value +
+ "/?action=save&keyword=" +
+ encodeURIComponent(name);
+ var h = this.owner.getXhrHeaders();
+ h["Content-type"] = "application/xml";
+ this.owner.window.showThrobber();
+ this.owner.setTitle(name);
+ OZ.Request(url, this.saveresponse, {
+ xml: true,
+ method: "post",
+ data: xml,
+ headers: h,
+ });
+};
-SQL.IO.prototype.quicksave = function(e) {
- this.serversave(e, this._name);
-}
+SQL.IO.prototype.quicksave = function (e) {
+ this.serversave(e, this._name);
+};
-SQL.IO.prototype.serverload = function(e, keyword) {
- var name = keyword || prompt(_("serverloadprompt"), this._name);
- if (!name) { return; }
- this._name = name;
- var bp = this.owner.getOption("xhrpath");
- var url = bp + "backend/"+this.dom.backend.value+"/?action=load&keyword="+encodeURIComponent(name);
- var h = this.owner.getXhrHeaders();
- this.owner.window.showThrobber();
- this.name = name;
- OZ.Request(url, this.loadresponse, {xml:true, headers:h});
-}
+SQL.IO.prototype.serverload = function (e, keyword) {
+ var name = keyword || prompt(_("serverloadprompt"), this._name);
+ if (!name) {
+ return;
+ }
+ this._name = name;
+ var bp = this.owner.getOption("xhrpath");
+ var url =
+ bp +
+ "backend/" +
+ this.dom.backend.value +
+ "/?action=load&keyword=" +
+ encodeURIComponent(name);
+ var h = this.owner.getXhrHeaders();
+ this.owner.window.showThrobber();
+ this.name = name;
+ OZ.Request(url, this.loadresponse, { xml: true, headers: h });
+};
-SQL.IO.prototype.serverlist = function(e) {
- var bp = this.owner.getOption("xhrpath");
- var url = bp + "backend/"+this.dom.backend.value+"/?action=list";
- var h = this.owner.getXhrHeaders();
- this.owner.window.showThrobber();
- OZ.Request(url, this.listresponse, {headers:h});
-}
+SQL.IO.prototype.serverlist = function (e) {
+ var bp = this.owner.getOption("xhrpath");
+ var url = bp + "backend/" + this.dom.backend.value + "/?action=list";
+ var h = this.owner.getXhrHeaders();
+ this.owner.window.showThrobber();
+ OZ.Request(url, this.listresponse, { headers: h });
+};
-SQL.IO.prototype.serverimport = function(e) {
- var name = prompt(_("serverimportprompt"), "");
- if (!name) { return; }
- var bp = this.owner.getOption("xhrpath");
- var url = bp + "backend/"+this.dom.backend.value+"/?action=import&database="+name;
- var h = this.owner.getXhrHeaders();
- this.owner.window.showThrobber();
- OZ.Request(url, this.importresponse, {xml:true, headers:h});
-}
+SQL.IO.prototype.serverimport = function (e) {
+ var name = prompt(_("serverimportprompt"), "");
+ if (!name) {
+ return;
+ }
+ var bp = this.owner.getOption("xhrpath");
+ var url =
+ bp +
+ "backend/" +
+ this.dom.backend.value +
+ "/?action=import&database=" +
+ name;
+ var h = this.owner.getXhrHeaders();
+ this.owner.window.showThrobber();
+ OZ.Request(url, this.importresponse, { xml: true, headers: h });
+};
-SQL.IO.prototype.check = function(code) {
- switch (code) {
- case 201:
- case 404:
- case 500:
- case 501:
- case 503:
- var lang = "http"+code;
- this.dom.ta.value = _("httpresponse")+": "+_(lang);
- return false;
- break;
- default: return true;
- }
-}
+SQL.IO.prototype.check = function (code) {
+ switch (code) {
+ case 201:
+ case 404:
+ case 500:
+ case 501:
+ case 503:
+ var lang = "http" + code;
+ this.dom.ta.value = _("httpresponse") + ": " + _(lang);
+ return false;
+ break;
+ default:
+ return true;
+ }
+};
-SQL.IO.prototype.saveresponse = function(data, code) {
- this.owner.window.hideThrobber();
- this.check(code);
-}
+SQL.IO.prototype.saveresponse = function (data, code) {
+ this.owner.window.hideThrobber();
+ this.check(code);
+};
-SQL.IO.prototype.loadresponse = function(data, code) {
- this.owner.window.hideThrobber();
- if (!this.check(code)) { return; }
- this.fromXML(data);
- this.owner.setTitle(this.name);
-}
+SQL.IO.prototype.loadresponse = function (data, code) {
+ this.owner.window.hideThrobber();
+ if (!this.check(code)) {
+ return;
+ }
+ this.fromXML(data);
+ this.owner.setTitle(this.name);
+};
-SQL.IO.prototype.listresponse = function(data, code) {
- this.owner.window.hideThrobber();
- if (!this.check(code)) { return; }
- this.dom.ta.value = data;
-}
+SQL.IO.prototype.listresponse = function (data, code) {
+ this.owner.window.hideThrobber();
+ if (!this.check(code)) {
+ return;
+ }
+ this.dom.ta.value = data;
+};
-SQL.IO.prototype.importresponse = function(data, code) {
- this.owner.window.hideThrobber();
- if (!this.check(code)) { return; }
- if (this.fromXML(data)) {
- this.owner.alignTables();
- }
-}
+SQL.IO.prototype.importresponse = function (data, code) {
+ this.owner.window.hideThrobber();
+ if (!this.check(code)) {
+ return;
+ }
+ if (this.fromXML(data)) {
+ this.owner.alignTables();
+ }
+};
-SQL.IO.prototype.press = function(e) {
- switch (e.keyCode) {
- case 113:
- if (OZ.opera) {
- e.preventDefault();
- }
- this.quicksave(e);
- break;
- }
-}
+SQL.IO.prototype.press = function (e) {
+ switch (e.keyCode) {
+ case 113:
+ if (OZ.opera) {
+ e.preventDefault();
+ }
+ this.quicksave(e);
+ break;
+ }
+};
diff --git a/js/key.js b/js/key.js
index c1eb8b2..c963777 100644
--- a/js/key.js
+++ b/js/key.js
@@ -1,72 +1,81 @@
/* --------------------- db index ------------ */
-SQL.Key = function(owner, type, name) {
- this.owner = owner;
- this.rows = [];
- this.type = type || "INDEX";
- this.name = name || "";
- SQL.Visual.apply(this);
-}
+SQL.Key = function (owner, type, name) {
+ this.owner = owner;
+ this.rows = [];
+ this.type = type || "INDEX";
+ this.name = name || "";
+ SQL.Visual.apply(this);
+};
SQL.Key.prototype = Object.create(SQL.Visual.prototype);
-SQL.Key.prototype.setName = function(n) {
- this.name = n;
-}
+SQL.Key.prototype.setName = function (n) {
+ this.name = n;
+};
-SQL.Key.prototype.getName = function() {
- return this.name;
-}
+SQL.Key.prototype.getName = function () {
+ return this.name;
+};
-SQL.Key.prototype.setType = function(t) {
- if (!t) { return; }
- this.type = t;
- for (var i=0;i\n';
- for (var i=0;i'+r.getTitle()+'\n';
- }
- xml += '\n';
- return xml;
-}
+SQL.Key.prototype.toXML = function () {
+ var xml = "";
+ xml +=
+ '\n';
+ for (var i = 0; i < this.rows.length; i++) {
+ var r = this.rows[i];
+ xml += "" + r.getTitle() + "\n";
+ }
+ xml += "\n";
+ return xml;
+};
-SQL.Key.prototype.fromXML = function(node) {
- this.setType(node.getAttribute("type"));
- this.setName(node.getAttribute("name"));
- var parts = node.getElementsByTagName("part");
- for (var i=0;i=0;i--) {
- var k = this.table.keys[i];
- if (!k.rows.length) { this.table.removeKey(k); }
- }
-}
+SQL.KeyManager.prototype.add = function (e) {
+ var type = this.table.keys.length ? "INDEX" : "PRIMARY";
+ this.table.addKey(type);
+ this.sync(this.table);
+ this.switchTo(this.table.keys.length - 1);
+};
-SQL.KeyManager.prototype.sync = function(table) { /* sync content with given table */
- this.table = table;
- this.dom.listlabel.innerHTML = _("keyslistlabel").replace(/%s/,table.getTitle());
-
- OZ.DOM.clear(this.dom.list);
- for (var i=0;i= 0; i--) {
+ var k = this.table.keys[i];
+ if (!k.rows.length) {
+ this.table.removeKey(k);
+ }
+ }
+};
-SQL.KeyManager.prototype.switchTo = function(index) { /* show Nth key */
- this.enable();
- var k = this.table.keys[index];
- this.key = k;
- this.option = this.dom.list.getElementsByTagName("option")[index];
-
- this.dom.list.selectedIndex = index;
- this.dom.name.value = k.getName();
-
- var opts = this.dom.type.getElementsByTagName("option");
- for (var i=0;i 1) { return; }
- var event = e.touches[0];
- } else {
- var event = e;
- }
+ if (e.type.match(/touch/)) {
+ if (e.touches.length > 1) {
+ return;
+ }
+ var event = e.touches[0];
+ } else {
+ var event = e;
+ }
- var dx = event.clientX - this.x;
- var dy = event.clientY - this.y;
- if (this.l + dx < 0) { dx = -this.l; }
- if (this.t + dy < 0) { dy = -this.t; }
- if (this.l + this.w + 4 + dx > this.width) { dx = this.width - 4 - this.l - this.w; }
- if (this.t + this.h + 4 + dy > this.height) { dy = this.height - 4 - this.t - this.h; }
+ var dx = event.clientX - this.x;
+ var dy = event.clientY - this.y;
+ if (this.l + dx < 0) {
+ dx = -this.l;
+ }
+ if (this.t + dy < 0) {
+ dy = -this.t;
+ }
+ if (this.l + this.w + 4 + dx > this.width) {
+ dx = this.width - 4 - this.l - this.w;
+ }
+ if (this.t + this.h + 4 + dy > this.height) {
+ dy = this.height - 4 - this.t - this.h;
+ }
+ this.x += dx;
+ this.y += dy;
- this.x += dx;
- this.y += dy;
+ this.l += dx;
+ this.t += dy;
- this.l += dx;
- this.t += dy;
+ var coefX = this.width / this.owner.width;
+ var coefY = this.height / this.owner.height;
+ var left = this.l / coefX;
+ var top = this.t / coefY;
- var coefX = this.width / this.owner.width;
- var coefY = this.height / this.owner.height;
- var left = this.l / coefX;
- var top = this.t / coefY;
+ document.documentElement.scrollLeft = Math.round(left);
+ document.documentElement.scrollTop = Math.round(top);
- document.documentElement.scrollLeft = Math.round(left);
- document.documentElement.scrollTop = Math.round(top);
+ this.redraw();
+};
- this.redraw();
-}
+SQL.Map.prototype.up = function (e) {
+ /* mouseup */
+ this.flag = false;
+ this.dom.container.style.cursor = "";
+ OZ.Event.remove(this.documentMove);
+ OZ.Event.remove(this.documentUp);
+};
-SQL.Map.prototype.up = function(e) { /* mouseup */
- this.flag = false;
- this.dom.container.style.cursor = "";
- OZ.Event.remove(this.documentMove);
- OZ.Event.remove(this.documentUp);
-}
+SQL.Map.prototype.sync = function () {
+ /* when window changes, adjust map */
+ var dims = OZ.DOM.win();
+ var scroll = OZ.DOM.scroll();
+ var scaleX = this.width / this.owner.width;
+ var scaleY = this.height / this.owner.height;
-SQL.Map.prototype.sync = function() { /* when window changes, adjust map */
- var dims = OZ.DOM.win();
- var scroll = OZ.DOM.scroll();
- var scaleX = this.width / this.owner.width;
- var scaleY = this.height / this.owner.height;
+ var w = dims[0] * scaleX - 4 - 0;
+ var h = dims[1] * scaleY - 4 - 0;
+ var x = scroll[0] * scaleX;
+ var y = scroll[1] * scaleY;
- var w = dims[0] * scaleX - 4 - 0;
- var h = dims[1] * scaleY - 4 - 0;
- var x = scroll[0] * scaleX;
- var y = scroll[1] * scaleY;
+ this.w = Math.round(w);
+ this.h = Math.round(h);
+ this.l = Math.round(x);
+ this.t = Math.round(y);
- this.w = Math.round(w);
- this.h = Math.round(h);
- this.l = Math.round(x);
- this.t = Math.round(y);
+ this.redraw();
+};
- this.redraw();
-}
-
-SQL.Map.prototype.redraw = function() {
- this.dom.port.style.width = this.w+"px";
- this.dom.port.style.height = this.h+"px";
- this.dom.port.style.left = this.l+"px";
- this.dom.port.style.top = this.t+"px";
-}
+SQL.Map.prototype.redraw = function () {
+ this.dom.port.style.width = this.w + "px";
+ this.dom.port.style.height = this.h + "px";
+ this.dom.port.style.left = this.l + "px";
+ this.dom.port.style.top = this.t + "px";
+};
diff --git a/js/options.js b/js/options.js
index 8c39a47..024c7b6 100644
--- a/js/options.js
+++ b/js/options.js
@@ -1,88 +1,112 @@
/* --------------------- options ------------ */
-SQL.Options = function(owner) {
- this.owner = owner;
- this.dom = {
- container:OZ.$("opts"),
- btn:OZ.$("options")
- }
- this.dom.btn.value = _("options");
- this.save = this.save.bind(this);
- this.build();
-}
+SQL.Options = function (owner) {
+ this.owner = owner;
+ this.dom = {
+ container: OZ.$("opts"),
+ btn: OZ.$("options"),
+ };
+ this.dom.btn.value = _("options");
+ this.save = this.save.bind(this);
+ this.build();
+};
-SQL.Options.prototype.build = function() {
- this.dom.optionlocale = OZ.$("optionlocale");
- this.dom.optiondb = OZ.$("optiondb");
- this.dom.optionsnap = OZ.$("optionsnap");
- this.dom.optionpattern = OZ.$("optionpattern");
- this.dom.optionstyle = OZ.$("optionstyle");
- this.dom.optionhide = OZ.$("optionhide");
- this.dom.optionvector = OZ.$("optionvector");
- this.dom.optionshowsize = OZ.$("optionshowsize");
- this.dom.optionshowtype = OZ.$("optionshowtype");
+SQL.Options.prototype.build = function () {
+ this.dom.optionlocale = OZ.$("optionlocale");
+ this.dom.optiondb = OZ.$("optiondb");
+ this.dom.optionsnap = OZ.$("optionsnap");
+ this.dom.optionpattern = OZ.$("optionpattern");
+ this.dom.optionstyle = OZ.$("optionstyle");
+ this.dom.optionhide = OZ.$("optionhide");
+ this.dom.optionvector = OZ.$("optionvector");
+ this.dom.optionshowsize = OZ.$("optionshowsize");
+ this.dom.optionshowtype = OZ.$("optionshowtype");
- var ids = ["language","db","snap","pattern","style","hide","vector","showsize","showtype","optionsnapnotice","optionpatternnotice","optionsnotice"];
- for (var i=0;i-1;i--) {
- if (i in this && this[i] === item) { return i; }
- }
- return -1;
- }
+if (!Array.prototype.lastIndexOf) {
+ Array.prototype.lastIndexOf = function (item, from) {
+ var len = this.length;
+ var i = from || len - 1;
+ if (i < 0) {
+ i += len;
+ }
+ for (; i > -1; i--) {
+ if (i in this && this[i] === item) {
+ return i;
+ }
+ }
+ return -1;
+ };
}
-if (!Array.lastIndexOf) {
- Array.lastIndexOf = function(obj, item, from) { return Array.prototype.lastIndexOf.call(obj, item, from); }
+if (!Array.lastIndexOf) {
+ Array.lastIndexOf = function (obj, item, from) {
+ return Array.prototype.lastIndexOf.call(obj, item, from);
+ };
}
-if (!Array.prototype.forEach) {
- Array.prototype.forEach = function(cb, _this) {
- var len = this.length;
- for (var i=0;i\n';
+SQL.Row.prototype.toXML = function () {
+ var xml = "";
- var elm = this.getDataType();
- var t = elm.getAttribute("sql");
- if (this.data.size.length) { t += "("+this.data.size+")"; }
- xml += ""+t+"\n";
+ var t = this.getTitle().replace(/"/g, """);
+ var nn = this.data.nll ? "1" : "0";
+ var ai = this.data.ai ? "1" : "0";
+ xml +=
+ '\n';
- if (this.data.def || this.data.def === null) {
- var q = elm.getAttribute("quote");
- var d = this.data.def;
- if (d === null) {
- d = "NULL";
- } else if (d != "CURRENT_TIMESTAMP") {
- d = q+d+q;
- }
- xml += ""+SQL.escape(d)+"";
- }
+ var elm = this.getDataType();
+ var t = elm.getAttribute("sql");
+ if (this.data.size.length) {
+ t += "(" + this.data.size + ")";
+ }
+ xml += "" + t + "\n";
- for (var i=0;i\n';
- }
+ if (this.data.def || this.data.def === null) {
+ var q = elm.getAttribute("quote");
+ var d = this.data.def;
+ if (d === null) {
+ d = "NULL";
+ } else if (d != "CURRENT_TIMESTAMP") {
+ d = q + d + q;
+ }
+ xml += "" + SQL.escape(d) + "";
+ }
- if (this.data.comment) {
- xml += ""+SQL.escape(this.data.comment)+"\n";
- }
+ for (var i = 0; i < this.relations.length; i++) {
+ var r = this.relations[i];
+ if (r.row2 != this) {
+ continue;
+ }
+ xml +=
+ '\n';
+ }
- xml += "
\n";
- return xml;
-}
+ if (this.data.comment) {
+ xml += "" + SQL.escape(this.data.comment) + "\n";
+ }
-SQL.Row.prototype.fromXML = function(node) {
- var name = node.getAttribute("name");
+ xml += "\n";
+ return xml;
+};
- var obj = { type:0, size:"" };
- obj.nll = (node.getAttribute("null") == "1");
- obj.ai = (node.getAttribute("autoincrement") == "1");
+SQL.Row.prototype.fromXML = function (node) {
+ var name = node.getAttribute("name");
- var cs = node.getElementsByTagName("comment");
- if (cs.length && cs[0].firstChild) { obj.comment = cs[0].firstChild.nodeValue; }
+ var obj = { type: 0, size: "" };
+ obj.nll = node.getAttribute("null") == "1";
+ obj.ai = node.getAttribute("autoincrement") == "1";
- var d = node.getElementsByTagName("datatype");
- if (d.length && d[0].firstChild) {
- var s = d[0].firstChild.nodeValue;
- var r = s.match(/^([^\(]+)(\((.*)\))?.*$/);
- var type = r[1];
- if (r[3]) { obj.size = r[3]; }
- var types = window.DATATYPES.getElementsByTagName("type");
- for (var i=0;i 0;
-}
+SQL.Row.prototype.isUnique = function () {
+ for (var i = 0; i < this.keys.length; i++) {
+ var k = this.keys[i];
+ var t = k.getType();
+ if (t == "PRIMARY" || t == "UNIQUE") {
+ return true;
+ }
+ }
+ return false;
+};
-SQL.Row.prototype.enter = function(e) {
- if (e.keyCode == 13) {
- this.collapse();
- }
-}
+SQL.Row.prototype.isKey = function () {
+ return this.keys.length > 0;
+};
+
+SQL.Row.prototype.enter = function (e) {
+ if (e.keyCode == 13) {
+ this.collapse();
+ }
+};
diff --git a/js/rowmanager.js b/js/rowmanager.js
index baa643d..68476f2 100644
--- a/js/rowmanager.js
+++ b/js/rowmanager.js
@@ -1,188 +1,239 @@
/* --------------------- row manager ------------ */
-SQL.RowManager = function(owner) {
- this.owner = owner;
- this.dom = {};
- this.selected = null;
- this.creating = false;
- this.connecting = false;
-
- var ids = ["editrow","removerow","uprow","downrow","foreigncreate","foreignconnect","foreigndisconnect"];
- for (var i=0;i=0;i--) {
- var r = rels[i];
- if (r.row2 == this.selected) { this.owner.removeRelation(r); }
- }
- this.redraw();
-}
+ var p = this.owner.getOption("pattern");
+ p = p.replace(/%T/g, r1.owner.getTitle());
+ p = p.replace(/%t/g, t2.getTitle());
+ p = p.replace(/%R/g, r1.getTitle());
-SQL.RowManager.prototype.endCreate = function() {
- this.creating = false;
- this.dom.foreigncreate.value = _("foreigncreate");
-}
+ var r2 = t2.addRow(p, r1.data);
+ r2.update({ type: SQL.Designer.getFKTypeFor(r1.data.type) });
+ r2.update({ ai: false });
+ this.owner.addRelation(r1, r2);
+};
-SQL.RowManager.prototype.endConnect = function() {
- this.connecting = false;
- this.dom.foreignconnect.value = _("foreignconnect");
-}
+SQL.RowManager.prototype.rowClick = function (e) {
+ /* draw relation after clicking target row */
+ if (!this.connecting) {
+ return;
+ }
-SQL.RowManager.prototype.up = function(e) {
- this.selected.up();
- this.redraw();
-}
+ var r1 = this.selected;
+ var r2 = e.target;
-SQL.RowManager.prototype.down = function(e) {
- this.selected.down();
- this.redraw();
-}
+ if (r1 == r2) {
+ return;
+ }
-SQL.RowManager.prototype.remove = function(e) {
- var result = confirm(_("confirmrow")+" '"+this.selected.getTitle()+"' ?");
- if (!result) { return; }
- var t = this.selected.owner;
- this.selected.owner.removeRow(this.selected);
-
- var next = false;
- if (t.rows) { next = t.rows[t.rows.length-1]; }
- this.select(next);
-}
+ this.owner.addRelation(r1, r2);
+};
-SQL.RowManager.prototype.redraw = function() {
- this.endCreate();
- this.endConnect();
- if (this.selected) {
- var table = this.selected.owner;
- var rows = table.rows;
- this.dom.uprow.disabled = (rows[0] == this.selected);
- this.dom.downrow.disabled = (rows[rows.length-1] == this.selected);
- this.dom.removerow.disabled = false;
- this.dom.editrow.disabled = false;
- this.dom.foreigncreate.disabled = !(this.selected.isUnique());
- this.dom.foreignconnect.disabled = !(this.selected.isUnique());
-
- this.dom.foreigndisconnect.disabled = true;
- var rels = this.selected.relations;
- for (var i=0;i= 0; i--) {
+ var r = rels[i];
+ if (r.row2 == this.selected) {
+ this.owner.removeRelation(r);
+ }
+ }
+ this.redraw();
+};
+
+SQL.RowManager.prototype.endCreate = function () {
+ this.creating = false;
+ this.dom.foreigncreate.value = _("foreigncreate");
+};
+
+SQL.RowManager.prototype.endConnect = function () {
+ this.connecting = false;
+ this.dom.foreignconnect.value = _("foreignconnect");
+};
+
+SQL.RowManager.prototype.up = function (e) {
+ this.selected.up();
+ this.redraw();
+};
+
+SQL.RowManager.prototype.down = function (e) {
+ this.selected.down();
+ this.redraw();
+};
+
+SQL.RowManager.prototype.remove = function (e) {
+ var result = confirm(
+ _("confirmrow") + " '" + this.selected.getTitle() + "' ?"
+ );
+ if (!result) {
+ return;
+ }
+ var t = this.selected.owner;
+ this.selected.owner.removeRow(this.selected);
+
+ var next = false;
+ if (t.rows) {
+ next = t.rows[t.rows.length - 1];
+ }
+ this.select(next);
+};
+
+SQL.RowManager.prototype.redraw = function () {
+ this.endCreate();
+ this.endConnect();
+ if (this.selected) {
+ var table = this.selected.owner;
+ var rows = table.rows;
+ this.dom.uprow.disabled = rows[0] == this.selected;
+ this.dom.downrow.disabled = rows[rows.length - 1] == this.selected;
+ this.dom.removerow.disabled = false;
+ this.dom.editrow.disabled = false;
+ this.dom.foreigncreate.disabled = !this.selected.isUnique();
+ this.dom.foreignconnect.disabled = !this.selected.isUnique();
+
+ this.dom.foreigndisconnect.disabled = true;
+ var rels = this.selected.relations;
+ for (var i = 0; i < rels.length; i++) {
+ var r = rels[i];
+ if (r.row2 == this.selected) {
+ this.dom.foreigndisconnect.disabled = false;
+ }
+ }
+ } else {
+ this.dom.uprow.disabled = true;
+ this.dom.downrow.disabled = true;
+ this.dom.removerow.disabled = true;
+ this.dom.editrow.disabled = true;
+ this.dom.foreigncreate.disabled = true;
+ this.dom.foreignconnect.disabled = true;
+ this.dom.foreigndisconnect.disabled = true;
+ }
+};
+
+SQL.RowManager.prototype.press = function (e) {
+ if (!this.selected) {
+ return;
+ }
+
+ var target = OZ.Event.target(e).nodeName.toLowerCase();
+ if (target == "textarea" || target == "input") {
+ return;
+ } /* not when in form field */
+
+ switch (e.keyCode) {
+ case 38:
+ this.up();
+ OZ.Event.prevent(e);
+ break;
+ case 40:
+ this.down();
+ OZ.Event.prevent(e);
+ break;
+ case 46:
+ this.remove();
+ OZ.Event.prevent(e);
+ break;
+ case 13:
+ case 27:
+ this.selected.collapse();
+ break;
+ }
+};
+
+SQL.RowManager.prototype.edit = function (e) {
+ this.selected.expand();
+};
diff --git a/js/rubberband.js b/js/rubberband.js
index 9a08771..622bbb6 100644
--- a/js/rubberband.js
+++ b/js/rubberband.js
@@ -1,48 +1,60 @@
/* --------------------- rubberband -------------------- */
-SQL.Rubberband = function(owner) {
- this.owner = owner;
- SQL.Visual.apply(this);
- this.dom.container = OZ.$("rubberband");
- OZ.Event.add("area", "mousedown", this.down.bind(this));
-}
+SQL.Rubberband = function (owner) {
+ this.owner = owner;
+ SQL.Visual.apply(this);
+ this.dom.container = OZ.$("rubberband");
+ OZ.Event.add("area", "mousedown", this.down.bind(this));
+};
SQL.Rubberband.prototype = Object.create(SQL.Visual.prototype);
-SQL.Rubberband.prototype.down = function(e) {
- OZ.Event.prevent(e);
- var scroll = OZ.DOM.scroll();
- this.x = this.x0 = e.clientX + scroll[0];
- this.y = this.y0 = e.clientY + scroll[1];
- this.width = 0;
- this.height = 0;
- this.redraw();
- this.documentMove = OZ.Event.add(document, "mousemove", this.move.bind(this));
- this.documentUp = OZ.Event.add(document, "mouseup", this.up.bind(this));
-}
+SQL.Rubberband.prototype.down = function (e) {
+ OZ.Event.prevent(e);
+ var scroll = OZ.DOM.scroll();
+ this.x = this.x0 = e.clientX + scroll[0];
+ this.y = this.y0 = e.clientY + scroll[1];
+ this.width = 0;
+ this.height = 0;
+ this.redraw();
+ this.documentMove = OZ.Event.add(
+ document,
+ "mousemove",
+ this.move.bind(this)
+ );
+ this.documentUp = OZ.Event.add(document, "mouseup", this.up.bind(this));
+};
-SQL.Rubberband.prototype.move = function(e) {
- var scroll = OZ.DOM.scroll();
- var x = e.clientX + scroll[0];
- var y = e.clientY + scroll[1];
- this.width = Math.abs(x-this.x0);
- this.height = Math.abs(y-this.y0);
- if (x\n';
- for (var i=0;i"+SQL.escape(c)+"\n";
- }
- xml += "\n";
- return xml;
-}
+SQL.Table.prototype.moveBy = function (dx, dy) {
+ this.x += dx;
+ this.y += dy;
-SQL.Table.prototype.fromXML = function(node) {
- var name = node.getAttribute("name");
- this.setTitle(name);
- var x = parseInt(node.getAttribute("x")) || 0;
- var y = parseInt(node.getAttribute("y")) || 0;
- this.moveTo(x, y);
- var rows = node.getElementsByTagName("row");
- for (var i=0;i 1) { return; }
- var event = e.touches[0];
- } else {
- var event = e;
- }
+ /* a non-shift click within a selection preserves the selection */
+ if (e.shiftKey || !this.selected) {
+ this.owner.tableManager.select(this, e.shiftKey);
+ }
- for (var i=0;i\n';
+ for (var i = 0; i < this.rows.length; i++) {
+ xml += this.rows[i].toXML();
+ }
+ for (var i = 0; i < this.keys.length; i++) {
+ xml += this.keys[i].toXML();
+ }
+ var c = this.getComment();
+ if (c) {
+ xml += "" + SQL.escape(c) + "\n";
+ }
+ xml += "\n";
+ return xml;
+};
+
+SQL.Table.prototype.fromXML = function (node) {
+ var name = node.getAttribute("name");
+ this.setTitle(name);
+ var x = parseInt(node.getAttribute("x")) || 0;
+ var y = parseInt(node.getAttribute("y")) || 0;
+ this.moveTo(x, y);
+ var rows = node.getElementsByTagName("row");
+ for (var i = 0; i < rows.length; i++) {
+ var row = rows[i];
+ var r = this.addRow("");
+ r.fromXML(row);
+ }
+ var keys = node.getElementsByTagName("key");
+ for (var i = 0; i < keys.length; i++) {
+ var key = keys[i];
+ var k = this.addKey();
+ k.fromXML(key);
+ }
+ for (var i = 0; i < node.childNodes.length; i++) {
+ var ch = node.childNodes[i];
+ if (
+ ch.tagName &&
+ ch.tagName.toLowerCase() == "comment" &&
+ ch.firstChild
+ ) {
+ this.setComment(ch.firstChild.nodeValue);
+ }
+ }
+};
+
+SQL.Table.prototype.getZ = function () {
+ return this.zIndex;
+};
+
+SQL.Table.prototype.setZ = function (z) {
+ this.zIndex = z;
+ this.dom.container.style.zIndex = z;
+};
+
+SQL.Table.prototype.findNamedRow = function (n) {
+ /* return row with a given name */
+ for (var i = 0; i < this.rows.length; i++) {
+ if (this.rows[i].getTitle() == n) {
+ return this.rows[i];
+ }
+ }
+ return false;
+};
+
+SQL.Table.prototype.setComment = function (c) {
+ this.data.comment = c;
+ this.dom.title.title = this.data.comment;
+};
+
+SQL.Table.prototype.getComment = function () {
+ return this.data.comment;
+};
+
+SQL.Table.prototype.move = function (e) {
+ /* mousemove */
+ var t = SQL.Table;
+ SQL.Designer.removeSelection();
+ if (e.type == "touchmove") {
+ if (e.touches.length > 1) {
+ return;
+ }
+ var event = e.touches[0];
+ } else {
+ var event = e;
+ }
+
+ for (var i = 0; i < t.active.length; i++) {
+ var x = t.x[i] + event.clientX;
+ var y = t.y[i] + event.clientY;
+ x = Math.max(x, 0);
+ y = Math.max(y, 0);
+ t.active[i].moveTo(x, y);
+ }
+};
+
+SQL.Table.prototype.up = function (e) {
+ var t = SQL.Table;
+ var d = SQL.Designer;
+ if (d.getOption("hide")) {
+ for (var i = 0; i < t.active.length; i++) {
+ t.active[i].showRelations();
+ t.active[i].redraw();
+ }
+ }
+ t.active = false;
+ OZ.Event.remove(this.documentMove);
+ OZ.Event.remove(this.documentUp);
+ this.owner.sync();
+};
+
+SQL.Table.prototype.destroy = function () {
+ SQL.Visual.prototype.destroy.apply(this);
+ this.dom.mini.parentNode.removeChild(this.dom.mini);
+ while (this.rows.length) {
+ this.removeRow(this.rows[0]);
+ }
+ this._ec.forEach(OZ.Event.remove, OZ.Event);
+};
diff --git a/js/tablemanager.js b/js/tablemanager.js
index 4c340bc..53fb53f 100644
--- a/js/tablemanager.js
+++ b/js/tablemanager.js
@@ -1,209 +1,257 @@
/* --------------------- table manager ------------ */
-SQL.TableManager = function(owner) {
- this.owner = owner;
- this.dom = {
- container:OZ.$("table"),
- name:OZ.$("tablename"),
- comment:OZ.$("tablecomment")
- };
- this.selection = [];
- this.adding = false;
-
- var ids = ["addtable","removetable","aligntables","cleartables","addrow","edittable","tablekeys"];
- for (var i=0;i 1) { this.dom.removetable.value = _("removetables"); }
- } else {
- this.dom.removetable.disabled = true;
- this.dom.removetable.value = _("removetable");
- }
- for (var i=0;i=x && tx=x && tx1x1)) &&
- ((ty>=y && ty=y && ty1y1)))
- { this.selection.push(t); }
- }
- this.processSelection();
-}
+ this.dom.container.parentNode.removeChild(this.dom.container);
+};
-SQL.TableManager.prototype.click = function(e) { /* finish adding new table */
- var newtable = false;
- if (this.adding) {
- this.adding = false;
- OZ.DOM.removeClass("area","adding");
- this.dom.addtable.value = this.oldvalue;
- var scroll = OZ.DOM.scroll();
- var x = e.clientX + scroll[0];
- var y = e.clientY + scroll[1];
- newtable = this.owner.addTable(_("newtable"),x,y);
- var r = newtable.addRow("id",{ai:true});
- var k = newtable.addKey("PRIMARY","");
- k.addRow(r);
- }
- this.select(newtable);
- this.owner.rowManager.select(false);
- if (this.selection.length == 1) { this.edit(e); }
-}
+SQL.TableManager.prototype.addRow = function (e) {
+ var newrow = this.selection[0].addRow(_("newrow"));
+ this.owner.rowManager.select(newrow);
+ newrow.expand();
+};
-SQL.TableManager.prototype.preAdd = function(e) { /* click add new table */
- if (this.adding) {
- this.adding = false;
- OZ.DOM.removeClass("area","adding");
- this.dom.addtable.value = this.oldvalue;
- } else {
- this.adding = true;
- OZ.DOM.addClass("area","adding");
- this.oldvalue = this.dom.addtable.value;
- this.dom.addtable.value = "["+_("addpending")+"]";
- }
-}
+SQL.TableManager.prototype.select = function (table, multi) {
+ /* activate table */
+ if (table) {
+ if (multi) {
+ var i = this.selection.indexOf(table);
+ if (i < 0) {
+ this.selection.push(table);
+ } else {
+ this.selection.splice(i, 1);
+ }
+ } else {
+ if (this.selection[0] === table) {
+ return;
+ }
+ this.selection = [table];
+ }
+ } else {
+ this.selection = [];
+ }
+ this.processSelection();
+};
-SQL.TableManager.prototype.clear = function(e) { /* remove all tables */
- if (!this.owner.tables.length) { return; }
- var result = confirm(_("confirmall")+" ?");
- if (!result) { return; }
- this.owner.clearTables();
-}
+SQL.TableManager.prototype.processSelection = function () {
+ var tables = this.owner.tables;
+ for (var i = 0; i < tables.length; i++) {
+ tables[i].deselect();
+ }
+ if (this.selection.length == 1) {
+ this.dom.addrow.disabled = false;
+ this.dom.edittable.disabled = false;
+ this.dom.tablekeys.disabled = false;
+ this.dom.removetable.value = _("removetable");
+ } else {
+ this.dom.addrow.disabled = true;
+ this.dom.edittable.disabled = true;
+ this.dom.tablekeys.disabled = true;
+ }
+ if (this.selection.length) {
+ this.dom.removetable.disabled = false;
+ if (this.selection.length > 1) {
+ this.dom.removetable.value = _("removetables");
+ }
+ } else {
+ this.dom.removetable.disabled = true;
+ this.dom.removetable.value = _("removetable");
+ }
+ for (var i = 0; i < this.selection.length; i++) {
+ var t = this.selection[i];
+ t.owner.raise(t);
+ t.select();
+ }
+};
-SQL.TableManager.prototype.remove = function(e) {
- var titles = this.selection.slice(0);
- for (var i=0;i= x && tx < x1) ||
+ (tx1 >= x && tx1 < x1) ||
+ (tx < x && tx1 > x1)) &&
+ ((ty >= y && ty < y1) ||
+ (ty1 >= y && ty1 < y1) ||
+ (ty < y && ty1 > y1))
+ ) {
+ this.selection.push(t);
+ }
+ }
+ this.processSelection();
+};
-SQL.TableManager.prototype.edit = function(e) {
- this.owner.window.open(_("edittable"), this.dom.container, this.save);
-
- var title = this.selection[0].getTitle();
- this.dom.name.value = title;
- try { /* throws in ie6 */
- this.dom.comment.value = this.selection[0].getComment();
- } catch(e) {}
+SQL.TableManager.prototype.click = function (e) {
+ /* finish adding new table */
+ var newtable = false;
+ if (this.adding) {
+ this.adding = false;
+ OZ.DOM.removeClass("area", "adding");
+ this.dom.addtable.value = this.oldvalue;
+ var scroll = OZ.DOM.scroll();
+ var x = e.clientX + scroll[0];
+ var y = e.clientY + scroll[1];
+ newtable = this.owner.addTable(_("newtable"), x, y);
+ var r = newtable.addRow("id", { ai: true });
+ var k = newtable.addKey("PRIMARY", "");
+ k.addRow(r);
+ }
+ this.select(newtable);
+ this.owner.rowManager.select(false);
+ if (this.selection.length == 1) {
+ this.edit(e);
+ }
+};
- /* pre-select table name */
- this.dom.name.focus();
- if (OZ.ie) {
- try { /* throws in ie6 */
- this.dom.name.select();
- } catch(e) {}
- } else {
- this.dom.name.setSelectionRange(0, title.length);
- }
-}
+SQL.TableManager.prototype.preAdd = function (e) {
+ /* click add new table */
+ if (this.adding) {
+ this.adding = false;
+ OZ.DOM.removeClass("area", "adding");
+ this.dom.addtable.value = this.oldvalue;
+ } else {
+ this.adding = true;
+ OZ.DOM.addClass("area", "adding");
+ this.oldvalue = this.dom.addtable.value;
+ this.dom.addtable.value = "[" + _("addpending") + "]";
+ }
+};
-SQL.TableManager.prototype.keys = function(e) { /* open keys dialog */
- this.owner.keyManager.open(this.selection[0]);
-}
+SQL.TableManager.prototype.clear = function (e) {
+ /* remove all tables */
+ if (!this.owner.tables.length) {
+ return;
+ }
+ var result = confirm(_("confirmall") + " ?");
+ if (!result) {
+ return;
+ }
+ this.owner.clearTables();
+};
-SQL.TableManager.prototype.save = function() {
- this.selection[0].setTitle(this.dom.name.value);
- this.selection[0].setComment(this.dom.comment.value);
-}
+SQL.TableManager.prototype.remove = function (e) {
+ var titles = this.selection.slice(0);
+ for (var i = 0; i < titles.length; i++) {
+ titles[i] = "'" + titles[i].getTitle() + "'";
+ }
+ var result = confirm(_("confirmtable") + " " + titles.join(", ") + "?");
+ if (!result) {
+ return;
+ }
+ var sel = this.selection.slice(0);
+ for (var i = 0; i < sel.length; i++) {
+ this.owner.removeTable(sel[i]);
+ }
+};
-SQL.TableManager.prototype.press = function(e) {
- var target = OZ.Event.target(e).nodeName.toLowerCase();
- if (target == "textarea" || target == "input") { return; } /* not when in form field */
-
- if (this.owner.rowManager.selected) { return; } /* do not process keypresses if a row is selected */
+SQL.TableManager.prototype.edit = function (e) {
+ this.owner.window.open(_("edittable"), this.dom.container, this.save);
- if (!this.selection.length) { return; } /* nothing if selection is active */
+ var title = this.selection[0].getTitle();
+ this.dom.name.value = title;
+ try {
+ /* throws in ie6 */
+ this.dom.comment.value = this.selection[0].getComment();
+ } catch (e) {}
- switch (e.keyCode) {
- case 46:
- this.remove();
- OZ.Event.prevent(e);
- break;
- }
-}
+ /* pre-select table name */
+ this.dom.name.focus();
+ if (OZ.ie) {
+ try {
+ /* throws in ie6 */
+ this.dom.name.select();
+ } catch (e) {}
+ } else {
+ this.dom.name.setSelectionRange(0, title.length);
+ }
+};
+
+SQL.TableManager.prototype.keys = function (e) {
+ /* open keys dialog */
+ this.owner.keyManager.open(this.selection[0]);
+};
+
+SQL.TableManager.prototype.save = function () {
+ this.selection[0].setTitle(this.dom.name.value);
+ this.selection[0].setComment(this.dom.comment.value);
+};
+
+SQL.TableManager.prototype.press = function (e) {
+ var target = OZ.Event.target(e).nodeName.toLowerCase();
+ if (target == "textarea" || target == "input") {
+ return;
+ } /* not when in form field */
+
+ if (this.owner.rowManager.selected) {
+ return;
+ } /* do not process keypresses if a row is selected */
+
+ if (!this.selection.length) {
+ return;
+ } /* nothing if selection is active */
+
+ switch (e.keyCode) {
+ case 46:
+ this.remove();
+ OZ.Event.prevent(e);
+ break;
+ }
+};
diff --git a/js/toggle.js b/js/toggle.js
index 703dbb7..bf48615 100644
--- a/js/toggle.js
+++ b/js/toggle.js
@@ -1,26 +1,28 @@
/* ------------------ minimize/restore bar ----------- */
-SQL.Toggle = function(elm) {
- this._state = null;
- this._elm = elm;
- OZ.Event.add(elm, "click", this._click.bind(this));
-
- var defaultState = true;
- if (document.location.href.match(/toolbar=hidden/)) { defaultState = false; }
- this._switch(defaultState);
-}
+SQL.Toggle = function (elm) {
+ this._state = null;
+ this._elm = elm;
+ OZ.Event.add(elm, "click", this._click.bind(this));
-SQL.Toggle.prototype._click = function(e) {
- this._switch(!this._state);
-}
+ var defaultState = true;
+ if (document.location.href.match(/toolbar=hidden/)) {
+ defaultState = false;
+ }
+ this._switch(defaultState);
+};
-SQL.Toggle.prototype._switch = function(state) {
- this._state = state;
- if (this._state) {
- OZ.$("bar").style.maxHeight = "";
- } else {
- OZ.$("bar").style.overflow = "hidden";
- OZ.$("bar").style.maxHeight = this._elm.offsetHeight + "px";
- }
- this._elm.className = (this._state ? "on" : "off");
-}
+SQL.Toggle.prototype._click = function (e) {
+ this._switch(!this._state);
+};
+
+SQL.Toggle.prototype._switch = function (state) {
+ this._state = state;
+ if (this._state) {
+ OZ.$("bar").style.maxHeight = "";
+ } else {
+ OZ.$("bar").style.overflow = "hidden";
+ OZ.$("bar").style.maxHeight = this._elm.offsetHeight + "px";
+ }
+ this._elm.className = this._state ? "on" : "off";
+};
diff --git a/js/visual.js b/js/visual.js
index 5b84e4f..d7a6fd5 100644
--- a/js/visual.js
+++ b/js/visual.js
@@ -1,40 +1,43 @@
/* -------------------- base visual element -------------------- */
-SQL.Visual = function() {
- this._init();
- this._build();
-}
+SQL.Visual = function () {
+ this._init();
+ this._build();
+};
-SQL.Visual.prototype._init = function() {
- this.dom = {
- container: null,
- title: null
- };
- this.data = {
- title:""
- }
-}
+SQL.Visual.prototype._init = function () {
+ this.dom = {
+ container: null,
+ title: null,
+ };
+ this.data = {
+ title: "",
+ };
+};
-SQL.Visual.prototype._build = function() {}
+SQL.Visual.prototype._build = function () {};
-SQL.Visual.prototype.toXML = function() {}
+SQL.Visual.prototype.toXML = function () {};
-SQL.Visual.prototype.fromXML = function(node) {}
+SQL.Visual.prototype.fromXML = function (node) {};
-SQL.Visual.prototype.destroy = function() { /* "destructor" */
- var p = this.dom.container.parentNode;
- if (p && p.nodeType == 1) {
- p.removeChild(this.dom.container);
- }
-}
+SQL.Visual.prototype.destroy = function () {
+ /* "destructor" */
+ var p = this.dom.container.parentNode;
+ if (p && p.nodeType == 1) {
+ p.removeChild(this.dom.container);
+ }
+};
-SQL.Visual.prototype.setTitle = function(text) {
- if (!text) { return; }
- this.data.title = text;
- this.dom.title.innerHTML = text;
-}
+SQL.Visual.prototype.setTitle = function (text) {
+ if (!text) {
+ return;
+ }
+ this.data.title = text;
+ this.dom.title.innerHTML = text;
+};
-SQL.Visual.prototype.getTitle = function() {
- return this.data.title;
-}
+SQL.Visual.prototype.getTitle = function () {
+ return this.data.title;
+};
-SQL.Visual.prototype.redraw = function() {}
+SQL.Visual.prototype.redraw = function () {};
diff --git a/js/window.js b/js/window.js
index c3cceae..12dd700 100644
--- a/js/window.js
+++ b/js/window.js
@@ -1,93 +1,110 @@
/* --------------------- window ------------ */
-SQL.Window = function(owner) {
- this.owner = owner;
- this.dom = {
- container:OZ.$("window"),
- background:OZ.$("background"),
- ok:OZ.$("windowok"),
- cancel:OZ.$("windowcancel"),
- title:OZ.$("windowtitle"),
- content:OZ.$("windowcontent"),
- throbber:OZ.$("throbber")
- }
- this.dom.ok.value = _("windowok");
- this.dom.cancel.value = _("windowcancel");
- this.dom.throbber.alt = this.dom.throbber.title = _("throbber");
- OZ.Event.add(this.dom.ok, "click", this.ok.bind(this));
- OZ.Event.add(this.dom.cancel, "click", this.close.bind(this));
- OZ.Event.add(document, "keydown", this.key.bind(this));
-
- this.sync = this.sync.bind(this);
-
- OZ.Event.add(window, "scroll", this.sync);
- OZ.Event.add(window, "resize", this.sync);
- this.state = 0;
- this.hideThrobber();
-
- this.sync();
-}
+SQL.Window = function (owner) {
+ this.owner = owner;
+ this.dom = {
+ container: OZ.$("window"),
+ background: OZ.$("background"),
+ ok: OZ.$("windowok"),
+ cancel: OZ.$("windowcancel"),
+ title: OZ.$("windowtitle"),
+ content: OZ.$("windowcontent"),
+ throbber: OZ.$("throbber"),
+ };
+ this.dom.ok.value = _("windowok");
+ this.dom.cancel.value = _("windowcancel");
+ this.dom.throbber.alt = this.dom.throbber.title = _("throbber");
+ OZ.Event.add(this.dom.ok, "click", this.ok.bind(this));
+ OZ.Event.add(this.dom.cancel, "click", this.close.bind(this));
+ OZ.Event.add(document, "keydown", this.key.bind(this));
-SQL.Window.prototype.showThrobber = function() {
- this.dom.throbber.style.visibility = "";
-}
+ this.sync = this.sync.bind(this);
-SQL.Window.prototype.hideThrobber = function() {
- this.dom.throbber.style.visibility = "hidden";
-}
+ OZ.Event.add(window, "scroll", this.sync);
+ OZ.Event.add(window, "resize", this.sync);
+ this.state = 0;
+ this.hideThrobber();
-SQL.Window.prototype.open = function(title, content, callback) {
- this.state = 1;
- this.callback = callback;
- while (this.dom.title.childNodes.length > 1) { this.dom.title.removeChild(this.dom.title.childNodes[1]); }
+ this.sync();
+};
- var txt = OZ.DOM.text(title);
- this.dom.title.appendChild(txt);
- this.dom.background.style.visibility = "visible";
- OZ.DOM.clear(this.dom.content);
- this.dom.content.appendChild(content);
-
- var win = OZ.DOM.win();
- var scroll = OZ.DOM.scroll();
- this.dom.container.style.left = Math.round(scroll[0] + (win[0] - this.dom.container.offsetWidth)/2)+"px";
- this.dom.container.style.top = Math.round(scroll[1] + (win[1] - this.dom.container.offsetHeight)/2)+"px";
-
- this.dom.cancel.style.visibility = (this.callback ? "" : "hidden");
- this.dom.container.style.visibility = "visible";
+SQL.Window.prototype.showThrobber = function () {
+ this.dom.throbber.style.visibility = "";
+};
- var formElements = ["input","select","textarea"];
- var all = this.dom.container.getElementsByTagName("*");
- for (var i=0;i 1) {
+ this.dom.title.removeChild(this.dom.title.childNodes[1]);
+ }
-SQL.Window.prototype.ok = function(e) {
- if (this.callback) { this.callback(); }
- this.close();
-}
+ var txt = OZ.DOM.text(title);
+ this.dom.title.appendChild(txt);
+ this.dom.background.style.visibility = "visible";
+ OZ.DOM.clear(this.dom.content);
+ this.dom.content.appendChild(content);
-SQL.Window.prototype.close = function() {
- if (!this.state) { return; }
- this.state = 0;
- this.dom.background.style.visibility = "hidden";
- this.dom.container.style.visibility = "hidden";
-}
+ var win = OZ.DOM.win();
+ var scroll = OZ.DOM.scroll();
+ this.dom.container.style.left =
+ Math.round(scroll[0] + (win[0] - this.dom.container.offsetWidth) / 2) +
+ "px";
+ this.dom.container.style.top =
+ Math.round(scroll[1] + (win[1] - this.dom.container.offsetHeight) / 2) +
+ "px";
-SQL.Window.prototype.sync = function() { /* adjust background position */
- var dims = OZ.DOM.win();
- var scroll = OZ.DOM.scroll();
- this.dom.background.style.width = dims[0]+"px";
- this.dom.background.style.height = dims[1]+"px";
- this.dom.background.style.left = scroll[0]+"px";
- this.dom.background.style.top = scroll[1]+"px";
-}
+ this.dom.cancel.style.visibility = this.callback ? "" : "hidden";
+ this.dom.container.style.visibility = "visible";
+
+ var formElements = ["input", "select", "textarea"];
+ var all = this.dom.container.getElementsByTagName("*");
+ for (var i = 0; i < all.length; i++) {
+ if (formElements.indexOf(all[i].tagName.toLowerCase()) != -1) {
+ all[i].focus();
+ break;
+ }
+ }
+};
+
+SQL.Window.prototype.key = function (e) {
+ if (!this.state) {
+ return;
+ }
+ if (e.keyCode == 13) {
+ this.ok(e);
+ }
+ if (e.keyCode == 27) {
+ this.close();
+ }
+};
+
+SQL.Window.prototype.ok = function (e) {
+ if (this.callback) {
+ this.callback();
+ }
+ this.close();
+};
+
+SQL.Window.prototype.close = function () {
+ if (!this.state) {
+ return;
+ }
+ this.state = 0;
+ this.dom.background.style.visibility = "hidden";
+ this.dom.container.style.visibility = "hidden";
+};
+
+SQL.Window.prototype.sync = function () {
+ /* adjust background position */
+ var dims = OZ.DOM.win();
+ var scroll = OZ.DOM.scroll();
+ this.dom.background.style.width = dims[0] + "px";
+ this.dom.background.style.height = dims[1] + "px";
+ this.dom.background.style.left = scroll[0] + "px";
+ this.dom.background.style.top = scroll[1] + "px";
+};
diff --git a/js/wwwsqldesigner.js b/js/wwwsqldesigner.js
index fc20033..6b42628 100644
--- a/js/wwwsqldesigner.js
+++ b/js/wwwsqldesigner.js
@@ -1,371 +1,444 @@
-SQL.Designer = function() {
- SQL.Designer = this;
-
- this.xhrheaders = {};
- this.tables = [];
- this.relations = [];
- this.title = document.title;
-
- SQL.Visual.apply(this);
- new SQL.Toggle(OZ.$("toggle"));
-
- this.dom.container = OZ.$("area");
- this.minSize = [
- this.dom.container.offsetWidth,
- this.dom.container.offsetHeight
- ];
- this.width = this.minSize[0];
- this.height = this.minSize[1];
-
- this.typeIndex = false;
- this.fkTypeFor = false;
+SQL.Designer = function () {
+ SQL.Designer = this;
- this.vector = this.getOption("vector") && document.createElementNS;
- if (this.vector) {
- this.svgNS = "http://www.w3.org/2000/svg";
- this.dom.svg = document.createElementNS(this.svgNS, "svg");
- this.dom.container.appendChild(this.dom.svg);
- }
+ this.xhrheaders = {};
+ this.tables = [];
+ this.relations = [];
+ this.title = document.title;
- this.flag = 2;
- this.requestLanguage();
- this.requestDB();
- this.applyStyle();
-}
+ SQL.Visual.apply(this);
+ new SQL.Toggle(OZ.$("toggle"));
+
+ this.dom.container = OZ.$("area");
+ this.minSize = [
+ this.dom.container.offsetWidth,
+ this.dom.container.offsetHeight,
+ ];
+ this.width = this.minSize[0];
+ this.height = this.minSize[1];
+
+ this.typeIndex = false;
+ this.fkTypeFor = false;
+
+ this.vector = this.getOption("vector") && document.createElementNS;
+ if (this.vector) {
+ this.svgNS = "http://www.w3.org/2000/svg";
+ this.dom.svg = document.createElementNS(this.svgNS, "svg");
+ this.dom.container.appendChild(this.dom.svg);
+ }
+
+ this.flag = 2;
+ this.requestLanguage();
+ this.requestDB();
+ this.applyStyle();
+};
SQL.Designer.prototype = Object.create(SQL.Visual.prototype);
/* update area size */
-SQL.Designer.prototype.sync = function() {
- var w = this.minSize[0];
- var h = this.minSize[0];
- for (var i=0;i max) { max = z; }
- }
-
- OZ.$("controls").style.zIndex = max+5;
- return max;
-}
+ OZ.$("docs").value = _("docs");
-SQL.Designer.prototype.addTable = function(name, x, y) {
- var max = this.getMaxZ();
- var t = new SQL.Table(this, name, x, y, max+1);
- this.tables.push(t);
- this.dom.container.appendChild(t.dom.container);
- return t;
-}
+ var url = window.location.href;
+ var r = url.match(/keyword=([^&]+)/);
+ if (r) {
+ var keyword = r[1];
+ this.io.serverload(false, keyword);
+ }
+ document.body.style.visibility = "visible";
+};
-SQL.Designer.prototype.removeTable = function(t) {
- this.tableManager.select(false);
- this.rowManager.select(false);
- var idx = this.tables.indexOf(t);
- if (idx == -1) { return; }
- t.destroy();
- this.tables.splice(idx,1);
-}
+SQL.Designer.prototype.getMaxZ = function () {
+ /* find max zIndex */
+ var max = 0;
+ for (var i = 0; i < this.tables.length; i++) {
+ var z = this.tables[i].getZ();
+ if (z > max) {
+ max = z;
+ }
+ }
-SQL.Designer.prototype.addRelation = function(row1, row2) {
- var r = new SQL.Relation(this, row1, row2);
- this.relations.push(r);
- return r;
-}
+ OZ.$("controls").style.zIndex = max + 5;
+ return max;
+};
-SQL.Designer.prototype.removeRelation = function(r) {
- var idx = this.relations.indexOf(r);
- if (idx == -1) { return; }
- r.destroy();
- this.relations.splice(idx,1);
-}
+SQL.Designer.prototype.addTable = function (name, x, y) {
+ var max = this.getMaxZ();
+ var t = new SQL.Table(this, name, x, y, max + 1);
+ this.tables.push(t);
+ this.dom.container.appendChild(t.dom.container);
+ return t;
+};
-SQL.Designer.prototype.getCookie = function() {
- var c = document.cookie;
- var obj = {};
- var parts = c.split(";");
- for (var i=0;i old) { t.setZ(t.getZ()-1); }
- }
- var m = table.dom.mini;
- m.parentNode.appendChild(m);
-}
+SQL.Designer.prototype.raise = function (table) {
+ /* raise a table */
+ var old = table.getZ();
+ var max = this.getMaxZ();
+ table.setZ(max);
+ for (var i = 0; i < this.tables.length; i++) {
+ var t = this.tables[i];
+ if (t == table) {
+ continue;
+ }
+ if (t.getZ() > old) {
+ t.setZ(t.getZ() - 1);
+ }
+ }
+ var m = table.dom.mini;
+ m.parentNode.appendChild(m);
+};
-SQL.Designer.prototype.clearTables = function() {
- while (this.tables.length) { this.removeTable(this.tables[0]); }
- this.setTitle(false);
-}
+SQL.Designer.prototype.clearTables = function () {
+ while (this.tables.length) {
+ this.removeTable(this.tables[0]);
+ }
+ this.setTitle(false);
+};
-SQL.Designer.prototype.alignTables = function() {
- var win = OZ.DOM.win();
- var avail = win[0] - OZ.$("bar").offsetWidth;
- var x = 10;
- var y = 10;
- var max = 0;
-
- this.tables.sort(function(a,b){
- return b.getRelations().length - a.getRelations().length;
- });
+SQL.Designer.prototype.alignTables = function () {
+ var win = OZ.DOM.win();
+ var avail = win[0] - OZ.$("bar").offsetWidth;
+ var x = 10;
+ var y = 10;
+ var max = 0;
- for (var i=0;i avail) {
- x = 10;
- y += 10 + max;
- max = 0;
- }
- t.moveTo(x,y);
- x += 10 + w;
- if (h > max) { max = h; }
- }
+ this.tables.sort(function (a, b) {
+ return b.getRelations().length - a.getRelations().length;
+ });
- this.sync();
-}
+ for (var i = 0; i < this.tables.length; i++) {
+ var t = this.tables[i];
+ var w = t.dom.container.offsetWidth;
+ var h = t.dom.container.offsetHeight;
+ if (x + w > avail) {
+ x = 10;
+ y += 10 + max;
+ max = 0;
+ }
+ t.moveTo(x, y);
+ x += 10 + w;
+ if (h > max) {
+ max = h;
+ }
+ }
-SQL.Designer.prototype.findNamedTable = function(name) { /* find row specified as table(row) */
- for (var i=0;i\n';
- xml += '\n';
- xml += '\n';
-
- /* serialize datatypes */
- if (window.XMLSerializer) {
- var s = new XMLSerializer();
- xml += s.serializeToString(window.DATATYPES);
- } else if (window.DATATYPES.xml) {
- xml += window.DATATYPES.xml;
- } else {
- alert(_("errorxml")+': '+e.message);
- }
-
- for (var i=0;i\n";
- return xml;
-}
+SQL.Designer.prototype.findNamedTable = function (name) {
+ /* find row specified as table(row) */
+ for (var i = 0; i < this.tables.length; i++) {
+ if (this.tables[i].getTitle() == name) {
+ return this.tables[i];
+ }
+ }
+};
-SQL.Designer.prototype.fromXML = function(node) {
- this.clearTables();
- var types = node.getElementsByTagName("datatypes");
- if (types.length) { window.DATATYPES = types[0]; }
- var tables = node.getElementsByTagName("table");
- for (var i=0;i\n";
+ xml += "\n";
+ xml += "\n";
- for (var i=0;i\n";
+ return xml;
+};
- tname = rel.parentNode.parentNode.getAttribute("name");
- rname = rel.parentNode.getAttribute("name");
- var t2 = this.findNamedTable(tname);
- if (!t2) { continue; }
- var r2 = t2.findNamedRow(rname);
- if (!r2) { continue; }
+SQL.Designer.prototype.fromXML = function (node) {
+ this.clearTables();
+ var types = node.getElementsByTagName("datatypes");
+ if (types.length) {
+ window.DATATYPES = types[0];
+ }
+ var tables = node.getElementsByTagName("table");
+ for (var i = 0; i < tables.length; i++) {
+ var t = this.addTable("", 0, 0);
+ t.fromXML(tables[i]);
+ }
- this.addRelation(r1, r2);
- }
-
- this.sync();
-}
+ for (var i = 0; i < this.tables.length; i++) {
+ /* ff one-pixel shift hack */
+ this.tables[i].select();
+ this.tables[i].deselect();
+ }
-SQL.Designer.prototype.setTitle = function(t) {
- document.title = this.title + (t ? " - "+t : "");
-}
+ /* relations */
+ var rs = node.getElementsByTagName("relation");
+ for (var i = 0; i < rs.length; i++) {
+ var rel = rs[i];
+ var tname = rel.getAttribute("table");
+ var rname = rel.getAttribute("row");
-SQL.Designer.prototype.removeSelection = function() {
- var sel = (window.getSelection ? window.getSelection() : document.selection);
- if (!sel) { return; }
- if (sel.empty) { sel.empty(); }
- if (sel.removeAllRanges) { sel.removeAllRanges(); }
-}
+ var t1 = this.findNamedTable(tname);
+ if (!t1) {
+ continue;
+ }
+ var r1 = t1.findNamedRow(rname);
+ if (!r1) {
+ continue;
+ }
-SQL.Designer.prototype.getTypeIndex = function(label) {
- if (!this.typeIndex) {
- this.typeIndex = {};
- var types = window.DATATYPES.getElementsByTagName("type");
- for (var i=0;i
-
- إنشاء جدول
- تحرير جدول
- حذف جدول
- محاذاة الجداول
- حذف جميع البيانات
- هل أنت متأكد من أنك تريد حذف جميع البيانات
- new table
- اختر المنطقة المحددة
- اسم الجول
- وصف الجدول
+
+ إنشاء جدول
+ تحرير جدول
+ حذف جدول
+ محاذاة الجداول
+ حذف جميع البيانات
+ هل أنت متأكد من أنك تريد حذف جميع البيانات
+ new table
+ اختر المنطقة المحددة
+ اسم الجول
+ وصف الجدول
-
- إنشاء حقل
- تحرير حقل
- حذف حقل
- أعلى
- أسفل
- new field
- إنشاء مفتاح خارجي
- اختر الجدول المطلوب
- ربط حقل بمفتاح خارجي
- اختر الحقل المطلوب
- حذف مفتاح خارجي
- هل أنت متأكد من أنك تريد حذف الجدول
- هل أنت متأكد من أنك تريد حذف الحقل
+
+ إنشاء حقل
+ تحرير حقل
+ حذف حقل
+ أعلى
+ أسفل
+ new field
+ إنشاء مفتاح خارجي
+ اختر الجدول المطلوب
+ ربط حقل بمفتاح خارجي
+ اختر الحقل المطلوب
+ حذف مفتاح خارجي
+ هل أنت متأكد من أنك تريد حذف الجدول
+ هل أنت متأكد من أنك تريد حذف الحقل
-
- الإسم
- النوع
- الحجم
- الإفتراضي
- NOT NULL
- NULL
- ترقيم تلقائي
- تحرير تعليق
- اكتب تعليقاً لهذا الحقل
+
+ الإسم
+ النوع
+ الحجم
+ الإفتراضي
+ NOT NULL
+ NULL
+ ترقيم تلقائي
+ تحرير تعليق
+ اكتب تعليقاً لهذا الحقل
-
- موافق
- إلغاء
- يرجى الإنتظار ...
- الخيارات
- لغة العرض
- قاعدة البيانات المستخدمة لحفظ التصاميم
- بعض الخيارات يتم تفعيلها بعد تحديث الصفحة مع ملاحظة أنه يجب تفعيل (الكوكيز) لتعمل هذه الخيارات
- Table snap distance
- In pixels, 0 = disable snapping
- طريقة تنسيق أسماء المفاتيح الخارجية
- %T = الجدول الرئيسي, %R = المفتاح الرئيسي, %t = الجدول الخارجي
- إخفاء الخطوط عند تحريك الجدول؟
- رسم خطوط ناعمة (إذا كان المتصفح يدعم ذلك) ؟
- قلم المدقة
+
+ موافق
+ إلغاء
+ يرجى الإنتظار ...
+ الخيارات
+ لغة العرض
+ قاعدة البيانات المستخدمة لحفظ التصاميم
+ بعض الخيارات يتم تفعيلها بعد تحديث الصفحة مع ملاحظة أنه يجب تفعيل (الكوكيز) لتعمل هذه الخيارات
+ Table snap distance
+ In pixels, 0 = disable snapping
+ طريقة تنسيق أسماء المفاتيح الخارجية
+ %T = الجدول الرئيسي, %R = المفتاح الرئيسي, %t = الجدول الخارجي
+ إخفاء الخطوط عند تحريك الجدول؟
+ رسم خطوط ناعمة (إذا كان المتصفح يدعم ذلك) ؟
+ قلم المدقة
-
- المفاتيح
- المفاتيح في الجدول "%s"
- الأنواع:
- الإسم:
- مفاتيح الجدول
- الحقول المتاحة
- تحرير مفتاح
- إنشاء مفتاح
- حذف مفتاح
+
+ المفاتيح
+ المفاتيح في الجدول "%s"
+ الأنواع:
+ الإسم:
+ مفاتيح الجدول
+ الحقول المتاحة
+ تحرير مفتاح
+ إنشاء مفتاح
+ حذف مفتاح
-
- حفظ / تحميل
- قم بوضع بيانات نموذج XML في المربع أدناه، ثم حاول مرّة أخرى.
- العميل
- الخادم
- المدخلات / المخرجات
- حفظ كنموذح XML
- إستيراد نموذج XML
- حفظ كنموذج SQL
- Server backend:
- حفظ
- تحميل
- List items
- إستيراد من قاعدة بيانات
- Enter keyword under which your design was saved:
- Enter keyword under which your design will be saved:
- أدخل إسم قاعدة البيانات التي تريد إستيرادها:
- رد الخادم
- تم الحفظ بنجاح
- لم يتم العثور عليه
- خطأ داخلي في الخادم
- الخاصية غير موجودة
- الخدمة غير متوفرة
+
+ حفظ / تحميل
+ قم بوضع بيانات نموذج XML في المربع أدناه، ثم حاول مرّة أخرى.
+ العميل
+ الخادم
+ المدخلات / المخرجات
+ حفظ كنموذح XML
+ إستيراد نموذج XML
+ حفظ كنموذج SQL
+ Server backend:
+ حفظ
+ تحميل
+ List items
+ إستيراد من قاعدة بيانات
+ Enter keyword under which your design was saved:
+ Enter keyword under which your design will be saved:
+ أدخل إسم قاعدة البيانات التي تريد إستيرادها:
+ رد الخادم
+ تم الحفظ بنجاح
+ لم يتم العثور عليه
+ خطأ داخلي في الخادم
+ الخاصية غير موجودة
+ الخدمة غير متوفرة
-
- خطأ في نموذح XML
- التوثيق
+
+ خطأ في نموذح XML
+ التوثيق
diff --git a/locale/cs.xml b/locale/cs.xml
index 899e0ef..9aa3873 100644
--- a/locale/cs.xml
+++ b/locale/cs.xml
@@ -1,102 +1,102 @@
-
- Přidat tabulku
- Upravit tabulku
- Smazat tabulku
- Smazat tabulky
- Srovnat tabulky
- Zrušit tabulky
- Opravdu zrušit všechny tabulky
- nová tabulka
- umístit tabulku
- Jméno
- Komentář
-
-
- Přidat položku
- Upravit položku
- Smazat položku
- Nahoru
- Dolů
- nová položka
- Vyrobit cizí klíč
- klikni na cílovou tabulku
+
+ Přidat tabulku
+ Upravit tabulku
+ Smazat tabulku
+ Smazat tabulky
+ Srovnat tabulky
+ Zrušit tabulky
+ Opravdu zrušit všechny tabulky
+ nová tabulka
+ umístit tabulku
+ Jméno
+ Komentář
+
+
+ Přidat položku
+ Upravit položku
+ Smazat položku
+ Nahoru
+ Dolů
+ nová položka
+ Vyrobit cizí klíč
+ klikni na cílovou tabulku
Propojit cizí klíč
- klikni na cílové pole
+ klikni na cílové pole
Smazat cizí klíč
- Opravdu smazat tabulku
- Opravdu smazat položku
+ Opravdu smazat tabulku
+ Opravdu smazat položku
+
+
+ Jméno
+ Typ
+ Velikost
+ Výchozí
+ NOT NULL
+ NULL
+ Autoincrement
+ Upravit komentář
+ VLožte komentář pro tuto položku
+
+
+ OK
+ Storno
+ Prosím čekejte...
+ Nastavení
+ Jazyk
+ Databáze pro nová schémata
+ Některá nastavení se projeví až po znovunačtení stránky. Aby nastavení fungovala, je nutné mít zapnuté cookies.
+ Vzdálenost přichytávání tabulek
+ V pixelech, 0 = bez přichytávání
+ Vzor pro cizí jména
+ %T = primární tabulka, %R = primární klíč, %t = cizí tabulka
+ Schovat spojovníky při tažení tabulkou?
+ Vykreslovat oblé spojovníky (pakliže to prohlížeč podporuje)?
+ Zobrazovat velikost polí v tabulce?
+ Zobrazovat datový typ polí v tabulce?
+ Styl
+
+
+ Klíče
+ Klíče v tabulce "%s"
+ Typ:
+ Název:
+ Položky v klíči
+ Dostupné položky
+ Upravit klíč
+ Přidat klíč
+ Smazat klíč
+
+
+ Uložit / Načíst
+ Prosím vložte XML data do textového pole níže.
+ Klient
+ Server
+ Vstup / Výstup
+ Uložit XML
+ Načíst XML
+ Uložit v prohlížeči
+ Načíst z prohlížeče
+ Generovat SQL
+ Server backend:
+ Uložit
+ Rychle uložit
+ Načíst
+ Vypsat položky
+ Importovat z databáze
+ Zadejte označení, pod kterým bylo vaše schéma uloženo:
+ Zadejte označení, pod kterým bude vaše schéma uloženo:
+ Zadejte název databáze k importu:
+ Odpověď od serveru
+ Uloženo
+ Neexistuje
+ Vnitřní chyba serveru
+ Není implementováno
+ Služba není dostupná
+
+
+ XML chyba
+ Dokumentace
-
- Jméno
- Typ
- Velikost
- Výchozí
- NOT NULL
- NULL
- Autoincrement
- Upravit komentář
- VLožte komentář pro tuto položku
-
-
- OK
- Storno
- Prosím čekejte...
- Nastavení
- Jazyk
- Databáze pro nová schémata
- Některá nastavení se projeví až po znovunačtení stránky. Aby nastavení fungovala, je nutné mít zapnuté cookies.
- Vzdálenost přichytávání tabulek
- V pixelech, 0 = bez přichytávání
- Vzor pro cizí jména
- %T = primární tabulka, %R = primární klíč, %t = cizí tabulka
- Schovat spojovníky při tažení tabulkou?
- Vykreslovat oblé spojovníky (pakliže to prohlížeč podporuje)?
- Zobrazovat velikost polí v tabulce?
- Zobrazovat datový typ polí v tabulce?
- Styl
-
-
- Klíče
- Klíče v tabulce "%s"
- Typ:
- Název:
- Položky v klíči
- Dostupné položky
- Upravit klíč
- Přidat klíč
- Smazat klíč
-
-
- Uložit / Načíst
- Prosím vložte XML data do textového pole níže.
- Klient
- Server
- Vstup / Výstup
- Uložit XML
- Načíst XML
- Uložit v prohlížeči
- Načíst z prohlížeče
- Generovat SQL
- Server backend:
- Uložit
- Rychle uložit
- Načíst
- Vypsat položky
- Importovat z databáze
- Zadejte označení, pod kterým bylo vaše schéma uloženo:
- Zadejte označení, pod kterým bude vaše schéma uloženo:
- Zadejte název databáze k importu:
- Odpověď od serveru
- Uloženo
- Neexistuje
- Vnitřní chyba serveru
- Není implementováno
- Služba není dostupná
-
-
- XML chyba
- Dokumentace
-
diff --git a/locale/de.xml b/locale/de.xml
index 10d0c68..1cb4b3e 100644
--- a/locale/de.xml
+++ b/locale/de.xml
@@ -1,106 +1,106 @@
-
- Tabelle hinzufügen
- Tabelle bearbeiten
- Tabelle entfernen
- Tabellen entfernen
- Tabellen ausrichten
- Tabellen löschen
- Wirklich alle Tabellen löschen
- Neue Tabelle
- Tabelle platzieren
- Name
- Kommentar
-
-
- Feld hinzufügen
- Feld bearbeiten
- Feld entfernen
- Hoch
- Runter
- Neues Feld
- Fremdschlüssel erstellen
- Ziel-Tabelle wählen
- Fremdschlüssel Verknüpfung
- Ziel-Zeile auswählen
- Ziel-Zeile entfernen
- Tabelle wirklich löschen
- Feld wirklich löschen
+
+ Tabelle hinzufügen
+ Tabelle bearbeiten
+ Tabelle entfernen
+ Tabellen entfernen
+ Tabellen ausrichten
+ Tabellen löschen
+ Wirklich alle Tabellen löschen
+ Neue Tabelle
+ Tabelle platzieren
+ Name
+ Kommentar
+
+
+ Feld hinzufügen
+ Feld bearbeiten
+ Feld entfernen
+ Hoch
+ Runter
+ Neues Feld
+ Fremdschlüssel erstellen
+ Ziel-Tabelle wählen
+ Fremdschlüssel Verknüpfung
+ Ziel-Zeile auswählen
+ Ziel-Zeile entfernen
+ Tabelle wirklich löschen
+ Feld wirklich löschen
+
+
+ Name
+ Typ
+ Größe
+ Default
+ NOT NULL
+ NULL
+ Autoincrement
+ Kommentar bearbeiten
+ Kommentar zu diesem Feld eintragen:
+
+
+ OK
+ Abbrechen
+ Bitte warten...
+ Einstellungen
+ Sprache
+ Datenbank für neue Diagramme
+ Einige Optionen werden erst nach einem erneutem Seitenaufruf wirksam. Cookies müssen erlaubt sein.
+ Tabellen Ausrichtungsabstand
+ in Pixel, 0 = einrasten deaktivieren
+ Format für die Namen der Fremdschlüssel
+ %T = Primärtabelle, %R = Primärschlüssel, %t = Fremdtabelle
+ Verstecke Verbindungslinien beim Bewegen von Tabellen?
+ Zeichne gekrümmte Verbindungslinien (Browser-abhängig)?
+ Zeige Feldgröße im Tabellendesign?
+ Zeige Felddatentyp im Tabellendesign?
+ Stil
+
+
+ Schlüssel
+ Schlüssel in Tabelle "%s"
+ Typ:
+ Name:
+ Felder im Schlüssel
+ Verfügbare Felder
+ Schlüssel bearbeiten
+ Schlüssel hinzufügen
+ Schlüssel entfernen
+
+
+ Speichern / Laden
+ Bitte fügen Sie die XML-Daten in das untere Textfeld ein und versuchen Sie es erneut.
+ Client
+ Server
+ Eingabe / Ausgabe
+ XML speichern
+ XML laden
+ In Browser speichern
+ Von Browser laden
+ Von Browser auflisten
+ In Dropbox speichern
+ Von Dropbox laden
+ Von Dropbox auflisten
+ SQL erzeugen
+ Server Basis:
+ Speichern
+ Schnellspeichern
+ Laden
+ Einträge auflisten
+ Import aus DB
+ Geben Sie das Stichwort ihres Diagramms ein, unter dem es gespeichert wurde:
+ Geben Sie das Stichwort ihres Diagramms ein, unter dem es gespeichert werden soll:
+ Geben Sie den Namen der zu importierenden Datenbank ein:
+ Server Antwort
+ gespeichert
+ Nicht gefunden
+ Interner Server Fehler
+ Nicht implementiert
+ Dienst nicht erreichbar
+
+
+ XML Fehler
+ Dokumentation
-
- Name
- Typ
- Größe
- Default
- NOT NULL
- NULL
- Autoincrement
- Kommentar bearbeiten
- Kommentar zu diesem Feld eintragen:
-
-
- OK
- Abbrechen
- Bitte warten...
- Einstellungen
- Sprache
- Datenbank für neue Diagramme
- Einige Optionen werden erst nach einem erneutem Seitenaufruf wirksam. Cookies müssen erlaubt sein.
- Tabellen Ausrichtungsabstand
- in Pixel, 0 = einrasten deaktivieren
- Format für die Namen der Fremdschlüssel
- %T = Primärtabelle, %R = Primärschlüssel, %t = Fremdtabelle
- Verstecke Verbindungslinien beim Bewegen von Tabellen?
- Zeichne gekrümmte Verbindungslinien (Browser-abhängig)?
- Zeige Feldgröße im Tabellendesign?
- Zeige Felddatentyp im Tabellendesign?
- Stil
-
-
- Schlüssel
- Schlüssel in Tabelle "%s"
- Typ:
- Name:
- Felder im Schlüssel
- Verfügbare Felder
- Schlüssel bearbeiten
- Schlüssel hinzufügen
- Schlüssel entfernen
-
-
- Speichern / Laden
- Bitte fügen Sie die XML-Daten in das untere Textfeld ein und versuchen Sie es erneut.
- Client
- Server
- Eingabe / Ausgabe
- XML speichern
- XML laden
- In Browser speichern
- Von Browser laden
- Von Browser auflisten
- In Dropbox speichern
- Von Dropbox laden
- Von Dropbox auflisten
- SQL erzeugen
- Server Basis:
- Speichern
- Schnellspeichern
- Laden
- Einträge auflisten
- Import aus DB
- Geben Sie das Stichwort ihres Diagramms ein, unter dem es gespeichert wurde:
- Geben Sie das Stichwort ihres Diagramms ein, unter dem es gespeichert werden soll:
- Geben Sie den Namen der zu importierenden Datenbank ein:
- Server Antwort
- gespeichert
- Nicht gefunden
- Interner Server Fehler
- Nicht implementiert
- Dienst nicht erreichbar
-
-
- XML Fehler
- Dokumentation
-
diff --git a/locale/el.xml b/locale/el.xml
index 91751fe..b34e9dc 100644
--- a/locale/el.xml
+++ b/locale/el.xml
@@ -1,98 +1,98 @@
-
- Προσθήκη πίνακα
- Επεξεργασία πίνακα
- Διαγραφή πίνακα
- Διαγραφή πινάκων
- Στοίχιση Πινάκων
- Καθαρισμός πινάκων
- Διαγραφή όλων των πινάκων
- Νέος πίνακας
- τοποθέτηση πίνακα
- Όνομα
- Σχόλιο
-
-
- Προσθήκη πεδίου
- Επεξεργασία πεδίου
- Διαγραφή πεδίου
- Πάνω
- Κάτω
- νέο πεδίο
- Δημιουργία ξένου κλειδιού
- Κάντε κλικ στο άλλο πίνακα
- Σένδεση ξένου κλειδιού
- Κάντε κλικ στη γραμμή
- Κάντε κλικ πεδίου
- Διαγραφή πίνακα. Είστε σίγουρος
- Διαγραφή πεδίου. Είστε σίγουρος
+
+ Προσθήκη πίνακα
+ Επεξεργασία πίνακα
+ Διαγραφή πίνακα
+ Διαγραφή πινάκων
+ Στοίχιση Πινάκων
+ Καθαρισμός πινάκων
+ Διαγραφή όλων των πινάκων
+ Νέος πίνακας
+ τοποθέτηση πίνακα
+ Όνομα
+ Σχόλιο
+
+
+ Προσθήκη πεδίου
+ Επεξεργασία πεδίου
+ Διαγραφή πεδίου
+ Πάνω
+ Κάτω
+ νέο πεδίο
+ Δημιουργία ξένου κλειδιού
+ Κάντε κλικ στο άλλο πίνακα
+ Σένδεση ξένου κλειδιού
+ Κάντε κλικ στη γραμμή
+ Κάντε κλικ πεδίου
+ Διαγραφή πίνακα. Είστε σίγουρος
+ Διαγραφή πεδίου. Είστε σίγουρος
+
+
+ Όνομα
+ Τύπος
+ Μέγεθος
+ Προεπιλογή
+ NOT NULL
+ NULL
+ Autoincrement
+ Επεξεργασία σχολίου
+ Σχολιάστε γι' αυτό το πεδίο
+
+
+ OK
+ Άκυρο
+ Παρακαλώ περιμένετε...
+ Επιλογές
+ Γλώσσα
+ Βάση δεδομένων για νέα σχέδιαγράμματα
+ Μερικές επιλογές ενεργοποιούνται μόνο μετά από καθολική ανανέωση της σελίδας.Τα Cookies πρέπει να είναι ενεργοποιημένα για να λειτουργούν οι επιλογές.
+ Απόσταση πινάκων
+ Σε pixels, 0 = απενεργοποίηση απόστασης
+ Πρότυπο για ξένα κλειδιά
+ %T = πρωτεύων πίνακας, %R = προτεύον κλειδί, %t = ξένος πίνακας
+ Απόκρυψη συνδέσμων όταν σύρονται οι πίνακες;
+ Διάγραμμα με ομαλούς συνδέσμους(αν παρέχεται από τον περιηγητή);
+ Στυλ
+
+
+
+ Κλειδιά
+ Κλειδιά στον πίνακα "%s"
+ Τύπος:
+ Όνομα:
+ Πεδία σε κλειδιά
+ Διαθέσιμα πεδία
+ Επεξεργασία κλειδιού
+ Προσθήκη κλειδιού
+ Διαγραφή κλειδιού
+
+
+ Αποθήκ./Άνοιγμα
+ Κάντε επικόλληση των δεδομένων XML στο πεδίο κειμένου παρακάτω και δοκιμάστε ξανά.
+ Πελάτης
+ Διακομιστής
+ Εισαγωγή/Εξαγωγή
+ Αποθήκευση XML
+ Άνοιγμα XML
+ Δημιουργία SQL
+ Διακομιστής:
+ Αποθήκευση
+ Άνοιγμα
+ Εμφάνιση λίστας
+ Εισαγωγή από βάση δεδομένων
+ Πληκτρολογήστε το τίτλο του αποθηκευμένου σχεδιαγράμματος:
+ Πληκτρολογήστε το τίτλο για την αποθήκευση του σχεδιαγράμματος:
+ Δώστς όνομα βάσης δεδομένων για εισαγωγή:
+ Απάντηση διακομιστή
+ Αποθηκεύθηκε
+ Δεν βρέθηκε
+ Εσωτερικό σφάλμα διακομιστή
+ Χωρίς σχεδίαση
+ Μη-διαθέσιμη Παροχή
+
+
+ Σφάλμα XML
+ Οδηγίες
-
- Όνομα
- Τύπος
- Μέγεθος
- Προεπιλογή
- NOT NULL
- NULL
- Autoincrement
- Επεξεργασία σχολίου
- Σχολιάστε γι' αυτό το πεδίο
-
-
- OK
- Άκυρο
- Παρακαλώ περιμένετε...
- Επιλογές
- Γλώσσα
- Βάση δεδομένων για νέα σχέδιαγράμματα
- Μερικές επιλογές ενεργοποιούνται μόνο μετά από καθολική ανανέωση της σελίδας.Τα Cookies πρέπει να είναι ενεργοποιημένα για να λειτουργούν οι επιλογές.
- Απόσταση πινάκων
- Σε pixels, 0 = απενεργοποίηση απόστασης
- Πρότυπο για ξένα κλειδιά
- %T = πρωτεύων πίνακας, %R = προτεύον κλειδί, %t = ξένος πίνακας
- Απόκρυψη συνδέσμων όταν σύρονται οι πίνακες;
- Διάγραμμα με ομαλούς συνδέσμους(αν παρέχεται από τον περιηγητή);
- Στυλ
-
-
-
- Κλειδιά
- Κλειδιά στον πίνακα "%s"
- Τύπος:
- Όνομα:
- Πεδία σε κλειδιά
- Διαθέσιμα πεδία
- Επεξεργασία κλειδιού
- Προσθήκη κλειδιού
- Διαγραφή κλειδιού
-
-
- Αποθήκ./Άνοιγμα
- Κάντε επικόλληση των δεδομένων XML στο πεδίο κειμένου παρακάτω και δοκιμάστε ξανά.
- Πελάτης
- Διακομιστής
- Εισαγωγή/Εξαγωγή
- Αποθήκευση XML
- Άνοιγμα XML
- Δημιουργία SQL
- Διακομιστής:
- Αποθήκευση
- Άνοιγμα
- Εμφάνιση λίστας
- Εισαγωγή από βάση δεδομένων
- Πληκτρολογήστε το τίτλο του αποθηκευμένου σχεδιαγράμματος:
- Πληκτρολογήστε το τίτλο για την αποθήκευση του σχεδιαγράμματος:
- Δώστς όνομα βάσης δεδομένων για εισαγωγή:
- Απάντηση διακομιστή
- Αποθηκεύθηκε
- Δεν βρέθηκε
- Εσωτερικό σφάλμα διακομιστή
- Χωρίς σχεδίαση
- Μη-διαθέσιμη Παροχή
-
-
- Σφάλμα XML
- Οδηγίες
-
diff --git a/locale/en.xml b/locale/en.xml
index f5b821d..50676dc 100755
--- a/locale/en.xml
+++ b/locale/en.xml
@@ -1,106 +1,106 @@
-
- Add table
- Edit table
- Remove table
- Remove tables
- Align tables
- Clear tables
- Really delete all tables
- new table
- place table
- Name
- Comment
-
-
- Add field
- Edit field
- Remove field
- Up
- Down
- new field
- Create foreign key
- click target table
- Connect foreign key
- click target row
- Remove foreign key
- Really delete table
- Really delete field
+
+ Add table
+ Edit table
+ Remove table
+ Remove tables
+ Align tables
+ Clear tables
+ Really delete all tables
+ new table
+ place table
+ Name
+ Comment
+
+
+ Add field
+ Edit field
+ Remove field
+ Up
+ Down
+ new field
+ Create foreign key
+ click target table
+ Connect foreign key
+ click target row
+ Remove foreign key
+ Really delete table
+ Really delete field
+
+
+ Name
+ Type
+ Size
+ Default
+ NOT NULL
+ NULL
+ Autoincrement
+ Edit comment
+ Enter comment for this field
+
+
+ OK
+ Cancel
+ Please wait...
+ Options
+ Language
+ Database for new designs
+ Some options are applied only after full page reload. Cookies must be enabled for options to work.
+ Table snap distance
+ In pixels, 0 = disable snapping
+ Pattern for foreign names
+ %T = primary table, %R = primary key, %t = foreign table
+ Hide connectors on table drag?
+ Draw smooth connectors (if supported by browser)?
+ Show field size in table design?
+ Show field datatype in table design?
+ Style
+
+
+ Keys
+ Keys in table "%s"
+ Type:
+ Name:
+ Fields in key
+ Available fields
+ Edit key
+ Add key
+ Remove key
+
+
+ Save / Load
+ Please paste XML data into the text area below and try again.
+ Client
+ Server
+ Input / Output
+ Save XML
+ Load XML
+ Save in Browser
+ Load from Browser
+ List from Browser
+ Save to Dropbox
+ Load from Dropbox
+ List from Dropbox
+ Generate SQL
+ Server backend:
+ Save
+ Quicksave
+ Load
+ List items
+ Import from DB
+ Enter keyword under which your design was saved:
+ Enter keyword under which your design will be saved:
+ Enter name of database to be imported:
+ Server response
+ Saved
+ Not Found
+ Internal Server Error
+ Not Implemented
+ Service Unavailable
+
+
+ XML error
+ Documentation
-
- Name
- Type
- Size
- Default
- NOT NULL
- NULL
- Autoincrement
- Edit comment
- Enter comment for this field
-
-
- OK
- Cancel
- Please wait...
- Options
- Language
- Database for new designs
- Some options are applied only after full page reload. Cookies must be enabled for options to work.
- Table snap distance
- In pixels, 0 = disable snapping
- Pattern for foreign names
- %T = primary table, %R = primary key, %t = foreign table
- Hide connectors on table drag?
- Draw smooth connectors (if supported by browser)?
- Show field size in table design?
- Show field datatype in table design?
- Style
-
-
- Keys
- Keys in table "%s"
- Type:
- Name:
- Fields in key
- Available fields
- Edit key
- Add key
- Remove key
-
-
- Save / Load
- Please paste XML data into the text area below and try again.
- Client
- Server
- Input / Output
- Save XML
- Load XML
- Save in Browser
- Load from Browser
- List from Browser
- Save to Dropbox
- Load from Dropbox
- List from Dropbox
- Generate SQL
- Server backend:
- Save
- Quicksave
- Load
- List items
- Import from DB
- Enter keyword under which your design was saved:
- Enter keyword under which your design will be saved:
- Enter name of database to be imported:
- Server response
- Saved
- Not Found
- Internal Server Error
- Not Implemented
- Service Unavailable
-
-
- XML error
- Documentation
-
diff --git a/locale/eo.xml b/locale/eo.xml
index 2b29723..e2eacd9 100644
--- a/locale/eo.xml
+++ b/locale/eo.xml
@@ -1,100 +1,100 @@
-
- Aldoni tabelon
- Modifi la tabelon
- Forigi la tabelon
- Forigi la tabelojn
- Ĝisrandigi la tabelojn
- Vakigi la tabelon
- Ja forigi ĉiujn tabelojn
- nova tabelo
- pozicii la tabelon
- Nomo
- Komento
-
-
- Aldoni kampon
- Modifi la kampon
- Forigi la kampon
- Supre
- Sube
- nova kampo
- Krei fremdan ŝlosilon
- alklaki la celan tabelon
- Konekti fremdan ŝlosilon
- alklaki la celan atributon
- Forigi fremdan ŝlosilon
- Ja forigi la tabelon
- Ja forigi la kampon
+
+ Aldoni tabelon
+ Modifi la tabelon
+ Forigi la tabelon
+ Forigi la tabelojn
+ Ĝisrandigi la tabelojn
+ Vakigi la tabelon
+ Ja forigi ĉiujn tabelojn
+ nova tabelo
+ pozicii la tabelon
+ Nomo
+ Komento
+
+
+ Aldoni kampon
+ Modifi la kampon
+ Forigi la kampon
+ Supre
+ Sube
+ nova kampo
+ Krei fremdan ŝlosilon
+ alklaki la celan tabelon
+ Konekti fremdan ŝlosilon
+ alklaki la celan atributon
+ Forigi fremdan ŝlosilon
+ Ja forigi la tabelon
+ Ja forigi la kampon
+
+
+ Nomo
+ Tipo
+ Grandeco
+ Defaŭlte
+ NE NUL
+ Senvalora
+ Memalkremento
+ Modifi la komenton
+ Entajpi komenton por tiu kampo
+
+
+ Jes
+ Rezigni
+ Bonvolu atendi...
+ Agordoj
+ Lingvo
+ Datumbazoj por novaj kreoj
+ Kelkaj agordoj estas aplikotaj post plena ŝarĝo de paĝo. Kuketoj devas esti ebligataj por ke la agordoj funkcias.
+ Kapto-distanco de tabelo
+ En rastrumeroj, 0 = malebligi kapton
+ Motivo por fremdaj nomoj
+ %T = ĉefa tabelo, %R = ĉefa ŝlosilo, %t = fremda tabelo
+ Ĉu kaŝi konektiloj dum treno de tabelo?
+ Desegni glatajn konektilojn (se subtenata de retumilo)?
+ Show field size in table design?
+ Show field datatype in table design?
+ Stilo
+
+
+ Klavoj
+ Ŝlosiloj en la tabelo "%s"
+ Tipo:
+ Nomo:
+ Kampoj en klavo
+ Disponeblaj kampoj
+ Modifi ŝlosilon
+ Aldoni ŝlosilon
+ Forigi ŝlosilon
+
+
+ Konservi / Ŝargi
+ Bonvolu alglui XML datumon en la tekst-zono sube kaj provi de nove.
+ Kliento
+ Servilo
+ Enigo / Eligo
+ Konservi XML
+ Ŝargi XML
+ Krei SQL
+ Servila administro:
+ Konservi
+ Quicksave
+ Ŝargi
+ Listigi erojn
+ Importi el datumbazo
+ Entajpi ŝlosilvorton per kiu via fasonado estis konservita:
+ Entajpi ŝlosilvorton per kiu via fasonado estos konservita:
+ Entajpi la nomon de datumbazo importenda:
+ Respondo de servilo
+ Konservita
+ Netrovita
+ Interna Servilo Eraro
+ Ne funkciigata
+ Servo Nedisponebla
+
+
+ XML-eraro
+ Dokumentaro
-
- Nomo
- Tipo
- Grandeco
- Defaŭlte
- NE NUL
- Senvalora
- Memalkremento
- Modifi la komenton
- Entajpi komenton por tiu kampo
-
-
- Jes
- Rezigni
- Bonvolu atendi...
- Agordoj
- Lingvo
- Datumbazoj por novaj kreoj
- Kelkaj agordoj estas aplikotaj post plena ŝarĝo de paĝo. Kuketoj devas esti ebligataj por ke la agordoj funkcias.
- Kapto-distanco de tabelo
- En rastrumeroj, 0 = malebligi kapton
- Motivo por fremdaj nomoj
- %T = ĉefa tabelo, %R = ĉefa ŝlosilo, %t = fremda tabelo
- Ĉu kaŝi konektiloj dum treno de tabelo?
- Desegni glatajn konektilojn (se subtenata de retumilo)?
- Show field size in table design?
- Show field datatype in table design?
- Stilo
-
-
- Klavoj
- Ŝlosiloj en la tabelo "%s"
- Tipo:
- Nomo:
- Kampoj en klavo
- Disponeblaj kampoj
- Modifi ŝlosilon
- Aldoni ŝlosilon
- Forigi ŝlosilon
-
-
- Konservi / Ŝargi
- Bonvolu alglui XML datumon en la tekst-zono sube kaj provi de nove.
- Kliento
- Servilo
- Enigo / Eligo
- Konservi XML
- Ŝargi XML
- Krei SQL
- Servila administro:
- Konservi
- Quicksave
- Ŝargi
- Listigi erojn
- Importi el datumbazo
- Entajpi ŝlosilvorton per kiu via fasonado estis konservita:
- Entajpi ŝlosilvorton per kiu via fasonado estos konservita:
- Entajpi la nomon de datumbazo importenda:
- Respondo de servilo
- Konservita
- Netrovita
- Interna Servilo Eraro
- Ne funkciigata
- Servo Nedisponebla
-
-
- XML-eraro
- Dokumentaro
-
diff --git a/locale/es.xml b/locale/es.xml
index 7ab14ef..3e3aa23 100644
--- a/locale/es.xml
+++ b/locale/es.xml
@@ -1,106 +1,106 @@
-
- Agregar tabla
- Editar tabla
- Eliminar tabla
- Eliminar tablas
- Alinear tablas
- Limpiar tablas
- ¿Realmente deseas eliminar todas las tablas
- Nueva tabla
- Colocar tabla
- Nombre
- Comentario
+
+ Agregar tabla
+ Editar tabla
+ Eliminar tabla
+ Eliminar tablas
+ Alinear tablas
+ Limpiar tablas
+ ¿Realmente deseas eliminar todas las tablas
+ Nueva tabla
+ Colocar tabla
+ Nombre
+ Comentario
-
- Agregar campo
- Editar campo
- Eliminar campo
- Arriba
- Abajo
- Nuevo campo
- Crear clave foránea
- Haz clic en tabla objetivo
- Conectar clave foránea
- Haz clic en campo objetivo
- Eliminar clave foránea
- ¿Realmente deseas borrar la tabla
- ¿Realmente deseas borrar el campo
+
+ Agregar campo
+ Editar campo
+ Eliminar campo
+ Arriba
+ Abajo
+ Nuevo campo
+ Crear clave foránea
+ Haz clic en tabla objetivo
+ Conectar clave foránea
+ Haz clic en campo objetivo
+ Eliminar clave foránea
+ ¿Realmente deseas borrar la tabla
+ ¿Realmente deseas borrar el campo
-
- Nombre
- Tipo
- Tamaño
- Predeterminado
- NOT NULL
- NULL
- Auto incremento
- Editar comentario
- Ingresa un comentario para este campo
+
+ Nombre
+ Tipo
+ Tamaño
+ Predeterminado
+ NOT NULL
+ NULL
+ Auto incremento
+ Editar comentario
+ Ingresa un comentario para este campo
-
- Aceptar
- Cancelar
- Por favor, espera...
- Opciones
- Idioma
- Base de datos para nuevos diseños
- Algunas opciones se aplican solo despúes de recargar totalmente la pagina. Las cookies deben estar habilitadas para que funcione la personalización.
- Distancia de ajuste de tablas
- En píxeles, 0 = deshabilitar ajuste
- Patrón para nombres de clave foránea
- %T = tabla primaria, %R = clave primaria, %t = tabla foránea
- ¿Ocultar conectores de tablas al arrastrar?
- ¿Dibujar conectores suaves (si son soportados por el navegador)?
- ¿Mostrar tamaño del campo en el diseño de tabla?
- ¿Mostrar tipo de dato del campo en el diseño de tabla?
- Estilo
+
+ Aceptar
+ Cancelar
+ Por favor, espera...
+ Opciones
+ Idioma
+ Base de datos para nuevos diseños
+ Algunas opciones se aplican solo despúes de recargar totalmente la pagina. Las cookies deben estar habilitadas para que funcione la personalización.
+ Distancia de ajuste de tablas
+ En píxeles, 0 = deshabilitar ajuste
+ Patrón para nombres de clave foránea
+ %T = tabla primaria, %R = clave primaria, %t = tabla foránea
+ ¿Ocultar conectores de tablas al arrastrar?
+ ¿Dibujar conectores suaves (si son soportados por el navegador)?
+ ¿Mostrar tamaño del campo en el diseño de tabla?
+ ¿Mostrar tipo de dato del campo en el diseño de tabla?
+ Estilo
-
- Claves
- Llaves en la tabla "%s"
- Tipo:
- Nombre:
- Campos en la clave
- Campos disponibles
- Editar clave
- Agregar clave
- Eliminar clave
+
+ Claves
+ Llaves en la tabla "%s"
+ Tipo:
+ Nombre:
+ Campos en la clave
+ Campos disponibles
+ Editar clave
+ Agregar clave
+ Eliminar clave
+
+
+ Guardar / Cargar
+ Por favor, pega los datos XML dentro del área de texto de abajo y vuelve a intentar.
+ Cliente
+ Servidor
+ Entrada / Salida
+ Guardar XML
+ Cargar XML
+ Guardar en el Navegador
+ Cargar desde el Navegador
+ Listar desde el Navegador
+ Guardar en Dropbox
+ Cargar desde Dropbox
+ Listar desde Dropbox
+ Generar SQL
+ Servidor de fondo:
+ Guardar
+ Guardar rápido
+ Cargar
+ Listar elementos
+ Importar desde Base de Datos
+ Ingrese la palabra clave bajo la cual tu diseño fue guardado:
+ Ingrese una palabra clave bajo la cual tu diseño será guardado:
+ Ingresa el nombre de la base de datos a ser importada:
+ Respuesta del servidor
+ Guardado
+ No Encontrado
+ Error Interno del Servidor
+ No Implementado
+ Servicio No Disponible
+
+
+ Error XML
+ Documentación
-
- Guardar / Cargar
- Por favor, pega los datos XML dentro del área de texto de abajo y vuelve a intentar.
- Cliente
- Servidor
- Entrada / Salida
- Guardar XML
- Cargar XML
- Guardar en el Navegador
- Cargar desde el Navegador
- Listar desde el Navegador
- Guardar en Dropbox
- Cargar desde Dropbox
- Listar desde Dropbox
- Generar SQL
- Servidor de fondo:
- Guardar
- Guardar rápido
- Cargar
- Listar elementos
- Importar desde Base de Datos
- Ingrese la palabra clave bajo la cual tu diseño fue guardado:
- Ingrese una palabra clave bajo la cual tu diseño será guardado:
- Ingresa el nombre de la base de datos a ser importada:
- Respuesta del servidor
- Guardado
- No Encontrado
- Error Interno del Servidor
- No Implementado
- Servicio No Disponible
-
-
- Error XML
- Documentación
-
diff --git a/locale/fr.xml b/locale/fr.xml
index 75b876e..f1f41ee 100644
--- a/locale/fr.xml
+++ b/locale/fr.xml
@@ -1,103 +1,103 @@
-
- Ajouter une table
- Éditer la table
- Supprimer la table
- Supprimer les tables
- Aligner les tables
- Supprimer les tables
- Vraiment supprimer toutes les tables
- nouvelle table
- positionner la table
- Nom
- Commentaire
-
-
- Ajouter un champ
- Éditer un champ
- Supprimer le champ
- Remonter
- Descendre
- Éditer un champ
- Créer une clé étrangère
- Cliquez la destination
- Connecter une clé étrangère
- Cliquez la propriété cible
- Supprimer la clé étrangère
- Voulez-vous vraiment supprimer cette table ?
- Voulez-vous vraiment supprimer ce champ ?
+
+ Ajouter une table
+ Éditer la table
+ Supprimer la table
+ Supprimer les tables
+ Aligner les tables
+ Supprimer les tables
+ Vraiment supprimer toutes les tables
+ nouvelle table
+ positionner la table
+ Nom
+ Commentaire
-
- Nom
- Type
- Taille
- Défaut
- NON NUL
- valeur nulle
- Auto-incrémental
- Éditer le commentaire
- Saisir un commentaire à propos de ce champ
-
-
- OK
- Annuler
- Veuillez patienter...
- Options
- Langue
- Format des nouvelles base de données
- Ces options ne seront appliquées qu'après le rafraichissement complet de la page. Les cookies doivent être autorisés.
- Magnétisme des tables
- En pixels, 0 = magnétisme désactivé
- Motif pour les noms de clés étrangères
- %T = table primaire, %R = clé primaire, %t = table étrangère
- Cacher les connecteurs lors du déplacement des tables ?
- Dessiner des connecteurs « adoucis » (si le navigateur le supporte) ?
- Afficher la taille du champ dans le schéma de table ?
- Afficher le type du champ dans le schéma de table ?
- Style
+
+ Ajouter un champ
+ Éditer un champ
+ Supprimer le champ
+ Remonter
+ Descendre
+ Éditer un champ
+ Créer une clé étrangère
+ Cliquez la destination
+ Connecter une clé étrangère
+ Cliquez la propriété cible
+ Supprimer la clé étrangère
+ Voulez-vous vraiment supprimer cette table ?
+ Voulez-vous vraiment supprimer ce champ ?
+
+
+ Nom
+ Type
+ Taille
+ Défaut
+ NON NUL
+ valeur nulle
+ Auto-incrémental
+ Éditer le commentaire
+ Saisir un commentaire à propos de ce champ
+
+
+ OK
+ Annuler
+ Veuillez patienter...
+ Options
+ Langue
+ Format des nouvelles base de données
+ Ces options ne seront appliquées qu'après le rafraichissement complet de la page. Les cookies doivent être autorisés.
+ Magnétisme des tables
+ En pixels, 0 = magnétisme désactivé
+ Motif pour les noms de clés étrangères
+ %T = table primaire, %R = clé primaire, %t = table étrangère
+ Cacher les connecteurs lors du déplacement des tables ?
+ Dessiner des connecteurs « adoucis » (si le navigateur le supporte) ?
+ Afficher la taille du champ dans le schéma de table ?
+ Afficher le type du champ dans le schéma de table ?
+ Style
+
+
+ Clés
+ Clés dans la table « %s »
+ Type :
+ Nom :
+ Champs de clé
+ Champs disponibles
+ Éditer la clé
+ Ajouter une clé
+ Supprimer la clé
+
+
+ Enregistrer / Charger
+ Merci de coller les données XML dans le champs prévu avant de ré-essayer.
+ Client
+ Serveur
+ Entrée / Sortie
+ Enregistrer XML
+ Charger XML
+ Enregistrer dans le navigateur
+ Charger depuis le navigateur
+ Lister depuis le navigateur
+ Génerer SQL
+ Méthode du serveur :
+ Enregistrer
+ Enregistrer rapidement
+ Charger
+ Éléments disponibles
+ Importer d'une base de données
+ Saisir le mot-clé de votre schéma :
+ Saisir un mot-clé pour sauvegarder votre schéma :
+ Saisir le nom de la base de données à importer :
+ Réponse du serveur
+ Sauvegardé
+ Introuvable
+ Erreur interne du serveur
+ Non Implementé
+ Service indisponible
+
+
+ Erreur XML
+ Documentation
-
- Clés
- Clés dans la table « %s »
- Type :
- Nom :
- Champs de clé
- Champs disponibles
- Éditer la clé
- Ajouter une clé
- Supprimer la clé
-
-
- Enregistrer / Charger
- Merci de coller les données XML dans le champs prévu avant de ré-essayer.
- Client
- Serveur
- Entrée / Sortie
- Enregistrer XML
- Charger XML
- Enregistrer dans le navigateur
- Charger depuis le navigateur
- Lister depuis le navigateur
- Génerer SQL
- Méthode du serveur :
- Enregistrer
- Enregistrer rapidement
- Charger
- Éléments disponibles
- Importer d'une base de données
- Saisir le mot-clé de votre schéma :
- Saisir un mot-clé pour sauvegarder votre schéma :
- Saisir le nom de la base de données à importer :
- Réponse du serveur
- Sauvegardé
- Introuvable
- Erreur interne du serveur
- Non Implementé
- Service indisponible
-
-
- Erreur XML
- Documentation
-
diff --git a/locale/hu.xml b/locale/hu.xml
index 734d593..1461b7d 100644
--- a/locale/hu.xml
+++ b/locale/hu.xml
@@ -1,98 +1,98 @@
-
- Tábla létrehozása
- Tábla módosítása
- Tábla törlése
- Táblak törlése
- Táblák rendezése
- Táblák törlése
- Valóban töröljem az összes táblát
- tábla létrehozása
- tábla elhelyezése
- Név
- Megjegyzés
-
-
- Mező létrehozása
- Mező módosítása
- Mező törlése
- Fel
- Le
- új mező
- Idegen kulcs létrehozása
- kattintson a cél-táblára
- Idegen kulcs kapcsolása
- kattintson a cél-mezőre
- Mező kulcs létrehozása
- Valóban töröljem a táblát
- Valóban töröljem a mezőt
+
+ Tábla létrehozása
+ Tábla módosítása
+ Tábla törlése
+ Táblak törlése
+ Táblák rendezése
+ Táblák törlése
+ Valóban töröljem az összes táblát
+ tábla létrehozása
+ tábla elhelyezése
+ Név
+ Megjegyzés
+
+
+ Mező létrehozása
+ Mező módosítása
+ Mező törlése
+ Fel
+ Le
+ új mező
+ Idegen kulcs létrehozása
+ kattintson a cél-táblára
+ Idegen kulcs kapcsolása
+ kattintson a cél-mezőre
+ Mező kulcs létrehozása
+ Valóban töröljem a táblát
+ Valóban töröljem a mezőt
+
+
+ Név
+ Típus
+ Méret
+ Alapérték
+ NOT NULL
+ NULL
+ Automatikus növelés
+ Megjegyzés módosítása
+ Írjon megjegyzést ehhez a mezőhöz
+
+
+ OK
+ Mégsem
+ Kérem várjon...
+ Beállítások
+ Nyelv
+ Adatbázis az új terveknek
+ Egyes beállítások csak az oldal teljes újratöltése után érvényesülnek. A munkához szükséges engedélyezni a sütiket (cooky-kat).
+ Táblák illesztési távolsága
+ Pixel-ben megadva, 0 = illesztés tiltása
+ Idegen nevek sablonja
+ %T = elsődleges tábla, %R = elsődleges kulcs, %t = idegen tábla
+ Elrejtsem a kapcsolókat a rajztáblán?
+ Kapcsolók finom kirajzolása (ha a böngésző lehetővé teszi)?
+ Stílus
+
+
+
+ Kulcsok
+ Kulcsok a "%s" táblában
+ Típus:
+ Név:
+ A kulcs mezői
+ Elérhető mezők
+ Kulcs módosítása
+ Kulcs létrehozása
+ Kulcs törlése
+
+
+ Mentés / Beolvasás
+ Kérem illessze be az XML-tartalmat az alábbi szöveges mezőbe, és próbálja újra.
+ Kliens
+ Szerver
+ Bemenet / Kimenet
+ XML mentése
+ XML beolvasása
+ SQL generálása
+ Szerver végpont:
+ Mentés
+ Betöltés
+ Tételek listázása
+ Importálás adatbázisból
+ Írja be a kulcsszót, amely alapján a tervet elmentette:
+ Írja be a kulcsszót, amely alapján a tervet el szeretné menteni:
+ Írja be az importálandó adatbázis nevét:
+ A szerver válasza
+ Elmentve
+ Nem találom
+ Belső szerver hiba
+ Nem lett végrehajtva
+ Szolgáltatás nem elérhető
+
+
+ XML hiba
+ Dokumentáció
-
- Név
- Típus
- Méret
- Alapérték
- NOT NULL
- NULL
- Automatikus növelés
- Megjegyzés módosítása
- Írjon megjegyzést ehhez a mezőhöz
-
-
- OK
- Mégsem
- Kérem várjon...
- Beállítások
- Nyelv
- Adatbázis az új terveknek
- Egyes beállítások csak az oldal teljes újratöltése után érvényesülnek. A munkához szükséges engedélyezni a sütiket (cooky-kat).
- Táblák illesztési távolsága
- Pixel-ben megadva, 0 = illesztés tiltása
- Idegen nevek sablonja
- %T = elsődleges tábla, %R = elsődleges kulcs, %t = idegen tábla
- Elrejtsem a kapcsolókat a rajztáblán?
- Kapcsolók finom kirajzolása (ha a böngésző lehetővé teszi)?
- Stílus
-
-
-
- Kulcsok
- Kulcsok a "%s" táblában
- Típus:
- Név:
- A kulcs mezői
- Elérhető mezők
- Kulcs módosítása
- Kulcs létrehozása
- Kulcs törlése
-
-
- Mentés / Beolvasás
- Kérem illessze be az XML-tartalmat az alábbi szöveges mezőbe, és próbálja újra.
- Kliens
- Szerver
- Bemenet / Kimenet
- XML mentése
- XML beolvasása
- SQL generálása
- Szerver végpont:
- Mentés
- Betöltés
- Tételek listázása
- Importálás adatbázisból
- Írja be a kulcsszót, amely alapján a tervet elmentette:
- Írja be a kulcsszót, amely alapján a tervet el szeretné menteni:
- Írja be az importálandó adatbázis nevét:
- A szerver válasza
- Elmentve
- Nem találom
- Belső szerver hiba
- Nem lett végrehajtva
- Szolgáltatás nem elérhető
-
-
- XML hiba
- Dokumentáció
-
diff --git a/locale/it.xml b/locale/it.xml
index c6ffce2..fce0a2e 100644
--- a/locale/it.xml
+++ b/locale/it.xml
@@ -1,100 +1,100 @@
-
- Aggiungi tabella
- Modifica tabella
- Elimina tabella
- Elimina tabelle
- Allinea tabelle
- Cancella tabelle
- Eliminare veramente le tabelle
- nuova tabella
- posiziona la tabella
- Nome
- Oggetto
-
-
- Aggiungi campo
- Modifica campo
- Elimina campo
- Su
- Giù
- nuovo campo
- Crea chiave esterna
- fai clic sulla destinazione
- Connetti chiave esterna
- fai clic sulla riga di destinazione
- Rimuovi chiave esterna
- Cancellare veramente la tabella
- Cancellare veramente la riga
+
+ Aggiungi tabella
+ Modifica tabella
+ Elimina tabella
+ Elimina tabelle
+ Allinea tabelle
+ Cancella tabelle
+ Eliminare veramente le tabelle
+ nuova tabella
+ posiziona la tabella
+ Nome
+ Oggetto
+
+
+ Aggiungi campo
+ Modifica campo
+ Elimina campo
+ Su
+ Giù
+ nuovo campo
+ Crea chiave esterna
+ fai clic sulla destinazione
+ Connetti chiave esterna
+ fai clic sulla riga di destinazione
+ Rimuovi chiave esterna
+ Cancellare veramente la tabella
+ Cancellare veramente la riga
+
+
+ Nome
+ Tipo
+ Dimensione
+ Predefinito
+ QUALCOSA
+ NULL
+ Autoincremento
+ Modifica commento
+ Inserisci commento per questo campo
+
+
+ Conferma
+ Annulla
+ Attendere...
+ Opzioni
+ Lingua
+ Database per nuovi progetti
+ Alcune opzioni diventano attive solo dopo il ricaricamento della pagina. Affinché le opzioni vengano mantenute, devono essere abilitati i cookies.
+ Griglia magnetica
+ In pixel, 0 = magnetismo disabilitato
+ Modello per le chiavi esterne
+ %T = tabella principale, %R = chiave primaria, %t = tabella secondaria
+ Nascondi i connettori durante il trascinamento?
+ Disegna connettori arrotondati (se supportato dal browser)?
+ Show field size in table design?
+ Show field datatype in table design?
+ Stile
+
+
+ Chiavi
+ Chiavi nella tabella "%s"
+ Tipo:
+ Nome:
+ Campi nella chiave
+ Campi disponibili
+ Modifica chiave
+ Aggiungi chiave
+ Rimuovi chiave
+
+
+ Salva / Carica
+ Reincolla i dati XML nell'area sottostante e prova di nuovo.
+ Intestatario
+ Server
+ Ingresso / Uscita
+ Salva XML
+ Carica XML
+ Genera SQL
+ Server di backend:
+ Salva
+ Quicksave
+ Carica
+ Elenca elementi
+ Importa dal DB
+ Inserisci la parola chiave con cui è stato salvato il progetto:
+ Inserisci la parola chiave con cui salvare il progetto:
+ Inserisci il nome del database da importare
+ Risposta del server
+ Salvato
+ Non trovato
+ Errore interno del server
+ Non implementato
+ Servizio non disponibile
+
+
+ Errore XML
+ Documentazione
-
- Nome
- Tipo
- Dimensione
- Predefinito
- QUALCOSA
- NULL
- Autoincremento
- Modifica commento
- Inserisci commento per questo campo
-
-
- Conferma
- Annulla
- Attendere...
- Opzioni
- Lingua
- Database per nuovi progetti
- Alcune opzioni diventano attive solo dopo il ricaricamento della pagina. Affinché le opzioni vengano mantenute, devono essere abilitati i cookies.
- Griglia magnetica
- In pixel, 0 = magnetismo disabilitato
- Modello per le chiavi esterne
- %T = tabella principale, %R = chiave primaria, %t = tabella secondaria
- Nascondi i connettori durante il trascinamento?
- Disegna connettori arrotondati (se supportato dal browser)?
- Show field size in table design?
- Show field datatype in table design?
- Stile
-
-
- Chiavi
- Chiavi nella tabella "%s"
- Tipo:
- Nome:
- Campi nella chiave
- Campi disponibili
- Modifica chiave
- Aggiungi chiave
- Rimuovi chiave
-
-
- Salva / Carica
- Reincolla i dati XML nell'area sottostante e prova di nuovo.
- Intestatario
- Server
- Ingresso / Uscita
- Salva XML
- Carica XML
- Genera SQL
- Server di backend:
- Salva
- Quicksave
- Carica
- Elenca elementi
- Importa dal DB
- Inserisci la parola chiave con cui è stato salvato il progetto:
- Inserisci la parola chiave con cui salvare il progetto:
- Inserisci il nome del database da importare
- Risposta del server
- Salvato
- Non trovato
- Errore interno del server
- Non implementato
- Servizio non disponibile
-
-
- Errore XML
- Documentazione
-
diff --git a/locale/ja.xml b/locale/ja.xml
index ce7350a..7d3292f 100644
--- a/locale/ja.xml
+++ b/locale/ja.xml
@@ -1,102 +1,102 @@
-
- テーブルを追加
- テーブルを編集
- テーブルを削除
- テーブルを整列
- 全テーブルを削除
- 全テーブルを削除しますか
- 新規テーブル
- テーブルを配置
- テーブル名
- コメント
-
-
- 列を追加
- 列を編集
- 列を削除
- 上に
- 下に
- 新規列
- 外部キーとして移動
- 対象テーブルを選択
- 外部キーを接続
- 対象列を選択
- 外部キーを削除
- テーブルを削除しますか
- 列を削除しますか
+
+ テーブルを追加
+ テーブルを編集
+ テーブルを削除
+ テーブルを整列
+ 全テーブルを削除
+ 全テーブルを削除しますか
+ 新規テーブル
+ テーブルを配置
+ テーブル名
+ コメント
-
- 列名
- 型
- サイズ
- デフォルト値
- NOT NULL
- NULL
- 自動採番
- コメントを編集
- 列のコメントを入力
-
-
- OK
- キャンセル
- しばらくお待ちください...
- オプション
- 言語
- 新しい設計で使用するデータベース
- 印は再読込後に反映されるオプションです。これらを動作させるにはクッキーを有効にしてください。
- テーブルのスナップ単位
- ピクセル(0 = スナップ無効)
- 外部キーの命名規則
- %T = 親テーブル, %R = プライマリーキー, %t = 子テーブル
- テーブルをドラッグ中は線を隠す
- 滑らかな線を使う(要ブラウザのサポート)
- フィールドサイズを表示
- フィールドタイプを表示
- スタイル
+
+ 列を追加
+ 列を編集
+ 列を削除
+ 上に
+ 下に
+ 新規列
+ 外部キーとして移動
+ 対象テーブルを選択
+ 外部キーを接続
+ 対象列を選択
+ 外部キーを削除
+ テーブルを削除しますか
+ 列を削除しますか
+
+
+ 列名
+ 型
+ サイズ
+ デフォルト値
+ NOT NULL
+ NULL
+ 自動採番
+ コメントを編集
+ 列のコメントを入力
+
+
+ OK
+ キャンセル
+ しばらくお待ちください...
+ オプション
+ 言語
+ 新しい設計で使用するデータベース
+ 印は再読込後に反映されるオプションです。これらを動作させるにはクッキーを有効にしてください。
+ テーブルのスナップ単位
+ ピクセル(0 = スナップ無効)
+ 外部キーの命名規則
+ %T = 親テーブル, %R = プライマリーキー, %t = 子テーブル
+ テーブルをドラッグ中は線を隠す
+ 滑らかな線を使う(要ブラウザのサポート)
+ フィールドサイズを表示
+ フィールドタイプを表示
+ スタイル
+
+
+ キーの設定
+ テーブル"%s"のキー
+ 種類:
+ キー名:
+ キーの対象列
+ 選択可能な列
+ キーを編集
+ キーを追加
+ キーを削除
+
+
+ 保存/読み込み
+ 下の入出力欄にXMLデータを貼りつけてから実行してください。
+ クライアント
+ サーバ
+ 入出力欄
+ XMLを出力
+ XMLを読込
+ SQLを生成
+ ブラウザに保存
+ ブラウザから読込
+ ブラウザの保存一覧
+ サーバのバックエンド:
+ 保存
+ Quicksave
+ 読込
+ 一覧
+ DBからインポート
+ 読み込む設計名を入力してください:
+ 保存する設計名を入力してください:
+ インポートするDB名を入力してください:
+ サーバレスポンス
+ Saved
+ Not Found
+ Internal Server Error
+ Not Implemented
+ Service Unavailable
+
+
+ XMLエラー
+ ドキュメント
-
- キーの設定
- テーブル"%s"のキー
- 種類:
- キー名:
- キーの対象列
- 選択可能な列
- キーを編集
- キーを追加
- キーを削除
-
-
- 保存/読み込み
- 下の入出力欄にXMLデータを貼りつけてから実行してください。
- クライアント
- サーバ
- 入出力欄
- XMLを出力
- XMLを読込
- SQLを生成
- ブラウザに保存
- ブラウザから読込
- ブラウザの保存一覧
- サーバのバックエンド:
- 保存
- Quicksave
- 読込
- 一覧
- DBからインポート
- 読み込む設計名を入力してください:
- 保存する設計名を入力してください:
- インポートするDB名を入力してください:
- サーバレスポンス
- Saved
- Not Found
- Internal Server Error
- Not Implemented
- Service Unavailable
-
-
- XMLエラー
- ドキュメント
-
diff --git a/locale/ko.xml b/locale/ko.xml
index c293406..e8df4c8 100644
--- a/locale/ko.xml
+++ b/locale/ko.xml
@@ -1,106 +1,106 @@
-
- 테이블 추가
- 테이블 수정
- 테이블 삭제
- 선택한 테이블 삭제
- 테이블 정렬
- 전체 테이블 삭제
- 정말로 전체 테이블을 삭제하시겠습니까
- 신규 테이블
- 테이블 놓기
- 이름
- 설명
-
-
- 필드 추가
- 필드 수정
- 필드 삭제
- 위로
- 아래로
- 신규 필드
- 외래 키 생성
- 대상 테이블 선택
- 외래 키 연결
- 대상 필드 선택
- 외래 키 삭제
- 정말로 테이블을 삭제하시겠습니까
- 정말로 필드를 삭제하시겠습니까
+
+ 테이블 추가
+ 테이블 수정
+ 테이블 삭제
+ 선택한 테이블 삭제
+ 테이블 정렬
+ 전체 테이블 삭제
+ 정말로 전체 테이블을 삭제하시겠습니까
+ 신규 테이블
+ 테이블 놓기
+ 이름
+ 설명
+
+
+ 필드 추가
+ 필드 수정
+ 필드 삭제
+ 위로
+ 아래로
+ 신규 필드
+ 외래 키 생성
+ 대상 테이블 선택
+ 외래 키 연결
+ 대상 필드 선택
+ 외래 키 삭제
+ 정말로 테이블을 삭제하시겠습니까
+ 정말로 필드를 삭제하시겠습니까
+
+
+ 이름
+ 타입
+ 사이즈
+ 기본값
+ NOT NULL
+ NULL
+ 자동 증가
+ 설명 수정
+ 이 필드의 설명을 입력해 주세요
+
+
+ 확인
+ 취소
+ 잠시만 기다려주세요...
+ 옵션
+ 언어
+ 새로운 디자인의 데이터베이스
+ 몇몇 옵션들은 페이지를 다시 불러와야 적용이 됩니다. 이를 위해서는 쿠키 사용이 활성화 되어 있어야 합니다.
+ 테이블 스냅 거리
+ 픽셀, 0 = 스냅 비활성화
+ 외래 키 명명 규식
+ %T = 기본 테이블, %R = 기본 키, %t = 외래 테이블
+ 테이블을 이동할 때, 연결선 숨기기
+ 부드러운 연결선 사용 (브라우저 지원 필요)?
+ 디자인에서 필드 사이즈를 표시
+ 디자인에서 필드 타입을 표시
+ 스타일
+
+
+ 키 설정
+ "%s" 테이블 키 정보
+ 타입:
+ 이름:
+ 키 필드
+ 추가 가능한 필드
+ 키 수정
+ 키 추가
+ 키 삭제
+
+
+ 저장 / 불러오기
+ 불러오려고 하는 XML 데이터를 아래 텍스트 영역에 붙여 넣고 다시 시도해 주세요.
+ 클라이언트
+ 서버
+ 입력 / 출력
+ XML 저장
+ XML 불러오기
+ 브라우저에 저장
+ 브라우저에서 불러오기
+ 브라우저 저장 목록
+ 드롭박스에 저장
+ 드롭박스에서 불러오기
+ 드롭박스 저장 목록
+ SQL 생성
+ 벡엔드 서버:
+ 저장
+ 빠른저장
+ 불러오기
+ 목록보기
+ DB에서 가져오기
+ 저장된 디자인의 키워드를 입력해 주세요:
+ 저장할 디자인의 키워드를 입력해 주세요:
+ 가져올 데이터베이스의 이름을 입력해 주세요:
+ 서버 응답
+ 저장되었습니다
+ 찾을 수 없습니다(Not Found)
+ 내부 서버 에러(Internal Server Error)
+ 구현되지 않았습니다(Not Implemented)
+ 서비스를 사용할 수 없습니다(Service Unavailable)
+
+
+ XML 에러
+ 문서
-
- 이름
- 타입
- 사이즈
- 기본값
- NOT NULL
- NULL
- 자동 증가
- 설명 수정
- 이 필드의 설명을 입력해 주세요
-
-
- 확인
- 취소
- 잠시만 기다려주세요...
- 옵션
- 언어
- 새로운 디자인의 데이터베이스
- 몇몇 옵션들은 페이지를 다시 불러와야 적용이 됩니다. 이를 위해서는 쿠키 사용이 활성화 되어 있어야 합니다.
- 테이블 스냅 거리
- 픽셀, 0 = 스냅 비활성화
- 외래 키 명명 규식
- %T = 기본 테이블, %R = 기본 키, %t = 외래 테이블
- 테이블을 이동할 때, 연결선 숨기기
- 부드러운 연결선 사용 (브라우저 지원 필요)?
- 디자인에서 필드 사이즈를 표시
- 디자인에서 필드 타입을 표시
- 스타일
-
-
- 키 설정
- "%s" 테이블 키 정보
- 타입:
- 이름:
- 키 필드
- 추가 가능한 필드
- 키 수정
- 키 추가
- 키 삭제
-
-
- 저장 / 불러오기
- 불러오려고 하는 XML 데이터를 아래 텍스트 영역에 붙여 넣고 다시 시도해 주세요.
- 클라이언트
- 서버
- 입력 / 출력
- XML 저장
- XML 불러오기
- 브라우저에 저장
- 브라우저에서 불러오기
- 브라우저 저장 목록
- 드롭박스에 저장
- 드롭박스에서 불러오기
- 드롭박스 저장 목록
- SQL 생성
- 벡엔드 서버:
- 저장
- 빠른저장
- 불러오기
- 목록보기
- DB에서 가져오기
- 저장된 디자인의 키워드를 입력해 주세요:
- 저장할 디자인의 키워드를 입력해 주세요:
- 가져올 데이터베이스의 이름을 입력해 주세요:
- 서버 응답
- 저장되었습니다
- 찾을 수 없습니다(Not Found)
- 내부 서버 에러(Internal Server Error)
- 구현되지 않았습니다(Not Implemented)
- 서비스를 사용할 수 없습니다(Service Unavailable)
-
-
- XML 에러
- 문서
-
diff --git a/locale/nl.xml b/locale/nl.xml
index eaefb3d..9729b06 100644
--- a/locale/nl.xml
+++ b/locale/nl.xml
@@ -1,102 +1,102 @@
-
- Tabel toevoegen
- Bewerk tabel
- Verwijder tabel
- Verwijder tabellen
- Uitlijnen tabellen
- Tabellen schonen
- Wilt u echt alle tabellen verwijderen
- Nieuwe tabel
- Positioneer tabel
- Naam
- Opmerkingen
-
-
- Veld toevoegen
- Veld bewerken
- Veld verwijderen
- Op
- Neer
- nieuwe veld
- Maak relatie
- Click op doeltabel
- Verbind relatie
- Click op doelveld
- Verwijder relatie
- Tabel verwijderen?
- Veld verwijderen?
+
+ Tabel toevoegen
+ Bewerk tabel
+ Verwijder tabel
+ Verwijder tabellen
+ Uitlijnen tabellen
+ Tabellen schonen
+ Wilt u echt alle tabellen verwijderen
+ Nieuwe tabel
+ Positioneer tabel
+ Naam
+ Opmerkingen
+
+
+ Veld toevoegen
+ Veld bewerken
+ Veld verwijderen
+ Op
+ Neer
+ nieuwe veld
+ Maak relatie
+ Click op doeltabel
+ Verbind relatie
+ Click op doelveld
+ Verwijder relatie
+ Tabel verwijderen?
+ Veld verwijderen?
+
+
+ Naam
+ Type
+ Omvang
+ Standaard
+ NOT NULL
+ NULL
+ Autoincrement
+ Bewerk opmerkingen
+ Geef opmerkingen voor dit veld
+
+
+ OK
+ Annuleer
+ Even geduld...
+ Opties
+ Taal
+ Database voor nieuwe ontwerpen
+ Sommige opties worden pas geldig na het volledig opnieuw laden van de pagina. Cookies moeten zijn toegestaan voor een juiste werking.
+ Tabel snap afstand
+ In pixels, 0 = uitzetten snap
+ Patroon voor relatie velden
+ %T = primaire tabel, %R = primaire sleutel, %t = verwezen tabel.
+ Verberg relaties tijdens verplaatsen van de tabel?
+ Teken gekromde relaties (als de browser dit ondersteund)?
+ Toon veld omvang in tabelontwerp?
+ Toon veld type in tabelontwerp?
+ Stijl
+
+
+ Sleutels
+ Sleutels in tabel "%s"
+ Type:
+ Naam:
+ Velden in sleutel
+ Beschikbare velden
+ Bewerk sleutel
+ Voeg sleutel toe
+ Verwijder sleutel
+
+
+ Opslaan / laden
+ Please paste XML data into the text area below and try again.
+ Lokaal
+ Server
+ Input / Output
+ XML Opslaan
+ XML Laden
+ Opslaan in Browser
+ Laden uit Browser
+ Genereer SQL
+ Server:
+ Opslaan
+ Snel opslaan
+ Laden
+ Toon lijst
+ Import uit DB
+ Enter keyword under which your design was saved:
+ Enter keyword under which your design will be saved:
+ Enter name of database to be imported:
+ Reactie van server
+ Opgeslagen
+ Niet gevonden
+ Interne Server Fout
+ Niet geimplementeerd
+ Niet beschikbaar
+
+
+ XML fout
+ Documentatie
-
- Naam
- Type
- Omvang
- Standaard
- NOT NULL
- NULL
- Autoincrement
- Bewerk opmerkingen
- Geef opmerkingen voor dit veld
-
-
- OK
- Annuleer
- Even geduld...
- Opties
- Taal
- Database voor nieuwe ontwerpen
- Sommige opties worden pas geldig na het volledig opnieuw laden van de pagina. Cookies moeten zijn toegestaan voor een juiste werking.
- Tabel snap afstand
- In pixels, 0 = uitzetten snap
- Patroon voor relatie velden
- %T = primaire tabel, %R = primaire sleutel, %t = verwezen tabel.
- Verberg relaties tijdens verplaatsen van de tabel?
- Teken gekromde relaties (als de browser dit ondersteund)?
- Toon veld omvang in tabelontwerp?
- Toon veld type in tabelontwerp?
- Stijl
-
-
- Sleutels
- Sleutels in tabel "%s"
- Type:
- Naam:
- Velden in sleutel
- Beschikbare velden
- Bewerk sleutel
- Voeg sleutel toe
- Verwijder sleutel
-
-
- Opslaan / laden
- Please paste XML data into the text area below and try again.
- Lokaal
- Server
- Input / Output
- XML Opslaan
- XML Laden
- Opslaan in Browser
- Laden uit Browser
- Genereer SQL
- Server:
- Opslaan
- Snel opslaan
- Laden
- Toon lijst
- Import uit DB
- Enter keyword under which your design was saved:
- Enter keyword under which your design will be saved:
- Enter name of database to be imported:
- Reactie van server
- Opgeslagen
- Niet gevonden
- Interne Server Fout
- Niet geimplementeerd
- Niet beschikbaar
-
-
- XML fout
- Documentatie
-
diff --git a/locale/pl.xml b/locale/pl.xml
index 65176e1..aa6d803 100644
--- a/locale/pl.xml
+++ b/locale/pl.xml
@@ -1,100 +1,100 @@
-
- Dodaj tabelę
- Edytuj tabelę
- Usuń tabelę
- Usuń tabele
- Wyrównaj tabele
- Wyczyść tabele
- Czy na pewno usunąć wszystkie tabele
- nowa tabela
- miejsce tabeli
- Nazwa
- Opis
-
-
- Dodaj pole
- Edytuj pole
- Usuń pole
- W górę
- W dół
- nowe pole
- Utwórz klucz zewnętrzny
- kliknij w docelową tabelę
- Utwórz klucz zewnętrzny
- kliknij w docelową tabelę
- Smazat cizí klíč
- Czy na pewno usunąć tabelę
- Czy na pewno usunąć pole
+
+ Dodaj tabelę
+ Edytuj tabelę
+ Usuń tabelę
+ Usuń tabele
+ Wyrównaj tabele
+ Wyczyść tabele
+ Czy na pewno usunąć wszystkie tabele
+ nowa tabela
+ miejsce tabeli
+ Nazwa
+ Opis
+
+
+ Dodaj pole
+ Edytuj pole
+ Usuń pole
+ W górę
+ W dół
+ nowe pole
+ Utwórz klucz zewnętrzny
+ kliknij w docelową tabelę
+ Utwórz klucz zewnętrzny
+ kliknij w docelową tabelę
+ Smazat cizí klíč
+ Czy na pewno usunąć tabelę
+ Czy na pewno usunąć pole
+
+
+ Nazwa
+ Typ
+ Rozmiar
+ Domyślnie
+ Niepuste
+ Zerowy
+ Automatyczne zwiększanie o 1
+ Edytuj komentarz
+ Wpisz komentarz dla tego pola
+
+
+ OK
+ Anuluj
+ Proszę czekać...
+ Opcje
+ Język
+ Bazy danych dla nowych projektów
+ Niektóre opcje są zatwierdzane wyłącznie po kompletnym przeładowaniu strony. Ciasteczka muszą być akceptowane dla działania opcji.
+ Ustalana odległość tabel
+ W pikselach, 0 = wyłącznie ustalania
+ Wzorzec dla zewnętrznych nazw
+ %T = główna tabela, %R = klucz główny, %t = zewnętrzna tabela
+ Ukryć złącza w tabeli podczas przeciągania?
+ Rysuj pływające złącza (jesli wsperane jest przez przeglądarkę)?
+ Show field size in table design?
+ Show field datatype in table design?
+ Styl
+
+
+ Klucze
+ Klucze w tabeli "%s"
+ Typ:
+ Nazwa:
+ Pola w kluczu
+ Dostępne pola
+ Edytuj klucz
+ Dodaj klucz
+ Usuń klucz
+
+
+ Zapisz / Otwórz
+ Proszę wklej kod XML w poniższe pole tekstowe i spróbuj ponownie.
+ Klient
+ Serwer
+ Wejście / Wyjście
+ Zapisz XML
+ Załaduj XML
+ Generuj SQL
+ Serwer wejściowy:
+ Zapisz
+ Quicksave
+ Otwórz
+ Lista pozycji
+ Importuj z DB
+ Wpisz słowo kluczowe pod którym twój projekt został zapisany:
+ Wpisz słowo kluczowe pod którym twój projekt ma zostać zapisany:
+ Wpisz nazwę bazy danych do zaimportowania:
+ Odpowiedź serwera
+ Zapisano
+ Nie znaleziono
+ Wewnętrzny błąd serwera
+ Niezaimplementowane
+ Serwer niedostępny
+
+
+ Błąd XML
+ Dokumentacja
-
- Nazwa
- Typ
- Rozmiar
- Domyślnie
- Niepuste
- Zerowy
- Automatyczne zwiększanie o 1
- Edytuj komentarz
- Wpisz komentarz dla tego pola
-
-
- OK
- Anuluj
- Proszę czekać...
- Opcje
- Język
- Bazy danych dla nowych projektów
- Niektóre opcje są zatwierdzane wyłącznie po kompletnym przeładowaniu strony. Ciasteczka muszą być akceptowane dla działania opcji.
- Ustalana odległość tabel
- W pikselach, 0 = wyłącznie ustalania
- Wzorzec dla zewnętrznych nazw
- %T = główna tabela, %R = klucz główny, %t = zewnętrzna tabela
- Ukryć złącza w tabeli podczas przeciągania?
- Rysuj pływające złącza (jesli wsperane jest przez przeglądarkę)?
- Show field size in table design?
- Show field datatype in table design?
- Styl
-
-
- Klucze
- Klucze w tabeli "%s"
- Typ:
- Nazwa:
- Pola w kluczu
- Dostępne pola
- Edytuj klucz
- Dodaj klucz
- Usuń klucz
-
-
- Zapisz / Otwórz
- Proszę wklej kod XML w poniższe pole tekstowe i spróbuj ponownie.
- Klient
- Serwer
- Wejście / Wyjście
- Zapisz XML
- Załaduj XML
- Generuj SQL
- Serwer wejściowy:
- Zapisz
- Quicksave
- Otwórz
- Lista pozycji
- Importuj z DB
- Wpisz słowo kluczowe pod którym twój projekt został zapisany:
- Wpisz słowo kluczowe pod którym twój projekt ma zostać zapisany:
- Wpisz nazwę bazy danych do zaimportowania:
- Odpowiedź serwera
- Zapisano
- Nie znaleziono
- Wewnętrzny błąd serwera
- Niezaimplementowane
- Serwer niedostępny
-
-
- Błąd XML
- Dokumentacja
-
diff --git a/locale/pt_BR.xml b/locale/pt_BR.xml
index 9c0a4b1..f71ab7b 100644
--- a/locale/pt_BR.xml
+++ b/locale/pt_BR.xml
@@ -1,98 +1,98 @@
-
- Adicionar tabela
- Editar tabela
- Remover tabela
- Remover tabelas
- Alinhar tabelas
- Limpar tabelas
- Realmente excluir todas as tabelas
- Nova tabela
- Clique p/ adicionar
- Nome
- Comentário
-
-
- Adicionar campo
- Editar campo
- Remover campo
- Para cima
- Para baixo
- Novo campo
- Criar chave estrangeira
- Selecione a tabela alvo(destino)
+
+ Adicionar tabela
+ Editar tabela
+ Remover tabela
+ Remover tabelas
+ Alinhar tabelas
+ Limpar tabelas
+ Realmente excluir todas as tabelas
+ Nova tabela
+ Clique p/ adicionar
+ Nome
+ Comentário
+
+
+ Adicionar campo
+ Editar campo
+ Remover campo
+ Para cima
+ Para baixo
+ Novo campo
+ Criar chave estrangeira
+ Selecione a tabela alvo(destino)
Conectar chave estrangeira
Clique na linha alvo
Remover chave estrangeira
- Deseja realmente deletar a tabela
- Deseja realmente deletar o campo
+ Deseja realmente deletar a tabela
+ Deseja realmente deletar o campo
+
+
+ Nome
+ Tipo
+ Tamanho
+ Default
+ NOT NULL
+ NULL
+ Auto incrementar
+ Editar comentário
+ Digite o comentário para este campo
+
+
+ OK
+ Cancelar
+ Por favor espere...
+ Opções
+ Linguagem
+ Base de Dados para os novos designs
+ Algumas opções serão aplicadas somente depois da página totalmente regarrecada. Cookies devem ser ativados para as opções funcionarem.
+ Distância entre as tabelas
+ Em pixels, 0 = desativar snapping
+ Padrão p/ nomes estrangeiros
+ %T = tabela primária, %R = chave primária, %t = tabela estrangeira
+ Esconder connectores na tela?
+ Desenhar conectores suaves (se suportado pelo navegador)?
+ Estilo
+
+
+
+ Chaves
+ Chaves na tabela "%s"
+ Tipo:
+ Nome:
+ Campos na chave
+ Campos disponíveis
+ Editar chave
+ Adicionar chave
+ Remover chave
+
+
+ Salvar / Carregar
+ Por favor cole os dados XML na área de texto abaixo e tente novamente.
+ Cliente
+ Servidor
+ Entrada / Saída
+ Salvar XML
+ Carregar XML
+ Gerar SQL
+ Parâmetros do Servidor:
+ Salvar
+ Carregar
+ Listar itens
+ Importar do BD
+ Digite o nome o qual seu design foi salvo:
+ Digite o nome com qual seu design será salvo:
+ Digite o nome da base de dados à ser importada:
+ Resposta do servidor
+ Salvo
+ Não Encontrado
+ Erro Interno do Servidor
+ Não Implementado
+ Serviço Indisponível
+
+
+ Erro de XML
+ Documentação
-
- Nome
- Tipo
- Tamanho
- Default
- NOT NULL
- NULL
- Auto incrementar
- Editar comentário
- Digite o comentário para este campo
-
-
- OK
- Cancelar
- Por favor espere...
- Opções
- Linguagem
- Base de Dados para os novos designs
- Algumas opções serão aplicadas somente depois da página totalmente regarrecada. Cookies devem ser ativados para as opções funcionarem.
- Distância entre as tabelas
- Em pixels, 0 = desativar snapping
- Padrão p/ nomes estrangeiros
- %T = tabela primária, %R = chave primária, %t = tabela estrangeira
- Esconder connectores na tela?
- Desenhar conectores suaves (se suportado pelo navegador)?
- Estilo
-
-
-
- Chaves
- Chaves na tabela "%s"
- Tipo:
- Nome:
- Campos na chave
- Campos disponíveis
- Editar chave
- Adicionar chave
- Remover chave
-
-
- Salvar / Carregar
- Por favor cole os dados XML na área de texto abaixo e tente novamente.
- Cliente
- Servidor
- Entrada / Saída
- Salvar XML
- Carregar XML
- Gerar SQL
- Parâmetros do Servidor:
- Salvar
- Carregar
- Listar itens
- Importar do BD
- Digite o nome o qual seu design foi salvo:
- Digite o nome com qual seu design será salvo:
- Digite o nome da base de dados à ser importada:
- Resposta do servidor
- Salvo
- Não Encontrado
- Erro Interno do Servidor
- Não Implementado
- Serviço Indisponível
-
-
- Erro de XML
- Documentação
-
diff --git a/locale/ro.xml b/locale/ro.xml
index 816d9fb..0570f77 100644
--- a/locale/ro.xml
+++ b/locale/ro.xml
@@ -1,98 +1,98 @@
-
- Adauga tabela
- Editeaza tabela
- Sterge tabela
- Sterge tabelele
- Aliniaza tabelele
- Sterge tabelele
- Sterge toate tabelele
- (nume tabela)
- plaseaza tabela
- Nume
- Comentariu
-
-
- Adauga coloana
- Editeaza coloana
- Sterge coloana
- Sus
- Jos
- coloana noua
- Creaza FK
- alege destinatie
- Conexiune FK
- alege destinatie
- Sterge FK
- Sterge tabela
- Sterge coloana
+
+ Adauga tabela
+ Editeaza tabela
+ Sterge tabela
+ Sterge tabelele
+ Aliniaza tabelele
+ Sterge tabelele
+ Sterge toate tabelele
+ (nume tabela)
+ plaseaza tabela
+ Nume
+ Comentariu
+
+
+ Adauga coloana
+ Editeaza coloana
+ Sterge coloana
+ Sus
+ Jos
+ coloana noua
+ Creaza FK
+ alege destinatie
+ Conexiune FK
+ alege destinatie
+ Sterge FK
+ Sterge tabela
+ Sterge coloana
+
+
+ Nume
+ Tip
+ Dimensiune
+ Valoare default
+ NOT NULL
+ NULL
+ Auto increment
+ Editare comentariu
+ Introduceti comentariul pentru aceasta coloana:
+
+
+ OK
+ Anuleaza
+ Asteptati va rog...
+ Optiuni
+ Limbaj
+ Baza de date pentru design
+ Anumite optiuni devin active numai dupa o reincarcare completa a paginii. Cookies trebuie sa fie activate pentru browser.
+ Distanta automata intre tabele
+ In pixeli, 0 = dezactiveaza asezarea automata
+ Modelul pentru nume de Foreign Keys
+ %T = Tabela primara, %R = Primary key, %t = Tabela cu Foreign key
+ Ascunde conexiunile la mutarea tabelei?
+ Deseneaza folosind "smooth connectors" (daca browserul suporta)?
+ Stil
+
+
+
+ Keys / Indexes
+ Keys / Indexes in tabela "%s"
+ Tip:
+ Nume:
+ Campuri selectate
+ Campuri disponibile
+ Editeaza
+ Adauga
+ Sterge
+
+
+ Salveaza / Incarca
+ Introduceti codul XML si re-incercati.
+ Client
+ Server
+ Input / Output
+ Genereaza XML
+ Incarca din XML
+ Genereaza SQL
+ Server backend:
+ Salveaza
+ Incarca
+ Lista de salvari
+ Import tabele din baza de date
+ Introduceti numele sub care a fost salvat design-ul:
+ Introduceti numele sub care va fi salvat design-ul:
+ Introduceti numele bazei de date care va fi importata:
+ Server response
+ Salvare efectuata
+ Not Found
+ Internal Server Error
+ Not Implemented
+ Service Unavailable
+
+
+ Eroare XML
+ Documentatie
-
- Nume
- Tip
- Dimensiune
- Valoare default
- NOT NULL
- NULL
- Auto increment
- Editare comentariu
- Introduceti comentariul pentru aceasta coloana:
-
-
- OK
- Anuleaza
- Asteptati va rog...
- Optiuni
- Limbaj
- Baza de date pentru design
- Anumite optiuni devin active numai dupa o reincarcare completa a paginii. Cookies trebuie sa fie activate pentru browser.
- Distanta automata intre tabele
- In pixeli, 0 = dezactiveaza asezarea automata
- Modelul pentru nume de Foreign Keys
- %T = Tabela primara, %R = Primary key, %t = Tabela cu Foreign key
- Ascunde conexiunile la mutarea tabelei?
- Deseneaza folosind "smooth connectors" (daca browserul suporta)?
- Stil
-
-
-
- Keys / Indexes
- Keys / Indexes in tabela "%s"
- Tip:
- Nume:
- Campuri selectate
- Campuri disponibile
- Editeaza
- Adauga
- Sterge
-
-
- Salveaza / Incarca
- Introduceti codul XML si re-incercati.
- Client
- Server
- Input / Output
- Genereaza XML
- Incarca din XML
- Genereaza SQL
- Server backend:
- Salveaza
- Incarca
- Lista de salvari
- Import tabele din baza de date
- Introduceti numele sub care a fost salvat design-ul:
- Introduceti numele sub care va fi salvat design-ul:
- Introduceti numele bazei de date care va fi importata:
- Server response
- Salvare efectuata
- Not Found
- Internal Server Error
- Not Implemented
- Service Unavailable
-
-
- Eroare XML
- Documentatie
-
diff --git a/locale/ru.xml b/locale/ru.xml
index c185d20..c4d7f50 100644
--- a/locale/ru.xml
+++ b/locale/ru.xml
@@ -1,106 +1,106 @@
-
- Добавить таблицу
- Редактировать таблицу
- Удалить таблицу
- Удалить таблицы
- Выровнять таблицы
- Очистить таблицы
- Действительно удалить все таблицы
- новая таблица
- расположите таблицу
- Имя
- Коментарий
+
+ Добавить таблицу
+ Редактировать таблицу
+ Удалить таблицу
+ Удалить таблицы
+ Выровнять таблицы
+ Очистить таблицы
+ Действительно удалить все таблицы
+ новая таблица
+ расположите таблицу
+ Имя
+ Коментарий
-
- Добавить поле
- Редактировать поле
- Удалить поле
- Вверх
- Вниз
- новое поле
- Создать внешний ключ
- щелкните по целевой таблице
- Присоединить внешний ключ
- щёлкните по целевой таблице
- Удалить внешний ключ
- Действительно удалить таблицу
- Действительно удалить поле
+
+ Добавить поле
+ Редактировать поле
+ Удалить поле
+ Вверх
+ Вниз
+ новое поле
+ Создать внешний ключ
+ щелкните по целевой таблице
+ Присоединить внешний ключ
+ щёлкните по целевой таблице
+ Удалить внешний ключ
+ Действительно удалить таблицу
+ Действительно удалить поле
-
- Имя
- Тип
- Размер
- По умолчанию
- NOT NULL
- NULL
- Автоинкремент
- Изменить коментарий
- Введите коментарий для этого поля
+
+ Имя
+ Тип
+ Размер
+ По умолчанию
+ NOT NULL
+ NULL
+ Автоинкремент
+ Изменить коментарий
+ Введите коментарий для этого поля
-
- OK
- Отменить
- Пожалуйста подождите...
- Опции
- Язык
- База данных для новых схем
- Некоторые опции заработают только после полной перезагрузки страницы. Cookie должны быть включены.
- Шаг при перемещении таблицы
- В пикселях, 0 = отключить
- Шаблон для имён внешних ключей
- %T = первичная таблица, %R = первичный ключ, %t = внешняя таблица
- Прятать связи при перетаскивании таблиц?
- Рисовать сглаженные связи (если поддерживается браузером)?
- Показывать размеры полей таблиц?
- Показывать типы данных полей таблиц?
- Стиль
+
+ OK
+ Отменить
+ Пожалуйста подождите...
+ Опции
+ Язык
+ База данных для новых схем
+ Некоторые опции заработают только после полной перезагрузки страницы. Cookie должны быть включены.
+ Шаг при перемещении таблицы
+ В пикселях, 0 = отключить
+ Шаблон для имён внешних ключей
+ %T = первичная таблица, %R = первичный ключ, %t = внешняя таблица
+ Прятать связи при перетаскивании таблиц?
+ Рисовать сглаженные связи (если поддерживается браузером)?
+ Показывать размеры полей таблиц?
+ Показывать типы данных полей таблиц?
+ Стиль
-
- Ключи
- Ключи в таблице "%s"
- Тип:
- Имя:
- Поля в ключе
- Доступные поля
- Редактировать ключ
- Добавить ключ
- Удалить ключ
+
+ Ключи
+ Ключи в таблице "%s"
+ Тип:
+ Имя:
+ Поля в ключе
+ Доступные поля
+ Редактировать ключ
+ Добавить ключ
+ Удалить ключ
-
- Сохранить / Загрузить
- Пожалуйста, вставьте XML данные в поле ниже и попробуйте ещё раз.
- Клиент
- Сервер
- Ввод / Вывод
- Сохранить XML
- Загрузить XML
- Сохранить в браузере
- Загрузить из браузера
- Получить список схем из браузера
- Сохранить в Dropbox
- Загрузить из Dropbox
- Получить список из Dropbox
- Генерировать SQL
- Серверные технологии:
- Сохранить
- Быстрое сохранение
- Загрузить
- Получить список схем
- Импортировать из БД
- Введите ключевое слово под которым сохранена ваша схема:
- Введите ключевое слово под которым будет сохранена ваша схема:
- Введите имя импортируемой базы данных:
- Ответ сервера
- Сохранено
- Не найдено
- Внутренняя ошибка сервера
- Не реализовано
- Служба недоступна
+
+ Сохранить / Загрузить
+ Пожалуйста, вставьте XML данные в поле ниже и попробуйте ещё раз.
+ Клиент
+ Сервер
+ Ввод / Вывод
+ Сохранить XML
+ Загрузить XML
+ Сохранить в браузере
+ Загрузить из браузера
+ Получить список схем из браузера
+ Сохранить в Dropbox
+ Загрузить из Dropbox
+ Получить список из Dropbox
+ Генерировать SQL
+ Серверные технологии:
+ Сохранить
+ Быстрое сохранение
+ Загрузить
+ Получить список схем
+ Импортировать из БД
+ Введите ключевое слово под которым сохранена ваша схема:
+ Введите ключевое слово под которым будет сохранена ваша схема:
+ Введите имя импортируемой базы данных:
+ Ответ сервера
+ Сохранено
+ Не найдено
+ Внутренняя ошибка сервера
+ Не реализовано
+ Служба недоступна
-
- Ошибка XML
- Документация
+
+ Ошибка XML
+ Документация
diff --git a/locale/sv.xml b/locale/sv.xml
index 2f9c93e..9667cd5 100644
--- a/locale/sv.xml
+++ b/locale/sv.xml
@@ -1,97 +1,97 @@
-
- Skapa tabell
- Redigera tabell
- Ta bort tabell
- Ta bort tabeller
- Räta upp tabeller
- Ta bort alla tabeller
- Vill du verkligen ta bort alla tabeller
- Ny tabell
- Placera tabell
- Namn
- Kommentar
-
-
- Lägg till fält
- Redigera fält
- Ta bort field
- Upp
- Ner
- Ny field
- Skapa främmande nyckel
- Klicka på motsvarande tabell
- Anslut främmande nycke
- Välj motsvarande rad
- Ta bort främmande nyckel
- Vill du verkligen ta bort denna tabell?
- Vill du verkligen ta bort detta fält?
+
+ Skapa tabell
+ Redigera tabell
+ Ta bort tabell
+ Ta bort tabeller
+ Räta upp tabeller
+ Ta bort alla tabeller
+ Vill du verkligen ta bort alla tabeller
+ Ny tabell
+ Placera tabell
+ Namn
+ Kommentar
+
+
+ Lägg till fält
+ Redigera fält
+ Ta bort field
+ Upp
+ Ner
+ Ny field
+ Skapa främmande nyckel
+ Klicka på motsvarande tabell
+ Anslut främmande nycke
+ Välj motsvarande rad
+ Ta bort främmande nyckel
+ Vill du verkligen ta bort denna tabell?
+ Vill du verkligen ta bort detta fält?
+
+
+ Namn
+ Typ
+ Storlek
+ Standard
+ NOT NULL
+ NULL
+ Autoincrement
+ Redigera kommentar
+ Ange kommentar för detta fält
+
+
+ OK
+ Avbryt
+ Var god vänta...
+ Alternativ
+ Språk
+ Databas for nya designer
+ Vissa alternativ ändras bara efter att du laddat om sidan. Cookies krävs för att alternativ ska fungera.
+ Tabellers fästavstånd
+ Ange pixlar, 0 = stäng av fästning
+ Mönster för främmande namn
+ %T = primär tabell, %R = primär nycke, %t = främmande tabell
+ Dölj anslutningar när du drar i tabellen?
+ Rita mjuka anslutningar (om din webbläsare stöder det)?
+ Stil
+
+
+ Nycklar
+ Nycklar i tabellen "%s"
+ Typ:
+ Namn:
+ Fields in nyckel
+ Available fields
+ Edit nyckel
+ Add key
+ Ta bort key
+
+
+ Spara / Ladda
+ Vänligen klistra in XML i textrutan nedan och försök igen.
+ Klient
+ Server
+ Input / Output
+ Spara XML
+ Ladda XML
+ Generera SQL
+ Server backend:
+ Spara
+ Ladda
+ Lista innehåll
+ Importera från DB
+ Ange vilket nyckelord din design sparades under:
+ Ange vilket nyckelord din design ska sparas under:
+ Ange namnet på databasen som ska importeras:
+ Serversvar
+ Sparad
+ Ej funnen
+ Intert serverfel
+ Ej implementerat
+ Service Unavailable
+
+
+ XML error
+ Dokumentation
-
- Namn
- Typ
- Storlek
- Standard
- NOT NULL
- NULL
- Autoincrement
- Redigera kommentar
- Ange kommentar för detta fält
-
-
- OK
- Avbryt
- Var god vänta...
- Alternativ
- Språk
- Databas for nya designer
- Vissa alternativ ändras bara efter att du laddat om sidan. Cookies krävs för att alternativ ska fungera.
- Tabellers fästavstånd
- Ange pixlar, 0 = stäng av fästning
- Mönster för främmande namn
- %T = primär tabell, %R = primär nycke, %t = främmande tabell
- Dölj anslutningar när du drar i tabellen?
- Rita mjuka anslutningar (om din webbläsare stöder det)?
- Stil
-
-
- Nycklar
- Nycklar i tabellen "%s"
- Typ:
- Namn:
- Fields in nyckel
- Available fields
- Edit nyckel
- Add key
- Ta bort key
-
-
- Spara / Ladda
- Vänligen klistra in XML i textrutan nedan och försök igen.
- Klient
- Server
- Input / Output
- Spara XML
- Ladda XML
- Generera SQL
- Server backend:
- Spara
- Ladda
- Lista innehåll
- Importera från DB
- Ange vilket nyckelord din design sparades under:
- Ange vilket nyckelord din design ska sparas under:
- Ange namnet på databasen som ska importeras:
- Serversvar
- Sparad
- Ej funnen
- Intert serverfel
- Ej implementerat
- Service Unavailable
-
-
- XML error
- Dokumentation
-
diff --git a/locale/tr.xml b/locale/tr.xml
index 83c8a9a..7940100 100644
--- a/locale/tr.xml
+++ b/locale/tr.xml
@@ -1,106 +1,106 @@
-
- Tablo Ekle
- Tablo Düzenle
- Tablo Sil
- Tabloları Sil
- Tabloları Hizala
- Tabloları Temizle
- Gerçekten tabloları sil
- Yeni Tablo
- Tablo Yerleşim Yeri
- Adı
- Açıklama
-
-
- Alan Ekle
- Alan Düzenle
- Alan Sil
- Yukarı
- Aşağıya
- Yeni Alan
- Foreign Key Oluştur
- Hedef Tablosuna Tıkla
- Foreign Key Bağlan
- Hedef Satırı Tıklayın
- Foreign Key Sil
- Gerçekten Tabloyu Sil
- Gerçekten Alanı Sil
+
+ Tablo Ekle
+ Tablo Düzenle
+ Tablo Sil
+ Tabloları Sil
+ Tabloları Hizala
+ Tabloları Temizle
+ Gerçekten tabloları sil
+ Yeni Tablo
+ Tablo Yerleşim Yeri
+ Adı
+ Açıklama
+
+
+ Alan Ekle
+ Alan Düzenle
+ Alan Sil
+ Yukarı
+ Aşağıya
+ Yeni Alan
+ Foreign Key Oluştur
+ Hedef Tablosuna Tıkla
+ Foreign Key Bağlan
+ Hedef Satırı Tıklayın
+ Foreign Key Sil
+ Gerçekten Tabloyu Sil
+ Gerçekten Alanı Sil
+
+
+ Name
+ Type
+ Size
+ Default
+ NOT NULL
+ NULL
+ Autoincrement
+ Yorumu düzenle
+ Bu alan için yorum girin
+
+
+ Tamam
+ İptal
+ Lütfen Bekleyiniz...
+ Ayarlar
+ Diller
+ Yeni tasarımlar için veritabanı
+ Bazı seçenekler yalnızca tam sayfa yeniden yüklendikten sonra uygulanır. Seçeneklerin çalışması için çerezlerin etkinleştirilmesi gerekir.
+ Table snap distance
+ In pixels, 0 = disable snapping
+ Pattern for foreign names
+ %T = primary table, %R = primary key, %t = foreign table
+ Tablo sürüklemesindeki bağlayıcıları gizle?
+ Draw smooth connectors (if supported by browser)?
+ Tablo tasarımında alan boyutunu gösterme?
+ Alan veri tipini tablo tasarımında göster?
+ Stil
+
+
+ Anahtarlar
+ Tablodaki tuşlar "%s"
+ Tipi:
+ Adı:
+ Anahtardaki Alanlar
+ Mevcut Alanlar
+ Anahtar Düzenle
+ Anahtar Ekle
+ Anahtar Sil
+
+
+ Kaydet / Yükle
+ Lütfen XML verilerini aşağıdaki metin alanına yapıştırın ve tekrar deneyin.
+ İstemci
+ Sunucu
+ Giriş / Çıkış
+ XML Kaydet
+ XML Yükle
+ Browser'a Kaydet
+ Browser'a Yükle
+ Browser'da Listele
+ Dropbox Kaydet
+ Dropbox Yükle
+ Dropbox Listele
+ SQL oluştur
+ Sunucu Kısmı:
+ Kaydet
+ Hızlı Kayıt
+ Yükle
+ Ürünleri Listele
+ DB'den içe aktar
+ Tasarımınızın kaydedildiği anahtar kelimeyi girin:
+ Tasarımınızın kaydedileceği anahtar kelimeyi girin:
+ Yüklenecek veritabanının adını girin:
+ Sunucu yanıtı
+ Kaydedilmiş
+ Bulunamadı
+ İç Sunucu Hatası
+ Uygulanmadı
+ Hizmet Kullanılamıyor
+
+
+ XML hatası
+ Belgeleme
-
- Name
- Type
- Size
- Default
- NOT NULL
- NULL
- Autoincrement
- Yorumu düzenle
- Bu alan için yorum girin
-
-
- Tamam
- İptal
- Lütfen Bekleyiniz...
- Ayarlar
- Diller
- Yeni tasarımlar için veritabanı
- Bazı seçenekler yalnızca tam sayfa yeniden yüklendikten sonra uygulanır. Seçeneklerin çalışması için çerezlerin etkinleştirilmesi gerekir.
- Table snap distance
- In pixels, 0 = disable snapping
- Pattern for foreign names
- %T = primary table, %R = primary key, %t = foreign table
- Tablo sürüklemesindeki bağlayıcıları gizle?
- Draw smooth connectors (if supported by browser)?
- Tablo tasarımında alan boyutunu gösterme?
- Alan veri tipini tablo tasarımında göster?
- Stil
-
-
- Anahtarlar
- Tablodaki tuşlar "%s"
- Tipi:
- Adı:
- Anahtardaki Alanlar
- Mevcut Alanlar
- Anahtar Düzenle
- Anahtar Ekle
- Anahtar Sil
-
-
- Kaydet / Yükle
- Lütfen XML verilerini aşağıdaki metin alanına yapıştırın ve tekrar deneyin.
- İstemci
- Sunucu
- Giriş / Çıkış
- XML Kaydet
- XML Yükle
- Browser'a Kaydet
- Browser'a Yükle
- Browser'da Listele
- Dropbox Kaydet
- Dropbox Yükle
- Dropbox Listele
- SQL oluştur
- Sunucu Kısmı:
- Kaydet
- Hızlı Kayıt
- Yükle
- Ürünleri Listele
- DB'den içe aktar
- Tasarımınızın kaydedildiği anahtar kelimeyi girin:
- Tasarımınızın kaydedileceği anahtar kelimeyi girin:
- Yüklenecek veritabanının adını girin:
- Sunucu yanıtı
- Kaydedilmiş
- Bulunamadı
- İç Sunucu Hatası
- Uygulanmadı
- Hizmet Kullanılamıyor
-
-
- XML hatası
- Belgeleme
-
diff --git a/locale/zh.xml b/locale/zh.xml
index be2dffd..b850ada 100644
--- a/locale/zh.xml
+++ b/locale/zh.xml
@@ -1,101 +1,101 @@
-
- 添加表
- 修改表
- 移除表
- 重组表格位置
- 删除所有表
- 真的要删除所有表么
- 表名称
- 放置表格……
- 表名
- 注释
-
-
- 添加列
- 修改列
- 删除列
- 上移
- 下移
- newfield
- 创建外连表格列
- 点击选择目标表
- 连接到外部列
- 点击选择目标列
- 断开外部连接
- 真的删除表么
- 真的删除列么
+
+ 添加表
+ 修改表
+ 移除表
+ 重组表格位置
+ 删除所有表
+ 真的要删除所有表么
+ 表名称
+ 放置表格……
+ 表名
+ 注释
-
- 列名
- 类型
- 大小
- 默认
- 不能为空
- 可留空
- 自增长
- 改备注
- 输入此列备注
-
-
- 搞定
- 不要了
- 请等待...
- 选项设置
- 语言
- 新建的数据库设为:
- 有些属性需要刷新页面后才能起作用,所以,浏览器的Cookies必须启用。
- 表格捕捉距离
- 像素, 0 = 关闭捕捉
- 外连名称规则
- %T = 主表, %R = 主键, %t = 外连表
- 在表格移动时不显示连接?
- 绘制平滑的连接 (如果浏览器支持)?
- 设计表格时显示字段大小?
- 设计表格时显示字段数据类型?
- 样式
-
-
- 设置表键
- 在 "%s" 表中可用列属性
- 类型:
- 属性名称:
- 此属性中的列
- 可用列
- 修改属性
- 添加属性
- 删除属性
-
-
+
+ 添加列
+ 修改列
+ 删除列
+ 上移
+ 下移
+ newfield
+ 创建外连表格列
+ 点击选择目标表
+ 连接到外部列
+ 点击选择目标列
+ 断开外部连接
+ 真的删除表么
+ 真的删除列么
+
+
+ 列名
+ 类型
+ 大小
+ 默认
+ 不能为空
+ 可留空
+ 自增长
+ 改备注
+ 输入此列备注
+
+
+ 搞定
+ 不要了
+ 请等待...
+ 选项设置
+ 语言
+ 新建的数据库设为:
+ 有些属性需要刷新页面后才能起作用,所以,浏览器的Cookies必须启用。
+ 表格捕捉距离
+ 像素, 0 = 关闭捕捉
+ 外连名称规则
+ %T = 主表, %R = 主键, %t = 外连表
+ 在表格移动时不显示连接?
+ 绘制平滑的连接 (如果浏览器支持)?
+ 设计表格时显示字段大小?
+ 设计表格时显示字段数据类型?
+ 样式
+
+
+ 设置表键
+ 在 "%s" 表中可用列属性
+ 类型:
+ 属性名称:
+ 此属性中的列
+ 可用列
+ 修改属性
+ 添加属性
+ 删除属性
+
+
登录
注销
- 保存 / 载入
- 请先粘帖一个XML文件内容到文本框中,然后再导入。
- 客户端
- 服务端
- 输入 / 输出
- 保存为XML
- 载入XML
- 传化为数据库脚本
- 服务后台:
- 保存
- 载入
- 显示清单
- 快速保存
- 从数据库中导入
- 输入你所保存的名字:
- 输入所要保存的名字:
- 输入所要导入的数据库名称:
- 服务器反馈
- 已存
- 找不到
- 网络服务错误
- 未执行
- 服务暂不可用
-
-
- XML 错误
- 文档
-
+ 保存 / 载入
+ 请先粘帖一个XML文件内容到文本框中,然后再导入。
+ 客户端
+ 服务端
+ 输入 / 输出
+ 保存为XML
+ 载入XML
+ 传化为数据库脚本
+ 服务后台:
+ 保存
+ 载入
+ 显示清单
+ 快速保存
+ 从数据库中导入
+ 输入你所保存的名字:
+ 输入所要保存的名字:
+ 输入所要导入的数据库名称:
+ 服务器反馈
+ 已存
+ 找不到
+ 网络服务错误
+ 未执行
+ 服务暂不可用
+
+
+ XML 错误
+ 文档
+
diff --git a/styles/ie6.css b/styles/ie6.css
index 2e56ff6..bed1040 100644
--- a/styles/ie6.css
+++ b/styles/ie6.css
@@ -1,62 +1,62 @@
-v\:* {
- behavior:url(#default#VML);
+v\:* {
+ behavior: url(#default#VML);
}
#bar {
- position: absolute;
- right: auto;
- left: expression(eval(document.documentElement.scrollLeft)+document.documentElement.clientWidth-eval(this.offsetWidth));
- top: expression(eval(document.documentElement.scrollTop));
+ position: absolute;
+ right: auto;
+ left: expression(eval(document.documentElement.scrollLeft)+document.documentElement.clientWidth-eval(this.offsetWidth));
+ top: expression(eval(document.documentElement.scrollTop));
}
#bar .shadow-corner {
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/bar_corner.png',sizingMethod='crop');
- overflow: hidden;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/bar_corner.png', sizingMethod='crop');
+ overflow: hidden;
}
#bar .shadow-left {
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/bar_left.png',sizingMethod='crop');
- height: expression(eval(this.parentNode.offsetHeight));
- overflow: hidden;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/bar_left.png', sizingMethod='crop');
+ height: expression(eval(this.parentNode.offsetHeight));
+ overflow: hidden;
}
#bar .shadow-bottom {
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/bar_bottom.png',sizingMethod='crop');
- width: expression(eval(this.parentNode.offsetWidth));
- overflow: hidden;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/bar_bottom.png', sizingMethod='crop');
+ width: expression(eval(this.parentNode.offsetWidth));
+ overflow: hidden;
}
.table .shadow-corner {
- background-image: none;
+ background-image: none;
}
.table .shadow-right {
- background-image: none;
+ background-image: none;
}
.table .shadow-bottom {
- background-image: none;
+ background-image: none;
}
#minimap {
- filter: alpha(opacity=90);
- position: absolute;
- right: auto;
- left: expression(eval(document.documentElement.scrollLeft)+document.documentElement.clientWidth-eval(this.offsetWidth));
- top: expression(eval(document.documentElement.scrollTop)+document.documentElement.clientHeight-eval(this.offsetHeight));
+ filter: alpha(opacity=90);
+ position: absolute;
+ right: auto;
+ left: expression(eval(document.documentElement.scrollLeft)+document.documentElement.clientWidth-eval(this.offsetWidth));
+ top: expression(eval(document.documentElement.scrollTop)+document.documentElement.clientHeight-eval(this.offsetHeight));
}
#background {
- filter: alpha(opacity=50);
+ filter: alpha(opacity=50);
}
#keys, #opts {
- width: expression(eval(document.documentElement.clientWidth)/2);
+ width: expression(eval(document.documentElement.clientWidth)/2);
}
#rubberband {
- filter: alpha(opacity=50);
+ filter: alpha(opacity=50);
}
\ No newline at end of file
diff --git a/styles/ie7.css b/styles/ie7.css
index 876bba7..7757010 100644
--- a/styles/ie7.css
+++ b/styles/ie7.css
@@ -1,19 +1,19 @@
-v\:* {
- behavior:url(#default#VML);
+v\:* {
+ behavior: url(#default#VML);
}
#minimap {
- filter: alpha(opacity=90);
+ filter: alpha(opacity=90);
}
#background {
- filter: alpha(opacity=50);
+ filter: alpha(opacity=50);
}
#keys, #opts {
- width: expression(eval(document.documentElement.clientWidth)/2);
+ width: expression(eval(document.documentElement.clientWidth)/2);
}
#rubberband {
- filter: alpha(opacity=50);
-}
+ filter: alpha(opacity=50);
+}
\ No newline at end of file
diff --git a/styles/material-inspired.css b/styles/material-inspired.css
index 992876c..69437c2 100644
--- a/styles/material-inspired.css
+++ b/styles/material-inspired.css
@@ -1,595 +1,595 @@
/* Generic styles */
body {
- font-family: verdana, sans-serif;
- font-size: 12px;
- padding: 0px;
- margin: 0px;
- background: #FFF;
- font-weight: 400;
- line-height: 1.429;
- color: rgba(0, 0, 0, .87);
- visibility: hidden;
- -moz-user-select: -moz-none;
- -khtml-user-select: none;
- -webkit-user-select: none;
- -ms-user-select: none;
- user-select: none;
+ font-family: verdana, sans-serif;
+ font-size: 12px;
+ padding: 0px;
+ margin: 0px;
+ background: #FFF;
+ font-weight: 400;
+ line-height: 1.429;
+ color: rgba(0, 0, 0, .87);
+ visibility: hidden;
+ -moz-user-select: -moz-none;
+ -khtml-user-select: none;
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
}
input[type=button] {
- font-family: verdana, sans-serif;
- -webkit-appearance: button;
- cursor: pointer;
- font-weight: 500;
- font-size: 14px;
- line-height: 18px;
- text-transform: uppercase;
- color: rgba(0, 0, 0, .87);
- background-color: #FFF;
- display: inline-block;
- height: 36px;
- padding: 0 26px;
- margin-top: 6px;
- margin-bottom: 6px;
- border: none;
- border-radius: 2px;
- cursor: pointer;
- -ms-touch-action: manipulation;
- touch-action: manipulation;
- background-image: none;
- text-align: center;
- line-height: 36px;
- vertical-align: middle;
- white-space: nowrap;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- font-size: 14px;
- letter-spacing: .03em;
- position: relative;
- overflow: hidden;
+ font-family: verdana, sans-serif;
+ -webkit-appearance: button;
+ cursor: pointer;
+ font-weight: 500;
+ font-size: 14px;
+ line-height: 18px;
+ text-transform: uppercase;
+ color: rgba(0, 0, 0, .87);
+ background-color: #FFF;
+ display: inline-block;
+ height: 36px;
+ padding: 0 26px;
+ margin-top: 6px;
+ margin-bottom: 6px;
+ border: none;
+ border-radius: 2px;
+ cursor: pointer;
+ -ms-touch-action: manipulation;
+ touch-action: manipulation;
+ background-image: none;
+ text-align: center;
+ line-height: 36px;
+ vertical-align: middle;
+ white-space: nowrap;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ font-size: 14px;
+ letter-spacing: .03em;
+ position: relative;
+ overflow: hidden;
}
input[type=text] {
- font-family: verdana, sans-serif;
- height: 32px;
- display: block;
- background-color: transparent;
- color: rgba(0, 0, 0, .87);
- border: none;
- border-bottom-color: currentcolor;
- border-bottom-style: none;
- border-bottom-width: medium;
- border-bottom: 1px solid rgba(0, 0, 0, .26);
- outline: 0;
- width: 100%;
- font-size: 16px;
- padding: 0;
- box-shadow: none;
- border-radius: 0;
- background-image: none;
+ font-family: verdana, sans-serif;
+ height: 32px;
+ display: block;
+ background-color: transparent;
+ color: rgba(0, 0, 0, .87);
+ border: none;
+ border-bottom-color: currentcolor;
+ border-bottom-style: none;
+ border-bottom-width: medium;
+ border-bottom: 1px solid rgba(0, 0, 0, .26);
+ outline: 0;
+ width: 100%;
+ font-size: 16px;
+ padding: 0;
+ box-shadow: none;
+ border-radius: 0;
+ background-image: none;
}
textarea {
- min-width: 500px;
- font-family: verdana, sans-serif;
- min-height: 64px;
- display: block;
- background-color: transparent;
- color: rgba(0, 0, 0, .87);
- border: none;
- border-bottom-color: currentcolor;
- border-bottom-style: none;
- border-bottom-width: medium;
- border-bottom: 1px solid rgba(0, 0, 0, .26);
- outline: 0;
- width: 100%;
- font-size: 16px;
- padding: 0;
- box-shadow: none;
- border-radius: 0;
- background-image: none;
+ min-width: 500px;
+ font-family: verdana, sans-serif;
+ min-height: 64px;
+ display: block;
+ background-color: transparent;
+ color: rgba(0, 0, 0, .87);
+ border: none;
+ border-bottom-color: currentcolor;
+ border-bottom-style: none;
+ border-bottom-width: medium;
+ border-bottom: 1px solid rgba(0, 0, 0, .26);
+ outline: 0;
+ width: 100%;
+ font-size: 16px;
+ padding: 0;
+ box-shadow: none;
+ border-radius: 0;
+ background-image: none;
}
select {
- font-family: verdana, sans-serif;
- display: block;
- height: 32px;
- width: 100%;
- appearance: none;
- -webkit-appearance: none;
- -moz-appearance: none;
- outline: 0;
- border: none;
- border-bottom-color: currentcolor;
- border-bottom-style: none;
- border-bottom-width: medium;
- border-bottom: 1px solid rgba(0, 0, 0, .26);
- border-radius: 0;
- box-shadow: none;
- background-color: transparent;
- background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNiIgd2lkdGg9IjEwIj48cG9seWdvbiBwb2ludHM9IjAsMCAxMCwwIDUsNiIgc3R5bGU9ImZpbGw6cmdiYSgwLDAsMCwuMjQpOyIvPjwvc3ZnPg==);
- background-repeat: no-repeat;
- background-position: right center;
- cursor: pointer;
- color: rgba(0, 0, 0, .87);
- font-size: 16px;
- padding: 0 25px 0 0;
+ font-family: verdana, sans-serif;
+ display: block;
+ height: 32px;
+ width: 100%;
+ appearance: none;
+ -webkit-appearance: none;
+ -moz-appearance: none;
+ outline: 0;
+ border: none;
+ border-bottom-color: currentcolor;
+ border-bottom-style: none;
+ border-bottom-width: medium;
+ border-bottom: 1px solid rgba(0, 0, 0, .26);
+ border-radius: 0;
+ box-shadow: none;
+ background-color: transparent;
+ background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNiIgd2lkdGg9IjEwIj48cG9seWdvbiBwb2ludHM9IjAsMCAxMCwwIDUsNiIgc3R5bGU9ImZpbGw6cmdiYSgwLDAsMCwuMjQpOyIvPjwvc3ZnPg==);
+ background-repeat: no-repeat;
+ background-position: right center;
+ cursor: pointer;
+ color: rgba(0, 0, 0, .87);
+ font-size: 16px;
+ padding: 0 25px 0 0;
}
textarea:focus, select:focus, input[type=text]:focus {
- border-color: #2196F3;
- border-width: 2px;
+ border-color: #2196F3;
+ border-width: 2px;
}
select optgroup {
- color: rgba(0, 0, 0, .54);
- font-size: .9em;
- background: white !important;
- font-style: normal;
+ color: rgba(0, 0, 0, .54);
+ font-size: .9em;
+ background: white !important;
+ font-style: normal;
}
legend {
- text-align: left;
- display: block;
- width: 100%;
- padding: 0;
- margin-bottom: 10px;
- font-size: 21px;
- color: rgba(0, 0, 0, .87);
- line-height: inherit;
+ text-align: left;
+ display: block;
+ width: 100%;
+ padding: 0;
+ margin-bottom: 10px;
+ font-size: 21px;
+ color: rgba(0, 0, 0, .87);
+ line-height: inherit;
}
fieldset {
- border: none;
- padding: 0px;
- margin: 0px 0px 10px 0px;
+ border: none;
+ padding: 0px;
+ margin: 0px 0px 10px 0px;
}
label {
- opacity: 0.7;
+ opacity: 0.7;
}
label, input, select {
- vertical-align: middle;
+ vertical-align: middle;
}
/* Area */
#area {
- position: relative;
- background: transparent url(../images/back_dim.png);
- width: 3000px;
- height: 3000px;
- opacity: 0.7;
+ position: relative;
+ background: transparent url(../images/back_dim.png);
+ width: 3000px;
+ height: 3000px;
+ opacity: 0.7;
}
#rubberband {
- position: absolute;
- border: .2px solid #FF4081;
- background: rgba(255, 64, 129, 0.5);
- opacity: 0.5;
- visibility: hidden;
+ position: absolute;
+ border: .2px solid #FF4081;
+ background: rgba(255, 64, 129, 0.5);
+ opacity: 0.5;
+ visibility: hidden;
}
#background {
- position: absolute;
- background-color: #000;
- opacity: 0.5;
- visibility: hidden;
+ position: absolute;
+ background-color: #000;
+ opacity: 0.5;
+ visibility: hidden;
}
/* Main menu */
#controls {
- position: absolute;
- left: 0px;
- top: 0px;
+ position: absolute;
+ left: 0px;
+ top: 0px;
}
#bar {
- position: fixed;
- transition: all .2s ease-in-out;
- right: 4px;
- top: 0px;
- width: 190px;
- margin: 0px 0px 20px 0px;
- padding: 0px;
- background-color: rgb(255, 255, 255);
- text-align: center;
- border-radius: 0px;
- box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px 0px, rgba(0, 0, 0, 0.23) 0px 3px 6px 0px;
- box-sizing: border-box;
- max-height: 600px;
+ position: fixed;
+ transition: all .2s ease-in-out;
+ right: 4px;
+ top: 0px;
+ width: 190px;
+ margin: 0px 0px 20px 0px;
+ padding: 0px;
+ background-color: rgb(255, 255, 255);
+ text-align: center;
+ border-radius: 0px;
+ box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px 0px, rgba(0, 0, 0, 0.23) 0px 3px 6px 0px;
+ box-sizing: border-box;
+ max-height: 600px;
}
#bar input {
- transition: all .2s ease-in-out;
- border-radius: 2px;
- width: 100%;
- height: auto;
- margin: auto auto 3px auto;
- padding: 2px;
- line-height: 1.3;
- opacity: .7;
- text-transform: none;
+ transition: all .2s ease-in-out;
+ border-radius: 2px;
+ width: 100%;
+ height: auto;
+ margin: auto auto 3px auto;
+ padding: 2px;
+ line-height: 1.3;
+ opacity: .7;
+ text-transform: none;
}
#bar input:hover {
- background-color: #de2665;
- color: #fff;
+ background-color: #de2665;
+ color: #fff;
}
#bar input:disabled {
- cursor: not-allowed;
- pointer-events: none;
- opacity: .4;
- box-shadow: none;
+ cursor: not-allowed;
+ pointer-events: none;
+ opacity: .4;
+ box-shadow: none;
}
#bar input.small {
- width: 45%;
- display: inline;
+ width: 45%;
+ display: inline;
}
#bar hr {
- margin: 8px;
- background-color: #ddd;
- height: 1px;
- border: none;
+ margin: 8px;
+ background-color: #ddd;
+ height: 1px;
+ border: none;
}
#toggle {
- margin-bottom: 5px;
- cursor: pointer;
- transition: all .2s ease-in-out;
- border-radius: 2px;
- background-position: center;
- background-repeat: no-repeat;
- height: 22px;
- opacity: .7;
+ margin-bottom: 5px;
+ cursor: pointer;
+ transition: all .2s ease-in-out;
+ border-radius: 2px;
+ background-position: center;
+ background-repeat: no-repeat;
+ height: 22px;
+ opacity: .7;
}
#toggle:hover {
- background-color: #de2665;
+ background-color: #de2665;
}
#toggle.on {
- background-image: url(../images/up_2_black.png);
+ background-image: url(../images/up_2_black.png);
}
#toggle.on:hover {
- background-image: url(../images/up_2_white.png);
+ background-image: url(../images/up_2_white.png);
}
#toggle.off {
- background-image: url(../images/down_2_black.png);
+ background-image: url(../images/down_2_black.png);
}
#toggle.off:hover {
- background-image: url(../images/down_2_white.png);
+ background-image: url(../images/down_2_white.png);
}
/* Minimap */
#minimap {
- position: fixed;
- width: 100px;
- height: 100px;
- right: 5px;
- bottom: 5px;
- background-color: #fff;
- opacity: 0.9;
- overflow: hidden;
- box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
+ position: fixed;
+ width: 100px;
+ height: 100px;
+ right: 5px;
+ bottom: 5px;
+ background-color: #fff;
+ opacity: 0.9;
+ overflow: hidden;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
}
.mini {
- position: absolute;
- background-color: #ff8fb5;
- font-size: 1px;
- line-height: 1px;
+ position: absolute;
+ background-color: #ff8fb5;
+ font-size: 1px;
+ line-height: 1px;
}
.mini_selected {
- background-color: #de2665;
+ background-color: #de2665;
}
.port {
- position: absolute;
- transition: border 0.2s ease-in-out;
- border: 2px solid rgba(0, 0, 0, .3);
+ position: absolute;
+ transition: border 0.2s ease-in-out;
+ border: 2px solid rgba(0, 0, 0, .3);
}
#minimap:hover .port {
- border: 2px solid rgba(0, 0, 0, .8);
+ border: 2px solid rgba(0, 0, 0, .8);
}
/* Tables */
.table {
- position: absolute;
- padding: 0 6px 6px 6px;
- cursor: pointer;
- margin-bottom: 20px;
- border-radius: 0;
- background-color: #FFF;
- box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
+ position: absolute;
+ padding: 0 6px 6px 6px;
+ cursor: pointer;
+ margin-bottom: 20px;
+ border-radius: 0;
+ background-color: #FFF;
+ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
}
.table table {
- border-collapse: collapse;
+ border-collapse: collapse;
}
.table.selected {
- border: 1px solid #FF4081;
+ border: 1px solid #FF4081;
}
.table thead .title {
- text-align: center;
- padding: 6px 30px;
+ text-align: center;
+ padding: 6px 30px;
}
.table tbody {
- border-right: 4px solid transparent;
- background: none !important;
+ border-right: 4px solid transparent;
+ background: none !important;
}
.table tbody td {
- padding: 3px;
- position: relative;
+ padding: 3px;
+ position: relative;
}
.table tbody.expanded {
- border-right: 6px solid rgba(0, 0, 0, .12);
- background-color: whitesmoke !important;
+ border-right: 6px solid rgba(0, 0, 0, .12);
+ background-color: whitesmoke !important;
}
.table tbody .selected {
- font-weight: bold;
- color: #f00;
- display: inline-block;
+ font-weight: bold;
+ color: #f00;
+ display: inline-block;
}
.table tbody .title {
- display: inline-block;
+ display: inline-block;
}
.table thead td[title]:not([title=""]):after {
- content: '';
- position: absolute;
- top: 0;
- right: 0;
- border-color: rgb(125, 178, 221);
- border-style: solid;
- border-width: 5px;
- border-bottom-color: transparent;
- border-left-color: transparent;
+ content: '';
+ position: absolute;
+ top: 0;
+ right: 0;
+ border-color: rgb(125, 178, 221);
+ border-style: solid;
+ border-width: 5px;
+ border-bottom-color: transparent;
+ border-left-color: transparent;
}
.table tbody[title]:not(.expanded):not([title=""]) td:last-child:after {
- content: '';
- position: relative;
- border-color: rgb(125, 178, 221);
- border-style: solid;
- border-width: 6px;
- border-bottom-color: transparent;
- border-left-color: transparent;
- border-top-color: transparent;
- float: right;
+ content: '';
+ position: relative;
+ border-color: rgb(125, 178, 221);
+ border-style: solid;
+ border-width: 6px;
+ border-bottom-color: transparent;
+ border-left-color: transparent;
+ border-top-color: transparent;
+ float: right;
}
.primary {
- font-weight: bold;
+ font-weight: bold;
}
.key {
- font-style: italic;
+ font-style: italic;
}
.primary.key {
- font-style: normal;
+ font-style: normal;
}
.typehint {
- font-size: 80%;
- color: gray;
+ font-size: 80%;
+ color: gray;
}
.comment {
- font-size: 80%;
- font-weight: normal;
- margin-right: 0.5em;
+ font-size: 80%;
+ font-weight: normal;
+ margin-right: 0.5em;
}
#commentbtn {
- box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
+ box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
}
.adding {
- cursor: crosshair;
+ cursor: crosshair;
}
.relation {
- overflow: hidden;
+ overflow: hidden;
}
#tablename, #tablecomment {
- margin-bottom: 10px;
+ margin-bottom: 10px;
}
/* Window */
#window {
- position: absolute;
- visibility: hidden;
- background-color: #fff;
- box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .23);
- padding: 15px;
+ position: absolute;
+ visibility: hidden;
+ background-color: #fff;
+ box-shadow: 0 10px 20px rgba(0, 0, 0, .19), 0 6px 6px rgba(0, 0, 0, .23);
+ padding: 15px;
}
#windowtitle {
- font-size: x-large;
- margin: 15px 15px 24px 15px;
- padding-left: 15px;
- padding-right: 15px;
+ font-size: x-large;
+ margin: 15px 15px 24px 15px;
+ padding-left: 15px;
+ padding-right: 15px;
}
#windowcontent {
- padding: 1em;
+ padding: 1em;
}
#windowok {
- color: #FF4081;
+ color: #FF4081;
}
#windowok, #windowcancel {
- float: right;
+ float: right;
}
#windowok:hover, #windowcancel:hover {
- background-color: #f2f2f2;
+ background-color: #f2f2f2;
}
#throbber {
- position: absolute;
- top: 2px;
- right: 3px;
+ position: absolute;
+ top: 2px;
+ right: 3px;
}
/* Save / Load */
#io {
- min-width: 860px;
+ min-width: 860px;
}
#io hr {
- visibility: hidden;
+ visibility: hidden;
}
#io table {
- width: 100%;
+ width: 100%;
}
#io input[type=button] {
- box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
+ box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
}
#io input[type=button]:active {
- background-color: #f2f2f2;
- transition: all .2s ease-out;
+ background-color: #f2f2f2;
+ transition: all .2s ease-out;
}
#io #clientsql {
- color: #FFF;
- background-color: #FF4081;
+ color: #FFF;
+ background-color: #FF4081;
}
#io #clientsql:hover {
- transition: all .2s ease-in-out;
- box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
- background-color: #ff5a92;
+ transition: all .2s ease-in-out;
+ box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
+ background-color: #ff5a92;
}
#textarea {
- width: 100%;
- height: 200px;
- font-size: small;
- font-family: "Lucida Console", Monaco, monospace;
+ width: 100%;
+ height: 200px;
+ font-size: small;
+ font-family: "Lucida Console", Monaco, monospace;
}
/* Options */
#opts {
- width: 700px;
+ width: 700px;
}
#opts td {
- padding-top: 15px;
- margin-bottom: 20px;
+ padding-top: 15px;
+ margin-bottom: 20px;
}
#opts #optionsnotice {
- opacity: 0.7;
+ opacity: 0.7;
}
#opts hr {
- background-color: #ddd;
- height: 1px;
- border: none;
- margin: 25px 0px 25px 0px;
+ background-color: #ddd;
+ height: 1px;
+ border: none;
+ margin: 25px 0px 25px 0px;
}
.small {
- font-size: 85%;
+ font-size: 85%;
}
/* Keys */
#keys {
- white-space: nowrap;
- padding: 0px 10px;
- text-align: center;
+ white-space: nowrap;
+ padding: 0px 10px;
+ text-align: center;
}
#keys hr {
- visibility: hidden;
+ visibility: hidden;
}
#keys table {
- width: 100%;
+ width: 100%;
}
#keys table td {
- width: 42%;
+ width: 42%;
}
#keys table td+td {
- width: 16%;
+ width: 16%;
}
#keys table td+td+td {
- width: 42%;
+ width: 42%;
}
#keyadd {
- margin: 15px;
- color: #FFF;
- background-color: #2196F3;
+ margin: 15px;
+ color: #FFF;
+ background-color: #2196F3;
}
#keyadd:hover {
- transition: all .2s ease-in-out;
- background-color: #39a1f4;
- box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
+ transition: all .2s ease-in-out;
+ background-color: #39a1f4;
+ box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
}
#keyremove {
- margin: 15px;
- color: #FFF;
- background-color: #F44336;
+ margin: 15px;
+ color: #FFF;
+ background-color: #F44336;
}
#keyremove:hover {
- transition: all .2s ease-in-out;
- background-color: #f55a4e;
- box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
+ transition: all .2s ease-in-out;
+ background-color: #f55a4e;
+ box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
}
#keyleft, #keyright {
- height: auto;
- line-height: normal;
- box-shadow: none;
- padding: 3px;
- box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
+ height: auto;
+ line-height: normal;
+ box-shadow: none;
+ padding: 3px;
+ box-shadow: 0 0 2px rgba(0, 0, 0, .12), 0 2px 2px rgba(0, 0, 0, .2);
}
#keyfields, #keyavail {
- height: auto;
- background-image: none;
- font-size: small;
- border: 1px solid rgba(0, 0, 0, .26);
- padding: 0px;
+ height: auto;
+ background-image: none;
+ font-size: small;
+ border: 1px solid rgba(0, 0, 0, .26);
+ padding: 0px;
}
\ No newline at end of file
diff --git a/styles/original.css b/styles/original.css
index e61b1c3..57e0329 100644
--- a/styles/original.css
+++ b/styles/original.css
@@ -1,275 +1,285 @@
body {
- font-family: verdana, sans serif;
- font-size: small;
- padding: 0px;
- margin: 0px;
- background: #FFF;
- visibility: hidden;
- -moz-user-select: -moz-none;
- -khtml-user-select: none;
- -webkit-user-select: none;
- -ms-user-select: none;
- user-select: none;
+ font-family: verdana, sans serif;
+ font-size: small;
+ padding: 0px;
+ margin: 0px;
+ background: #FFF;
+ visibility: hidden;
+ -moz-user-select: -moz-none;
+ -khtml-user-select: none;
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
}
#area {
- position: relative;
- background: transparent url(../images/back.png);
- width: 3000px;
- height: 3000px;
+ position: relative;
+ background: transparent url(../images/back.png);
+ width: 3000px;
+ height: 3000px;
}
#controls {
- position: absolute;
- left: 0px;
- top: 0px;
+ position: absolute;
+ left: 0px;
+ top: 0px;
}
#bar {
- text-align: center;
- background-color: #ccc;
- position: fixed;
- top: 0px;
- right: 0px;
- width: 150px;
- padding: 0px 5px 5px;
- -moz-box-shadow: -4px 4px 8px #888; /* FF 3.5+ */
- -webkit-box-shadow: -4px 4px 8px #888; /* Safari 3.0+, Chrome */
- box-shadow: -4px 4px 8px #888; /* Opera 10.5, IE 9.0 */
- filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=215, Color='#888888'); /* IE 6, IE 7 */
- -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=215, Color='#888888')"; /* IE 8 */
+ text-align: center;
+ background-color: #ccc;
+ position: fixed;
+ top: 0px;
+ right: 0px;
+ width: 150px;
+ padding: 0px 5px 5px;
+ -moz-box-shadow: -4px 4px 8px #888;
+ /* FF 3.5+ */
+ -webkit-box-shadow: -4px 4px 8px #888;
+ /* Safari 3.0+, Chrome */
+ box-shadow: -4px 4px 8px #888;
+ /* Opera 10.5, IE 9.0 */
+ filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=215, Color='#888888');
+ /* IE 6, IE 7 */
+ -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=215, Color='#888888')";
+ /* IE 8 */
}
#bar input {
- display: block;
- width: 90%;
- margin: auto;
+ display: block;
+ width: 90%;
+ margin: auto;
}
#bar input.small {
- width: 45%;
- display: inline;
+ width: 45%;
+ display: inline;
}
#toggle {
- padding: 5px 0px;
- margin-bottom: 5px;
- cursor: pointer;
- background-position: 50% 5px;
- background-repeat: no-repeat;
- height: 5px;
+ padding: 5px 0px;
+ margin-bottom: 5px;
+ cursor: pointer;
+ background-position: 50% 5px;
+ background-repeat: no-repeat;
+ height: 5px;
}
#toggle:hover {
- background-color: #bbb;
+ background-color: #bbb;
}
#toggle.on {
- background-image: url(../images/up.gif);
+ background-image: url(../images/up.gif);
}
#toggle.off {
- background-image: url(../images/down.gif);
+ background-image: url(../images/down.gif);
}
#minimap {
- position: fixed;
- width: 100px;
- height: 100px;
- right: 0px;
- bottom: 0px;
- background-color: #fff;
- border: 1px solid #000;
- opacity: 0.9;
- overflow: hidden;
+ position: fixed;
+ width: 100px;
+ height: 100px;
+ right: 0px;
+ bottom: 0px;
+ background-color: #fff;
+ border: 1px solid #000;
+ opacity: 0.9;
+ overflow: hidden;
}
.mini {
- position: absolute;
- border: 1px solid #000;
- background-color: #eea;
- font-size: 1px;
- line-height: 1px;
+ position: absolute;
+ border: 1px solid #000;
+ background-color: #eea;
+ font-size: 1px;
+ line-height: 1px;
}
.mini_selected {
- background-color: #f85;
+ background-color: #f85;
}
.port {
- position: absolute;
- border: 2px solid #f00;
+ position: absolute;
+ border: 2px solid #f00;
}
.table {
- position: absolute;
- border: 1px solid #000;
- background-color: #ddd;
- cursor: pointer;
- -moz-box-shadow: 4px 4px 8px #888; /* FF 3.5+ */
- -webkit-box-shadow: 4px 4px 8px #888; /* Safari 3.0+, Chrome */
- box-shadow: 4px 4px 8px #888; /* Opera 10.5, IE 9.0 */
- filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#888888'); /* IE 6, IE 7 */
- -ms-filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#888888'); /* IE 8 */
- border-radius: 3px;
+ position: absolute;
+ border: 1px solid #000;
+ background-color: #ddd;
+ cursor: pointer;
+ -moz-box-shadow: 4px 4px 8px #888;
+ /* FF 3.5+ */
+ -webkit-box-shadow: 4px 4px 8px #888;
+ /* Safari 3.0+, Chrome */
+ box-shadow: 4px 4px 8px #888;
+ /* Opera 10.5, IE 9.0 */
+ filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#888888');
+ /* IE 6, IE 7 */
+ -ms-filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#888888');
+ /* IE 8 */
+ border-radius: 3px;
}
.table table {
- border-collapse: collapse;
+ border-collapse: collapse;
}
.table.selected {
- border: 2px solid #000;
+ border: 2px solid #000;
}
.table thead .title {
- text-align: center;
- padding: 3px 30px;
+ text-align: center;
+ padding: 3px 30px;
}
.table tbody {
- border-top: 1px dotted #888;
+ border-top: 1px dotted #888;
}
.table tbody td {
- padding: 3px;
+ padding: 3px;
}
.table tbody .selected {
- font-weight: bold;
- color: #f00;
- display: inline-block;
+ font-weight: bold;
+ color: #f00;
+ display: inline-block;
}
.table tbody .title {
- display: inline-block;
+ display: inline-block;
}
-.table thead td[title]:not([title=""]):after{
- content: '';
- position: absolute;
- top: 0;
- right: 0;
- border-color: royalblue;
- border-style: solid;
- border-width: 5px;
- border-bottom-color: transparent;
- border-left-color: transparent;
+.table thead td[title]:not([title=""]):after {
+ content: '';
+ position: absolute;
+ top: 0;
+ right: 0;
+ border-color: royalblue;
+ border-style: solid;
+ border-width: 5px;
+ border-bottom-color: transparent;
+ border-left-color: transparent;
}
.table tbody td {
- position: relative;
+ position: relative;
}
-.table tbody[title]:not(.expanded):not([title=""]) td:last-child:after{
- content: '';
- position: absolute;
- top: 0;
- right: 0;
- border-color: royalblue;
- border-style: solid;
- border-width: 5px;
- border-bottom-color: transparent;
- border-left-color: transparent;
+.table tbody[title]:not(.expanded):not([title=""]) td:last-child:after {
+ content: '';
+ position: absolute;
+ top: 0;
+ right: 0;
+ border-color: royalblue;
+ border-style: solid;
+ border-width: 5px;
+ border-bottom-color: transparent;
+ border-left-color: transparent;
}
.primary {
- font-weight: bold;
+ font-weight: bold;
}
.key {
- font-style: italic;
+ font-style: italic;
}
.primary.key {
- font-style: normal;
+ font-style: normal;
}
.typehint {
- font-size: 80%;
- color: gray;
+ font-size: 80%;
+ color: gray;
}
.comment {
- font-size: 80%;
- font-weight: normal;
- margin-right: 0.5em;
+ font-size: 80%;
+ font-weight: normal;
+ margin-right: 0.5em;
}
.adding {
- cursor: crosshair;
+ cursor: crosshair;
}
.relation {
- overflow: hidden;
+ overflow: hidden;
}
#background {
- position: absolute;
- background-color: #000;
- opacity: 0.5;
- visibility: hidden;
+ position: absolute;
+ background-color: #000;
+ opacity: 0.5;
+ visibility: hidden;
}
#window {
- position: absolute;
- visibility: hidden;
- background-color: #fff;
- border: 6px double #333;
+ position: absolute;
+ visibility: hidden;
+ background-color: #fff;
+ border: 6px double #333;
}
#windowtitle {
- border-bottom: 2px solid #333;
- padding: 2px;
- padding-left: 1em;
- font-weight: bold;
- background-color: rgb(238, 238, 170);
+ border-bottom: 2px solid #333;
+ padding: 2px;
+ padding-left: 1em;
+ font-weight: bold;
+ background-color: rgb(238, 238, 170);
}
#windowcontent {
- padding: 1em;
+ padding: 1em;
}
#windowok, #windowcancel {
- margin: 0em 1em 1em;
+ margin: 0em 1em 1em;
}
.small {
- font-size: 85%;
+ font-size: 85%;
}
#textarea {
- width: 650px;
- height: 200px;
+ width: 650px;
+ height: 200px;
}
#opts {
- width: 700px;
+ width: 700px;
}
#keys {
- white-space: nowrap;
- text-align: center;
+ white-space: nowrap;
+ text-align: center;
}
legend {
- font-weight: bold;
+ font-weight: bold;
}
label, input, select {
- vertical-align: middle;
+ vertical-align: middle;
}
#throbber {
- position: absolute;
- top: 2px;
- right: 3px;
+ position: absolute;
+ top: 2px;
+ right: 3px;
}
#rubberband {
- position: absolute;
- border: 1px solid #000;
- background: #888;
- opacity: 0.5;
- visibility: hidden;
-}
+ position: absolute;
+ border: 1px solid #000;
+ background: #888;
+ opacity: 0.5;
+ visibility: hidden;
+}
\ No newline at end of file
diff --git a/styles/print.css b/styles/print.css
index 98fddfa..5a416f8 100644
--- a/styles/print.css
+++ b/styles/print.css
@@ -1,23 +1,22 @@
#bar, #background, #minimap {
- display: none;
+ display: none;
}
.table {
- border:1px solid #000000;
- background-color:none;
+ border: 1px solid #000000;
+ background-color: none;
}
.row {
- background-color:none;
+ background-color: none;
}
-.table .shadow-corner, .shadow-right, .shadow-bottom {
- display:none;
+.table .shadow-corner, .shadow-right, .shadow-bottom {
+ display: none;
}
.table_title {
- font-weight:bold;
- font-size:115%;
- background-color:none;
-}
-
+ font-weight: bold;
+ font-size: 115%;
+ background-color: none;
+}
\ No newline at end of file