monodevelop-database-4.0.12/0000755000175000017500000000000011266446160016415 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/0000755000175000017500000000000011266446160024345 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/Makefile.in0000644000175000017500000003406611266446160026423 0ustar directhexdirecthex# Makefile.in generated by automake 1.12.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2012 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.include ChangeLog subdir = MonoDevelop.Database.Sql.Sqlite ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(assemblydir)" DATA = $(assembly_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ASSEMBLY_VERSION = @ASSEMBLY_VERSION@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CSC = @CSC@ CSC_FLAGS = @CSC_FLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ GLIB_SHARP_CFLAGS = @GLIB_SHARP_CFLAGS@ GLIB_SHARP_LIBS = @GLIB_SHARP_LIBS@ GTK_SHARP_CFLAGS = @GTK_SHARP_CFLAGS@ GTK_SHARP_LIBS = @GTK_SHARP_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD_LIBRARY_PATH = @LD_LIBRARY_PATH@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_PREFIX = @LIB_PREFIX@ LIB_SUFFIX = @LIB_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MCS = @MCS@ MD_ADDIN_DIR = @MD_ADDIN_DIR@ MD_ASSEMBLY_DIR = @MD_ASSEMBLY_DIR@ MD_DIR = @MD_DIR@ MKDIR_P = @MKDIR_P@ MONO = @MONO@ MONODEVELOP_CFLAGS = @MONODEVELOP_CFLAGS@ MONODEVELOP_CORE_ADDINS_CFLAGS = @MONODEVELOP_CORE_ADDINS_CFLAGS@ MONODEVELOP_CORE_ADDINS_LIBS = @MONODEVELOP_CORE_ADDINS_LIBS@ MONODEVELOP_LIBS = @MONODEVELOP_LIBS@ MONO_ADDINS_CFLAGS = @MONO_ADDINS_CFLAGS@ MONO_ADDINS_GUI_CFLAGS = @MONO_ADDINS_GUI_CFLAGS@ MONO_ADDINS_GUI_LIBS = @MONO_ADDINS_GUI_LIBS@ MONO_ADDINS_LIBS = @MONO_ADDINS_LIBS@ MONO_ADDINS_SETUP_CFLAGS = @MONO_ADDINS_SETUP_CFLAGS@ MONO_ADDINS_SETUP_LIBS = @MONO_ADDINS_SETUP_LIBS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH = @PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RUNTIME = @RUNTIME@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ UNMANAGED_DEPENDENCIES_MONO_CFLAGS = @UNMANAGED_DEPENDENCIES_MONO_CFLAGS@ UNMANAGED_DEPENDENCIES_MONO_LIBS = @UNMANAGED_DEPENDENCIES_MONO_LIBS@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gtksharp_prefix = @gtksharp_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.Sql.Sqlite.dll REFS = \ $(GTK_SHARP_LIBS) \ $(MONODEVELOP_CORE_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Components.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Designer.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:Mono.Data.Sqlite \ -r:System \ -r:System.Data FILES = \ AssemblyInfo.cs \ Dialogs/SqliteCreateDatabaseDialog.cs \ Dialogs/SqliteDatabaseConnectionSettingsDialog.cs \ Dialogs/SqliteTableEditorDialog.cs \ gtk-gui/generated.cs \ Schema/dummy.cs \ SqliteConnectionProvider.cs \ SqliteDatabaseAlreadyExistsException.cs \ SqliteDbFactory.cs \ SqliteDialect.cs \ SqliteGuiProvider.cs \ SqlitePooledDbConnection.cs \ SqliteSchemaProvider.cs \ Widgets/SqliteConnectionSettingsWidget.cs RES = \ gtk-gui/gui.stetic \ MonoDevelop.Database.Sql.Sqlite.addin.xml \ SqliteSyntaxMode.xml assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb EXTRA_DIST = $(FILES) $(RES) build_sources = $(addprefix $(srcdir)/, $(FILES)) $(GENERATED_FILES) build_resources = $(addprefix $(srcdir)/, $(RES)) build_test_sources = $(addprefix $(srcdir)/, $(TESTFILES)) $(GENERATED_FILES) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.include $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu MonoDevelop.Database.Sql.Sqlite/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu MonoDevelop.Database.Sql.Sqlite/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_srcdir)/Makefile.include: $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-assemblyDATA: $(assembly_DATA) @$(NORMAL_INSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(assemblydir)'"; \ $(MKDIR_P) "$(DESTDIR)$(assemblydir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(assemblydir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(assemblydir)" || exit $$?; \ done uninstall-assemblyDATA: @$(NORMAL_UNINSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(assemblydir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: ctags: CTAGS CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(assemblydir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-assemblyDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-assemblyDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-assemblyDATA install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am uninstall uninstall-am uninstall-assemblyDATA @ENABLE_SQLITE_TRUE@all: $(ASSEMBLY) @ENABLE_SQLITE_FALSE@all: $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/SqliteGuiProvider.cs0000644000175000017500000001302511266446160030316 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Data; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Database.Designer; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Sql.Sqlite { public class SqliteGuiProvider : IGuiProvider { // public bool ShowSelectDatabaseDialog (bool create, out string database) // { // FileChooserDialog dlg = null; // if (create) { // dlg = new FileChooserDialog ( // AddinCatalog.GetString ("Save Database"), null, FileChooserAction.Save, // "gtk-cancel", ResponseType.Cancel, // "gtk-save", ResponseType.Accept // ); // } else { // dlg = new FileChooserDialog ( // AddinCatalog.GetString ("Open Database"), null, FileChooserAction.Open, // "gtk-cancel", ResponseType.Cancel, // "gtk-open", ResponseType.Accept // ); // } // dlg.SelectMultiple = false; // dlg.LocalOnly = true; // dlg.Modal = true; // // FileFilter filter = new FileFilter (); // filter.AddMimeType ("application/x-sqlite2"); // filter.AddMimeType ("application/x-sqlite3"); // filter.AddPattern ("*.db"); // filter.Name = AddinCatalog.GetString ("SQLite databases"); // FileFilter filterAll = new FileFilter (); // filterAll.AddPattern ("*"); // filterAll.Name = AddinCatalog.GetString ("All files"); // dlg.AddFilter (filter); // dlg.AddFilter (filterAll); // // if (dlg.Run () == (int)ResponseType.Accept) { // database = dlg.Filename; // dlg.Destroy (); // return true; // } else { // dlg.Destroy (); // database = null; // return false; // } // } public bool ShowCreateDatabaseDialog (IDbFactory factory) { SqliteCreateDatabaseDialog dialog = new SqliteCreateDatabaseDialog (factory); int resp; do { resp = dialog.Run (); } while (resp != (int)ResponseType.Cancel && resp != (int)ResponseType.Ok && resp != (int)ResponseType.DeleteEvent); dialog.Destroy (); if (resp == (int)ResponseType.Ok) return true; else return false; } public bool ShowAddConnectionDialog (IDbFactory factory) { return RunDialog (new SqliteDatabaseConnectionSettingsDialog (factory)); } public bool ShowEditConnectionDialog (IDbFactory factory, DatabaseConnectionSettings settings, out DatabaseConnectionSettings newSettings) { SqliteDatabaseConnectionSettingsDialog dlg = new SqliteDatabaseConnectionSettingsDialog(factory, settings); bool result = RunDialog (dlg); if (result) newSettings = dlg.ConnectionSettings; else newSettings = null; return result; } public bool ShowTableEditorDialog (IEditSchemaProvider schemaProvider, TableSchema table, bool create) { TableEditorSettings settings = new TableEditorSettings (); // SQLite doesn't support "NO ACTION" on "Foreign Key" settings.ConstraintSettings.ForeignKeySettings.SupportsNoAction = false; TableEditorDialog dlg = new TableEditorDialog (schemaProvider, create, settings); dlg.Initialize (table); return RunDialog (dlg); } public bool ShowViewEditorDialog (IEditSchemaProvider schemaProvider, ViewSchema view, bool create) { ViewEditorSettings settings = new ViewEditorSettings (); ViewEditorDialog dlg = new ViewEditorDialog (schemaProvider, create, settings); dlg.Initialize (view); return RunDialog (dlg); } public bool ShowProcedureEditorDialog (IEditSchemaProvider schemaProvider, ProcedureSchema procedure, bool create) { ProcedureEditorSettings settings = new ProcedureEditorSettings (); ProcedureEditorDialog dlg = new ProcedureEditorDialog (schemaProvider, create, settings); dlg.Initialize (procedure); return RunDialog (dlg); } public bool ShowUserEditorDialog (IEditSchemaProvider schemaProvider, UserSchema user, bool create) { return false; //TODO: implement ShowUserEditorDialog } private bool RunDialog (Dialog dlg) { bool result = false; // If the Preview Dialog is canceled, don't execute and don't close the Editor Dialog. try { int resp; do { resp = dlg.Run (); } while (resp != (int)ResponseType.Cancel && resp != (int)ResponseType.Ok && resp != (int)ResponseType.DeleteEvent); if (resp == (int)ResponseType.Ok) result = true; else result = false; } finally { dlg.Destroy (); } return result; } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/SqliteConnectionProvider.cs0000644000175000017500000000415511266446160031675 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ankit Jain // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; using Mono.Data.Sqlite; namespace MonoDevelop.Database.Sql.Sqlite { public class SqliteConnectionProvider : AbstractConnectionProvider { public override IPooledDbConnection CreateConnection (IConnectionPool pool, DatabaseConnectionSettings settings, out string error) { string connStr = null; try { if (settings.UseConnectionString) { connStr = settings.ConnectionString; } else { connStr = String.Concat ("URI=file:", settings.Database); } SqliteConnection connection = new SqliteConnection (connStr); connection.Open (); error = null; return new SqlitePooledDbConnection (pool, connection); } catch (Exception e) { error = e.Message; return null; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/gtk-gui/0000755000175000017500000000000011266446160025714 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/gtk-gui/generated.cs0000644000175000017500000000106211266446160030200 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace Stetic { internal class Gui { private static bool initialized; static internal void Initialize (Gtk.Widget iconRenderer) { if ((Stetic.Gui.initialized == false)) { Stetic.Gui.initialized = true; } } } internal class ActionGroups { public static Gtk.ActionGroup GetActionGroup (System.Type type) { return Stetic.ActionGroups.GetActionGroup (type.FullName); } public static Gtk.ActionGroup GetActionGroup (string name) { return null; } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/gtk-gui/gui.stetic0000644000175000017500000000120411266446160027712 0ustar directhexdirecthex .. 2.12 monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/Makefile.am0000644000175000017500000000257511266446160026412 0ustar directhexdirecthexADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.Sql.Sqlite.dll REFS = \ $(GTK_SHARP_LIBS) \ $(MONODEVELOP_CORE_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Components.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Designer.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:Mono.Data.Sqlite \ -r:System \ -r:System.Data FILES = \ AssemblyInfo.cs \ Dialogs/SqliteCreateDatabaseDialog.cs \ Dialogs/SqliteDatabaseConnectionSettingsDialog.cs \ Dialogs/SqliteTableEditorDialog.cs \ gtk-gui/generated.cs \ Schema/dummy.cs \ SqliteConnectionProvider.cs \ SqliteDatabaseAlreadyExistsException.cs \ SqliteDbFactory.cs \ SqliteDialect.cs \ SqliteGuiProvider.cs \ SqlitePooledDbConnection.cs \ SqliteSchemaProvider.cs \ Widgets/SqliteConnectionSettingsWidget.cs RES = \ gtk-gui/gui.stetic \ MonoDevelop.Database.Sql.Sqlite.addin.xml \ SqliteSyntaxMode.xml if ENABLE_SQLITE all: $(ASSEMBLY) else all: endif $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb EXTRA_DIST = $(FILES) $(RES) include $(top_srcdir)/Makefile.include monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs0000644000175000017500000004323111266446160030774 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ankit Jain // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Text; using System.Data; using System.Collections.Generic; using Mono.Data.Sqlite; using MonoDevelop.Core; namespace MonoDevelop.Database.Sql.Sqlite { // see: http://www.sqlite.org/faq.html // http://www.sqlite.org/google-talk-slides/page-021.html public class SqliteSchemaProvider : AbstractEditSchemaProvider { public SqliteSchemaProvider (IConnectionPool connectionPool) : base (connectionPool) { AddSupportedSchemaActions (SchemaType.Database, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.Table, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.View, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.TableColumn, SchemaActions.All); AddSupportedSchemaActions (SchemaType.ProcedureParameter, SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.Trigger, SchemaActions.All); AddSupportedSchemaActions (SchemaType.PrimaryKeyConstraint, SchemaActions.Create | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.CheckConstraint, SchemaActions.Create | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.UniqueConstraint, SchemaActions.Create | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.Constraint, SchemaActions.Create | SchemaActions.Schema); } public override TableSchemaCollection GetTables () { TableSchemaCollection tables = new TableSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); // Tables need to be ordered bacause TableSchemaCollection is "created" as sorted by default. IDbCommand command = conn.CreateCommand ( "SELECT name, sql FROM sqlite_master WHERE type = 'table' ORDER BY name" ); try { using (command) { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { TableSchema table = new TableSchema (this); table.SchemaName = "main"; table.Name = r.GetString (0); table.IsSystemTable = table.Name.StartsWith ("sqlite_"); table.Definition = r.GetString (1); tables.Add (table); } r.Close (); } } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return tables; } public override ColumnSchemaCollection GetTableColumns (TableSchema table) { ColumnSchemaCollection columns = new ColumnSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); IDbCommand command = conn.CreateCommand ( "PRAGMA table_info('" + table.Name + "')" ); try { using (command) { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { ColumnSchema column = new ColumnSchema (this, table); column.Position = r.GetInt32 (0); column.Name = r.GetString (1); column.DataTypeName = r.GetString (2); column.IsNullable = r.GetInt32 (3) != 0; column.DefaultValue = r.IsDBNull (4) ? null : r.GetValue (4).ToString (); columns.Add (column); } r.Close (); }; } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return columns; } public override ViewSchemaCollection GetViews () { ViewSchemaCollection views = new ViewSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); IDbCommand command = conn.CreateCommand ( "SELECT name, sql FROM sqlite_master WHERE type = 'views'" ); try { using (command) { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { ViewSchema view = new ViewSchema (this); view.SchemaName = "main"; view.Name = r.GetString (0); view.Definition = r.GetString (1); views.Add (view); } r.Close (); } } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return views; } public override ConstraintSchemaCollection GetTableConstraints (TableSchema table) { return GetConstraints (table, null); } public override ConstraintSchemaCollection GetColumnConstraints (TableSchema table, ColumnSchema column) { return GetConstraints (table, column); } public override TriggerSchemaCollection GetTableTriggers (TableSchema table) { if (table == null) throw new ArgumentNullException ("table"); TriggerSchemaCollection triggers = new TriggerSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); IDbCommand command = conn.CreateCommand (string.Format (@"SELECT * FROM sqlite_master WHERE type = 'trigger' and tbl_name = '{0}'", table.Name)); try { // Parse Trigger Sql - Needed for alter a table System.Text.RegularExpressions.Regex parseRegEx = new System.Text.RegularExpressions.Regex (string.Concat ( @"((CREATE\s*(Temp|Temporary)?\s*TRIGGER){1}\s?(\w+)\s?(IF NOT", @" EXISTS)?\s?(BEFORE|AFTER|INSTEAD OF){1}\s?(\w+)\s*ON(\s+\w*", @")\s*(FOR EACH ROW){1}\s*(BEGIN){1})\s+(\w|\W)*(END)")); using (IDataReader r = command.ExecuteReader ()) { while (r.Read ()) { string sql = r.GetString (r.GetOrdinal ("sql")); System.Text.RegularExpressions.MatchCollection matchs = parseRegEx.Matches (sql); TriggerSchema trigger = new TriggerSchema (this); trigger.Name = r.GetString (r.GetOrdinal ("name")); trigger.TableName = r.GetString (r.GetOrdinal ("tbl_name")); trigger.Definition = sql; if (matchs.Count > 0) { trigger.TriggerFireType = TriggerFireType.ForEachRow; switch (matchs[0].Groups[7].Value.ToLower ()) { case "insert": trigger.TriggerEvent = TriggerEvent.Insert; break; case "update": trigger.TriggerEvent = TriggerEvent.Update; break; case "delete": trigger.TriggerEvent = TriggerEvent.Delete; break; default: throw new NotImplementedException (); } switch (matchs[0].Groups[7].Value.ToLower ()) { case "before": trigger.TriggerType = TriggerType.Before; break; case "after": trigger.TriggerType = TriggerType.After; break; default: throw new NotImplementedException (); } StringBuilder sbSource = new StringBuilder (); foreach (System.Text.RegularExpressions.Capture c in matchs[0].Groups[11].Captures) sbSource.Append (c.Value); trigger.Source = sbSource.ToString (); } triggers.Add (trigger); } } } catch (SqliteException e) { QueryService.RaiseException (e); } return triggers; } //http://www.sqlite.org/pragma.html public virtual ConstraintSchemaCollection GetConstraints (TableSchema table, ColumnSchema column) { if (table == null) throw new ArgumentNullException ("table"); string columnName = column == null ? null : column.Name; ConstraintSchemaCollection constraints = new ConstraintSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); //fk and unique IDbCommand command = conn.CreateCommand ("SELECT name, tbl_name FROM sqlite_master WHERE sql IS NULL AND type = 'index'"); try { using (command) { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { ConstraintSchema constraint = null; if (r.IsDBNull (1) || r.GetString (1) == null) { constraint = new UniqueConstraintSchema (this); } else { ForeignKeyConstraintSchema fkc = new ForeignKeyConstraintSchema (this); fkc.ReferenceTableName = r.GetString (1); constraint = fkc; } constraint.Name = r.GetString (0); constraints.Add (constraint); } r.Close (); } } //pk, column if (columnName != null) { command = conn.CreateCommand ( "PRAGMA table_info('" + table.Name + "')" ); using (command) { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { if (r.GetInt32 (5) == 1 && r.GetString (1) == columnName) { PrimaryKeyConstraintSchema constraint = new PrimaryKeyConstraintSchema (this); ColumnSchema priColumn = new ColumnSchema (this, table); priColumn.Name = r.GetString (1); constraint.Columns.Add (priColumn); constraint.IsColumnConstraint = true; constraint.Name = "pk_" + table.Name + "_" + priColumn.Name; constraints.Add (constraint); } } r.Close (); } } } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return constraints; } public override void CreateDatabase (DatabaseSchema database) { if (System.IO.File.Exists (database.Name)) throw new SqliteDatabaseAlreadyExistsException (AddinCatalog.GetString ("Database '{0}' already exists.", database.Name)); using (SqliteConnection conn = new SqliteConnection (string.Format ("URI=file:{0};Version=3;", database.Name))) { conn.Open (); conn.Close (); } } //http://www.sqlite.org/lang_createtable.html public override string GetTableCreateStatement (TableSchema table) { StringBuilder sb = new StringBuilder (); sb.Append ("CREATE TABLE "); sb.Append (table.Name); sb.Append (" ( "); bool first = true; foreach (ColumnSchema column in table.Columns) { if (first) first = false; else sb.Append ("," + Environment.NewLine); sb.Append (column.Name); sb.Append (' '); sb.Append (column.DataType.GetCreateString (column)); if (!column.IsNullable) sb.Append (" NOT NULL"); if (column.HasDefaultValue) sb.Append (" DEFAULT " + column.DefaultValue == null ? "NULL" : column.DefaultValue.ToString ()); //TODO: '' chars if string //list all column constrains for this type foreach (ConstraintSchema constraint in column.Constraints) { sb.Append (" "); sb.Append (GetConstraintString (constraint)); } } //table constraints foreach (ConstraintSchema constraint in table.Constraints) { // SQLite create a new schema with an auto-index by default. if (constraint.Name.StartsWith ("sqlite_autoindex")) continue; sb.Append (", "); sb.Append (GetConstraintString (constraint)); } sb.Append (" );"); foreach (TriggerSchema trigger in table.Triggers) { sb.Append (Environment.NewLine); sb.Append (GetTriggerCreateStatement (trigger)); } return sb.ToString (); } protected virtual string GetConstraintString (ConstraintSchema constraint) { bool first = true; //PRIMARY KEY [sort-order] [ conflict-clause ] [AUTOINCREMENT] //UNIQUE [ conflict-clause ] //CHECK ( expr ) //COLLATE collation-name StringBuilder sb = new StringBuilder (); switch (constraint.ConstraintType) { case ConstraintType.PrimaryKey: sb.Append ("PRIMARY KEY ("); //TODO: auto inc + sort first = true; foreach (ColumnSchema col in constraint.Columns) { if (!first) sb.Append (","); sb.Append (col.Name); first = false; } sb.Append (")"); break; case ConstraintType.Unique: sb.Append ("UNIQUE ("); first = true; foreach (ColumnSchema col in constraint.Columns) { if (!first) sb.Append (","); sb.Append (col.Name); first = false; } sb.Append (")"); break; case ConstraintType.Check: CheckConstraintSchema chk = constraint as CheckConstraintSchema; sb.Append ("CHECK ("); sb.Append (chk.Source); sb.Append (")"); break; case ConstraintType.ForeignKey: sb.Append ("FOREIGN KEY "); sb.Append (GetColumnsString (constraint.Columns, true)); sb.Append (" REFERENCES "); ForeignKeyConstraintSchema fk = constraint as ForeignKeyConstraintSchema; string tableName; if (fk.ReferenceTableName.IndexOf ('.') > 0) tableName = fk.ReferenceTableName.Substring (fk.ReferenceTableName.IndexOf ('.') + 1); else tableName = fk.ReferenceTableName; sb.Append (tableName); sb.Append (' '); if (fk.ReferenceColumns != null) sb.Append (GetColumnsString (fk.ReferenceColumns, true)); sb.Append (Environment.NewLine); sb.Append (" ON DELETE "); sb.Append (GetConstraintActionString (fk.DeleteAction)); sb.Append (Environment.NewLine); sb.Append (" ON UPDATE "); sb.Append (GetConstraintActionString (fk.UpdateAction)); break; default: throw new NotImplementedException (); } return sb.ToString (); } //http://www.sqlite.org/lang_createview.html public override void CreateView (ViewSchema view) { IPooledDbConnection conn = connectionPool.Request (); IDbCommand command = conn.CreateCommand (view.Definition); using (command) conn.ExecuteNonQuery (command); conn.Release (); } //http://www.sqlite.org/lang_createindex.html public override void CreateIndex (IndexSchema index) { throw new NotImplementedException (); } //http://www.sqlite.org/lang_createtrigger.html public override void CreateTrigger (TriggerSchema trigger) { string sql = GetTriggerCreateStatement (trigger); ExecuteNonQuery (sql); } protected virtual string GetTriggerCreateStatement (TriggerSchema trigger) { StringBuilder sb = new StringBuilder (); sb.Append ("CREATE TRIGGER "); sb.Append (trigger.Name); switch (trigger.TriggerType) { case TriggerType.Before: sb.Append (" BEFORE"); break; case TriggerType.After: sb.Append (" AFTER"); break; default: throw new NotSupportedException (); } switch (trigger.TriggerEvent) { case TriggerEvent.Insert: sb.Append (" INSERT "); break; case TriggerEvent.Update: sb.Append (" UPDATE "); break; case TriggerEvent.Delete: sb.Append (" DELETE "); break; default: throw new NotSupportedException (); } sb.Append ("ON "); sb.Append (trigger.TableName); sb.Append (' '); sb.Append (Environment.NewLine); switch (trigger.TriggerFireType) { case TriggerFireType.ForEachRow: case TriggerFireType.ForEachStatement: sb.Append (" FOR EACH ROW "); break; default: throw new NotSupportedException (); } sb.Append (Environment.NewLine); sb.Append ("BEGIN "); sb.Append (Environment.NewLine); sb.Append (trigger.Source); sb.Append (' '); sb.Append (Environment.NewLine); sb.Append ("END;"); return sb.ToString (); } //http://www.sqlite.org/lang_altertable.html //http://www.sqlite.org/lang_vacuum.html public override void AlterTable (TableAlterSchema table) { throw new NotImplementedException (); } public override void DropDatabase (DatabaseSchema db) { connectionPool.Close (); System.IO.File.Delete (db.Name); } //http://www.sqlite.org/lang_droptable.html public override void DropTable (TableSchema table) { ExecuteNonQuery ("DROP TABLE IF EXISTS " + table.Name); } //http://www.sqlite.org/lang_dropview.html public override void DropView (ViewSchema view) { ExecuteNonQuery ("DROP VIEW IF EXISTS " + view.Name); } //http://www.sqlite.org/lang_dropindex.html public override void DropIndex (IndexSchema index) { ExecuteNonQuery ("DROP INDEX IF EXISTS " + index.Name); } //http://www.sqlite.org/lang_droptrigger.html public override void DropTrigger (TriggerSchema trigger) { ExecuteNonQuery ("DROP TRIGGER IF EXISTS " + trigger.Name); } //http://www.sqlite.org/lang_altertable.html public override void RenameTable (TableSchema table, string name) { ExecuteNonQuery ("ALTER TABLE " + table.Name + " RENAME TO " + name); table.Name = name; } public override string GetViewAlterStatement (ViewSchema view) { return String.Concat ("DROP VIEW IF EXISTS ", view.Name, "; ", Environment.NewLine, view.Definition); } public override string GetMimeType () { return "text/x-sqlite"; } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/ChangeLog0000644000175000017500000002746211266446160026132 0ustar directhexdirecthex2010-03-29 Lluis Sanchez Gual * Makefile.am: * MonoDevelop.Database.Sql.Sqlite.csproj: Remove unrequired reference. Patch by Jay R. Wren. 2010-03-22 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.Sqlite.addin.xml: Bumped MD version. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.csproj: Flush. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.csproj: Remove mono.addins.targets import. 2010-03-17 Lluis Sanchez Gual * SqliteDbFactory.cs: * Dialogs/SqliteCreateDatabaseDialog.cs: * MonoDevelop.Database.Sql.Sqlite.csproj: * Widgets/SqliteConnectionSettingsWidget.cs: * MonoDevelop.Database.Sql.Sqlite.addin.xml: * Dialogs/SqliteDatabaseConnectionSettingsDialog.cs: Merged MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui and MD.Components into MD.Ide. 2010-02-15 Luciano N. Callero * Makefile.am: * SqliteDbFactory.cs: * MonoDevelop.Database.Sql.Sqlite.csproj: Implement IDbLinq interface for SqlMetal services. Flush changes. 2010-02-12 Lluis Sanchez Gual * gtk-gui/generated.cs: * MonoDevelop.Database.Sql.Sqlite.csproj: Flush. 2009-11-11 Luciano N. Callero * MonoDevelop.Database.Sql.Sqlite.csproj: Target runtime from 2.0 to 3.5. * Makefile.am: * SqliteSyntaxMode.xml: * SqliteSchemaProvider.cs: * MonoDevelop.Database.Sql.Sqlite.addin.xml: Implement Syntax mode by provider. 2009-11-03 Luciano N. Callero * Dialogs/SqliteDatabaseConnectionSettingsDialog.cs: Fixe edit connection. * SqliteGuiProvider.cs: * Dialogs/SqliteCreateDatabaseDialog.cs: * Widgets/SqliteConnectionSettingsWidget.cs: Implement Sqlite Create Database. * Makefile.am: * MonoDevelop.Database.Sql.Sqlite.csproj: * SqliteDatabaseAlreadyExistsException.cs: Add SqlieDatabaseAlreadyExistsException to throw when the database alread exists. * SqliteSchemaProvider.cs: Fix overwrite sqlite database problem. 2009-10-30 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.Sqlite.addin.xml: Bump MD version. 2009-10-22 Luciano N. Callero * SqliteGuiProvider.cs: Common Database API update. 2009-10-18 Michael Hutchinson * MonoDevelop.Database.Sql.Sqlite.csproj: Fix the build & flush format changes. 2009-10-07 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.Sqlite.addin.xml: Bump MD version. 2009-08-26 Lluis Sanchez Gual * gtk-gui/gui.stetic: * MonoDevelop.Database.Sql.Sqlite.csproj: We now depend on gtk# 2.12.8, Mono 2.4, and Mono.Addins 0.4. 2009-07-31 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.csproj: Don't require a specific version for assemblies. 2009-04-23 Luciano N. Callero * SqlServerSchemaProvider.cs: Implement a custom GetTableTriggers fix a create table bug. 2009-04-14 Luciano N. Callero * SqliteGuiProvider.cs: Fix Preview Dialog. When cancel the dialog, don't create the table and don't close the table. * SqliteSchemaProvider.cs: Fix creation table to create a correct sql. 2009-04-15 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.Sqlite.addin.xml: Bump MD version. 2009-02-20 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.csproj: Updated references. 2009/02/06 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.mdp: * MonoDevelop.Database.Sql.Sqlite.csproj: Migrated to MSBuild file format. 2009/02/03 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.Sqlite.addin.xml: Bump MD version. 2009/02/03 Lluis Sanchez Gual * gtk-gui/generated.cs: Flush. 2009-01-26 Michael Hutchinson * MonoDevelop.Database.Sql.Sqlite.mdp: Flush project format changes. 2008-12-02 Michael Hutchinson * Makefile.am: * AssemblyInfo.cs: * MonoDevelop.Database.Sql.Sqlite.mdp: Add AssemblyInfo.cs files that are autogenerated from the addin manifests. 2008-11-06 Michael Hutchinson * Makefile.am: Fix build dependencies. 2008-11-05 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.addin.xml: Bump MD version. 2008-09-17 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.mdp: Updated projects. 2008-08-18 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.mdp: Fix reference to Mono.TextEditor. The incorrect add-in version number causes problems in the makefile synchronization. 2008-06-04 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.addin.xml: Bump MD version. 2008-05-21 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.mdp, Makefile.am: Fix projects. 2008-05-21 Lluis Sanchez Gual 2008-03-10 Lluis Sanchez Gual * gtk-gui/gui.stetic: Remove unused dialog. 2008-03-10 Lluis Sanchez Gual * SqliteSchemaProvider.cs: Track changes in the MessageService class. 2008-01-30 Ben Motmans * Dialogs/SqliteDatabaseConnectionSettingsDialog.cs, Widgets/SqliteConnectionSettingsWidget.cs: moved the sqlite connection settings widget to a separate file * Dialogs/SqliteCreateDatabaseDialog.cs, gtk-gui/MonoDevelop.Database.Sql.Sqlite.SqliteCreateDatabaseDialog.cs: Gui changes * SqliteGuiProvider.cs: added parameter to the ShowCreateDatabaseDialog method 2008-01-29 Ben Motmans * SqliteSchemaProvider.cs: Removed temp log statements 2008-01-29 Ben Motmans * MonoDevelop.Database.Sql.Sqlite.mdp, Makefile.am: use a Gac reference for Mono.Data.Sqlite 2008-01-29 Ben Motmans * MonoDevelop.Database.Sql.Sqlite.mdp: depend on Gtk# 2.8 instead of 2.12 * gtk-gui, gtk-gui/generated.cs, gtk-gui/MonoDevelop.Database.Sql.Sqlite.SqliteCreateDatabaseDialog.cs, gtk-gui/gui.stetic: auto generated code 2008-01-28 Ben Motmans * Dialogs/SqliteDatabaseConnectionSettingsDialog.cs: disable some widgets 2008-01-28 Ben Motmans * SqliteConnectionProvider.cs, SqliteSchemaProvider.cs, SqliteDbFactory.cs, SqliteGuiProvider.cs, SqliteDialect.cs: small API related changes * SqlitePooledDbConnection.cs: database version support 2008-01-28 Ben Motmans * MonoDevelop.Database.Sql.Sqlite.addin.xml: removed obsolete stuff from the old capabilities system 2008-01-25 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.addin.xml: Update MD version. 2008-01-22 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.addin.xml: Updated add-in category and description. 2007-12-14 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.mdp: Updated project file. The order of extended properties won't change anymore. 2007-12-12 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.addin.xml: Bump add-in versions. 2007-12-04 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.mdp: Updated project files. 2007-12-04 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.addin.xml, SqliteGuiProvider.cs, MonoDevelop.Database.Sql.Sqlite.mdp, Makefile.am: Directory reorganization. 2007-11-09 Michael Hutchinson * SqliteSchemaProvider.cs: Track LoggingService API. Replace some "LogError" calls with "LogDebug" calls. 2007-10-29 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.addin.xml: Bump MD version. 2007-10-23 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.mdp: Project file names updated by change in MD path functions. 2007-10-16 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.mdp: Fix required GTK# version. 2007-09-26 Michael Hutchinson * MonoDevelop.Database.Sql.Sqlite.mdp: Don't unnecessarily local-copy project references. Don't sync EXTRA_DIST with deploy files. Add Makefile.am to file list. * Makefile.am: Don't deploy .addin.xml file. 2007-09-21 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Sqlite.addin.xml: Bump MD version. 2007-09-20 Ben Motmans * Makefile.am: removed incorrect references 2007-09-20 Ben Motmans * Makefile.am: changed reference to contrib/Sqlite 2007-09-19 Ben Motmans * MonoDevelop.Database.Sql.Sqlite.addin.xml: temporarily disabled the Create table command due to a bug in the database provider 2007-09-16 Ben Motmans * Makefile.am: link to the correct Mono.Addins dll 2007-09-07 Ben Motmans * SqliteSchemaProvider.cs, SqliteDbFactory.cs, MonoDevelop.Database.Sql.Sqlite.addin.xml: improved capabilities system 2007-08-28 Ben Motmans * MonoDevelop.Database.Sql.Sqlite.mdp, Makefile.am: use project references instead of assembly references 2007-08-28 Ben Motmans * Makefile.am: updated makefile 2007-08-03 Ben Motmans * SqliteConnectionProvider.cs: added support for an error message * SqliteSchemaProvider.cs: fixed a bug in the CreateTable method 2007-08-02 Ben Motmans * SqliteSchemaProvider.cs: CreateTrigger implementation 2007-08-01 Ben Motmans * SqliteSchemaProvider.cs: Catch exceptions and notify the user and various small bugfixes 2007-07-31 Ben Motmans * SqliteDbFactory.cs, SqliteGuiProvider.cs: Added a GuiProvider * SqliteSchemaProvider.cs: small api changes 2007-07-25 Ben Motmans * SqliteDbFactory.cs: Added support for a save database dialog * SqliteConnectionProvider.cs, SqlitePooledDbConnection.cs: moved from Mono.Data.SqliteClient to Mono.Data.Sqlite * SqliteSchemaProvider.cs: added meta data information, support for GetDataTypes, CreateTable, DropDatabase and CreateDatabase 2007-07-18 Ben Motmans * SqliteSchemaProvider.cs: SupportsSchemaOperation implementation, use of strongly typed collections, Drop* and Rename* implementations 2007-07-17 Ben Motmans * Makefile.am: initial makefile * SqliteDbFactory.cs: implemented methods required for the connection settings dialog 2007-07-15 Ben Motmans * SqliteDialect.cs: dialect implementation with keyword detection * SqliteDbFactory.cs: use SqliteDialect instead of the obsolete Sql99Dialect 2007-07-14 Ben Motmans * SqliteConnectionProvider.cs, SqliteDbFactory.cs, SqliteSchemaProvider.cs: small changes to reflect API changes * SqlitePooledDbConnection.cs: implementation of ConnectionPool aware connection 2007-07-10 Ben Motmans * SqliteConnectionProvider.cs: set IsConnectionError property 2007-07-05 Ben Motmans * SqliteConnectionProvider.cs: ExecuteQueryAsDataSet and ExecuteQueryAsDataTable implementation * SqliteDbFactory.cs: specified the ISqlDialect and added default connection settings 2007-07-02 Ben Motmans * SqliteSchemaProvider.cs: Imported the old DbProvider and updated all to code to use the new API 2007-07-01 Ben Motmans * SqliteSchemaProvider.cs: * SqliteDbFactory.cs: * SqliteConnectionProvider.cs: Imported original code and splitted in 3 classes monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/Widgets/0000755000175000017500000000000011266446160025753 5ustar directhexdirecthex././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.c0000644000175000017500000000643411266446160034274 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; using MonoDevelop.Database.Designer; namespace MonoDevelop.Database.Sql.Sqlite { internal class SqliteConnectionSettingsWidget : ConnectionSettingsWidget { internal SqliteConnectionSettingsWidget (IDbFactory factory) : base (factory) { EnableServerEntry = false; EnablePortEntry = false; EnableUsernameEntry = false; EnablePasswordEntry = false; EnableRefreshButton = false; EnableOpenButton = true; } internal SqliteConnectionSettingsWidget (IDbFactory factory, bool isEditMode) : base (factory, isEditMode) { EnableServerEntry = false; EnablePortEntry = false; EnableUsernameEntry = false; EnablePasswordEntry = false; EnableRefreshButton = false; EnableOpenButton = true; } protected override void OpenClicked (object sender, EventArgs e) { string database = null; if (ShowSelectDatabaseDialog (out database)) ComboDatabase.Entry.Text = database; } private bool ShowSelectDatabaseDialog (out string database) { FileChooserDialog dlg = new FileChooserDialog ( AddinCatalog.GetString ("Open Database"), null, FileChooserAction.Open, "gtk-cancel", ResponseType.Cancel, "gtk-open", ResponseType.Accept ); dlg.SelectMultiple = false; dlg.LocalOnly = true; dlg.Modal = true; FileFilter filter = new FileFilter (); filter.AddMimeType ("application/x-sqlite2"); filter.AddMimeType ("application/x-sqlite3"); filter.AddPattern ("*.db"); filter.AddPattern ("*.sqlite"); filter.Name = AddinCatalog.GetString ("SQLite databases"); FileFilter filterAll = new FileFilter (); filterAll.AddPattern ("*"); filterAll.Name = AddinCatalog.GetString ("All files"); dlg.AddFilter (filter); dlg.AddFilter (filterAll); database = null; bool result = false; try { if (dlg.Run () == (int)ResponseType.Accept) { database = dlg.Filename; result = true; } } finally { dlg.Destroy (); } return result; } } }././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/MonoDevelop.Database.Sql.Sqlite.addin.xmlmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/MonoDevelop.Database.Sql.Sqlite.addin.xm0000644000175000017500000000203311266446160033717 0ustar directhexdirecthex monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs0000644000175000017500000001066711266446160027745 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Database.Components; using MonoDevelop.Ide.Gui.Dialogs; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Sql.Sqlite { public class SqliteDbFactory : IDbFactory, IDbLinq { private ISqlDialect dialect; private IConnectionProvider connectionProvider; private IGuiProvider guiProvider; public string Identifier { get { return "Mono.Data.Sqlite"; } } public string Name { get { return AddinCatalog.GetString ("SQLite database"); } } public ISqlDialect Dialect { get { if (dialect == null) dialect = new SqliteDialect (); return dialect; } } public IConnectionProvider ConnectionProvider { get { if (connectionProvider == null) connectionProvider = new SqliteConnectionProvider (); return connectionProvider; } } public IGuiProvider GuiProvider { get { if (guiProvider == null) guiProvider = new SqliteGuiProvider (); return guiProvider; } } public IConnectionPool CreateConnectionPool (DatabaseConnectionContext context) { return new DefaultConnectionPool (this, ConnectionProvider, context); } public ISchemaProvider CreateSchemaProvider (IConnectionPool connectionPool) { return new SqliteSchemaProvider (connectionPool); } public DatabaseConnectionSettings GetDefaultConnectionSettings () { DatabaseConnectionSettings settings = new DatabaseConnectionSettings (); settings.ProviderIdentifier = Identifier; settings.MaxPoolSize = 5; return settings; } #region IDbLinq implementation public bool Generate (DatabaseConnectionSettings connection, string outputType, string outputFile, string language, string style, string defaultNamespace, string entityBase, string entityAttr, string membersAttr, string generateTypes, string culture, bool generateSchema, bool generateTimestamp, bool overrideEqualAndHash, bool extractProcedures, bool pluralize) { return SqlMetalServices.Generate (Provider, connection, outputType, outputFile, language, style, defaultNamespace, entityBase, entityAttr, membersAttr, generateTypes, culture, generateSchema, generateTimestamp, overrideEqualAndHash, extractProcedures, pluralize); } public bool Generate (DatabaseConnectionSettings connection, string outputType, string outputFile, string defaultNamespace, string entityBase, string entityAttr, string membersAttr, string generateTypes, string culture, bool generateSchema, bool generateTimestamp, bool overrideEqualAndHash, bool extractProcedures, bool pluralize) { return SqlMetalServices.Generate (Provider, connection, outputType, outputFile, defaultNamespace, entityBase, entityAttr, membersAttr, generateTypes, culture, generateSchema, generateTimestamp, overrideEqualAndHash, extractProcedures, pluralize); } public string Provider { get { return "Sqlite"; } } public bool HasProcedures { get { return true; } } #endregion } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/SqlitePooledDbConnection.cs0000644000175000017500000000561411266446160031574 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; using Mono.Data.Sqlite; namespace MonoDevelop.Database.Sql.Sqlite { public class SqlitePooledDbConnection : AbstractPooledDbConnection { public SqlitePooledDbConnection (IConnectionPool connectionPool, IDbConnection connection) : base (connectionPool, connection) { } public override Version DatabaseVersion { get { SqliteConnection connection = DbConnection as SqliteConnection; try { //the same output as sqlite3_libversion //eg: #define SQLITE_VERSION "3.5.3" return new Version (connection.ServerVersion); } catch { return new Version (3, 0); } } } public override DataSet ExecuteSet (IDbCommand command) { if (command == null) throw new ArgumentException ("command"); DataSet set = new DataSet (); using (command) { using (SqliteDataAdapter adapter = new SqliteDataAdapter (command as SqliteCommand)) { try { adapter.Fill (set); } catch (Exception e) { QueryService.RaiseException (e); } } } return set; } public override DataTable ExecuteTable (IDbCommand command) { if (command == null) throw new ArgumentException ("command"); DataTable table = new DataTable (); using (command) { using (SqliteDataAdapter adapter = new SqliteDataAdapter (command as SqliteCommand)) { try { adapter.Fill (table); } catch (Exception e) { QueryService.RaiseException (e); } } } return table; } public override DataTable GetSchema (string collectionName, params string[] restrictionValues) { return (connection as SqliteConnection).GetSchema (collectionName, restrictionValues); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/SqliteDialect.cs0000644000175000017500000000575311266446160027435 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql.Sqlite { public class SqliteDialect : AbstractSqlDialect { public override string QuoteIdentifier (string identifier) { if (identifier == null) throw new ArgumentNullException ("identifier"); if (IsReservedWord (identifier) || identifier.Contains (" ")) return String.Concat ('"', identifier, '"'); return identifier; } public override string MarkAsParameter (string identifier) { if (identifier == null) throw new ArgumentNullException ("identifier"); return ":" + identifier; } //http://www.sqlite.org/lang_keywords.html protected virtual bool IsReservedWord (string word) { word = word.ToUpper (); switch (word) { case "CREATE": case "FOREIGN": case "LIMIT": case "ROLLBACK": case "ADD": case "CROSS": case "FROM": case "FULL": case "NATURAL": case "SELECT": case "ALL": case "NOT": case "SET": case "ALTER": case "GROUP": case "NOTNULL": case "TABLE": case "HAVING": case "NULL": case "AND": case "DEFAULT": case "AS": case "DEFERRABLE": case "THEN": case "ON": case "TO": case "DELETE": case "IN": case "OR": case "TRANSACTION": case "INDEX": case "ORDER": case "AUTOINCREMENT": case "OUTER": case "UNION": case "DISTINCT": case "INNER": case "UNIQUE": case "BETWEEN": case "DROP": case "INSERT": case "UPDATE": case "BY": case "PRIMARY": case "USING": case "ELSE": case "INTERSECT": case "CASE": case "INTO": case "ESCAPE": case "IS": case "REFERENCES": case "CHECK": case "EXCEPT": case "ISNULL": case "COLLATE": case "JOIN": case "WHEN": case "WHERE": case "COMMIT": case "LEFT": case "RIGHT": case "CONSTRAINT": return true; default: return false; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/SqliteSyntaxMode.xml0000644000175000017500000001715211266446160030352 0ustar directhexdirecthex - /* */ " " ' ' COUNT AVG GROUP_CONCAT MAX MIN SUM TOTAL abs changes coalesce ifnull hex last_insert_rowid length like load_extension lower ltrim nulliff quote random randomblob replace round rtrim soundex sqlite_source_id sqlite_version substr total_changes trim typeof upper zeroblob date time datetime julianday || AS * / % + - << >> & | < <= > >= = == != >< IS IN LIKE GLOB MATCH REGEXP AND OR TABLE RENAME TO ALTER COLUMN ADD ANALYZE ATTACH DATABASE CREATE KEY INDEX IF EXISTS ON TEMPORARY TABLE TEMP CONSTRAINT PRIMARY AUTOINCREMENT UNIQUE CHECK COLLATE CONSTRAINT FOREIGN KEY DELETE UPDATE NULL DEFAULT CASCADE RESTRICT DEFERRABLE INITIALLY DEFERRED INMEDIATE TRIGGER BEFORE INSTEAD AFTER FOR EACH ROW VIEW VIRTUA TABLESPACE DROP REINDEX ANALYZE BEGIN COMMIT ROLLBACK TRANSACTION SAVEPOINT DELETE FROM INDEXED BY QUERY EXPLAIN PLAN INSERT ABORT REPLACE FAIL IGNORE INSERT INTO REPLACE VALUES SELECT ORDER BY LIMIT OFFSET SELECT DISTINCT ALL FROM WHERE GROUP HAVING NATURAL LEFT JOIN OUTER CROSS INNER USING COLLATE UNION INTERSECT EXCEPT UPDATE SET TRUE FALSE Yes No On Off 1 0 NULL INTEGER REAL TEXT BLOB PRAGMA auto_vacuum cache_size case_sensitive_like count_changes default_cache_size empty_result_callbacks encoding foreign_keys full_column_names fullfsync incremental_vacuum journal_mode journal_size_limit legacy_file_format locking_mode page_size max_page_count read_uncommitted recursive_triggers reverse_unordered_selects short_column_names synchronous temp_store temp_store_directory collation_list database_list foreign_key_list freelist_count index_info index_list page_count table_info schema_version user_version integrity_check quick_check parser_trace vdbe_trace vdbe_listing TODO FIXME HACK UNDONE monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/Schema/0000755000175000017500000000000011266446160025545 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/Schema/dummy.cs0000644000175000017500000000000011266446160027215 0ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/SqliteDatabaseAlreadyExistsException.cs0000644000175000017500000000273111266446160034146 0ustar directhexdirecthex// // SqliteDatabaseAlreadyExistsException.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; namespace MonoDevelop.Database.Sql.Sqlite { public class SqliteDatabaseAlreadyExistsException:Exception { public SqliteDatabaseAlreadyExistsException () { } public SqliteDatabaseAlreadyExistsException (string message) :base(message) { } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/Dialogs/0000755000175000017500000000000011266446160025727 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/Dialogs/SqliteTableEditorDialog.cs0000644000175000017500000000000011266446160032744 0ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/Dialogs/SqliteCreateDatabaseDialog.cs0000644000175000017500000000465611266446160033423 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; using MonoDevelop.Database.Designer; namespace MonoDevelop.Database.Sql.Sqlite { public class SqliteCreateDatabaseDialog : CreateDatabaseDialog { ConnectionSettingsWidget connectionWidget; public SqliteCreateDatabaseDialog (IDbFactory factory) : base (factory) { } protected override ConnectionSettingsWidget CreateConnectionSettingsWidget (IDbFactory factory) { connectionWidget = new SqliteConnectionSettingsWidget (factory); connectionWidget.ShowSettings (factory.GetDefaultConnectionSettings ()); connectionWidget.EnableOpenButton = true; connectionWidget.EnableTestButton = false; DatabaseConnectionSettings settings = new DatabaseConnectionSettings(connectionWidget.ConnectionSettings); // Set a temp database to avoid exception of the default connection pool. settings.Database = System.IO.Path.GetTempFileName (); // Create Context, Pool, Connection DatabaseConnectionContext ctx = new DatabaseConnectionContext (settings, true); ctx.ConnectionPool.Initialize (); this.DatabaseConnection = ctx; return connectionWidget; } } } ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/Dialogs/SqliteDatabaseConnectionSettingsDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/Dialogs/SqliteDatabaseConnectionSettings0000644000175000017500000000370711266446160034310 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; using MonoDevelop.Database.Designer; namespace MonoDevelop.Database.Sql.Sqlite { public class SqliteDatabaseConnectionSettingsDialog : DatabaseConnectionSettingsDialog { public SqliteDatabaseConnectionSettingsDialog (IDbFactory factory) : base (factory) { } public SqliteDatabaseConnectionSettingsDialog (IDbFactory factory, DatabaseConnectionSettings settings) : base (factory, settings) { } protected override ConnectionSettingsWidget CreateConnectionSettingsWidget (IDbFactory factory, bool isEditMode) { return new SqliteConnectionSettingsWidget (factory, isEditMode); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Sqlite/AssemblyInfo.cs0000644000175000017500000000051111266446160027264 0ustar directhexdirecthex// Autogenerated from MonoDevelop.Database.Sql.Sqlite.addin.xml using System.Reflection; [assembly: AssemblyProduct ("MonoDevelop")] [assembly: AssemblyTitle ("Sqlite provider for Mono Data Sql")] [assembly: AssemblyDescription ("Database Module")] [assembly: AssemblyVersion ("2.6")] [assembly: AssemblyCopyright ("MIT X11")] monodevelop-database-4.0.12/INSTALL0000644000175000017500000003660511266446160017460 0ustar directhexdirecthexInstallation Instructions ************************* Copyright (C) 1994-1996, 1999-2002, 2004-2012 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without warranty of any kind. Basic Installation ================== Briefly, the shell commands `./configure; make; make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for instructions specific to this package. Some packages provide this `INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. Running `configure' might take a while. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. 4. Type `make install' to install the programs and any data files and documentation. When installing into a prefix owned by root, it is recommended that the package be configured and built as a regular user, and only the `make install' phase executed with root privileges. 5. Optionally, type `make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything. Running this target as a regular user, particularly if the prior `make install' required root privileges, verifies that the installation completed correctly. 6. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. 7. Often, you can also type `make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. 8. Some packages, particularly those that use Automake, provide `make distcheck', which can by used by developers to test that all other targets like `make install' and `make uninstall' work correctly. This target is generally not run by end users. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. This is known as a "VPATH" build. With a non-GNU `make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or "universal" binaries--by specifying multiple `-arch' options to the compiler but only a single `-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CPP="gcc -E" CXXCPP="g++ -E" This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results using the `lipo' tool if you have problems. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. In general, the default for these options is expressed in terms of `${prefix}', so that specifying just `--prefix' will affect all of the other directory specifications that were not explicitly provided. The most portable way to affect installation locations is to pass the correct locations to `configure'; however, many packages provide one or both of the following shortcuts of passing variable assignments to the `make install' command line to change installation locations without having to reconfigure or recompile. The first method involves providing an override variable for each affected directory. For example, `make install prefix=/alternate/directory' will choose an alternate location for all directory configuration variables that were expressed in terms of `${prefix}'. Any directories that were specified during `configure', but not in terms of `${prefix}', must each be overridden at install time for the entire installation to be relocated. The approach of makefile variable overrides for each directory variable is required by the GNU Coding Standards, and ideally causes no recompilation. However, some platforms have known limitations with the semantics of shared libraries that end up requiring recompilation when using this method, particularly noticeable in packages that use GNU Libtool. The second method involves providing the `DESTDIR' variable. For example, `make install DESTDIR=/alternate/directory' will prepend `/alternate/directory' before all installation names. The approach of `DESTDIR' overrides is not required by the GNU Coding Standards, and does not work on platforms that have drive letters. On the other hand, it does better at avoiding recompilation issues, and works well even when some directory options were not specified in terms of `${prefix}' at `configure' time. Optional Features ================= If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Some packages offer the ability to configure how verbose the execution of `make' will be. For these packages, running `./configure --enable-silent-rules' sets the default to minimal output, which can be overridden with `make V=1'; while running `./configure --disable-silent-rules' sets the default to verbose, which can be overridden with `make V=0'. Particular systems ================== On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" and if that doesn't work, install pre-built binaries of GCC for HP-UX. HP-UX `make' updates targets which have the same time stamps as their prerequisites, which makes it generally unusable when shipped generated files such as `configure' are involved. Use GNU `make' instead. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot parse its `' header file. The option `-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended to try ./configure CC="cc" and if that doesn't work, try ./configure CC="cc -nodtk" On Solaris, don't put `/usr/ucb' early in your `PATH'. This directory contains several dysfunctional programs; working variants of these programs are available in `/usr/bin'. So, if you need `/usr/ucb' in your `PATH', put it _after_ `/usr/bin'. On Haiku, software installed for all users goes in `/boot/common', not `/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf limitation. Until the limitation is lifted, you can use this workaround: CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of all of the options to `configure', and exit. `--help=short' `--help=recursive' Print a summary of the options unique to this package's `configure', and exit. The `short' variant lists options used only in the top level, while the `recursive' variant lists options also present in any nested packages. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--prefix=DIR' Use DIR as the installation prefix. *note Installation Names:: for more details, including other options available for fine-tuning the installation locations. `--no-create' `-n' Run the configure checks, but stop before creating any output files. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/0000755000175000017500000000000011266446160025740 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/Makefile.in0000644000175000017500000003551111266446160030012 0ustar directhexdirecthex# Makefile.in generated by automake 1.12.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2012 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.include ChangeLog subdir = MonoDevelop.Database.ConnectionManager ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(assemblydir)" DATA = $(assembly_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ASSEMBLY_VERSION = @ASSEMBLY_VERSION@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CSC = @CSC@ CSC_FLAGS = @CSC_FLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ GLIB_SHARP_CFLAGS = @GLIB_SHARP_CFLAGS@ GLIB_SHARP_LIBS = @GLIB_SHARP_LIBS@ GTK_SHARP_CFLAGS = @GTK_SHARP_CFLAGS@ GTK_SHARP_LIBS = @GTK_SHARP_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD_LIBRARY_PATH = @LD_LIBRARY_PATH@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_PREFIX = @LIB_PREFIX@ LIB_SUFFIX = @LIB_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MCS = @MCS@ MD_ADDIN_DIR = @MD_ADDIN_DIR@ MD_ASSEMBLY_DIR = @MD_ASSEMBLY_DIR@ MD_DIR = @MD_DIR@ MKDIR_P = @MKDIR_P@ MONO = @MONO@ MONODEVELOP_CFLAGS = @MONODEVELOP_CFLAGS@ MONODEVELOP_CORE_ADDINS_CFLAGS = @MONODEVELOP_CORE_ADDINS_CFLAGS@ MONODEVELOP_CORE_ADDINS_LIBS = @MONODEVELOP_CORE_ADDINS_LIBS@ MONODEVELOP_LIBS = @MONODEVELOP_LIBS@ MONO_ADDINS_CFLAGS = @MONO_ADDINS_CFLAGS@ MONO_ADDINS_GUI_CFLAGS = @MONO_ADDINS_GUI_CFLAGS@ MONO_ADDINS_GUI_LIBS = @MONO_ADDINS_GUI_LIBS@ MONO_ADDINS_LIBS = @MONO_ADDINS_LIBS@ MONO_ADDINS_SETUP_CFLAGS = @MONO_ADDINS_SETUP_CFLAGS@ MONO_ADDINS_SETUP_LIBS = @MONO_ADDINS_SETUP_LIBS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH = @PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RUNTIME = @RUNTIME@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ UNMANAGED_DEPENDENCIES_MONO_CFLAGS = @UNMANAGED_DEPENDENCIES_MONO_CFLAGS@ UNMANAGED_DEPENDENCIES_MONO_LIBS = @UNMANAGED_DEPENDENCIES_MONO_LIBS@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gtksharp_prefix = @gtksharp_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.ConnectionManager.dll REFS = \ $(GLIB_SHARP_LIBS) \ $(GTK_SHARP_LIBS) \ $(MONO_ADDINS_LIBS) \ $(MONODEVELOP_CORE_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Components.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Designer.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Query.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:Mono.Posix \ -r:System \ -r:System.Data \ -r:System.Xml FILES = \ AssemblyInfo.cs \ Commands/ConnectionManagerCommands.cs \ Commands/ToolbarCommands.cs \ ConnectionManagerPad.cs \ FakeNodes.cs \ gtk-gui/generated.cs \ NodeBuilders/AggregatesNodeBuilder.cs \ NodeBuilders/ColumnNodeBuilder.cs \ NodeBuilders/ColumnsNodeBuilder.cs \ NodeBuilders/ConnectionContextCollectionNodeBuilder.cs \ NodeBuilders/ConnectionContextNodeBuilder.cs \ NodeBuilders/ConstraintNodeBuilder.cs \ NodeBuilders/ConstraintsNodeBuilder.cs \ NodeBuilders/GroupsNodeBuilder.cs \ NodeBuilders/LanguagesNodeBuilder.cs \ NodeBuilders/OperatorsNodeBuilder.cs \ NodeBuilders/ParameterNodeBuilder.cs \ NodeBuilders/ParametersNodeBuilder.cs \ NodeBuilders/ProcedureNodeBuilder.cs \ NodeBuilders/ProceduresNodeBuilder.cs \ NodeBuilders/RolesNodeBuilder.cs \ NodeBuilders/RulesNodeBuilder.cs \ NodeBuilders/SequencesNodeBuilder.cs \ NodeBuilders/TableNodeBuilder.cs \ NodeBuilders/TablesNodeBuilder.cs \ NodeBuilders/TriggersNodeBuilder.cs \ NodeBuilders/TypesNodeBuilder.cs \ NodeBuilders/UserNodeBuilder.cs \ NodeBuilders/UsersNodeBuilder.cs \ NodeBuilders/ViewNodeBuilder.cs \ NodeBuilders/ViewsNodeBuilder.cs RES = \ gtk-gui/gui.stetic \ MonoDevelop.Database.ConnectionManager.addin.xml assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb EXTRA_DIST = $(FILES) $(RES) build_sources = $(addprefix $(srcdir)/, $(FILES)) $(GENERATED_FILES) build_resources = $(addprefix $(srcdir)/, $(RES)) build_test_sources = $(addprefix $(srcdir)/, $(TESTFILES)) $(GENERATED_FILES) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.include $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu MonoDevelop.Database.ConnectionManager/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu MonoDevelop.Database.ConnectionManager/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_srcdir)/Makefile.include: $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-assemblyDATA: $(assembly_DATA) @$(NORMAL_INSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(assemblydir)'"; \ $(MKDIR_P) "$(DESTDIR)$(assemblydir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(assemblydir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(assemblydir)" || exit $$?; \ done uninstall-assemblyDATA: @$(NORMAL_UNINSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(assemblydir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: ctags: CTAGS CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(assemblydir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-assemblyDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-assemblyDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-assemblyDATA install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am uninstall uninstall-am uninstall-assemblyDATA all: $(ASSEMBLY) $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/FakeNodes.cs0000644000175000017500000001430311266446160030127 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.ConnectionManager { public abstract class BaseNode { public event EventHandler RefreshEvent; protected DatabaseConnectionContext context; public BaseNode (DatabaseConnectionContext context) { if (context == null) throw new ArgumentNullException ("context"); this.context = context; } public DatabaseConnectionContext ConnectionContext { get { return context; } } public void Refresh () { if (RefreshEvent != null) RefreshEvent (this, EventArgs.Empty); } } public class TableNode : BaseNode { protected TableSchema table; public TableNode (DatabaseConnectionContext context, TableSchema table) : base (context) { if (table == null) throw new ArgumentNullException ("table"); this.table = table; } public TableSchema Table { get { return table; } } } public class TablesNode : BaseNode { public TablesNode (DatabaseConnectionContext context) : base (context) { } } public class ViewNode : BaseNode { protected ViewSchema view; public ViewNode (DatabaseConnectionContext context, ViewSchema view) : base (context) { if (view == null) throw new ArgumentNullException ("view"); this.view = view; } public ViewSchema View { get { return view; } } } public class ViewsNode : BaseNode { public ViewsNode (DatabaseConnectionContext context) : base (context) { } } public class ProcedureNode : BaseNode { protected ProcedureSchema procedure; public ProcedureNode (DatabaseConnectionContext context, ProcedureSchema procedure) : base (context) { if (procedure == null) throw new ArgumentNullException ("procedure"); this.procedure = procedure; } public ProcedureSchema Procedure { get { return procedure; } } } public class ProceduresNode : BaseNode { public ProceduresNode (DatabaseConnectionContext context) : base (context) { } } public class AggregatesNode : BaseNode { public AggregatesNode (DatabaseConnectionContext context) : base (context) { } } public class GroupsNode : BaseNode { public GroupsNode (DatabaseConnectionContext context) : base (context) { } } public class LanguagesNode : BaseNode { public LanguagesNode (DatabaseConnectionContext context) : base (context) { } } public class OperatorsNode : BaseNode { public OperatorsNode (DatabaseConnectionContext context) : base (context) { } } public class RulesNode : BaseNode { public RulesNode (DatabaseConnectionContext context) : base (context) { } } public class RolesNode : BaseNode { public RolesNode (DatabaseConnectionContext context) : base (context) { } } public class SequencesNode : BaseNode { public SequencesNode (DatabaseConnectionContext context) : base (context) { } } public class UserNode : BaseNode { protected UserSchema user; public UserNode (DatabaseConnectionContext context, UserSchema user) : base (context) { if (user == null) throw new ArgumentNullException ("user"); this.user = user; } public UserSchema User { get { return user; } } } public class UsersNode : BaseNode { public UsersNode (DatabaseConnectionContext context) : base (context) { } } public class TypesNode : BaseNode { public TypesNode (DatabaseConnectionContext context) : base (context) { } } public class ColumnNode : BaseNode { protected ColumnSchema column; public ColumnNode (DatabaseConnectionContext context, ColumnSchema column) : base (context) { if (column == null) throw new ArgumentNullException ("column"); this.column = column; } public ColumnSchema Column { get { return column; } } } public class ColumnsNode : BaseNode { protected ISchema schema; public ColumnsNode (DatabaseConnectionContext context, ISchema schema) : base (context) { if (schema == null) throw new ArgumentNullException ("schema"); this.schema = schema; } public ISchema Schema { get { return schema; } } } public class ConstraintsNode : BaseNode { protected ISchema schema; public ConstraintsNode (DatabaseConnectionContext context, ISchema schema) : base (context) { if (schema == null) throw new ArgumentNullException ("schema"); this.schema = schema; } public ISchema Schema { get { return schema; } } } public class TriggersNode : BaseNode { public TriggersNode (DatabaseConnectionContext context) : base (context) { } } public class ParametersNode : BaseNode { private ProcedureSchema procedure; public ParametersNode (DatabaseConnectionContext context, ProcedureSchema procedure) : base (context) { if (procedure == null) throw new ArgumentNullException ("procedure"); this.procedure = procedure; } public ProcedureSchema Procedure { get { return procedure; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/ConnectionManagerPad.cs0000644000175000017500000000441411266446160032311 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using System.IO; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; using MonoDevelop.Ide.Gui.Components; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.ConnectionManager { public class ConnectionManagerPad : TreeViewPad { private VBox vbox; public ConnectionManagerPad () { vbox = new VBox (); Toolbar toolbar = IdeApp.CommandService.CreateToolbar ("/MonoDevelop/Database/ToolBar/ConnectionManagerPad"); toolbar.ToolbarStyle = ToolbarStyle.Icons; vbox.PackStart (toolbar, false, true, 0); } public override void Initialize (NodeBuilder[] builders, TreePadOption[] options, string contextMenuPath) { base.Initialize (builders, options, contextMenuPath); vbox.PackStart (base.Control, true, true, 0); vbox.ShowAll (); TreeView.Clear (); TreeView.LoadTree (ConnectionContextService.DatabaseConnections); } public override Widget Control { get { return vbox; } } } }././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xmlmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionMa0000644000175000017500000006103011266446160034171 0ustar directhexdirecthex Connection manager pad toolbar items. monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/gtk-gui/0000755000175000017500000000000011266446160027307 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/gtk-gui/generated.cs0000644000175000017500000000106211266446160031573 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace Stetic { internal class Gui { private static bool initialized; static internal void Initialize (Gtk.Widget iconRenderer) { if ((Stetic.Gui.initialized == false)) { Stetic.Gui.initialized = true; } } } internal class ActionGroups { public static Gtk.ActionGroup GetActionGroup (System.Type type) { return Stetic.ActionGroups.GetActionGroup (type.FullName); } public static Gtk.ActionGroup GetActionGroup (string name) { return null; } } } monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/gtk-gui/gui.stetic0000644000175000017500000000024411266446160031310 0ustar directhexdirecthex 2.12 monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/Makefile.am0000644000175000017500000000421011266446160027771 0ustar directhexdirecthexADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.ConnectionManager.dll REFS = \ $(GLIB_SHARP_LIBS) \ $(GTK_SHARP_LIBS) \ $(MONO_ADDINS_LIBS) \ $(MONODEVELOP_CORE_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Components.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Designer.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Query.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:Mono.Posix \ -r:System \ -r:System.Data \ -r:System.Xml FILES = \ AssemblyInfo.cs \ Commands/ConnectionManagerCommands.cs \ Commands/ToolbarCommands.cs \ ConnectionManagerPad.cs \ FakeNodes.cs \ gtk-gui/generated.cs \ NodeBuilders/AggregatesNodeBuilder.cs \ NodeBuilders/ColumnNodeBuilder.cs \ NodeBuilders/ColumnsNodeBuilder.cs \ NodeBuilders/ConnectionContextCollectionNodeBuilder.cs \ NodeBuilders/ConnectionContextNodeBuilder.cs \ NodeBuilders/ConstraintNodeBuilder.cs \ NodeBuilders/ConstraintsNodeBuilder.cs \ NodeBuilders/GroupsNodeBuilder.cs \ NodeBuilders/LanguagesNodeBuilder.cs \ NodeBuilders/OperatorsNodeBuilder.cs \ NodeBuilders/ParameterNodeBuilder.cs \ NodeBuilders/ParametersNodeBuilder.cs \ NodeBuilders/ProcedureNodeBuilder.cs \ NodeBuilders/ProceduresNodeBuilder.cs \ NodeBuilders/RolesNodeBuilder.cs \ NodeBuilders/RulesNodeBuilder.cs \ NodeBuilders/SequencesNodeBuilder.cs \ NodeBuilders/TableNodeBuilder.cs \ NodeBuilders/TablesNodeBuilder.cs \ NodeBuilders/TriggersNodeBuilder.cs \ NodeBuilders/TypesNodeBuilder.cs \ NodeBuilders/UserNodeBuilder.cs \ NodeBuilders/UsersNodeBuilder.cs \ NodeBuilders/ViewNodeBuilder.cs \ NodeBuilders/ViewsNodeBuilder.cs RES = \ gtk-gui/gui.stetic \ MonoDevelop.Database.ConnectionManager.addin.xml all: $(ASSEMBLY) $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb EXTRA_DIST = $(FILES) $(RES) include $(top_srcdir)/Makefile.include monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/ChangeLog0000644000175000017500000005315111266446160027517 0ustar directhexdirecthex2010-07-19 Mike Krüger * NodeBuilders/TableNodeBuilder.cs: Track API changes. 2010-03-22 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.ConnectionManager.addin.xml: Bumped MD version. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.csproj: Flush. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.csproj: Remove mono.addins.targets import. 2010-03-17 Lluis Sanchez Gual * ConnectionManagerPad.cs: * Commands/ToolbarCommands.cs: * NodeBuilders/UserNodeBuilder.cs: * NodeBuilders/ViewNodeBuilder.cs: * NodeBuilders/UsersNodeBuilder.cs: * NodeBuilders/RolesNodeBuilder.cs: * NodeBuilders/ViewsNodeBuilder.cs: * NodeBuilders/RulesNodeBuilder.cs: * NodeBuilders/TableNodeBuilder.cs: * NodeBuilders/TypesNodeBuilder.cs: * NodeBuilders/GroupsNodeBuilder.cs: * NodeBuilders/TablesNodeBuilder.cs: * NodeBuilders/ColumnNodeBuilder.cs: * NodeBuilders/ColumnsNodeBuilder.cs: * NodeBuilders/TriggersNodeBuilder.cs: * NodeBuilders/ProcedureNodeBuilder.cs: * NodeBuilders/LanguagesNodeBuilder.cs: * NodeBuilders/SequencesNodeBuilder.cs: * NodeBuilders/OperatorsNodeBuilder.cs: * NodeBuilders/ParameterNodeBuilder.cs: * NodeBuilders/ProceduresNodeBuilder.cs: * Commands/ConnectionManagerCommands.cs: * NodeBuilders/ParametersNodeBuilder.cs: * NodeBuilders/ConstraintNodeBuilder.cs: * NodeBuilders/AggregatesNodeBuilder.cs: * NodeBuilders/ConstraintsNodeBuilder.cs: * NodeBuilders/ConnectionContextNodeBuilder.cs: * MonoDevelop.Database.ConnectionManager.csproj: * MonoDevelop.Database.ConnectionManager.addin.xml: * NodeBuilders/ConnectionContextCollectionNodeBuilder.cs: Merged MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui and MD.Components into MD.Ide. 2010-02-12 Lluis Sanchez Gual * gtk-gui/generated.cs: * MonoDevelop.Database.ConnectionManager.csproj: Flush. 2010-02-03 Luciano N. Callero * MonoDevelop.Database.ConnectionManager.csproj: - Flush changes. 2009-11-11 Luciano N. Callero * NodeBuilders/TableNodeBuilder.cs: * Commands/ConnectionManagerCommands.cs: * MonoDevelop.Database.ConnectionManager.addin.xml: Implement Query (Select, Update, Insert, Delete) in New Window, Clipboard or current Window. * MonoDevelop.Database.ConnectionManager.csproj: Target runtime from 2.0 to 3.5. 2009-11-04 Luciano N. Callero * NodeBuilders/ConnectionContextNodeBuilder.cs: Remove unneeded comments. 2009-11-03 Luciano N. Callero * NodeBuilders/ConnectionContextNodeBuilder.cs: Fix Drop Database Bug. * MonoDevelop.Database.ConnectionManager.addin.xml: Show Database Name in connection description. 2009-10-30 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.ConnectionManager.addin.xml: Bump MD version. 2009-10-22 Luciano N. Callero * NodeBuilders/ConnectionContextNodeBuilder.cs: Fixed Remove Database bugs and complete edit database connection. * NodeBuilders/ConnectionContextCollectionNodeBuilder.cs: Fixed Remove Database bug. 2009-10-18 Michael Hutchinson * Makefile.am: * MonoDevelop.Database.ConnectionManager.csproj: Fix the build & flush format changes. 2009-10-15 Luciano N. Callero * NodeBuilders/UsersNodeBuilder.cs: * NodeBuilders/ProceduresNodeBuilder.cs: * NodeBuilders/ViewsNodeBuilder.cs: Users, Procedures, Views refresh Operation is now responsive. Fix Multi-thread bugs refreshing. 2009-10-15 Luciano N. Callero * NodeBuilders/TablesNodeBuilder.cs:Tables refresh Operation is now responsive. Fix Multi-thread bugs refreshing. * MonoDevelop.Database.ConnectionManager.addin.xml: Refresh command removed. 2009-10-14 Luciano N. Callero * NodeBuilders/UsersNodeBuilder.cs: * NodeBuilders/ParametersNodeBuilder.cs: * NodeBuilders/TypesNodeBuilder.cs: * NodeBuilders/ConnectionContextNodeBuilder.cs: * NodeBuilders/LanguagesNodeBuilder.cs: * NodeBuilders/ConstraintsNodeBuilder.cs: * NodeBuilders/AggregatesNodeBuilder.cs: * NodeBuilders/ViewNodeBuilder.cs: * NodeBuilders/TablesNodeBuilder.cs: * NodeBuilders/ProceduresNodeBuilder.cs: * NodeBuilders/UserNodeBuilder.cs: * NodeBuilders/OperatorsNodeBuilder.cs: * NodeBuilders/GroupsNodeBuilder.cs: * NodeBuilders/ColumnsNodeBuilder.cs: * NodeBuilders/RolesNodeBuilder.cs: * NodeBuilders/TriggersNodeBuilder.cs: * NodeBuilders/TableNodeBuilder.cs: * NodeBuilders/ProcedureNodeBuilder.cs: * NodeBuilders/RulesNodeBuilder.cs: * NodeBuilders/SequencesNodeBuilder.cs: * NodeBuilders/ViewsNodeBuilder.cs: * MonoDevelop.Database.ConnectionManager.addin.xml: * Commands/ConnectionManagerCommands.cs: Refresh command isn't needed, MD core already have a built-in refresh menu. 2009-10-07 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.ConnectionManager.addin.xml: Bump MD version. 2009-08-26 Lluis Sanchez Gual * gtk-gui/gui.stetic: * MonoDevelop.Database.ConnectionManager.csproj: We now depend on gtk# 2.12.8, Mono 2.4, and Mono.Addins 0.4. 2009-07-31 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.csproj: Disabled 'require specific version' flags. 2009-05-27 Luciano N. Callero * MonoDevelop.Database.ConnectionManager.csproj: Include ChangeLog into project. * NodeBuilders/ProcedureNodeBuilders.cs: Show differents image for functions and stored procedures. Implement alter procedure. 2009-05-19 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.csproj: Flush. 2009-04-21 Luciano N. Callero * NodeBuilders/TablesNodeBuilder.cs: Added a new way to add a New Table with a unique name. 2009-04-17 Michael Hutchinson * Makefile.am: Fix builddir paths. 2009-04-15 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.ConnectionManager.addin.xml: Bump MD version. 2009-02-24 Lluis Sanchez Gual * ConnectionManagerPad.cs: Track api changes. 2009-02-20 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.csproj: Updated references. 2009/02/06 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.mdp: * MonoDevelop.Database.ConnectionManager.csproj: Migrated to MSBuild file format. 2009/02/03 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.ConnectionManager.addin.xml: Bump MD version. 2009/02/03 Lluis Sanchez Gual * NodeBuilders/UserNodeBuilder.cs: * NodeBuilders/ViewNodeBuilder.cs: * NodeBuilders/TableNodeBuilder.cs: * NodeBuilders/ProcedureNodeBuilder.cs: * Commands/ConnectionManagerCommands.cs: * NodeBuilders/ConnectionContextNodeBuilder.cs: * MonoDevelop.Database.ConnectionManager.addin.xml: Reuse existing rename command. * gtk-gui/generated.cs: Flush. 2009-01-26 Michael Hutchinson * MonoDevelop.Database.ConnectionManager.mdp: Flush project format changes. 2008-12-02 Michael Hutchinson * Makefile.am: * AssemblyInfo.cs: * MonoDevelop.Database.ConnectionManager.mdp: Add AssemblyInfo.cs files that are autogenerated from the addin manifests. 2008-11-06 Michael Hutchinson * Makefile.am: Fix build dependencies. 2008-11-05 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.addin.xml: Bump MD version. 2008-09-17 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.mdp: Updated projects. 2008-09-04 Lluis Sanchez Gual * NodeBuilders/UsersNodeBuilder.cs, NodeBuilders/ParametersNodeBuilder.cs, NodeBuilders/TypesNodeBuilder.cs, NodeBuilders/ConnectionContextNodeBuilder.cs, NodeBuilders/LanguagesNodeBuilder.cs, NodeBuilders/ConstraintsNodeBuilder.cs, NodeBuilders/AggregatesNodeBuilder.cs, NodeBuilders/ViewNodeBuilder.cs, NodeBuilders/TablesNodeBuilder.cs, NodeBuilders/ProceduresNodeBuilder.cs, NodeBuilders/UserNodeBuilder.cs, NodeBuilders/OperatorsNodeBuilder.cs, NodeBuilders/GroupsNodeBuilder.cs, NodeBuilders/ConnectionContextCollectionNodeBuilder.cs, NodeBuilders/ParameterNodeBuilder.cs, NodeBuilders/ColumnsNodeBuilder.cs, NodeBuilders/RolesNodeBuilder.cs, NodeBuilders/ConstraintNodeBuilder.cs, NodeBuilders/TriggersNodeBuilder.cs, NodeBuilders/TableNodeBuilder.cs, NodeBuilders/ProcedureNodeBuilder.cs, NodeBuilders/RulesNodeBuilder.cs, NodeBuilders/SequencesNodeBuilder.cs, NodeBuilders/ColumnNodeBuilder.cs, NodeBuilders/ViewsNodeBuilder.cs, ConnectionManagerPad.cs: Moved the extensible tree view to its own directory. 2008-08-18 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.mdp: Fix reference to Mono.TextEditor. The incorrect add-in version number causes problems in the makefile synchronization. 2008-06-04 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.addin.xml: Bump MD version. 2008-05-21 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.mdp: Fix projects. 2008-03-10 Lluis Sanchez Gual * NodeBuilders/ConnectionContextNodeBuilder.cs, NodeBuilders/ViewNodeBuilder.cs, NodeBuilders/UserNodeBuilder.cs, NodeBuilders/TableNodeBuilder.cs, NodeBuilders/ProcedureNodeBuilder.cs: Track changes in the MessageService class. 2008-02-08 Lluis Sanchez Gual * ConnectionManagerPad.cs: Track api changes. 2008-01-30 Ben Motmans * Commands/ConnectionManagerCommands.cs: added parameter to the ShowCreateDatabaseDialog method 2008-01-29 Ben Motmans * Commands/ConnectionManagerCommands.cs: removed useless comments 2008-01-29 Ben Motmans * gtk-gui, gtk-gui/generated.cs, gtk-gui/gui.stetic: added missing auto-generated code 2008-01-29 Ben Motmans * MonoDevelop.Database.ConnectionManager.mdp: Gtk# 2.8 compatibility 2008-01-28 Ben Motmans * NodeBuilders/UsersNodeBuilder.cs, NodeBuilders/ConnectionContextNodeBuilder.cs, NodeBuilders/ViewNodeBuilder.cs, NodeBuilders/TablesNodeBuilder.cs, NodeBuilders/ProceduresNodeBuilder.cs, NodeBuilders/UserNodeBuilder.cs, NodeBuilders/ConnectionContextCollectionNodeBuilder.cs, NodeBuilders/TriggersNodeBuilder.cs, NodeBuilders/TableNodeBuilder.cs, NodeBuilders/ProcedureNodeBuilder.cs, NodeBuilders/ColumnNodeBuilder.cs, NodeBuilders/ViewsNodeBuilder.cs: migration to the improved capabilities system * MonoDevelop.Database.ConnectionManager.addin.xml, Commands/ConnectionManagerCommands.cs: modified the behavior of the Add Connection and Create Database command * Commands/ToolbarCommands.cs, ConnectionManagerPad.cs: the connection manager pad now supports a toolbar 2008-01-25 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.addin.xml: Update MD version. 2008-01-22 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.addin.xml: Updated add-in category and description. 2007-12-22 Ben Motmans * NodeBuilders/ColumnsNodeBuilder.cs: removed temporary debug statement 2007-12-22 Ben Motmans * NodeBuilders/ParametersNodeBuilder.cs, NodeBuilders/ColumnsNodeBuilder.cs: Add multiple children inside a single dispatch [fixes #339726] 2007-12-14 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.mdp: Updated project file. The order of extended properties won't change anymore. 2007-12-12 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.addin.xml: Bump add-in versions. 2007-12-04 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.mdp: Updated project files. 2007-12-04 Lluis Sanchez Gual * NodeBuilders/UsersNodeBuilder.cs, NodeBuilders/ParametersNodeBuilder.cs, NodeBuilders/ConnectionContextNodeBuilder.cs, NodeBuilders/TypesNodeBuilder.cs, NodeBuilders/LanguagesNodeBuilder.cs, NodeBuilders/ConstraintsNodeBuilder.cs, NodeBuilders/AggregatesNodeBuilder.cs, NodeBuilders/TablesNodeBuilder.cs, NodeBuilders/ViewNodeBuilder.cs, NodeBuilders/ProceduresNodeBuilder.cs, NodeBuilders/OperatorsNodeBuilder.cs, NodeBuilders/UserNodeBuilder.cs, NodeBuilders/GroupsNodeBuilder.cs, NodeBuilders/ParameterNodeBuilder.cs, NodeBuilders/ConnectionContextCollectionNodeBuilder.cs, NodeBuilders/ColumnsNodeBuilder.cs, NodeBuilders/RolesNodeBuilder.cs, NodeBuilders/ConstraintNodeBuilder.cs, NodeBuilders/TriggersNodeBuilder.cs, NodeBuilders/TableNodeBuilder.cs, NodeBuilders/ProcedureNodeBuilder.cs, NodeBuilders/RulesNodeBuilder.cs, NodeBuilders/SequencesNodeBuilder.cs, NodeBuilders/ColumnNodeBuilder.cs, NodeBuilders/ViewsNodeBuilder.cs, MonoDevelop.Database.ConnectionManager.addin.xml, MonoDevelop.Database.ConnectionManager.mdp, Makefile.am: Directory reorganization. 2007-11-09 Michael Hutchinson * NodeBuilders/TablesNodeBuilder.cs, NodeBuilders/ConnectionContextCollectionNodeBuilder.cs: Track LoggingService API. Replace some "LogError" calls with "LogDebug" calls. 2007-10-29 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.addin.xml: Bump MD version. 2007-10-23 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.mdp: Project file names updated by change in MD path functions. 2007-10-16 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.mdp: Fix required GTK# version. 2007-09-26 Michael Hutchinson * MonoDevelop.Database.ConnectionManager.mdp: Don't unnecessarily local-copy project references. Don't sync EXTRA_DIST with deploy files. Add Makefile.am to file list. * Makefile.am: Don't deploy .addin.xml file. 2007-09-21 Lluis Sanchez Gual * MonoDevelop.Database.ConnectionManager.addin.xml: Bump MD version. 2007-09-19 Ben Motmans * NodeBuilders/ViewNodeBuilder.cs, NodeBuilders/ProcedureNodeBuilder.cs: only show child nodes if supported by the provider 2007-09-16 Ben Motmans * Makefile.am: link to the correct Mono.Addins dll 2007-09-07 Ben Motmans * NodeBuilders/UsersNodeBuilder.cs, NodeBuilders/ConnectionContextNodeBuilder.cs, NodeBuilders/TablesNodeBuilder.cs, NodeBuilders/ViewNodeBuilder.cs, NodeBuilders/ProceduresNodeBuilder.cs, NodeBuilders/UserNodeBuilder.cs, NodeBuilders/TriggersNodeBuilder.cs, NodeBuilders/TableNodeBuilder.cs, NodeBuilders/ProcedureNodeBuilder.cs, NodeBuilders/ViewsNodeBuilder.cs, NodeBuilders/ColumnNodeBuilder.cs: improved capabilities system * ConnectionManagerPad.cs: removed unneeded using statement 2007-08-29 Ben Motmans * MonoDevelop.Database.ConnectionManager.addin.xml: updated ExtensionNodeSets 2007-08-28 Ben Motmans * MonoDevelop.Database.ConnectionManager.mdp, Makefile.am: use project references instead of assembly references 2007-08-28 Ben Motmans * NodeBuilders/UsersNodeBuilder.cs, NodeBuilders/ParametersNodeBuilder.cs, NodeBuilders/TypesNodeBuilder.cs, NodeBuilders/ConnectionContextNodeBuilder.cs, NodeBuilders/LanguagesNodeBuilder.cs, NodeBuilders/ConstraintsNodeBuilder.cs, NodeBuilders/AggregatesNodeBuilder.cs, NodeBuilders/ViewNodeBuilder.cs, NodeBuilders/TablesNodeBuilder.cs, NodeBuilders/ProceduresNodeBuilder.cs, NodeBuilders/OperatorsNodeBuilder.cs, NodeBuilders/GroupsNodeBuilder.cs, NodeBuilders/ConnectionContextCollectionNodeBuilder.cs, NodeBuilders/ColumnsNodeBuilder.cs, NodeBuilders/ParameterNodeBuilder.cs, NodeBuilders/ConstraintNodeBuilder.cs, NodeBuilders/RolesNodeBuilder.cs, NodeBuilders/TriggersNodeBuilder.cs, NodeBuilders/TableNodeBuilder.cs, NodeBuilders/ProcedureNodeBuilder.cs, NodeBuilders/RulesNodeBuilder.cs, NodeBuilders/SequencesNodeBuilder.cs, NodeBuilders/ViewsNodeBuilder.cs, NodeBuilders/ColumnNodeBuilder.cs, MonoDevelop.Database.ConnectionManager.addin.xml: updated addin paths * Makefile.am: updated makefile 2007-08-03 Ben Motmans * NodeBuilders/*: various fixes for refreshing nodes * NodeBuilders/ConnectionContextNodeBuilder.cs: Added a connect command and correctly implemented the DropDatabase command * use the DispatchService as a static class instead of a service 2007-08-02 Ben Motmans * NodeBuilders/ViewNodeBuilder.cs, NodeBuilders/UserNodeBuilder.cs, NodeBuilders/TableNodeBuilder.cs, NodeBuilders/ProcedureNodeBuilder.cs, NodeBuilders/ConnectionContextNodeBuilder.cs: fixed rename objects in the tree 2007-08-01 Ben Motmans * NodeBuilders/*.cs: no longer uses the NodeState object but Context.GetTreeBuilder to get the ITreeBuilder for a specific node * NodeBuilders/TableNodeBuilder.cs: use a bg thread Select* methods * NodeBuilders/ConstraintsNodeBuilder.cs, NodeBuilders/ColumnNodeBuilder.cs: added support for column constraints * ConnectionManagerCommands.cs, NodeBuilders/ConnectionContextCollectionNodeBuilder.cs: moved AddConnection command into the nodebuilder * ConnectionManagerPad.cs: ConnectionContextService is now automatically initialized * MonoDevelop.Database.ConnectionManager.addin.xml: commented out a command since it caused problems 2007-07-31 Ben Motmans * NodeBuilders/*.cs: Make use of the GuiProvider to show Gui dialogs 2007-07-25 Ben Motmans * NodeBuilders/ProceduresNodeBuilder.cs, NodeBuilders/TablesNodeBuilder.cs, NodeBuilders/UsersNodeBuilder.cs, NodeBuilders/ViewsNodeBuilder.cs: implemented create command * NodeBuilders/ProcedureNodeBuilder.cs, NodeBuilders/TableNodeBuilder.cs, NodeBuilders/UserNodeBuilder.cs, NodeBuilders/ViewNodeBuilder.cs: implemented drop, rename and refresh commands * NodeBuilders/ConnectionContextNodeBuilder.cs: use the new schemaprovider metadata support * NodeBuilders/ConnectionContextCollectionNodeBuilder.cs: implemented CreateDatabase 2007-07-18 Ben Motmans * NodeBuilders/ViewNodeBuilder.cs, NodeBuilders/UserNodeBuilder.cs, NodeBuilders/TableNodeBuilder.cs, NodeBuilders/ProcedureNodeBuilder.cs, NodeBuilders/ParametersNodeBuilder.cs: Added CommandHandlers and CommandUpdateHandlers * NodeBuilders/ConnectionContextNodeBuilder.cs, NodeBuilders/ConstraintsNodeBuilder.cs NodeBuilders/ProceduresNodeBuilder.cs, NodeBuilders/TablesNodeBuilder.cs, NodeBuilders/UsersNodeBuilder.cs, NodeBuilders/ViewsNodeBuilder.cs, NodeBuilders/TriggersNodeBuilder.cs: added CommandUpdateHandlers * NodeBuilders/ConnectionContextCollectionNodeBuilder.cs: added a NodeCommandHandler * ConnectionManagerCommands.cs: Create, Alter, Drop and Rename Schema commands * MonoDevelop.Database.ConnectionManager.addin.xml: Added ExtensionPoints for all NodeBuilders and added CommandItems for all ConnectionManagerCommands 2007-07-17 Ben Motmans * Makefile.am: initial makefile * ConnectionManagerCommands.cs: added CreateXXX, DropXXX, AlterXXX, RenameXXX commands * NodeBuilders/AggregatesNodeBuilder.cs, NodeBuilders/ColumnNodeBuilder.cs, NodeBuilders/ColumnsNodeBuilder.cs, NodeBuilders/ConnectionContextCollectionNodeBuilder.cs, NodeBuilders/ConnectionContextNodeBuilder.cs, NodeBuilders/ConstraintNodeBuilder.cs, NodeBuilders/ConstraintsNodeBuilder.cs, NodeBuilders/GroupsNodeBuilder.cs, NodeBuilders/LanguagesNodeBuilder.cs, NodeBuilders/OperatorsNodeBuilder.cs, NodeBuilders/ParameterNodeBuilder.cs, NodeBuilders/ParametersNodeBuilder.cs, NodeBuilders/RolesNodeBuilder.cs, NodeBuilders/RulesNodeBuilder.cs, NodeBuilders/SequencesNodeBuilder.cs, NodeBuilders/TriggersNodeBuilder.cs, NodeBuilders/TypesNodeBuilder.cs: initial implementation * NodeBuilders/ProcedureNodeBuilder.cs, NodeBuilders/ProceduresNodeBuilder.cs, NodeBuilders/TableNodeBuilder.cs, NodeBuilders/TablesNodeBuilder.cs, NodeBuilders/ViewNodeBuilder.cs, NodeBuilders/ViewsNodeBuilder.cs, NodeBuilders/UserNodeBuilder.cs, NodeBuilders/UsersNodeBuilder.cs: Updated to use the new NodeState object when doing Async method calls * MonoDevelop.Database.ConnectionManager.addin.xml: added nodebuilder extension items * NodeState.cs: internal class to store the state when doing async calls in the connection manager pad 2007-07-14 Ben Motmans * NodeBuilders/*.cs: small changes due to updated Mono.Data.Sql API 2007-07-10 Ben Motmans * NewConnectionDialog.cs: moved to Components project * NodeBuilders/*.cs: bugfixes + command implementations * FakeNodes.cs: Refresh event + additional properties in some fake nodes 2007-07-05 Ben Motmans * NewConnectionDialog.cs: small bugfixes * FakeNodes.cs: dummy nodes to use in the TreeBuilder * Commands.cs: list of commends and AddConnection implementation * ConnectionManagerService.cs: service to load/save connection settings * ConnectionManagerPad.cs, NodeBuilders/*.cs: update of the old code, make use of ThreadPool instead of always creating new threads + use the updated Mono.Data.Sql API 2007-07-02 Ben Motmans * NewConnectionDialog.cs: Remake of the old dialog using the integrated MD designer, the new dialog also includes pooling options monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/Commands/0000755000175000017500000000000011266446160027501 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/Commands/ToolbarCommands.cs0000644000175000017500000000244611266446160033122 0ustar directhexdirecthex// // Authors: // Ben Motmans // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // namespace MonoDevelop.Database.ConnectionManager { public enum ToolbarCommands { ToggleSystemObjects //TODO: add default handler } } ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/Commands/ConnectionManagerCommands.csmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/Commands/ConnectionManagerCommand0000644000175000017500000000541311266446160034320 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.ConnectionManager { public enum ConnectionManagerCommands { AddConnectionByProvider, CreateDatabaseByProvider, EditConnection, RemoveConnection, ConnectConnection, DisconnectConnection, Query, SelectAll, SelectColumns, EmptyTable, RenameDatabase, CreateTable, CreateView, CreateProcedure, CreateConstraint, CreateUser, CreateTrigger, AlterDatabase, AlterTable, AlterView, AlterProcedure, AlterConstraint, AlterUser, AlterTrigger, DropDatabase, DropTable, DropView, DropProcedure, DropConstraint, DropUser, DropTrigger, ShowTableDefinitionInNewWindow, ShowTableDefinitionInClipboard, QuerySelectInNewWindow, QuerySelectInClipboard, QueryInsertInNewWindow, QueryInsertInClipboard, QueryUpdateInNewWindow, QueryUpdateInClipboard, QueryDeleteInNewWindow, QueryDeleteInClipboard, TableDefinitionInNewWindow, TableDefinitionInClipboard, ExecProcedure } internal class AddConnectionHandler : AbstractDatabaseProviderList { protected IDbFactory factory; protected override void Run (object ob) { factory = (IDbFactory)ob; factory.GuiProvider.ShowAddConnectionDialog (factory); } } internal class CreateDatabaseHandler : AbstractDatabaseProviderList { protected IDbFactory factory; protected override void Run (object ob) { factory = (IDbFactory)ob; factory.GuiProvider.ShowCreateDatabaseDialog (factory); } } } monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/0000755000175000017500000000000011266446160030317 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs0000644000175000017500000000534011266446160034071 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Threading; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class TypesNodeBuilder : TypeNodeBuilder { public TypesNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (TypesNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/TypesNode"; } } public override Type CommandHandlerType { get { return typeof (TypesNodeCommandHandler); } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Types"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Types"); icon = Context.GetIcon ("md-db-tables"); BaseNode node = (BaseNode) dataObject; } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { //TODO: } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return false; } } public class TypesNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } } }././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.csmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.c0000644000175000017500000000702611266446160034225 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Database.Sql; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class ColumnsNodeBuilder : TypeNodeBuilder { public ColumnsNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (ColumnsNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/ColumnsNode"; } } public override Type CommandHandlerType { get { return typeof (ColumnsNodeCommandHandler); } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Columns"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Columns"); icon = Context.GetIcon ("md-db-tables"); BaseNode node = (BaseNode) dataObject; } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { ColumnsNode node = state as ColumnsNode; ITreeBuilder builder = Context.GetTreeBuilder (state); ISchema schema = node.Schema; ColumnSchemaCollection columns = null; if (schema is TableSchema) columns = node.ConnectionContext.SchemaProvider.GetTableColumns (schema as TableSchema); else if (schema is ViewSchema) columns = node.ConnectionContext.SchemaProvider.GetViewColumns (schema as ViewSchema); if (columns == null) return; DispatchService.GuiDispatch (delegate { foreach (ColumnSchema column in columns) { builder.AddChild (column); } builder.Expanded = true; }); } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return true; } } public class ColumnsNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } } }././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.csmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder0000644000175000017500000000540011266446160034264 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Threading; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class LanguagesNodeBuilder : TypeNodeBuilder { public LanguagesNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (LanguagesNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/LanguagesNode"; } } public override Type CommandHandlerType { get { return typeof (LanguagesNodeCommandHandler); } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Languages"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Languages"); icon = Context.GetIcon ("md-db-tables"); BaseNode node = (BaseNode) dataObject; } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { //TODO: } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return false; } } public class LanguagesNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } } }././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.csmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.0000644000175000017500000000616311266446160034231 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Threading; using MonoDevelop.Database.Sql; using MonoDevelop.Components.Commands; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class TriggersNodeBuilder : TypeNodeBuilder { public TriggersNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (TriggersNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/TriggersNode"; } } public override Type CommandHandlerType { get { return typeof (TriggersNodeCommandHandler); } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Triggers"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Triggers"); icon = Context.GetIcon ("md-db-tables"); BaseNode node = (BaseNode) dataObject; } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { //TODO: } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return false; } } public class TriggersNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } [CommandUpdateHandler (ConnectionManagerCommands.CreateTrigger)] protected void OnUpdateCreateTrigger (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported (SchemaType.Trigger, SchemaActions.Create); } } }monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs0000644000175000017500000000534011266446160034057 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Threading; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class RulesNodeBuilder : TypeNodeBuilder { public RulesNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (RulesNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/RulesNode"; } } public override Type CommandHandlerType { get { return typeof (RulesNodeCommandHandler); } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Rules"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Rules"); icon = Context.GetIcon ("md-db-tables"); BaseNode node = (BaseNode) dataObject; } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { //TODO: } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return false; } } public class RulesNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } } }monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs0000644000175000017500000001365511266446160034207 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; using MonoDevelop.Database.Designer; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class TablesNodeBuilder : TypeNodeBuilder { private EventHandler RefreshHandler; public TablesNodeBuilder () : base () { RefreshHandler += new EventHandler(OnRefreshEvent); } public override Type NodeDataType { get { return typeof (TablesNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/TablesNode"; } } public override Type CommandHandlerType { get { return typeof (TablesNodeCommandHandler); } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Tables"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Tables"); icon = Context.GetIcon ("md-db-tables"); BaseNode node = (BaseNode) dataObject; node.RefreshEvent += RefreshHandler; } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { BaseNode node = state as BaseNode; ITreeBuilder builder = Context.GetTreeBuilder (state); bool showSystemObjects = (bool)builder.Options["ShowSystemObjects"]; TableSchemaCollection tables = node.ConnectionContext.SchemaProvider.GetTables (); DispatchService.GuiDispatch (delegate { foreach (TableSchema table in tables) { if (table.IsSystemTable && !showSystemObjects) continue; builder.AddChild (new TableNode (node.ConnectionContext, table)); } builder.Expanded = true; }); } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return true; } private void OnRefreshEvent (object sender, EventArgs args) { DispatchService.GuiDispatch (delegate { ITreeBuilder builder = Context.GetTreeBuilder (sender); builder.UpdateChildren (); // builder.UpdateChildren (); // builder.ExpandToNode (); }); } } public class TablesNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } [CommandHandler (ConnectionManagerCommands.CreateTable)] protected void OnCreateTable () { BaseNode node = CurrentNode.DataItem as BaseNode; IDbFactory fac = node.ConnectionContext.DbFactory; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; // Need to detect if it is a previous (saved) table with the same name. string name = AddinCatalog.GetString("NewTable"); int lastIdx = 0; TableSchemaCollection tables = schemaProvider.GetTables (); for (int t = tables.Count-1; t > -1; t--) { if (tables[t].Name.ToLower () == name.ToLower ()) { name = string.Concat (name, "1"); break; } else if (tables[t].Name.StartsWith (name, StringComparison.OrdinalIgnoreCase)) { string idx = tables[t].Name.Substring (name.Length); int newIdx; if (int.TryParse (idx, out newIdx)) { lastIdx = newIdx; break; } } } if (lastIdx != 0) name = String.Concat (name, lastIdx+1); TableSchema table = schemaProvider.CreateTableSchema (name); if (fac.GuiProvider.ShowTableEditorDialog (schemaProvider, table, true)) ThreadPool.QueueUserWorkItem (new WaitCallback (OnCreateTableThreaded), new object[] {schemaProvider, table, node} as object); } private void OnCreateTableThreaded (object state) { object[] objs = state as object[]; ISchemaProvider provider = objs[0] as ISchemaProvider; TableSchema table = objs[1] as TableSchema; BaseNode node = objs[2] as BaseNode; LoggingService.LogDebug ("ADD TABLE: {0}", table.Definition); IPooledDbConnection conn = provider.ConnectionPool.Request (); conn.ExecuteNonQuery (table.Definition); conn.Release (); node.Refresh (); } [CommandUpdateHandler (ConnectionManagerCommands.CreateTable)] protected void OnUpdateCreateTable (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported (SchemaType.Table, SchemaActions.Create); } } } monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs0000644000175000017500000001460511266446160033707 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Designer; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class UserNodeBuilder : TypeNodeBuilder { public UserNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (UserNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/UserNode"; } } public override Type CommandHandlerType { get { return typeof (UserNodeCommandHandler); } } public override void GetNodeAttributes (ITreeNavigator treeNavigator, object dataObject, ref NodeAttributes attributes) { attributes |= NodeAttributes.AllowRename; } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { UserNode node = dataObject as UserNode; return node.User.Name; } public override void BuildNode (ITreeBuilder builder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { UserNode node = dataObject as UserNode; // node.RefreshEvent += (EventHandler)DispatchService.GuiDispatch (RefreshHandler); label = node.User.Name; icon = Context.GetIcon ("md-db-user"); } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return false; } } public class UserNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } public override void RenameItem (string newName) { UserNode node = (UserNode)CurrentNode.DataItem; if (node.User.Name != newName) ThreadPool.QueueUserWorkItem (new WaitCallback (RenameItemThreaded), new object[]{ node, newName }); } private void RenameItemThreaded (object state) { object[] objs = state as object[]; UserNode node = objs[0] as UserNode; string newName = objs[1] as string; IEditSchemaProvider provider = (IEditSchemaProvider)node.User.SchemaProvider; if (provider.IsValidName (newName)) { provider.RenameUser (node.User, newName); node.Refresh (); } else { DispatchService.GuiDispatch (delegate () { MessageService.ShowError (String.Format ( "Unable to rename user '{0}' to '{1}'!", node.User.Name, newName )); }); } node.Refresh (); } protected void OnRefreshParent () { if (CurrentNode.MoveToParent ()) { BaseNode node = CurrentNode.DataItem as BaseNode; node.Refresh (); } } [CommandHandler (ConnectionManagerCommands.AlterUser)] protected void OnAlterUser () { UserNode node = CurrentNode.DataItem as UserNode; IDbFactory fac = node.ConnectionContext.DbFactory; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; if (fac.GuiProvider.ShowUserEditorDialog (schemaProvider, node.User, false)) ThreadPool.QueueUserWorkItem (new WaitCallback (OnAlterUserThreaded), CurrentNode.DataItem); } private void OnAlterUserThreaded (object state) { // UserNode node = (UserNode)state; // IEditSchemaProvider provider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; // // provider.AlterUser (node.User); } [CommandHandler (ConnectionManagerCommands.DropUser)] protected void OnDropUser () { UserNode node = (UserNode)CurrentNode.DataItem; AlertButton dropButton = new AlertButton (AddinCatalog.GetString ("Drop"), Gtk.Stock.Delete); if (MessageService.Confirm ( AddinCatalog.GetString ("Are you sure you want to drop user '{0}'", node.User.Name), dropButton )) { ThreadPool.QueueUserWorkItem (new WaitCallback (OnDropUserThreaded), CurrentNode.DataItem); } } private void OnDropUserThreaded (object state) { UserNode node = (UserNode)state; IEditSchemaProvider provider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; provider.DropUser (node.User); OnRefreshParent (); } [CommandHandler (MonoDevelop.Ide.Commands.EditCommands.Rename)] protected void OnRenameUser () { Tree.StartLabelEdit (); } [CommandUpdateHandler (ConnectionManagerCommands.DropUser)] protected void OnUpdateDropUser (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported (SchemaType.User, SchemaActions.Drop); } [CommandUpdateHandler (MonoDevelop.Ide.Commands.EditCommands.Rename)] protected void OnUpdateRenameUser (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported (SchemaType.User, SchemaActions.Rename); } [CommandUpdateHandler (ConnectionManagerCommands.AlterUser)] protected void OnUpdateAlterUser (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported (SchemaType.User, SchemaActions.Alter); } } } monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs0000644000175000017500000000534011266446160034051 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Threading; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class RolesNodeBuilder : TypeNodeBuilder { public RolesNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (RolesNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/RolesNode"; } } public override Type CommandHandlerType { get { return typeof (RolesNodeCommandHandler); } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Roles"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Roles"); icon = Context.GetIcon ("md-db-tables"); BaseNode node = (BaseNode) dataObject; } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { //TODO: } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return false; } } public class RolesNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } } }././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.csmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilde0000644000175000017500000001214611266446160034314 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Designer; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class ProceduresNodeBuilder : TypeNodeBuilder { private EventHandler RefreshHandler; public ProceduresNodeBuilder () : base () { RefreshHandler += new EventHandler(OnRefreshEvent); } public override Type NodeDataType { get { return typeof (ProceduresNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/ProceduresNode"; } } public override Type CommandHandlerType { get { return typeof (ProceduresNodeCommandHandler); } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Procedures"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Procedures"); icon = Context.GetIcon ("md-db-procedure"); BaseNode node = (BaseNode) dataObject; node.RefreshEvent += RefreshHandler; } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { BaseNode node = state as BaseNode; ITreeBuilder builder = Context.GetTreeBuilder (state); bool showSystemObjects = (bool)builder.Options["ShowSystemObjects"]; ProcedureSchemaCollection procedures = node.ConnectionContext.SchemaProvider.GetProcedures (); DispatchService.GuiDispatch (delegate { foreach (ProcedureSchema procedure in procedures) { if (procedure.IsSystemProcedure && !showSystemObjects) continue; builder.AddChild (new ProcedureNode (node.ConnectionContext, procedure)); } builder.Expanded = true; }); } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return true; } private void OnRefreshEvent (object sender, EventArgs args) { DispatchService.GuiDispatch (delegate { ITreeBuilder builder = Context.GetTreeBuilder (sender); builder.UpdateChildren (); }); } } public class ProceduresNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } [CommandHandler (ConnectionManagerCommands.CreateProcedure)] protected void OnCreateProcedure () { BaseNode node = CurrentNode.DataItem as BaseNode; IDbFactory fac = node.ConnectionContext.DbFactory; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; ProcedureSchema proc = schemaProvider.CreateProcedureSchema ("NewProcedure"); if (fac.GuiProvider.ShowProcedureEditorDialog (schemaProvider, proc, true)) ThreadPool.QueueUserWorkItem (new WaitCallback (OnCreateProcedureThreaded), new object[] {schemaProvider, proc, node} as object); } private void OnCreateProcedureThreaded (object state) { object[] objs = state as object[]; IEditSchemaProvider provider = objs[0] as IEditSchemaProvider; ProcedureSchema proc = objs[1] as ProcedureSchema; BaseNode node = objs[2] as BaseNode; provider.CreateProcedure (proc); node.Refresh (); } [CommandUpdateHandler (ConnectionManagerCommands.CreateProcedure)] protected void OnUpdateCreateProcedure (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported (SchemaType.Procedure, SchemaActions.Create); } } } ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.csmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder0000644000175000017500000000540011266446160034334 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Threading; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class OperatorsNodeBuilder : TypeNodeBuilder { public OperatorsNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (OperatorsNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/OperatorsNode"; } } public override Type CommandHandlerType { get { return typeof (OperatorsNodeCommandHandler); } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Operators"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Operators"); icon = Context.GetIcon ("md-db-tables"); BaseNode node = (BaseNode) dataObject; } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { //TODO: } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return false; } } public class OperatorsNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } } }././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.csmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuild0000644000175000017500000000701111266446160034336 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Database.Sql; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class ConstraintsNodeBuilder : TypeNodeBuilder { public ConstraintsNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (ConstraintsNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/ConstraintsNode"; } } public override Type CommandHandlerType { get { return typeof (ConstraintsNodeCommandHandler); } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Constraints"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Constraints"); icon = Context.GetIcon ("md-db-tables"); BaseNode node = (BaseNode) dataObject; } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { ConstraintsNode node = state as ConstraintsNode; ITreeBuilder builder = Context.GetTreeBuilder (state); ConstraintSchemaCollection constraints = null; if (node.Schema is TableSchema) { constraints = (node.Schema as TableSchema).Constraints; } else if (node.Schema is ColumnSchema) { constraints = (node.Schema as ColumnSchema).Constraints; } if (constraints == null) return; DispatchService.GuiDispatch (delegate { foreach (ConstraintSchema constraint in constraints) builder.AddChild (constraint); builder.Expanded = true; }); } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return true; } } public class ConstraintsNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } } }././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.csmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNod0000644000175000017500000002476611266446160034366 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using System.Threading; using MonoDevelop.Database.Sql; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Database.Query; using MonoDevelop.Database.Components; using MonoDevelop.Components.Commands; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class ConnectionContextNodeBuilder : TypeNodeBuilder { public ConnectionContextNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (DatabaseConnectionContext); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/ConnectionNode"; } } public override Type CommandHandlerType { get { return typeof (ConnectionContextCommandHandler); } } public override void GetNodeAttributes (ITreeNavigator treeNavigator, object dataObject, ref NodeAttributes attributes) { attributes |= NodeAttributes.AllowRename; } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { DatabaseConnectionContext context = dataObject as DatabaseConnectionContext; return context.ConnectionSettings.Name; } public override void BuildNode (ITreeBuilder builder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { DatabaseConnectionContext context = dataObject as DatabaseConnectionContext; if (((bool)builder.Options["ShowDatabaseName"])) label = string.Format ("{0} - ({1})", context.ConnectionSettings.Name, context.ConnectionSettings.Database); else label = context.ConnectionSettings.Name; if (context.HasConnectionPool) { IConnectionPool pool = context.ConnectionPool; if (pool.IsInitialized) { icon = Context.GetIcon ("md-db-database-ok"); } else if (pool.HasErrors) { icon = Context.GetIcon ("md-db-database-error"); MessageService.ShowError (AddinCatalog.GetString ("Unable to connect:") + Environment.NewLine + pool.Error); } else { icon = Context.GetIcon ("md-db-database"); } } else { icon = Context.GetIcon ("md-db-database"); } } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { QueryService.EnsureConnection (state as DatabaseConnectionContext, new DatabaseConnectionContextCallback (BuildChildNodesGui), state); } private void BuildChildNodesGui (DatabaseConnectionContext context, bool connected, object state) { ITreeBuilder builder = Context.GetTreeBuilder (state); builder.Update (); if (connected) { ISchemaProvider provider = context.SchemaProvider; if (provider.IsSchemaActionSupported (SchemaType.Table, SchemaActions.Schema)) builder.AddChild (new TablesNode (context)); if (provider.IsSchemaActionSupported (SchemaType.View, SchemaActions.Schema)) builder.AddChild (new ViewsNode (context)); if (provider.IsSchemaActionSupported (SchemaType.Procedure, SchemaActions.Schema)) builder.AddChild (new ProceduresNode (context)); if (provider.IsSchemaActionSupported (SchemaType.User, SchemaActions.Schema)) builder.AddChild (new UsersNode (context)); //TODO: custom datatypes, sequences, roles, operators, languages, groups and aggregates builder.Expanded = true; } } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return true; } } public class ConnectionContextCommandHandler : NodeCommandHandler { public override void RenameItem (string newName) { DatabaseConnectionContext context = (DatabaseConnectionContext) CurrentNode.DataItem; if (context.ConnectionSettings.Name != newName) { if (ConnectionContextService.DatabaseConnections.Contains (newName)) { MessageService.ShowError (String.Format ( "Unable to rename connection '{0}' to '{1}'! (duplicate name)", context.ConnectionSettings.Name, newName )); } else { context.ConnectionSettings.Name = newName; context.Refresh (); } } } [CommandHandler (ConnectionManagerCommands.RemoveConnection)] protected void OnRemoveConnection () { DatabaseConnectionContext context = (DatabaseConnectionContext) CurrentNode.DataItem; if (MessageService.Confirm ( AddinCatalog.GetString ("Are you sure you want to remove connection '{0}'?", context.ConnectionSettings.Name), AlertButton.Remove)) { ConnectionContextService.RemoveDatabaseConnectionContext (context); } } [CommandHandler (ConnectionManagerCommands.EditConnection)] protected void OnEditConnection () { DatabaseConnectionContext context = (DatabaseConnectionContext) CurrentNode.DataItem; DatabaseConnectionSettings newSettings; if (context.DbFactory.GuiProvider.ShowEditConnectionDialog (context.DbFactory, context.ConnectionSettings, out newSettings)) { DatabaseConnectionContext newContext = new DatabaseConnectionContext (newSettings); ConnectionContextService.RemoveDatabaseConnectionContext (context); ConnectionContextService.AddDatabaseConnectionContext (newContext); newContext.Refresh (); } } [CommandHandler (ConnectionManagerCommands.DisconnectConnection)] protected void OnDisconnectConnection () { DatabaseConnectionContext context = (DatabaseConnectionContext) CurrentNode.DataItem; if (context.HasConnectionPool) { context.ConnectionPool.Close (); context.Refresh (); CurrentNode.Expanded = false; } } [CommandUpdateHandler (ConnectionManagerCommands.DisconnectConnection)] protected void OnUpdateDisconnectConnection (CommandInfo info) { DatabaseConnectionContext context = (DatabaseConnectionContext) CurrentNode.DataItem; info.Enabled = context.HasConnectionPool && context.ConnectionPool.IsInitialized; } [CommandHandler (ConnectionManagerCommands.ConnectConnection)] protected void OnConnectConnection () { CurrentNode.Expanded = true; } [CommandUpdateHandler (ConnectionManagerCommands.ConnectConnection)] protected void OnUpdateConnectConnection (CommandInfo info) { DatabaseConnectionContext context = (DatabaseConnectionContext) CurrentNode.DataItem; if (context.HasConnectionPool) info.Enabled = !context.ConnectionPool.IsInitialized; else info.Enabled = true; } public override void ActivateItem () { OnQueryCommand (); } [CommandHandler (ConnectionManagerCommands.Query)] protected void OnQueryCommand () { SqlQueryView view = new SqlQueryView (); view.SelectedConnectionContext = (DatabaseConnectionContext) CurrentNode.DataItem; IdeApp.Workbench.OpenDocument (view, true); } [CommandHandler (ConnectionManagerCommands.DropDatabase)] protected void OnDropDatabase () { DatabaseConnectionContext context = (DatabaseConnectionContext) CurrentNode.DataItem; AlertButton dropButton = new AlertButton (AddinCatalog.GetString ("Drop"), Gtk.Stock.Delete); if (MessageService.Confirm ( AddinCatalog.GetString ("Are you sure you want to drop database '{0}'", context.ConnectionSettings.Database), dropButton )) { ThreadPool.QueueUserWorkItem (new WaitCallback (OnDropDatabaseThreaded), CurrentNode.DataItem); } } private void OnDropDatabaseThreaded (object state) { DatabaseConnectionContext context = (DatabaseConnectionContext) CurrentNode.DataItem; try { context.ConnectionPool.Initialize (); ISchemaProvider provider = context.SchemaProvider; DatabaseSchema db = provider.CreateDatabaseSchema (context.ConnectionSettings.Database); IEditSchemaProvider schemaProvider = (IEditSchemaProvider)context.SchemaProvider; schemaProvider.DropDatabase (db); ConnectionContextService.RemoveDatabaseConnectionContext (context); } catch (Exception ex) { DispatchService.GuiDispatch (delegate { MessageService.ShowException (ex); }); } } [CommandUpdateHandler (ConnectionManagerCommands.DropDatabase)] protected void OnUpdateDropDatabase (CommandInfo info) { DatabaseConnectionContext context = (DatabaseConnectionContext) CurrentNode.DataItem; //info.Enabled = context.DbFactory.IsActionSupported ("Database", SchemaActions.Drop); } [CommandUpdateHandler (ConnectionManagerCommands.AlterDatabase)] protected void OnUpdateAlterDatabase (CommandInfo info) { DatabaseConnectionContext context = (DatabaseConnectionContext) CurrentNode.DataItem; //info.Enabled = context.DbFactory.IsActionSupported ("Database", SchemaActions.Alter); } [CommandHandler (MonoDevelop.Ide.Commands.EditCommands.Rename)] protected void OnRenameDatabase () { //TODO: show a dialog, since inline tree renaming for this node renames the custom name } [CommandUpdateHandler (ConnectionManagerCommands.RenameDatabase)] protected void OnUpdateRenameDatabase (CommandInfo info) { DatabaseConnectionContext context = (DatabaseConnectionContext) CurrentNode.DataItem; //info.Enabled = context.DbFactory.IsActionSupported ("Database", SchemaActions.Rename); } } } ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.csmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder0000644000175000017500000000540011266446160034311 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Threading; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class SequencesNodeBuilder : TypeNodeBuilder { public SequencesNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (SequencesNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/SequencesNode"; } } public override Type CommandHandlerType { get { return typeof (SequencesNodeCommandHandler); } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Sequences"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Sequences"); icon = Context.GetIcon ("md-db-tables"); BaseNode node = (BaseNode) dataObject; } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { //TODO: } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return false; } } public class SequencesNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } } }monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs0000644000175000017500000000535011266446160034245 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Threading; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class GroupsNodeBuilder : TypeNodeBuilder { public GroupsNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (GroupsNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/GroupsNode"; } } public override Type CommandHandlerType { get { return typeof (GroupsNodeCommandHandler); } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Groups"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Groups"); icon = Context.GetIcon ("md-db-tables"); BaseNode node = (BaseNode) dataObject; } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { //TODO: } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return false; } } public class GroupsNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } } }././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.csmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder0000644000175000017500000000465511266446160034311 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using MonoDevelop.Database.Sql; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class ParameterNodeBuilder : TypeNodeBuilder { public ParameterNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (ParameterSchema); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/ParameterNode"; } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Parameter"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { ParameterSchema parameter = dataObject as ParameterSchema; label = parameter.Name + " (" + parameter.ParameterType.ToString () + ")"; icon = Context.GetIcon ("md-db-column"); //TODO: icon based on column type } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return false; } } }monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs0000644000175000017500000004071711266446160034023 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using System.Data; using System.Threading; using System.Collections.Generic; using MonoDevelop.Database.Sql; using SQL = MonoDevelop.Database.Sql; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Database.Query; using MonoDevelop.Database.Components; using MonoDevelop.Database.Designer; using MonoDevelop.Components.Commands; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class TableNodeBuilder : TypeNodeBuilder { public TableNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (TableNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/TableNode"; } } public override Type CommandHandlerType { get { return typeof (TableNodeCommandHandler); } } public override void GetNodeAttributes (ITreeNavigator treeNavigator, object dataObject, ref NodeAttributes attributes) { attributes |= NodeAttributes.AllowRename; } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { TableNode node = dataObject as TableNode; return node.Table.Name; } public override void BuildNode (ITreeBuilder builder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { TableNode node = dataObject as TableNode; label = node.Table.Name; icon = Context.GetIcon ("md-db-table"); } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { TableNode node = state as TableNode; ITreeBuilder builder = Context.GetTreeBuilder (state); ISchemaProvider provider = node.ConnectionContext.SchemaProvider; if (provider.IsSchemaActionSupported (SQL.SchemaType.TableColumn, SchemaActions.Schema)) DispatchService.GuiDispatch (delegate { builder.AddChild (new ColumnsNode (node.ConnectionContext, node.Table)); }); if (provider.IsSchemaActionSupported (SQL.SchemaType.Constraint, SchemaActions.Schema)) DispatchService.GuiDispatch (delegate { builder.AddChild (new ConstraintsNode (node.ConnectionContext, node.Table)); }); if (provider.IsSchemaActionSupported (SQL.SchemaType.Trigger, SchemaActions.Schema)) DispatchService.GuiDispatch (delegate { builder.AddChild (new TriggersNode (node.ConnectionContext)); }); //TODO: rules DispatchService.GuiDispatch (delegate { builder.Expanded = true; }); } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return true; } } public class TableNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } public override void ActivateItem () { OnQueryCommand (); } public override void RenameItem (string newName) { TableNode node = (TableNode)CurrentNode.DataItem; if (node.Table.Name != newName) ThreadPool.QueueUserWorkItem (new WaitCallback (RenameItemThreaded), new object[]{ node, newName }); } private void RenameItemThreaded (object state) { object[] objs = state as object[]; TableNode node = objs[0] as TableNode; string newName = objs[1] as string; IEditSchemaProvider provider = (IEditSchemaProvider)node.Table.SchemaProvider; if (provider.IsValidName (newName)) { provider.RenameTable (node.Table, newName); node.Refresh (); } else { DispatchService.GuiDispatch (delegate () { MessageService.ShowError (String.Format ( "Unable to rename table '{0}' to '{1}'!", node.Table.Name, newName )); }); } node.Refresh (); } [CommandHandler (ConnectionManagerCommands.Query)] protected void OnQueryCommand () { TableNode node = (TableNode)CurrentNode.DataItem; IdentifierExpression tableId = new IdentifierExpression (node.Table.Name); SelectStatement sel = new SelectStatement (new FromTableClause (tableId)); SqlQueryView view = new SqlQueryView (); view.SelectedConnectionContext = node.ConnectionContext; IDbFactory fac = DbFactoryService.GetDbFactory (node.ConnectionContext.ConnectionSettings); view.Text = fac.Dialect.GetSql (sel); IdeApp.Workbench.OpenDocument (view, true); } [CommandHandler (ConnectionManagerCommands.SelectColumns)] protected void OnSelectColumnsCommand () { ThreadPool.QueueUserWorkItem (new WaitCallback (OnSelectColumnsCommandGetColumns), CurrentNode.DataItem); } private void OnSelectColumnsCommandGetColumns (object state) { TableNode node = (TableNode)state; ColumnSchemaCollection columns = node.Table.Columns; //this can invoke the schema provider, so it must be in bg thread DispatchService.GuiDispatch (delegate () { SelectColumnDialog dlg = new SelectColumnDialog (true, columns); if (dlg.Run () == (int)Gtk.ResponseType.Ok) { IdentifierExpression tableId = new IdentifierExpression (node.Table.Name); List cols = new List (); foreach (ColumnSchema schema in dlg.CheckedColumns) cols.Add (new IdentifierExpression (schema.Name)); SelectStatement sel = new SelectStatement (new FromTableClause (tableId), cols); IPooledDbConnection conn = node.ConnectionContext.ConnectionPool.Request (); IDbCommand command = conn.CreateCommand (sel); conn.ExecuteTableAsync (command, new ExecuteCallback (OnSelectCommandThreaded), null); } dlg.Destroy (); }); } [CommandHandler (ConnectionManagerCommands.SelectAll)] protected void OnSelectAllCommand () { TableNode node = (TableNode)CurrentNode.DataItem; IdentifierExpression tableId = new IdentifierExpression (node.Table.Name); SelectStatement sel = new SelectStatement (new FromTableClause (tableId)); IPooledDbConnection conn = node.ConnectionContext.ConnectionPool.Request (); IDbCommand command = conn.CreateCommand (sel); conn.ExecuteTableAsync (command, new ExecuteCallback (OnSelectCommandThreaded), null); } private void OnSelectCommandThreaded (IPooledDbConnection connection, DataTable table, object state) { connection.Release (); DispatchService.GuiDispatch (delegate () { QueryResultView view = new QueryResultView (table); IdeApp.Workbench.OpenDocument (view, true); }); } [CommandHandler (ConnectionManagerCommands.EmptyTable)] protected void OnEmptyTable () { TableNode node = (TableNode)CurrentNode.DataItem; AlertButton emptyButton = new AlertButton (AddinCatalog.GetString ("Empty Table")); if (MessageService.Confirm ( AddinCatalog.GetString ("Are you sure you want to empty table '{0}'", node.Table.Name), emptyButton )) { IdentifierExpression tableId = new IdentifierExpression (node.Table.Name); DeleteStatement del = new DeleteStatement (new FromTableClause (tableId)); IPooledDbConnection conn = node.ConnectionContext.ConnectionPool.Request (); IDbCommand command = conn.CreateCommand (del); conn.ExecuteNonQueryAsync (command, new ExecuteCallback (OnEmptyTableCallback), null); } } private void OnEmptyTableCallback (IPooledDbConnection connection, int result, object state) { connection.Release (); DispatchService.GuiDispatch (delegate () { IdeApp.Workbench.StatusBar.ShowMessage (AddinCatalog.GetString ("Table emptied")); }); } [CommandHandler (ConnectionManagerCommands.DropTable)] protected void OnDropTable () { TableNode node = (TableNode)CurrentNode.DataItem; AlertButton dropButton = new AlertButton (AddinCatalog.GetString ("Drop"), Gtk.Stock.Delete); if (MessageService.Confirm ( AddinCatalog.GetString ("Are you sure you want to drop table '{0}'", node.Table.Name), dropButton )) { ThreadPool.QueueUserWorkItem (new WaitCallback (OnDropTableThreaded), CurrentNode.DataItem); } } private void OnDropTableThreaded (object state) { TableNode node = (TableNode)state; IEditSchemaProvider provider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; provider.DropTable (node.Table); OnRefreshParent (); } protected void OnRefreshParent () { if (CurrentNode.MoveToParent ()) { BaseNode node = CurrentNode.DataItem as BaseNode; node.Refresh (); } } [CommandHandler (ConnectionManagerCommands.AlterTable)] protected void OnAlterTable () { TableNode node = CurrentNode.DataItem as TableNode; IDbFactory fac = node.ConnectionContext.DbFactory; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; if (fac.GuiProvider.ShowTableEditorDialog (schemaProvider, node.Table, false)) ThreadPool.QueueUserWorkItem (new WaitCallback (OnAlterTableThreaded), CurrentNode.DataItem); } private void OnAlterTableThreaded (object state) { // TableNode node = (TableNode)state; // IEditSchemaProvider provider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; // // provider.AlterTable (node.Table); } [CommandHandler (MonoDevelop.Ide.Commands.EditCommands.Rename)] protected void OnRenameTable () { Tree.StartLabelEdit (); } [CommandUpdateHandler (ConnectionManagerCommands.DropTable)] protected void OnUpdateDropTable (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported (SQL.SchemaType.Table, SchemaActions.Drop); } [CommandUpdateHandler (MonoDevelop.Ide.Commands.EditCommands.Rename)] protected void OnUpdateRenameTable (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported (SQL.SchemaType.Table, SchemaActions.Rename); } [CommandUpdateHandler (ConnectionManagerCommands.AlterTable)] protected void OnUpdateAlterTable (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported (SQL.SchemaType.Table, SchemaActions.Alter); } [CommandHandler (ConnectionManagerCommands.QuerySelectInNewWindow)] protected void OnSelectQueryOnNewWindow () { TableNode node = CurrentNode.DataItem as TableNode; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; SqlQueryView view = new SqlQueryView (); view.SelectedConnectionContext = node.ConnectionContext; view.TextEditor.Insert (0, schemaProvider.GetSelectQuery (node.Table)); IdeApp.Workbench.OpenDocument (view, true); } [CommandHandler (ConnectionManagerCommands.QuerySelectInClipboard)] protected void OnSelectQueryOnClipboard () { TableNode node = CurrentNode.DataItem as TableNode; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; Gtk.Clipboard clp = Clipboard.Get (Gdk.Selection.Clipboard); clp.Text = schemaProvider.GetSelectQuery (node.Table); MessageService.ShowMessage (AddinCatalog.GetString ("SELECT statement has been copied to Clipboard.")); } [CommandHandler (ConnectionManagerCommands.QueryUpdateInNewWindow)] protected void OnUpdateQueryOnNewWindow () { TableNode node = CurrentNode.DataItem as TableNode; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; SqlQueryView view = new SqlQueryView (); view.SelectedConnectionContext = node.ConnectionContext; view.TextEditor.Insert (0, schemaProvider.GetUpdateQuery (node.Table)); IdeApp.Workbench.OpenDocument (view, true); } [CommandHandler (ConnectionManagerCommands.QueryUpdateInClipboard)] protected void OnUpdateQueryOnClipboard () { TableNode node = CurrentNode.DataItem as TableNode; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; Gtk.Clipboard clp = Clipboard.Get (Gdk.Selection.Clipboard); clp.Text = schemaProvider.GetUpdateQuery (node.Table); MessageService.ShowMessage (AddinCatalog.GetString ("UPDATE Statement has been copied to Clipboard.")); } [CommandHandler (ConnectionManagerCommands.QueryInsertInNewWindow)] protected void OnInsertQueryOnNewWindow () { TableNode node = CurrentNode.DataItem as TableNode; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; SqlQueryView view = new SqlQueryView (); view.SelectedConnectionContext = node.ConnectionContext; view.TextEditor.Insert (0, schemaProvider.GetInsertQuery (node.Table)); IdeApp.Workbench.OpenDocument (view, true); } [CommandHandler (ConnectionManagerCommands.QueryInsertInClipboard)] protected void OnInsertQueryOnClipboard () { TableNode node = CurrentNode.DataItem as TableNode; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; Gtk.Clipboard clp = Clipboard.Get (Gdk.Selection.Clipboard); clp.Text = schemaProvider.GetInsertQuery (node.Table); MessageService.ShowMessage (AddinCatalog.GetString ("INSERT INTO Statement has been copied to Clipboard.")); } [CommandHandler (ConnectionManagerCommands.QueryDeleteInNewWindow)] protected void OnDeleteQueryOnNewWindow () { TableNode node = CurrentNode.DataItem as TableNode; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; SqlQueryView view = new SqlQueryView (); view.SelectedConnectionContext = node.ConnectionContext; view.TextEditor.Insert (0, schemaProvider.GetDeleteQuery (node.Table)); IdeApp.Workbench.OpenDocument (view, true); } [CommandHandler (ConnectionManagerCommands.QueryDeleteInClipboard)] protected void OnDeleteQueryOnClipboard () { TableNode node = CurrentNode.DataItem as TableNode; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; Gtk.Clipboard clp = Clipboard.Get (Gdk.Selection.Clipboard); clp.Text = schemaProvider.GetDeleteQuery (node.Table); MessageService.ShowMessage (AddinCatalog.GetString ("DELETE Statement has been copied to Clipboard.")); } [CommandHandler (ConnectionManagerCommands.ShowTableDefinitionInNewWindow)] protected void OnShowDefinitionOnNewWindow () { TableNode node = CurrentNode.DataItem as TableNode; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; SqlQueryView view = new SqlQueryView (); view.SelectedConnectionContext = node.ConnectionContext; view.TextEditor.Insert (0, schemaProvider.GetTableCreateStatement (node.Table)); IdeApp.Workbench.OpenDocument (view, true); } [CommandHandler (ConnectionManagerCommands.ShowTableDefinitionInClipboard)] protected void OnShowDefinitionOnClipboard () { TableNode node = CurrentNode.DataItem as TableNode; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; Gtk.Clipboard clp = Clipboard.Get (Gdk.Selection.Clipboard); clp.Text = schemaProvider.GetTableCreateStatement (node.Table); MessageService.ShowMessage (AddinCatalog.GetString ("CREATE Statement has been copied to Clipboard.")); } } } monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs0000644000175000017500000001611511266446160033701 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Designer; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class ViewNodeBuilder : TypeNodeBuilder { public ViewNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (ViewNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/ViewNode"; } } public override Type CommandHandlerType { get { return typeof (ViewNodeCommandHandler); } } public override void GetNodeAttributes (ITreeNavigator treeNavigator, object dataObject, ref NodeAttributes attributes) { attributes |= NodeAttributes.AllowRename; } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { ViewNode node = dataObject as ViewNode; return node.View.Name; } public override void BuildNode (ITreeBuilder builder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { ViewNode node = dataObject as ViewNode; label = node.View.Name; icon = Context.GetIcon ("md-db-view"); } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { ViewNode node = state as ViewNode; ITreeBuilder builder = Context.GetTreeBuilder (state); ISchemaProvider provider = node.ConnectionContext.SchemaProvider; if (provider.IsSchemaActionSupported (SchemaType.ViewColumn, SchemaActions.Schema)) DispatchService.GuiDispatch (delegate { builder.AddChild (new ColumnsNode (node.ConnectionContext, node.View)); builder.Expanded = true; }); } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { ViewNode node = dataObject as ViewNode; return node.ConnectionContext.SchemaProvider.IsSchemaActionSupported (SchemaType.ViewColumn, SchemaActions.Schema); } } public class ViewNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } public override void RenameItem (string newName) { ViewNode node = (ViewNode)CurrentNode.DataItem; if (node.View.Name != newName) ThreadPool.QueueUserWorkItem (new WaitCallback (RenameItemThreaded), new object[]{ node, newName }); } private void RenameItemThreaded (object state) { object[] objs = state as object[]; ViewNode node = objs[0] as ViewNode; string newName = objs[1] as string; IEditSchemaProvider provider = (IEditSchemaProvider)node.View.SchemaProvider; if (provider.IsValidName (newName)) { provider.RenameView (node.View, newName); node.Refresh (); } else { DispatchService.GuiDispatch (delegate () { MessageService.ShowError (String.Format ( "Unable to rename view '{0}' to '{1}'!", node.View.Name, newName )); }); } node.Refresh (); } protected void OnRefreshParent () { if (CurrentNode.MoveToParent ()) { BaseNode node = CurrentNode.DataItem as BaseNode; node.Refresh (); } } [CommandHandler (ConnectionManagerCommands.AlterView)] protected void OnAlterView () { ViewNode node = CurrentNode.DataItem as ViewNode; IDbFactory fac = node.ConnectionContext.DbFactory; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; if (fac.GuiProvider.ShowViewEditorDialog (schemaProvider, node.View, false)) ThreadPool.QueueUserWorkItem (new WaitCallback (OnAlterViewThreaded), CurrentNode.DataItem); } private void OnAlterViewThreaded (object state) { // ViewNode node = (ViewNode)state; // IEditSchemaProvider provider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; // // provider.AlterView (node.View); } [CommandHandler (ConnectionManagerCommands.DropView)] protected void OnDropView () { ViewNode node = (ViewNode)CurrentNode.DataItem; AlertButton dropButton = new AlertButton (AddinCatalog.GetString ("Drop"), Gtk.Stock.Delete); if (MessageService.Confirm ( AddinCatalog.GetString ("Are you sure you want to drop view '{0}'", node.View.Name), dropButton )) { ThreadPool.QueueUserWorkItem (new WaitCallback (OnDropViewThreaded), CurrentNode.DataItem); } } private void OnDropViewThreaded (object state) { ViewNode node = (ViewNode)state; IEditSchemaProvider provider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; provider.DropView (node.View); OnRefreshParent (); } [CommandHandler (MonoDevelop.Ide.Commands.EditCommands.Rename)] protected void OnRenameView () { Tree.StartLabelEdit (); } [CommandUpdateHandler (ConnectionManagerCommands.DropView)] protected void OnUpdateDropView (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported (SchemaType.View, SchemaActions.Drop); } [CommandUpdateHandler (MonoDevelop.Ide.Commands.EditCommands.Rename)] protected void OnUpdateRenameView (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported (SchemaType.View, SchemaActions.Rename); } [CommandUpdateHandler (ConnectionManagerCommands.AlterView)] protected void OnUpdateAlterView (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported (SchemaType.View, SchemaActions.Alter); } } } ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.csmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilde0000644000175000017500000000541011266446160034246 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Threading; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class AggregatesNodeBuilder : TypeNodeBuilder { public AggregatesNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (AggregatesNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/AggregatesNode"; } } public override Type CommandHandlerType { get { return typeof (AggregatesNodeCommandHandler); } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Aggregates"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Aggregates"); icon = Context.GetIcon ("md-db-tables"); BaseNode node = (BaseNode) dataObject; } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { //TODO: } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return false; } } public class AggregatesNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } } }././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.csmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder0000644000175000017500000001724411266446160034317 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Database.Sql; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class ProcedureNodeBuilder : TypeNodeBuilder { public ProcedureNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (ProcedureNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/ProcedureNode"; } } public override Type CommandHandlerType { get { return typeof (ProcedureNodeCommandHandler); } } public override void GetNodeAttributes (ITreeNavigator treeNavigator, object dataObject, ref NodeAttributes attributes) { attributes |= NodeAttributes.AllowRename; } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { ProcedureNode node = dataObject as ProcedureNode; return node.Procedure.Name; } public override void BuildNode (ITreeBuilder builder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { ProcedureNode node = dataObject as ProcedureNode; label = node.Procedure.Name; if (node.Procedure.IsFunction) icon = Context.GetIcon ("md-db-function"); else icon = Context.GetIcon ("md-db-procedure"); } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { ProcedureNode node = state as ProcedureNode; ITreeBuilder builder = Context.GetTreeBuilder (state); ISchemaProvider provider = node.ConnectionContext.SchemaProvider; if (provider.IsSchemaActionSupported (SchemaType.Constraint, SchemaActions.Schema)) DispatchService.GuiDispatch (delegate { builder.AddChild (new ParametersNode (node.ConnectionContext, node.Procedure)); builder.Expanded = true; }); } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { ProcedureNode node = dataObject as ProcedureNode; return node.ConnectionContext.SchemaProvider.IsSchemaActionSupported (SchemaType.ProcedureParameter, SchemaActions.Schema); } } public class ProcedureNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } public override void RenameItem (string newName) { ProcedureNode node = (ProcedureNode)CurrentNode.DataItem; if (node.Procedure.Name != newName) ThreadPool.QueueUserWorkItem (new WaitCallback (RenameItemThreaded), new object[]{ node, newName }); } private void RenameItemThreaded (object state) { object[] objs = state as object[]; ProcedureNode node = objs[0] as ProcedureNode; string newName = objs[1] as string; IEditSchemaProvider provider = (IEditSchemaProvider)node.Procedure.SchemaProvider; if (provider.IsValidName (newName)) { provider.RenameProcedure (node.Procedure, newName); node.Refresh (); } else { DispatchService.GuiDispatch (delegate () { MessageService.ShowError (String.Format ( "Unable to rename procedure '{0}' to '{1}'!", node.Procedure.Name, newName )); }); } node.Refresh (); } protected void OnRefreshParent () { if (CurrentNode.MoveToParent ()) { BaseNode node = CurrentNode.DataItem as BaseNode; node.Refresh (); } } [CommandHandler (ConnectionManagerCommands.AlterProcedure)] protected void OnAlterProcedure () { ProcedureNode node = CurrentNode.DataItem as ProcedureNode; IDbFactory fac = node.ConnectionContext.DbFactory; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; ProcedureSchema alterProc = (ProcedureSchema)node.Procedure.Clone (); if (fac.GuiProvider.ShowProcedureEditorDialog (schemaProvider, alterProc, false)) ThreadPool.QueueUserWorkItem (new WaitCallback (OnAlterProcedureThreaded), alterProc); } private void OnAlterProcedureThreaded (object state) { ProcedureNode node = CurrentNode.DataItem as ProcedureNode; IDbFactory fac = node.ConnectionContext.DbFactory; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; ProcedureAlterSchema alterSchema = new ProcedureAlterSchema (node.Procedure, (ProcedureSchema)((ProcedureSchema)state).Clone ()); schemaProvider.AlterProcedure (alterSchema); OnRefreshParent (); } [CommandHandler (ConnectionManagerCommands.DropProcedure)] protected void OnDropProcedure () { ProcedureNode node = (ProcedureNode)CurrentNode.DataItem; AlertButton dropButton = new AlertButton (AddinCatalog.GetString ("Drop"), Gtk.Stock.Delete); if (MessageService.Confirm ( AddinCatalog.GetString ("Are you sure you want to drop procedure '{0}'", node.Procedure.Name), dropButton )) { ThreadPool.QueueUserWorkItem (new WaitCallback (OnDropProcedureThreaded), CurrentNode.DataItem); } } private void OnDropProcedureThreaded (object state) { ProcedureNode node = (ProcedureNode)state; IEditSchemaProvider provider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; provider.DropProcedure (node.Procedure); OnRefreshParent (); } [CommandHandler (MonoDevelop.Ide.Commands.EditCommands.Rename)] protected void OnRenameProcedure () { Tree.StartLabelEdit (); } [CommandUpdateHandler (ConnectionManagerCommands.DropProcedure)] protected void OnUpdateDropProcedure (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; //info.Enabled = node.ConnectionContext.DbFactory.IsActionSupported ("Procedure", SchemaActions.Drop); } [CommandUpdateHandler (MonoDevelop.Ide.Commands.EditCommands.Rename)] protected void OnUpdateRenameProcedure (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; //info.Enabled = node.ConnectionContext.DbFactory.IsActionSupported ("Procedure", SchemaActions.Rename); } [CommandUpdateHandler (ConnectionManagerCommands.AlterProcedure)] protected void OnUpdateAlterProcedure (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; //info.Enabled = node.ConnectionContext.DbFactory.IsActionSupported ("Procedure", SchemaActions.Alter); } } } monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs0000644000175000017500000001163011266446160034061 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Designer; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class ViewsNodeBuilder : TypeNodeBuilder { private EventHandler RefreshHandler; public ViewsNodeBuilder () : base () { RefreshHandler += new EventHandler(OnRefreshEvent); } public override Type NodeDataType { get { return typeof (ViewsNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/ViewsNode"; } } public override Type CommandHandlerType { get { return typeof (ViewsNodeCommandHandler); } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Views"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Views"); icon = Context.GetIcon ("md-db-views"); BaseNode node = (BaseNode) dataObject; } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { BaseNode node = state as BaseNode; ITreeBuilder builder = Context.GetTreeBuilder (state); bool showSystemObjects = (bool)builder.Options["ShowSystemObjects"]; ViewSchemaCollection views = node.ConnectionContext.SchemaProvider.GetViews (); DispatchService.GuiDispatch (delegate { foreach (ViewSchema view in views) { if (view.IsSystemView && !showSystemObjects) continue; builder.AddChild (new ViewNode (node.ConnectionContext, view)); } builder.Expanded = true; }); } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return true; } private void OnRefreshEvent (object sender, EventArgs args) { DispatchService.GuiDispatch (delegate { ITreeBuilder builder = Context.GetTreeBuilder (sender); builder.UpdateChildren (); }); } } public class ViewsNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } [CommandHandler (ConnectionManagerCommands.CreateView)] protected void OnCreateView () { BaseNode node = CurrentNode.DataItem as BaseNode; IDbFactory fac = node.ConnectionContext.DbFactory; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; ViewSchema view = schemaProvider.CreateViewSchema ("NewView"); if (fac.GuiProvider.ShowViewEditorDialog (schemaProvider, view, true)) ThreadPool.QueueUserWorkItem (new WaitCallback (OnCreateViewThreaded), new object[] {schemaProvider, view, node} as object); } private void OnCreateViewThreaded (object state) { object[] objs = state as object[]; IEditSchemaProvider provider = objs[0] as IEditSchemaProvider; ViewSchema view = objs[1] as ViewSchema; BaseNode node = objs[2] as BaseNode; provider.CreateView (view); node.Refresh (); } [CommandUpdateHandler (ConnectionManagerCommands.CreateView)] protected void OnUpdateCreateView (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported (SchemaType.View, SchemaActions.Create); } } } ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.csmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilde0000644000175000017500000000461311266446160034325 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using MonoDevelop.Database.Sql; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class ConstraintNodeBuilder : TypeNodeBuilder { public ConstraintNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (ConstraintSchema); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/ConstraintNode"; } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Constraint"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { ConstraintSchema constraint = dataObject as ConstraintSchema; label = constraint.Name; icon = Context.GetIcon ("md-db-constraint"); //TODO: icon based on constraint type } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return false; } } }././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.csmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilde0000644000175000017500000000651611266446160034310 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Database.Sql; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class ParametersNodeBuilder : TypeNodeBuilder { public ParametersNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (ParametersNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/ParametersNode"; } } public override Type CommandHandlerType { get { return typeof (ParametersNodeCommandHandler); } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Parameters"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Parameters"); icon = Context.GetIcon ("md-db-tables"); BaseNode node = (BaseNode) dataObject; } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { ParametersNode node = state as ParametersNode; ITreeBuilder builder = Context.GetTreeBuilder (state); ParameterSchemaCollection parameters = node.ConnectionContext.SchemaProvider.GetProcedureParameters (node.Procedure); DispatchService.GuiDispatch (delegate { foreach (ParameterSchema parameter in parameters) { builder.AddChild (parameter); } builder.Expanded = true; }); } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return true; } } public class ParametersNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } } }././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.csmonodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCol0000644000175000017500000001371311266446160034351 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using System.Threading; using MonoDevelop.Core; using MonoDevelop.Components.Commands; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Designer; using MonoDevelop.Database.Components; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class ConnectionContextCollectionNodeBuilder : TypeNodeBuilder { private ITreeBuilder builder; public ConnectionContextCollectionNodeBuilder () : base () { ConnectionContextService.ConnectionContextAdded += (DatabaseConnectionContextEventHandler)DispatchService.GuiDispatch (new DatabaseConnectionContextEventHandler (OnConnectionAdded)); ConnectionContextService.ConnectionContextRemoved += (DatabaseConnectionContextEventHandler)DispatchService.GuiDispatch (new DatabaseConnectionContextEventHandler (OnConnectionRemoved)); } public override Type NodeDataType { get { return typeof (DatabaseConnectionContextCollection); } } public override Type CommandHandlerType { get { return typeof (ConnectionContextCollectionCommandHandler); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/ConnectionsNode"; } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Database Connections"); } public override void BuildNode (ITreeBuilder builder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Database Connections"); icon = Context.GetIcon ("md-db-connection"); this.builder = builder; } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { DatabaseConnectionContextCollection collection = (DatabaseConnectionContextCollection) dataObject; LoggingService.LogDebug ("BuildChildNodes CONTEXT " + collection.Count); foreach (DatabaseConnectionContext context in collection) builder.AddChild (context); builder.Expanded = true; } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { LoggingService.LogDebug ("HasChildNodes CONTEXT"); DatabaseConnectionContextCollection collection = (DatabaseConnectionContextCollection) dataObject; return collection.Count > 0; } private void OnConnectionAdded (object sender, DatabaseConnectionContextEventArgs args) { builder.AddChild (args.ConnectionContext); } private void OnConnectionRemoved (object sender, DatabaseConnectionContextEventArgs args) { ITreeBuilder builder = Context.GetTreeBuilder (args.ConnectionContext); if (builder.MoveToObject (args.ConnectionContext)) { builder.Remove (); builder.MoveToParent (); builder.UpdateAll (); } } } public class ConnectionContextCollectionCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } // [CommandHandler (ConnectionManagerCommands.CreateDatabase)] // protected void OnCreateDatabase () // { // CreateDatabaseDialog dlg = new CreateDatabaseDialog (); // if (dlg.Run () == (int)ResponseType.Ok) { // DatabaseConnectionContext context = dlg.DatabaseConnection; // WaitDialog.ShowDialog ("Creating database ..."); // ThreadPool.QueueUserWorkItem (new WaitCallback (OnCreateDatabaseThreaded), context); // } // dlg.Destroy (); // } // [CommandUpdateHandler (ConnectionManagerCommands.CreateDatabase)] // protected void OnUpdateCreateDatabase (CommandInfo info) // { // info.Enabled = DbFactoryService.DbFactoryCount > 0; // } // [CommandHandler (ConnectionManagerCommands.AddConnection)] // protected void OnAddConnection () // { // DatabaseConnectionSettingsDialog dlg = new DatabaseConnectionSettingsDialog (); // if (dlg.Run () == (int)ResponseType.Ok) // ConnectionContextService.AddDatabaseConnectionContext (dlg.ConnectionSettings); // dlg.Destroy (); // } // [CommandUpdateHandler (ConnectionManagerCommands.AddConnection)] // protected void OnUpdateAddConnection (CommandInfo info) // { // info.Enabled = DbFactoryService.DbFactoryCount > 0; // } // private void OnCreateDatabaseThreaded (object state) // { // DatabaseConnectionContext context = state as DatabaseConnectionContext; // // ISchemaProvider schemaProvider = context.SchemaProvider; // DatabaseSchema db = new DatabaseSchema (schemaProvider); // db.Name = context.ConnectionSettings.Database; // // schemaProvider.CreateDatabase (db); // // DispatchService.GuiDispatch (delegate () { // WaitDialog.HideDialog (); // ConnectionContextService.AddDatabaseConnectionContext (context); // }); // } } } monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs0000644000175000017500000000615211266446160034224 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Database.Sql; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class ColumnNodeBuilder : TypeNodeBuilder { public ColumnNodeBuilder () : base () { } public override Type NodeDataType { get { return typeof (ColumnSchema); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/ColumnNode"; } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Column"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { ColumnSchema column = dataObject as ColumnSchema; label = column.Name + " (" + column.DataType.Name + ")"; icon = Context.GetIcon ("md-db-column"); //TODO: icon based on column type } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { ColumnNode node = state as ColumnNode; ITreeBuilder builder = Context.GetTreeBuilder (state); ISchemaProvider provider = node.Column.SchemaProvider; if (provider.IsSchemaActionSupported (SchemaType.Constraint, SchemaActions.Schema)) DispatchService.GuiDispatch (delegate { builder.AddChild (new ConstraintsNode (node.ConnectionContext, node.Column)); builder.Expanded = true; }); } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return false; } } } monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs0000644000175000017500000001147311266446160034072 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Designer; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; using MonoDevelop.Ide.Gui.Components; namespace MonoDevelop.Database.ConnectionManager { public class UsersNodeBuilder : TypeNodeBuilder { private EventHandler RefreshHandler; public UsersNodeBuilder () : base () { RefreshHandler += new EventHandler(OnRefreshEvent); } public override Type NodeDataType { get { return typeof (UsersNode); } } public override string ContextMenuAddinPath { get { return "/MonoDevelop/Database/ContextMenu/ConnectionManagerPad/UsersNode"; } } public override Type CommandHandlerType { get { return typeof (UsersNodeCommandHandler); } } public override string GetNodeName (ITreeNavigator thisNode, object dataObject) { return AddinCatalog.GetString ("Users"); } public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { label = AddinCatalog.GetString ("Users"); icon = Context.GetIcon ("md-db-users"); BaseNode node = (BaseNode) dataObject; RefreshHandler += new EventHandler(OnRefreshEvent); } public override void BuildChildNodes (ITreeBuilder builder, object dataObject) { ThreadPool.QueueUserWorkItem (new WaitCallback (BuildChildNodesThreaded), dataObject); } private void BuildChildNodesThreaded (object state) { BaseNode node = state as BaseNode; ITreeBuilder builder = Context.GetTreeBuilder (state); UserSchemaCollection users = node.ConnectionContext.SchemaProvider.GetUsers (); DispatchService.GuiDispatch (delegate { foreach (UserSchema user in users) builder.AddChild (new UserNode (node.ConnectionContext, user)); builder.Expanded = true; }); } public override bool HasChildNodes (ITreeBuilder builder, object dataObject) { return true; } private void OnRefreshEvent (object sender, EventArgs args) { DispatchService.GuiDispatch (delegate { ITreeBuilder builder = Context.GetTreeBuilder (sender); builder.UpdateChildren (); }); } } public class UsersNodeCommandHandler : NodeCommandHandler { public override DragOperation CanDragNode () { return DragOperation.None; } [CommandHandler (ConnectionManagerCommands.CreateUser)] protected void OnCreateUser () { BaseNode node = CurrentNode.DataItem as BaseNode; IDbFactory fac = node.ConnectionContext.DbFactory; IEditSchemaProvider schemaProvider = (IEditSchemaProvider)node.ConnectionContext.SchemaProvider; UserSchema user = schemaProvider.CreateUserSchema ("NewUser"); if (fac.GuiProvider.ShowUserEditorDialog (schemaProvider, user, true)) ThreadPool.QueueUserWorkItem (new WaitCallback (OnCreateUserThreaded), new object[] {schemaProvider, user, node} as object); } private void OnCreateUserThreaded (object state) { object[] objs = state as object[]; IEditSchemaProvider provider = objs[0] as IEditSchemaProvider; UserSchema user = objs[1] as UserSchema; BaseNode node = objs[2] as BaseNode; provider.CreateUser (user); node.Refresh (); } [CommandUpdateHandler (ConnectionManagerCommands.CreateUser)] protected void OnUpdateCreateUser (CommandInfo info) { BaseNode node = (BaseNode)CurrentNode.DataItem; info.Enabled = node.ConnectionContext.SchemaProvider.IsSchemaActionSupported (SchemaType.User, SchemaActions.Create); } } } monodevelop-database-4.0.12/MonoDevelop.Database.ConnectionManager/AssemblyInfo.cs0000644000175000017500000000054711266446160030670 0ustar directhexdirecthex// Autogenerated from MonoDevelop.Database.ConnectionManager.addin.xml using System.Reflection; [assembly: AssemblyProduct ("MonoDevelop")] [assembly: AssemblyTitle ("MonoDevelop Database ConnectionManager")] [assembly: AssemblyDescription ("Database ConnectionManager Module")] [assembly: AssemblyVersion ("2.6")] [assembly: AssemblyCopyright ("MIT X11")] monodevelop-database-4.0.12/README0000644000175000017500000000000011266446160017263 0ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/0000755000175000017500000000000011266446160025067 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/Makefile.in0000644000175000017500000003367511266446160027152 0ustar directhexdirecthex# Makefile.in generated by automake 1.12.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2012 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.include ChangeLog subdir = MonoDevelop.Database.CodeGenerator ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(assemblydir)" DATA = $(assembly_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ASSEMBLY_VERSION = @ASSEMBLY_VERSION@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CSC = @CSC@ CSC_FLAGS = @CSC_FLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ GLIB_SHARP_CFLAGS = @GLIB_SHARP_CFLAGS@ GLIB_SHARP_LIBS = @GLIB_SHARP_LIBS@ GTK_SHARP_CFLAGS = @GTK_SHARP_CFLAGS@ GTK_SHARP_LIBS = @GTK_SHARP_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD_LIBRARY_PATH = @LD_LIBRARY_PATH@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_PREFIX = @LIB_PREFIX@ LIB_SUFFIX = @LIB_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MCS = @MCS@ MD_ADDIN_DIR = @MD_ADDIN_DIR@ MD_ASSEMBLY_DIR = @MD_ASSEMBLY_DIR@ MD_DIR = @MD_DIR@ MKDIR_P = @MKDIR_P@ MONO = @MONO@ MONODEVELOP_CFLAGS = @MONODEVELOP_CFLAGS@ MONODEVELOP_CORE_ADDINS_CFLAGS = @MONODEVELOP_CORE_ADDINS_CFLAGS@ MONODEVELOP_CORE_ADDINS_LIBS = @MONODEVELOP_CORE_ADDINS_LIBS@ MONODEVELOP_LIBS = @MONODEVELOP_LIBS@ MONO_ADDINS_CFLAGS = @MONO_ADDINS_CFLAGS@ MONO_ADDINS_GUI_CFLAGS = @MONO_ADDINS_GUI_CFLAGS@ MONO_ADDINS_GUI_LIBS = @MONO_ADDINS_GUI_LIBS@ MONO_ADDINS_LIBS = @MONO_ADDINS_LIBS@ MONO_ADDINS_SETUP_CFLAGS = @MONO_ADDINS_SETUP_CFLAGS@ MONO_ADDINS_SETUP_LIBS = @MONO_ADDINS_SETUP_LIBS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH = @PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RUNTIME = @RUNTIME@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ UNMANAGED_DEPENDENCIES_MONO_CFLAGS = @UNMANAGED_DEPENDENCIES_MONO_CFLAGS@ UNMANAGED_DEPENDENCIES_MONO_LIBS = @UNMANAGED_DEPENDENCIES_MONO_LIBS@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gtksharp_prefix = @gtksharp_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.CodeGenerator.dll REFS = \ $(GLIB_SHARP_LIBS) \ $(GTK_SHARP_LIBS) \ $(MONO_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Components.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Designer.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Query.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:Mono.Posix \ -r:System \ -r:System.Data FILES = \ AssemblyInfo.cs \ Commands/ToolCommands.cs \ Dialogs/GenerateDataClass.cs \ Dialogs/GenerateDataClassesDialog.cs \ gtk-gui/generated.cs \ gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClass.cs \ gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs RES = \ gtk-gui/gui.stetic \ gtk-gui/objects.xml \ MonoDevelop.Database.CodeGenerator.addin.xml assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb EXTRA_DIST = $(FILES) $(RES) build_sources = $(addprefix $(srcdir)/, $(FILES)) $(GENERATED_FILES) build_resources = $(addprefix $(srcdir)/, $(RES)) build_test_sources = $(addprefix $(srcdir)/, $(TESTFILES)) $(GENERATED_FILES) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.include $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu MonoDevelop.Database.CodeGenerator/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu MonoDevelop.Database.CodeGenerator/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_srcdir)/Makefile.include: $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-assemblyDATA: $(assembly_DATA) @$(NORMAL_INSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(assemblydir)'"; \ $(MKDIR_P) "$(DESTDIR)$(assemblydir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(assemblydir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(assemblydir)" || exit $$?; \ done uninstall-assemblyDATA: @$(NORMAL_UNINSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(assemblydir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: ctags: CTAGS CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(assemblydir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-assemblyDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-assemblyDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-assemblyDATA install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am uninstall uninstall-am uninstall-assemblyDATA all: $(ASSEMBLY) $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xmlmonodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.ad0000644000175000017500000000315711266446160034055 0ustar directhexdirecthex monodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/gtk-gui/0000755000175000017500000000000011266446160026436 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/gtk-gui/generated.cs0000644000175000017500000000106211266446160030722 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace Stetic { internal class Gui { private static bool initialized; static internal void Initialize (Gtk.Widget iconRenderer) { if ((Stetic.Gui.initialized == false)) { Stetic.Gui.initialized = true; } } } internal class ActionGroups { public static Gtk.ActionGroup GetActionGroup (System.Type type) { return Stetic.ActionGroups.GetActionGroup (type.FullName); } public static Gtk.ActionGroup GetActionGroup (string name) { return null; } } } ././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClass.csmonodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGene0000644000175000017500000006040011266446160033763 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.CodeGenerator { public partial class GenerateDataClass { private global::Gtk.HBox hbox1; private global::Gtk.Label label1; private global::MonoDevelop.Database.Components.DatabaseConnectionEditorWidget comboProviderConnection; private global::Gtk.Label labelMessage; private global::Gtk.HSeparator hseparator1; private global::Gtk.HBox hbox2; private global::Gtk.Label label2; private global::Gtk.ComboBox comboOutput; private global::Gtk.Label label3; private global::Gtk.ComboBox comboLanguage; private global::Gtk.Label label4; private global::Gtk.ComboBox comboStyle; private global::Gtk.Entry entryFile; private global::Gtk.HSeparator hseparator2; private global::Gtk.Table table1; private global::MonoDevelop.Database.Components.ProjectDirectoryComboBox comboProject; private global::Gtk.Entry entryNamespace; private global::Gtk.Label label5; private global::Gtk.Label label6; private global::Gtk.HSeparator hseparator3; private global::Gtk.Table table2; private global::Gtk.Entry entryEntityAttr; private global::Gtk.Entry entryEntityBase; private global::Gtk.Entry entryGenerateType; private global::Gtk.Entry entryMemberAttr; private global::Gtk.Label label10; private global::Gtk.Label label11; private global::Gtk.Label label8; private global::Gtk.Label label9; private global::Gtk.HSeparator hseparator4; private global::Gtk.HBox hbox4; private global::Gtk.Label label12; private global::Gtk.Entry entryCulture; private global::Gtk.Expander expander1; private global::Gtk.ScrolledWindow scrolledwindow1; private global::Gtk.VBox vbox2; private global::Gtk.CheckButton checkSchema; private global::Gtk.CheckButton checkGenerateTimestamps; private global::Gtk.CheckButton checkEqualsAndHash; private global::Gtk.CheckButton checkSprocs; private global::Gtk.CheckButton checkPluralize; private global::Gtk.Label GtkLabel4; private global::Gtk.Button buttonCancel; private global::Gtk.Button buttonOk; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.CodeGenerator.GenerateDataClass this.Name = "MonoDevelop.Database.CodeGenerator.GenerateDataClass"; this.Title = global::Mono.Unix.Catalog.GetString ("Generate Linq Class"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Internal child MonoDevelop.Database.CodeGenerator.GenerateDataClass.VBox global::Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.hbox1 = new global::Gtk.HBox (); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.label1 = new global::Gtk.Label (); this.label1.Name = "label1"; this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("Connection"); this.hbox1.Add (this.label1); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.label1])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox1.Gtk.Box+BoxChild this.comboProviderConnection = new global::MonoDevelop.Database.Components.DatabaseConnectionEditorWidget (); this.comboProviderConnection.Events = ((global::Gdk.EventMask)(256)); this.comboProviderConnection.Name = "comboProviderConnection"; this.hbox1.Add (this.comboProviderConnection); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.comboProviderConnection])); w3.Position = 1; w1.Add (this.hbox1); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(w1[this.hbox1])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.labelMessage = new global::Gtk.Label (); this.labelMessage.Name = "labelMessage"; w1.Add (this.labelMessage); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(w1[this.labelMessage])); w5.Position = 1; w5.Expand = false; w5.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.hseparator1 = new global::Gtk.HSeparator (); this.hseparator1.Name = "hseparator1"; w1.Add (this.hseparator1); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(w1[this.hseparator1])); w6.Position = 2; w6.Expand = false; w6.Fill = false; w6.Padding = ((uint)(5)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.hbox2 = new global::Gtk.HBox (); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.label2 = new global::Gtk.Label (); this.label2.Name = "label2"; this.label2.LabelProp = global::Mono.Unix.Catalog.GetString ("Output"); this.hbox2.Add (this.label2); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.label2])); w7.Position = 0; w7.Expand = false; w7.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.comboOutput = global::Gtk.ComboBox.NewText (); this.comboOutput.AppendText (global::Mono.Unix.Catalog.GetString ("Code")); this.comboOutput.AppendText (global::Mono.Unix.Catalog.GetString ("DBML")); this.comboOutput.AppendText (global::Mono.Unix.Catalog.GetString ("Code & DBML")); this.comboOutput.Name = "comboOutput"; this.comboOutput.Active = 0; this.hbox2.Add (this.comboOutput); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.comboOutput])); w8.Position = 1; w8.Expand = false; w8.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.label3 = new global::Gtk.Label (); this.label3.Name = "label3"; this.label3.LabelProp = global::Mono.Unix.Catalog.GetString ("Language"); this.hbox2.Add (this.label3); global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.label3])); w9.Position = 2; w9.Expand = false; w9.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.comboLanguage = global::Gtk.ComboBox.NewText (); this.comboLanguage.AppendText (global::Mono.Unix.Catalog.GetString ("C#2")); this.comboLanguage.AppendText (global::Mono.Unix.Catalog.GetString ("C#")); this.comboLanguage.AppendText (global::Mono.Unix.Catalog.GetString ("VB")); this.comboLanguage.Name = "comboLanguage"; this.comboLanguage.Active = 0; this.hbox2.Add (this.comboLanguage); global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.comboLanguage])); w10.Position = 3; w10.Expand = false; w10.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.label4 = new global::Gtk.Label (); this.label4.Name = "label4"; this.label4.LabelProp = global::Mono.Unix.Catalog.GetString ("Style"); this.hbox2.Add (this.label4); global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.label4])); w11.Position = 4; w11.Expand = false; w11.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.comboStyle = global::Gtk.ComboBox.NewText (); this.comboStyle.AppendText (global::Mono.Unix.Catalog.GetString ("NET")); this.comboStyle.AppendText (global::Mono.Unix.Catalog.GetString ("Leave")); this.comboStyle.AppendText (global::Mono.Unix.Catalog.GetString ("Pascal")); this.comboStyle.AppendText (global::Mono.Unix.Catalog.GetString ("Camel")); this.comboStyle.Name = "comboStyle"; this.comboStyle.Active = 0; this.hbox2.Add (this.comboStyle); global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.comboStyle])); w12.Position = 5; w12.Expand = false; w12.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.entryFile = new global::Gtk.Entry (); this.entryFile.CanFocus = true; this.entryFile.Name = "entryFile"; this.entryFile.Text = global::Mono.Unix.Catalog.GetString ("Output.cs"); this.entryFile.IsEditable = true; this.entryFile.InvisibleChar = '●'; this.hbox2.Add (this.entryFile); global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.entryFile])); w13.Position = 6; w1.Add (this.hbox2); global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(w1[this.hbox2])); w14.Position = 3; w14.Expand = false; w14.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.hseparator2 = new global::Gtk.HSeparator (); this.hseparator2.Name = "hseparator2"; w1.Add (this.hseparator2); global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(w1[this.hseparator2])); w15.Position = 4; w15.Expand = false; w15.Fill = false; w15.Padding = ((uint)(5)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.table1 = new global::Gtk.Table (((uint)(2)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.comboProject = new global::MonoDevelop.Database.Components.ProjectDirectoryComboBox (); this.comboProject.Name = "comboProject"; this.table1.Add (this.comboProject); global::Gtk.Table.TableChild w16 = ((global::Gtk.Table.TableChild)(this.table1[this.comboProject])); w16.LeftAttach = ((uint)(1)); w16.RightAttach = ((uint)(2)); w16.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.entryNamespace = new global::Gtk.Entry (); this.entryNamespace.CanFocus = true; this.entryNamespace.Name = "entryNamespace"; this.entryNamespace.IsEditable = true; this.entryNamespace.InvisibleChar = '●'; this.table1.Add (this.entryNamespace); global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.table1[this.entryNamespace])); w17.TopAttach = ((uint)(1)); w17.BottomAttach = ((uint)(2)); w17.LeftAttach = ((uint)(1)); w17.RightAttach = ((uint)(2)); w17.XOptions = ((global::Gtk.AttachOptions)(4)); w17.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label5 = new global::Gtk.Label (); this.label5.Name = "label5"; this.label5.Xalign = 0f; this.label5.LabelProp = global::Mono.Unix.Catalog.GetString ("Project"); this.table1.Add (this.label5); global::Gtk.Table.TableChild w18 = ((global::Gtk.Table.TableChild)(this.table1[this.label5])); w18.XOptions = ((global::Gtk.AttachOptions)(4)); w18.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.label6 = new global::Gtk.Label (); this.label6.Name = "label6"; this.label6.Xalign = 0f; this.label6.LabelProp = global::Mono.Unix.Catalog.GetString ("Namespace"); this.table1.Add (this.label6); global::Gtk.Table.TableChild w19 = ((global::Gtk.Table.TableChild)(this.table1[this.label6])); w19.TopAttach = ((uint)(1)); w19.BottomAttach = ((uint)(2)); w19.XOptions = ((global::Gtk.AttachOptions)(4)); w19.YOptions = ((global::Gtk.AttachOptions)(4)); w1.Add (this.table1); global::Gtk.Box.BoxChild w20 = ((global::Gtk.Box.BoxChild)(w1[this.table1])); w20.Position = 5; w20.Expand = false; w20.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.hseparator3 = new global::Gtk.HSeparator (); this.hseparator3.Name = "hseparator3"; w1.Add (this.hseparator3); global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(w1[this.hseparator3])); w21.Position = 6; w21.Expand = false; w21.Fill = false; w21.Padding = ((uint)(5)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.table2 = new global::Gtk.Table (((uint)(4)), ((uint)(2)), false); this.table2.Name = "table2"; this.table2.RowSpacing = ((uint)(6)); this.table2.ColumnSpacing = ((uint)(6)); // Container child table2.Gtk.Table+TableChild this.entryEntityAttr = new global::Gtk.Entry (); this.entryEntityAttr.TooltipMarkup = "Comma separated ATTRIBUTE(S)."; this.entryEntityAttr.CanFocus = true; this.entryEntityAttr.Name = "entryEntityAttr"; this.entryEntityAttr.IsEditable = true; this.entryEntityAttr.InvisibleChar = '●'; this.table2.Add (this.entryEntityAttr); global::Gtk.Table.TableChild w22 = ((global::Gtk.Table.TableChild)(this.table2[this.entryEntityAttr])); w22.TopAttach = ((uint)(1)); w22.BottomAttach = ((uint)(2)); w22.LeftAttach = ((uint)(1)); w22.RightAttach = ((uint)(2)); w22.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.entryEntityBase = new global::Gtk.Entry (); this.entryEntityBase.CanFocus = true; this.entryEntityBase.Name = "entryEntityBase"; this.entryEntityBase.IsEditable = true; this.entryEntityBase.InvisibleChar = '●'; this.table2.Add (this.entryEntityBase); global::Gtk.Table.TableChild w23 = ((global::Gtk.Table.TableChild)(this.table2[this.entryEntityBase])); w23.LeftAttach = ((uint)(1)); w23.RightAttach = ((uint)(2)); w23.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.entryGenerateType = new global::Gtk.Entry (); this.entryGenerateType.CanFocus = true; this.entryGenerateType.Name = "entryGenerateType"; this.entryGenerateType.IsEditable = true; this.entryGenerateType.InvisibleChar = '●'; this.table2.Add (this.entryGenerateType); global::Gtk.Table.TableChild w24 = ((global::Gtk.Table.TableChild)(this.table2[this.entryGenerateType])); w24.TopAttach = ((uint)(3)); w24.BottomAttach = ((uint)(4)); w24.LeftAttach = ((uint)(1)); w24.RightAttach = ((uint)(2)); w24.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.entryMemberAttr = new global::Gtk.Entry (); this.entryMemberAttr.TooltipMarkup = "Comma separated ATTRIBUTE(S)."; this.entryMemberAttr.CanFocus = true; this.entryMemberAttr.Name = "entryMemberAttr"; this.entryMemberAttr.IsEditable = true; this.entryMemberAttr.InvisibleChar = '●'; this.table2.Add (this.entryMemberAttr); global::Gtk.Table.TableChild w25 = ((global::Gtk.Table.TableChild)(this.table2[this.entryMemberAttr])); w25.TopAttach = ((uint)(2)); w25.BottomAttach = ((uint)(3)); w25.LeftAttach = ((uint)(1)); w25.RightAttach = ((uint)(2)); w25.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label10 = new global::Gtk.Label (); this.label10.Name = "label10"; this.label10.Xalign = 0f; this.label10.LabelProp = global::Mono.Unix.Catalog.GetString ("Member Attributes"); this.table2.Add (this.label10); global::Gtk.Table.TableChild w26 = ((global::Gtk.Table.TableChild)(this.table2[this.label10])); w26.TopAttach = ((uint)(2)); w26.BottomAttach = ((uint)(3)); w26.XOptions = ((global::Gtk.AttachOptions)(4)); w26.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label11 = new global::Gtk.Label (); this.label11.Name = "label11"; this.label11.Xalign = 0f; this.label11.LabelProp = global::Mono.Unix.Catalog.GetString ("Generate Type"); this.table2.Add (this.label11); global::Gtk.Table.TableChild w27 = ((global::Gtk.Table.TableChild)(this.table2[this.label11])); w27.TopAttach = ((uint)(3)); w27.BottomAttach = ((uint)(4)); w27.XOptions = ((global::Gtk.AttachOptions)(4)); w27.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label8 = new global::Gtk.Label (); this.label8.Name = "label8"; this.label8.Xalign = 0f; this.label8.LabelProp = global::Mono.Unix.Catalog.GetString ("Entity Base"); this.table2.Add (this.label8); global::Gtk.Table.TableChild w28 = ((global::Gtk.Table.TableChild)(this.table2[this.label8])); w28.XOptions = ((global::Gtk.AttachOptions)(4)); w28.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table2.Gtk.Table+TableChild this.label9 = new global::Gtk.Label (); this.label9.Name = "label9"; this.label9.Xalign = 0f; this.label9.LabelProp = global::Mono.Unix.Catalog.GetString ("Entity Attributes"); this.table2.Add (this.label9); global::Gtk.Table.TableChild w29 = ((global::Gtk.Table.TableChild)(this.table2[this.label9])); w29.TopAttach = ((uint)(1)); w29.BottomAttach = ((uint)(2)); w29.XOptions = ((global::Gtk.AttachOptions)(4)); w29.YOptions = ((global::Gtk.AttachOptions)(4)); w1.Add (this.table2); global::Gtk.Box.BoxChild w30 = ((global::Gtk.Box.BoxChild)(w1[this.table2])); w30.Position = 7; w30.Expand = false; w30.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.hseparator4 = new global::Gtk.HSeparator (); this.hseparator4.Name = "hseparator4"; w1.Add (this.hseparator4); global::Gtk.Box.BoxChild w31 = ((global::Gtk.Box.BoxChild)(w1[this.hseparator4])); w31.Position = 8; w31.Expand = false; w31.Fill = false; w31.Padding = ((uint)(5)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.hbox4 = new global::Gtk.HBox (); this.hbox4.Name = "hbox4"; this.hbox4.Spacing = 6; // Container child hbox4.Gtk.Box+BoxChild this.label12 = new global::Gtk.Label (); this.label12.Name = "label12"; this.label12.Xalign = 0f; this.label12.LabelProp = global::Mono.Unix.Catalog.GetString ("Culture"); this.hbox4.Add (this.label12); global::Gtk.Box.BoxChild w32 = ((global::Gtk.Box.BoxChild)(this.hbox4[this.label12])); w32.Position = 0; w32.Expand = false; w32.Fill = false; // Container child hbox4.Gtk.Box+BoxChild this.entryCulture = new global::Gtk.Entry (); this.entryCulture.WidthRequest = 50; this.entryCulture.CanFocus = true; this.entryCulture.Name = "entryCulture"; this.entryCulture.Text = global::Mono.Unix.Catalog.GetString ("en"); this.entryCulture.IsEditable = true; this.entryCulture.InvisibleChar = '●'; this.hbox4.Add (this.entryCulture); global::Gtk.Box.BoxChild w33 = ((global::Gtk.Box.BoxChild)(this.hbox4[this.entryCulture])); w33.Position = 1; w33.Expand = false; w33.Fill = false; w1.Add (this.hbox4); global::Gtk.Box.BoxChild w34 = ((global::Gtk.Box.BoxChild)(w1[this.hbox4])); w34.Position = 9; w34.Expand = false; w34.Fill = false; // Container child dialog1_VBox.Gtk.Box+BoxChild this.expander1 = new global::Gtk.Expander (null); this.expander1.CanFocus = true; this.expander1.Name = "expander1"; // Container child expander1.Gtk.Container+ContainerChild this.scrolledwindow1 = new global::Gtk.ScrolledWindow (); this.scrolledwindow1.CanFocus = true; this.scrolledwindow1.Name = "scrolledwindow1"; this.scrolledwindow1.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child scrolledwindow1.Gtk.Container+ContainerChild global::Gtk.Viewport w35 = new global::Gtk.Viewport (); w35.ShadowType = ((global::Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.vbox2 = new global::Gtk.VBox (); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.checkSchema = new global::Gtk.CheckButton (); this.checkSchema.CanFocus = true; this.checkSchema.Name = "checkSchema"; this.checkSchema.Label = global::Mono.Unix.Catalog.GetString ("Generate Schema in code files."); this.checkSchema.Active = true; this.checkSchema.DrawIndicator = true; this.checkSchema.UseUnderline = true; this.vbox2.Add (this.checkSchema); global::Gtk.Box.BoxChild w36 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.checkSchema])); w36.Position = 0; w36.Expand = false; w36.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.checkGenerateTimestamps = new global::Gtk.CheckButton (); this.checkGenerateTimestamps.CanFocus = true; this.checkGenerateTimestamps.Name = "checkGenerateTimestamps"; this.checkGenerateTimestamps.Label = global::Mono.Unix.Catalog.GetString ("Generate timestamps in the generated code. "); this.checkGenerateTimestamps.Active = true; this.checkGenerateTimestamps.DrawIndicator = true; this.checkGenerateTimestamps.UseUnderline = true; this.vbox2.Add (this.checkGenerateTimestamps); global::Gtk.Box.BoxChild w37 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.checkGenerateTimestamps])); w37.Position = 1; w37.Expand = false; w37.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.checkEqualsAndHash = new global::Gtk.CheckButton (); this.checkEqualsAndHash.CanFocus = true; this.checkEqualsAndHash.Name = "checkEqualsAndHash"; this.checkEqualsAndHash.Label = global::Mono.Unix.Catalog.GetString ("Generates overrides for Equals() and GetHashCode() methods."); this.checkEqualsAndHash.DrawIndicator = true; this.checkEqualsAndHash.UseUnderline = true; this.vbox2.Add (this.checkEqualsAndHash); global::Gtk.Box.BoxChild w38 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.checkEqualsAndHash])); w38.Position = 2; w38.Expand = false; w38.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.checkSprocs = new global::Gtk.CheckButton (); this.checkSprocs.CanFocus = true; this.checkSprocs.Name = "checkSprocs"; this.checkSprocs.Label = global::Mono.Unix.Catalog.GetString ("Extract stored procedures."); this.checkSprocs.DrawIndicator = true; this.checkSprocs.UseUnderline = true; this.vbox2.Add (this.checkSprocs); global::Gtk.Box.BoxChild w39 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.checkSprocs])); w39.Position = 3; w39.Expand = false; w39.Fill = false; // Container child vbox2.Gtk.Box+BoxChild this.checkPluralize = new global::Gtk.CheckButton (); this.checkPluralize.CanFocus = true; this.checkPluralize.Name = "checkPluralize"; this.checkPluralize.Label = global::Mono.Unix.Catalog.GetString ("Automatically pluralize or singularize class and member names using specified culture rules."); this.checkPluralize.DrawIndicator = true; this.checkPluralize.UseUnderline = true; this.vbox2.Add (this.checkPluralize); global::Gtk.Box.BoxChild w40 = ((global::Gtk.Box.BoxChild)(this.vbox2[this.checkPluralize])); w40.Position = 4; w40.Expand = false; w40.Fill = false; w35.Add (this.vbox2); this.scrolledwindow1.Add (w35); this.expander1.Add (this.scrolledwindow1); this.GtkLabel4 = new global::Gtk.Label (); this.GtkLabel4.Name = "GtkLabel4"; this.GtkLabel4.LabelProp = global::Mono.Unix.Catalog.GetString ("Advanced Options"); this.GtkLabel4.UseUnderline = true; this.expander1.LabelWidget = this.GtkLabel4; w1.Add (this.expander1); global::Gtk.Box.BoxChild w44 = ((global::Gtk.Box.BoxChild)(w1[this.expander1])); w44.Position = 10; // Internal child MonoDevelop.Database.CodeGenerator.GenerateDataClass.ActionArea global::Gtk.HButtonBox w45 = this.ActionArea; w45.Name = "GenerateDataClass"; w45.Spacing = 10; w45.BorderWidth = ((uint)(5)); w45.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child GenerateDataClass.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new global::Gtk.Button (); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget (this.buttonCancel, -6); global::Gtk.ButtonBox.ButtonBoxChild w46 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w45[this.buttonCancel])); w46.Expand = false; w46.Fill = false; // Container child GenerateDataClass.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new global::Gtk.Button (); this.buttonOk.Sensitive = false; this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget (this.buttonOk, -5); global::Gtk.ButtonBox.ButtonBoxChild w47 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w45[this.buttonOk])); w47.Position = 1; w47.Expand = false; w47.Fill = false; if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 656; this.DefaultHeight = 436; this.Show (); this.comboProviderConnection.SelectedDatabaseChanged += new global::System.EventHandler (this.OnComboProviderConnectionSelectedDatabaseChanged); this.comboOutput.Changed += new global::System.EventHandler (this.OnComboOutputChanged); this.comboLanguage.Changed += new global::System.EventHandler (this.OnComboLanguageChanged); this.comboProject.Changed += new global::System.EventHandler (this.OnComboProjectChanged); } } } monodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/gtk-gui/objects.xml0000644000175000017500000000004311266446160030606 0ustar directhexdirecthex monodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/gtk-gui/gui.stetic0000644000175000017500000012306511266446160030446 0ustar directhexdirecthex .. 2.12 Generate Data Classes Dialog CenterOnParent True True 2 False 2 True 1 3 2 6 6 0 Location: True Fill Fill False True False False True False 0 Database: 1 2 True Fill Fill False True False False True False General tab 2 2 6 6 Fields & Properties 1 2 True Fill Fill False True False False True False Classes True Fill Fill False True False False True False 1 Tables tab 0 True 6 5 2 End True True True StockItem gtk-cancel -6 gtk-cancel False False True True True StockItem gtk-ok -5 gtk-ok 1 False False Generate Linq Class CenterOnParent 2 False 2 6 Connection 0 True False False ButtonPressMask 1 False 0 True False False 1 True False False 2 True False False 5 6 Output 0 True False False True Code DBML Code & DBML 0 1 True False False Language 2 True False False True C#2 C# VB 0 3 True False False Style 4 True False False True NET Leave Pascal Camel 0 5 True False False True Output.cs True 6 True 3 True False False 4 True False False 5 2 2 6 6 False 1 2 False Fill True True False False True False True True 1 2 1 2 True Fill Fill False True False False True False 0 Project True Fill Fill False True False False True False 0 Namespace 1 2 True Fill Fill False True False False True False 5 True False False 6 True False False 5 4 2 6 6 Comma separated ATTRIBUTE(S). True True 1 2 1 2 True Fill True True False False True False True True 1 2 True Fill True True False False True False True True 3 4 1 2 True Fill True True False False True False Comma separated ATTRIBUTE(S). True True 2 3 1 2 True Fill True True False False True False 0 Member Attributes 2 3 True Fill Fill False True False False True False 0 Generate Type 3 4 True Fill Fill False True False False True False 0 Entity Base True Fill Fill False True False False True False 0 Entity Attributes 1 2 True Fill Fill False True False False True False 7 True False False 8 True False False 5 6 0 Culture 0 True False False 50 True en True 1 False False False 9 True False False True True In None 6 True Generate Schema in code files. True True True True 0 True False False True Generate timestamps in the generated code. True True True True 1 True False False True Generates overrides for Equals() and GetHashCode() methods. True True True 2 True False False True Extract stored procedures. True True True 3 True False False True Automatically pluralize or singularize class and member names using specified culture rules. True True True 4 True False False Advanced Options True label_item 10 True 10 5 2 End True True True StockItem gtk-cancel -6 gtk-cancel False False False True True True StockItem gtk-ok -5 gtk-ok 1 False False ././@LongLink0000000000000000000000000000020700000000000011564 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGene0000644000175000017500000001464211266446160033772 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.CodeGenerator { public partial class GenerateDataClassesDialog { private global::Gtk.Notebook notebook; private global::Gtk.Table tableGeneral; private global::Gtk.Label label5; private global::Gtk.Label label6; private global::Gtk.Label label7; private global::Gtk.Table tableTables; private global::Gtk.Label label10; private global::Gtk.Label label9; private global::Gtk.Label label8; private global::Gtk.Button buttonCancel; private global::Gtk.Button buttonOk; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog this.Name = "MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog"; this.Title = global::MonoDevelop.Database.AddinCatalog.GetString ("Generate Data Classes"); this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); this.SkipPagerHint = true; this.SkipTaskbarHint = true; // Internal child MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.VBox global::Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.notebook = new global::Gtk.Notebook (); this.notebook.CanFocus = true; this.notebook.Name = "notebook"; this.notebook.CurrentPage = 1; // Container child notebook.Gtk.Notebook+NotebookChild this.tableGeneral = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false); this.tableGeneral.Name = "tableGeneral"; this.tableGeneral.RowSpacing = ((uint)(6)); this.tableGeneral.ColumnSpacing = ((uint)(6)); // Container child tableGeneral.Gtk.Table+TableChild this.label5 = new global::Gtk.Label (); this.label5.Name = "label5"; this.label5.Xalign = 0f; this.label5.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Location:"); this.tableGeneral.Add (this.label5); global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.tableGeneral[this.label5])); w2.XOptions = ((global::Gtk.AttachOptions)(4)); w2.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child tableGeneral.Gtk.Table+TableChild this.label6 = new global::Gtk.Label (); this.label6.Name = "label6"; this.label6.Xalign = 0f; this.label6.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Database:"); this.tableGeneral.Add (this.label6); global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.tableGeneral[this.label6])); w3.TopAttach = ((uint)(1)); w3.BottomAttach = ((uint)(2)); w3.XOptions = ((global::Gtk.AttachOptions)(4)); w3.YOptions = ((global::Gtk.AttachOptions)(4)); this.notebook.Add (this.tableGeneral); // Notebook tab this.label7 = new global::Gtk.Label (); this.label7.Name = "label7"; this.label7.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("General"); this.notebook.SetTabLabel (this.tableGeneral, this.label7); this.label7.ShowAll (); // Container child notebook.Gtk.Notebook+NotebookChild this.tableTables = new global::Gtk.Table (((uint)(2)), ((uint)(2)), false); this.tableTables.Name = "tableTables"; this.tableTables.RowSpacing = ((uint)(6)); this.tableTables.ColumnSpacing = ((uint)(6)); // Container child tableTables.Gtk.Table+TableChild this.label10 = new global::Gtk.Label (); this.label10.Name = "label10"; this.label10.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Fields & Properties"); this.tableTables.Add (this.label10); global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.tableTables[this.label10])); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.XOptions = ((global::Gtk.AttachOptions)(4)); w5.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child tableTables.Gtk.Table+TableChild this.label9 = new global::Gtk.Label (); this.label9.Name = "label9"; this.label9.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Classes"); this.tableTables.Add (this.label9); global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.tableTables[this.label9])); w6.XOptions = ((global::Gtk.AttachOptions)(4)); w6.YOptions = ((global::Gtk.AttachOptions)(4)); this.notebook.Add (this.tableTables); global::Gtk.Notebook.NotebookChild w7 = ((global::Gtk.Notebook.NotebookChild)(this.notebook[this.tableTables])); w7.Position = 1; // Notebook tab this.label8 = new global::Gtk.Label (); this.label8.Name = "label8"; this.label8.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Tables"); this.notebook.SetTabLabel (this.tableTables, this.label8); this.label8.ShowAll (); w1.Add (this.notebook); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(w1[this.notebook])); w8.Position = 0; // Internal child MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.ActionArea global::Gtk.HButtonBox w9 = this.ActionArea; w9.Name = "dialog1_ActionArea"; w9.Spacing = 6; w9.BorderWidth = ((uint)(5)); w9.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new global::Gtk.Button (); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget (this.buttonCancel, -6); global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonCancel])); w10.Expand = false; w10.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new global::Gtk.Button (); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget (this.buttonOk, -5); global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonOk])); w11.Position = 1; w11.Expand = false; w11.Fill = false; if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 699; this.DefaultHeight = 471; this.Show (); } } } monodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/Makefile.am0000644000175000017500000000241011266446160027120 0ustar directhexdirecthexADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.CodeGenerator.dll REFS = \ $(GLIB_SHARP_LIBS) \ $(GTK_SHARP_LIBS) \ $(MONO_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Components.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Designer.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Query.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:Mono.Posix \ -r:System \ -r:System.Data FILES = \ AssemblyInfo.cs \ Commands/ToolCommands.cs \ Dialogs/GenerateDataClass.cs \ Dialogs/GenerateDataClassesDialog.cs \ gtk-gui/generated.cs \ gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClass.cs \ gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs RES = \ gtk-gui/gui.stetic \ gtk-gui/objects.xml \ MonoDevelop.Database.CodeGenerator.addin.xml all: $(ASSEMBLY) $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb EXTRA_DIST = $(FILES) $(RES) include $(top_srcdir)/Makefile.include monodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/ChangeLog0000644000175000017500000001340611266446160026645 0ustar directhexdirecthex2010-03-22 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.CodeGenerator.addin.xml: Bumped MD version. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.CodeGenerator.csproj: Flush. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.CodeGenerator.csproj: Remove mono.addins.targets import. 2010-03-17 Lluis Sanchez Gual * gtk-gui/gui.stetic: * gtk-gui/objects.xml: * Commands/ToolCommands.cs: * Dialogs/GenerateDataClassesDialog.cs: * MonoDevelop.Database.CodeGenerator.csproj: * MonoDevelop.Database.CodeGenerator.addin.xml: Merged MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui and MD.Components into MD.Ide. 2010-02-15 Luciano N. Callero * Commands/ToolCommands.cs: Implement Generate Linq Class. * gtk-gui/gui.stetic: * Dialogs/GenerateDataClass.cs: * gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClass.cs: Linq GUI Interfase. * MonoDevelop.Database.CodeGenerator.addin.xml: New menu under tools submenu on proyect/folders. * Makefile.am: * MonoDevelop.Database.CodeGenerator.csproj: Flush changes. 2010-02-12 Lluis Sanchez Gual * gtk-gui/gui.stetic: * gtk-gui/generated.cs: * gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs: Flush. * MonoDevelop.Database.CodeGenerator.csproj: Fix gettext class. 2009-11-11 Luciano N. Callero * gtk-gui/gui.stetic: * MonoDevelop.Database.CodeGenerator.csproj: Target runtime from 2.0 to 3.5. 2009-10-30 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.CodeGenerator.addin.xml: Bump MD version. 2009-10-18 Michael Hutchinson * MonoDevelop.Database.CodeGenerator.csproj: Fix the build & flush format changes. 2009-10-07 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.CodeGenerator.addin.xml: Bump MD version. 2009-08-26 Lluis Sanchez Gual * gtk-gui/gui.stetic: * MonoDevelop.Database.CodeGenerator.csproj: We now depend on gtk# 2.12.8, Mono 2.4, and Mono.Addins 0.4. 2009-07-31 Lluis Sanchez Gual * MonoDevelop.Database.CodeGenerator.csproj: Disabled 'require specific version' flags. 2009-04-17 Michael Hutchinson * Makefile.am: Fix builddir paths. 2009-04-15 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.CodeGenerator.addin.xml: Bump MD version. 2009-02-20 Lluis Sanchez Gual * MonoDevelop.Database.CodeGenerator.csproj: Updated references. 2009/02/06 Lluis Sanchez Gual * MonoDevelop.Database.CodeGenerator.mdp: * MonoDevelop.Database.CodeGenerator.csproj: Migrated to MSBuild file format. 2009/02/03 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.CodeGenerator.addin.xml: Bump MD version. 2009/02/03 Lluis Sanchez Gual * gtk-gui/generated.cs: * Dialogs/GenerateDataClassesDialog.cs: * gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs: Flush. 2009-01-26 Michael Hutchinson * MonoDevelop.Database.CodeGenerator.mdp: Flush project format changes. 2008-12-09 Lluis Sanchez Gual * MonoDevelop.Database.CodeGenerator.mdp: Don't require a specific version of Mono.Addins. 2008-12-02 Michael Hutchinson * Makefile.am: * AssemblyInfo.cs: * MonoDevelop.Database.CodeGenerator.mdp: Add AssemblyInfo.cs files that are autogenerated from the addin manifests. 2008-11-19 Lluis Sanchez Gual * MonoDevelop.Database.CodeGenerator.addin.xml: Add missing dependency. 2008-11-06 Michael Hutchinson * Makefile.am: Fix build dependencies. 2008-11-05 Lluis Sanchez Gual * MonoDevelop.Database.CodeGenerator.addin.xml: Bump MD version. 2008-09-17 Lluis Sanchez Gual * MonoDevelop.Database.CodeGenerator.mdp: Updated projects. 2008-08-18 Lluis Sanchez Gual * MonoDevelop.Database.CodeGenerator.mdp: Fix reference to Mono.TextEditor. The incorrect add-in version number causes problems in the makefile synchronization. 2008-06-04 Lluis Sanchez Gual * MonoDevelop.Database.CodeGenerator.addin.xml: Bump MD version. 2008-05-21 Lluis Sanchez Gual * Makefile.am, MonoDevelop.Database.CodeGenerator.mdp: Fix projects. 2008-05-21 Lluis Sanchez Gual * Commands/ToolCommands.cs: New project model changes and updates. 2008-03-10 Lluis Sanchez Gual * Dialogs/GenerateDataClassesDialog.cs: Track changes in the MessageService class. 2008-01-30 Ben Motmans * Commands/ToolCommands.cs: fixes an issue with non-code projects (translation, ...) * gtk-gui/gui.stetic: auto generated code 2008-01-29 Ben Motmans * MonoDevelop.Database.CodeGenerator.addin.xml: added a category attribute * gtk-gui/gui.stetic: Gtk# 2.8 compatibility * MonoDevelop.Database.CodeGenerator.mdp: depend on Gtk# 2.8 instead of 2.10 2008-01-28 Ben Motmans * MonoDevelop.Database.CodeGenerator.addin.xml: bumped the version number 2008-01-28 Ben Motmans * Commands/ToolCommands.cs, Dialogs/GenerateDataClassesDialog.cs, MonoDevelop.Database.CodeGenerator.addin.xml, gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs, gtk-gui/generated.cs, gtk-gui/objects.xml, gtk-gui/gui.stetic, MonoDevelop.Database.CodeGenerator.mdp, Makefile.am: initial support for code generation monodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/Commands/0000755000175000017500000000000011266446160026630 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/Commands/ToolCommands.cs0000644000175000017500000000452211266446160031561 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using MonoDevelop.Database.Sql; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Projects; using MonoDevelop.Components.Commands; using MonoDevelop.Core; namespace MonoDevelop.Database.CodeGenerator { public enum ToolCommands { GenerateDataClasses, GenerateDataClassesNew } public class GenerateDataClassesHandler : CommandHandler { protected override void Run () { GenerateDataClass dlg = new GenerateDataClass (); try { if (dlg.Run () == (int)ResponseType.Ok) dlg.GenerateClass (); } finally { dlg.Destroy (); } } protected override void Update (CommandInfo info) { int count = ConnectionContextService.DatabaseConnections.Count; Solution combine = IdeApp.ProjectOperations.CurrentSelectedSolution; if (count == 0 || combine == null) { info.Enabled = false; return; } //only enable the command if 1 or more code projects exist foreach (SolutionItem entry in combine.Items) { if (!(entry is DotNetProject)) continue; DotNetProject proj = (DotNetProject)entry; if (proj.LanguageBinding != null) { info.Enabled = true; break; } } } } }monodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/Dialogs/0000755000175000017500000000000011266446160026451 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs0000644000175000017500000000753611266446160033775 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; using MonoDevelop.Core; namespace MonoDevelop.Database.CodeGenerator { [System.ComponentModel.Category("MonoDevelop.Database.CodeGenerator")] [System.ComponentModel.ToolboxItem(true)] public partial class GenerateDataClassesDialog : Gtk.Dialog { private DatabaseConnectionContextComboBox comboDatabase; private ProjectDirectoryComboBox comboLocation; private ColumnMappingWidget columnMapping; //private TableMappingWidget tableMapping; private DatabaseConnectionContext selectedDatabase; private TableSchemaCollection tables; public GenerateDataClassesDialog () { this.Build(); notebook.ChangeCurrentPage += ChangeCurrentNotebookPage; comboLocation = new ProjectDirectoryComboBox (); comboDatabase = new DatabaseConnectionContextComboBox (); tableGeneral.Attach (comboLocation, 1, 2, 0, 1, AttachOptions.Fill | AttachOptions.Expand, AttachOptions.Shrink, 0, 0); tableGeneral.Attach (comboDatabase, 1, 2, 1, 2, AttachOptions.Fill | AttachOptions.Expand, AttachOptions.Shrink, 0, 0); columnMapping = new ColumnMappingWidget (true); //tableMapping = new TableMappingWidget (); tableTables.Attach (columnMapping, 0, 1, 1, 2, AttachOptions.Fill | AttachOptions.Expand, AttachOptions.Fill | AttachOptions.Expand, 0, 0); //tableTables.Attach (tableMapping, 1, 2, 1, 2, AttachOptions.Fill | AttachOptions.Expand, AttachOptions.Fill | AttachOptions.Expand, 0, 0); ShowAll (); } private void ChangeCurrentNotebookPage (object o, ChangeCurrentPageArgs args) { if (notebook.Page == 1) { //we are switching to the "classes" page, refresh the content if the selected database changed DatabaseConnectionContext db = comboDatabase.DatabaseConnection; if (db != selectedDatabase) { selectedDatabase = db; FillClassesPage (); } } } private void FillClassesPage () { //TODO: visually show that there is a BG thread retrieving the DB info QueryService.EnsureConnection (selectedDatabase, new DatabaseConnectionContextCallback (ExecuteQueryCallback), null); } private void ExecuteQueryCallback (DatabaseConnectionContext context, bool connected, object state) { if (!connected) { MessageService.ShowError ( AddinCatalog.GetString ("Unable to connect to database '{0}'"), context.ConnectionSettings.Name); return; } ISchemaProvider provider = context.SchemaProvider; tables = provider.GetTables (); DispatchService.GuiDispatch (delegate () { //TODO: initialize the table mapper }); } } } monodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClass.cs0000644000175000017500000002001411266446160032307 0ustar directhexdirecthex// // GenerateDataClass.cs // // Author: // Luciano N. Callero // // Copyright (c) 2010 Lucian0 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using Gtk; using System; using System.IO; using MonoDevelop.Database.Sql; using MonoDevelop.Projects; namespace MonoDevelop.Database.CodeGenerator { public partial class GenerateDataClass : Gtk.Dialog { public GenerateDataClass () { this.Build (); if (comboProject.SelectedProject != null) OnComboProjectChanged (comboProject, new EventArgs ()); } protected virtual void OnComboProviderConnectionSelectedDatabaseChanged (object sender, System.EventArgs e) { DatabaseConnectionContext ctx = comboProviderConnection.DatabaseConnection; if (ctx != null) { if (!(ctx.DbFactory is IDbLinq)){ labelMessage.Markup = string.Concat ("", AddinCatalog.GetString (string.Concat ("The selected ", "connection does ", "not have a valid ", "provider to complete ", "this operation.")), ""); } else { checkSprocs.Sensitive = ((IDbLinq)ctx.DbFactory).HasProcedures; labelMessage.Markup = ""; } } Validate (); } public void GenerateClass () { string output; if (comboProject.SelectedDirectory != null) output = System.IO.Path.Combine (comboProject.SelectedDirectory, entryFile.Text); else { FileInfo info = new FileInfo (comboProject.SelectedProject.FileName); output = System.IO.Path.Combine (info.Directory.FullName, entryFile.Text); } bool generated = false; DatabaseConnectionContext ctx = comboProviderConnection.DatabaseConnection; if (comboOutput.ActiveText.Equals (AddinCatalog.GetString ("Code"), StringComparison.InvariantCultureIgnoreCase) || comboOutput.ActiveText.Equals (AddinCatalog.GetString ("Code & DBML"), StringComparison.InvariantCultureIgnoreCase) ) generated = (ctx.DbFactory as IDbLinq).Generate (ctx.ConnectionSettings, comboOutput.ActiveText, output, comboLanguage.ActiveText, comboStyle.ActiveText, entryNamespace.Text, entryEntityBase.Text, entryEntityAttr.Text, entryMemberAttr.Text, entryGenerateType.Text, entryCulture.Text, checkSchema.Active, checkGenerateTimestamps.Active, checkEqualsAndHash.Active, checkSprocs.Active, checkPluralize.Active); else generated = (ctx.DbFactory as IDbLinq).Generate (ctx.ConnectionSettings, comboOutput.ActiveText, output, entryNamespace.Text, entryEntityBase.Text, entryEntityAttr.Text, entryMemberAttr.Text, entryGenerateType.Text, entryCulture.Text, checkSchema.Active, checkGenerateTimestamps.Active, checkEqualsAndHash.Active, checkSprocs.Active, checkPluralize.Active); if (generated) { comboProject.SelectedProject.AddFile (output); // Add references to the project if they do not exist string[] references = { "System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", "System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" }; ProjectReference gacRef; DotNetProject project = ((DotNetProject)comboProject.SelectedProject); foreach(string refName in references) { string targetName = project.TargetRuntime.AssemblyContext.GetAssemblyNameForVersion (refName, null, project.TargetFramework); if (targetName != null) { gacRef = new ProjectReference (ReferenceType.Gac, refName); if (!project.References.Contains (gacRef)) project.References.Add (gacRef); } } } } protected void Validate () { if (comboProviderConnection.DatabaseConnection == null) buttonOk.Sensitive = false; else if (!(comboProviderConnection.DatabaseConnection.DbFactory is IDbLinq) || comboProject.SelectedProject == null) buttonOk.Sensitive = false; else buttonOk.Sensitive = true; } protected virtual void OnComboOutputChanged (object sender, System.EventArgs e) { if (comboOutput.Active == 0 || comboOutput.Active == 2) { comboLanguage.Sensitive = true; comboStyle.Sensitive = true; comboLanguage.Active = 0; comboStyle.Active = 0; } else { entryFile.Text = string.Concat(System.IO.Path.GetFileNameWithoutExtension (entryFile.Text), ".dbml"); comboLanguage.Sensitive = false; comboStyle.Sensitive = false; comboLanguage.Active = -1; comboStyle.Active = -1; } Validate (); } protected virtual void OnComboLanguageChanged (object sender, System.EventArgs e) { if (comboLanguage.ActiveText == "VB") entryFile.Text = string.Concat(System.IO.Path.GetFileNameWithoutExtension (entryFile.Text), ".vb"); else if (comboLanguage.ActiveText != null) entryFile.Text = string.Concat(System.IO.Path.GetFileNameWithoutExtension (entryFile.Text), ".cs"); Validate (); } protected virtual void OnComboProjectChanged (object sender, System.EventArgs e) { if (comboProject.SelectedProject != null) if (comboProject.SelectedDirectory != null) entryNamespace.Text = string.Concat (((DotNetProject)comboProject.SelectedProject).DefaultNamespace, ".", GetNamespace(comboProject.SelectedProject.ItemDirectory.FullPath, comboProject.SelectedDirectory), ".DbLinq"); else entryNamespace.Text = string.Concat (((DotNetProject)comboProject.SelectedProject).DefaultNamespace, ".DbLinq"); Validate (); } private string GetNamespace (string projectPath, string folder) { return folder.Substring (projectPath.Length+1).Replace ('/', '.'); } } } monodevelop-database-4.0.12/MonoDevelop.Database.CodeGenerator/AssemblyInfo.cs0000644000175000017500000000053311266446160030012 0ustar directhexdirecthex// Autogenerated from MonoDevelop.Database.CodeGenerator.addin.xml using System.Reflection; [assembly: AssemblyProduct ("MonoDevelop")] [assembly: AssemblyTitle ("MonoDevelop Database CodeGenerator")] [assembly: AssemblyDescription ("Database CodeGenerator Module")] [assembly: AssemblyVersion ("2.6")] [assembly: AssemblyCopyright ("MIT X11")] monodevelop-database-4.0.12/po/0000755000175000017500000000000011266446160017033 5ustar directhexdirecthexmonodevelop-database-4.0.12/po/pt.po0000644000175000017500000010015511266446160020020 0ustar directhexdirecthex# MonoDevelop Portuguese (Portugal) / Português (Portugal) translation # Copyright (C) 2007 # # This file is distributed under the same license as the MonoDevelop package. # # Vitor Hugo Barros , 2007 # msgid "" msgstr "" "Project-Id-Version: MonoDevelop 0.14\n" "Report-Msgid-Bugs-To: Vitor Hugo Barros \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2006-04-06 16:24-0300\n" "Last-Translator: Vitor Hugo Barros \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 #, fuzzy msgid "Enter Password" msgstr "Password" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 #, fuzzy msgid "Query Database" msgstr "Base de dados" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 #, fuzzy msgid "_Database" msgstr "Base de dados" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Executar" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 #, fuzzy msgid "Clear Results" msgstr "Limpar resultados" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "Estado" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 #, fuzzy msgid "Unable to connect to database '{0}'" msgstr "Não foi possível encontrar o configure.in em {0}" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Tabela" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 #, fuzzy msgid "No Results" msgstr "Resultado" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 #, fuzzy msgid "Executing query" msgstr "Executando query sql em" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 #, fuzzy msgid "Query execute cancelled" msgstr "Execução de testes cancelada." #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 #, fuzzy msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Execução de testes cancelada." msgstr[1] "Execução de testes cancelada." #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "Base de dados" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "Criar um novo directório" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "Base de dados" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "Base de dados" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "Base de dados" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 #, fuzzy msgid "Open Database" msgstr "Base de dados" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 #, fuzzy msgid "All files" msgstr "Todos os ficheiros" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "Base de dados" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "Base de dados" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 #, fuzzy msgid "Database Connections" msgstr "Conexões de base de dados" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 #, fuzzy msgid "Are you sure you want to remove connection '{0}'?" msgstr "Tem a certeza que pretende apagar '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Eliminar tabela" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 #, fuzzy msgid "Are you sure you want to drop database '{0}'" msgstr "Tem a certeza que pretende apagar '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Tabelas" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Vistas" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Procedimentos" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Utilizadores" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Restrições" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 #, fuzzy msgid "Empty Table" msgstr "Esvaziar tabela" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 #, fuzzy msgid "Are you sure you want to empty table '{0}'" msgstr "Tem a certeza que pretende apagar '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Tabela esvaziada" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 #, fuzzy msgid "Are you sure you want to drop table '{0}'" msgstr "Tem a certeza que pretende apagar '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 #, fuzzy msgid "Are you sure you want to drop user '{0}'" msgstr "Tem a certeza que pretende apagar '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 #, fuzzy msgid "Are you sure you want to drop procedure '{0}'" msgstr "Tem a certeza que pretende apagar '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 #, fuzzy msgid "Are you sure you want to drop view '{0}'" msgstr "Tem a certeza que pretende apagar '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Coluna" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Colunas" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Restrição" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Conjuntos" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Grupos" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Línguas" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "Operadores" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Roles" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Regras" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Sequências" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Triggers" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Tipos" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Parâmetros" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "Parâmetro" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Examinador da base de dados" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Mostrar objectos do sistema" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Base de dados" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "Examinador da base de dados" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 #, fuzzy msgid "Edit Connection" msgstr "Adicionar conexão" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Eliminar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Actualizar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 #, fuzzy msgid "Connect" msgstr "Desconectar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Desconectar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 #, fuzzy msgid "Select *" msgstr "Seleccionar ficheiro" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 #, fuzzy msgid "Query" msgstr "Cada" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 #, fuzzy msgid "Create Table" msgstr "Criar pacote" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 #, fuzzy msgid "Create View" msgstr "Criar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 #, fuzzy msgid "Create Procedure" msgstr "Procedimento" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 #, fuzzy msgid "Create Constraint" msgstr "Restrição" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 #, fuzzy msgid "Create Trigger" msgstr "Criar pacote" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 #, fuzzy msgid "Create User" msgstr "Criar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 #, fuzzy msgid "Alter Database" msgstr "Base de dados" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 #, fuzzy msgid "Alter Table" msgstr "Depois de limpar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 #, fuzzy msgid "Alter Procedure" msgstr "Procedimento" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 #, fuzzy msgid "Alter Constraint" msgstr "Restrição" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 #, fuzzy msgid "Alter Trigger" msgstr "Triggers" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 #, fuzzy msgid "Drop Database" msgstr "Eliminar tabela" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 #, fuzzy msgid "Drop Table" msgstr "Eliminar tabela" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 #, fuzzy msgid "Drop View" msgstr "Eliminar tabela" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 #, fuzzy msgid "Drop Procedure" msgstr "Procedimento" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 #, fuzzy msgid "Drop Trigger" msgstr "Triggers" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 #, fuzzy msgid "Drop Constraint" msgstr "Restrição" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 #, fuzzy msgid "Drop User" msgstr "Eliminar tabela" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "Mostrar objectos do sistema" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 #, fuzzy msgid "Add Database Connection" msgstr "Conexões de base de dados" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 #, fuzzy msgid "Create Database" msgstr "Base de dados" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 #, fuzzy msgid "Import From File" msgstr "Ficheiro vazio" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 #, fuzzy msgid "Export To File" msgstr "Ficheiro HTML vazio" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 #, fuzzy msgid "Select Column" msgstr "Seleccionar Directório" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 #, fuzzy msgid "Select All" msgstr "Seleccionar _Tudo" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 #, fuzzy msgid "Deselect All" msgstr "Apagar tudo" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Nome" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "Tipo" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Tipo" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 #, fuzzy msgid "Property Name" msgstr "Nome da _propriedade:" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "Servidor" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 #, fuzzy msgid "Image" msgstr "Página" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Texto" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 #, fuzzy msgid "Edit Database Connection" msgstr "Conexões de base de dados" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 #, fuzzy msgid "WaitDialog" msgstr "Diálogo" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 #, fuzzy msgid "SQL files" msgstr "Adicionar ficheiros" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 #, fuzzy msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "Tem a certeza que pretende apagar o widget '{0}'?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 #, fuzzy msgid "No databases found!" msgstr "Não foram encontrados tetes falhados." #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 #, fuzzy msgid "Trying to connect to database ..." msgstr "Não foi possível encontrar o configure.in em {0}" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "Texto" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 #, fuzzy msgid "Use custom connection string" msgstr "String de conexão" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 msgid "Min Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 msgid "Max Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 #, fuzzy msgid "Advanced" msgstr "_Avançado" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 #, fuzzy msgid "Save Password" msgstr "Password" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "Nome" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "Password" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "Porta:" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "Servidor" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "Renomear" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 #, fuzzy msgid "Event" msgstr "Eventos" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 #, fuzzy msgid "Position" msgstr "Descrição" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 #, fuzzy msgid "Active" msgstr "(Activo)" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 #, fuzzy msgid "Comment" msgstr "Comentários" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 #, fuzzy msgid "Are you sure you want to remove trigger '{0}'?" msgstr "Tem a certeza que pretende apagar '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 #, fuzzy msgid "Nullable" msgstr "Tabela" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 #, fuzzy msgid "Are you sure you want to remove column '{0}'" msgstr "Tem a certeza que pretende apagar '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 #, fuzzy msgid "Check" msgstr "Obter..." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 #, fuzzy msgid "Unique" msgstr "Unicode" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 #, fuzzy msgid "No name specified." msgstr "O nome da assembly especificado é inválido" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 #, fuzzy msgid "Edit Table" msgstr "Esvaziar tabela" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "Adicionar conexão" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 #, fuzzy msgid "Definition" msgstr "Definição SQL" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 #, fuzzy msgid "Preview" msgstr "Provider" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 #, fuzzy msgid "Reference Table" msgstr "Referência: " #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 #, fuzzy msgid "Column Constraint" msgstr "Restrição" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 #, fuzzy msgid "Delete Action" msgstr "Apagar a selecção" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 #, fuzzy msgid "Update Action" msgstr "Desfazer a última acção" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 #, fuzzy msgid "Are you sure you want to remove constraint '{0}'?" msgstr "Tem a certeza que pretende apagar '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 #, fuzzy msgid "Reference Columns" msgstr "Referências" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 msgid "Check Condition" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "Base de dados" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "Geral" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "Re_nomear" #, fuzzy #~ msgid "Remove Connection" #~ msgstr "Adicionar conexão" #, fuzzy #~ msgid "Property Type" #~ msgstr "Propriedade" #, fuzzy #~ msgid "Ctor Parameter" #~ msgstr "Parâmetro" #, fuzzy #~ msgid "Display content as text" #~ msgstr "Lista de opções de visualização" #, fuzzy #~ msgid "Remove Trigger" #~ msgstr "Triggers" #, fuzzy #~ msgid "Remove Column" #~ msgstr "Eliminar grupo" #, fuzzy #~ msgid "Base Settings" #~ msgstr "Configuração do pacote" #, fuzzy #~ msgid "Remove Constraint" #~ msgstr "Restrição" monodevelop-database-4.0.12/po/tr.po0000644000175000017500000010215311266446160020022 0ustar directhexdirecthex# Turkish translation of MonoDevelop # Copyright (C) 2004 Novell, Inc. # This file is distributed under the same license as the MonoDevelop package. # Enver ALTIN , 2004, # Enver ALTIN , 2008, # , fuzzy # # msgid "" msgstr "" "Project-Id-Version: MonoDevelop 1.0\n" "Report-Msgid-Bugs-To: ealtin@gmail.com\n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2008-02-24 00:20+0200\n" "Last-Translator: Enver ALTIN \n" "Language-Team: Turkish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "Kaydedilmiş SQL bağlantı bilgisi yüklenemedi." #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "Lütfen '{0}' bağlantısı için parolayı girin" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 msgid "Enter Password" msgstr "Parolayı girin" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 msgid "Query Database" msgstr "Veritabanı sorgula" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 msgid "_Database" msgstr "_Veritabanı" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Çalıştır" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 msgid "Clear Results" msgstr "Sonuçları Temizle" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "Durum" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "'{0}' veritabanına bağlanılamadı" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "Sorgu süresi: {0}" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Tablo" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "Etkilenen Satır" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 msgid "No Results" msgstr "Sonuç yok" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 msgid "Executing query" msgstr "Sorgu çalıştırılıyor" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 msgid "Query execute cancelled" msgstr "Sorgu çalıştırması iptal edildi" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 #, fuzzy msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Sorgu çalıştırıldı ({0} sonuç tablosu)" msgstr[1] "Sorgu çalıştırıldı ({0} sonuç tablosu)" #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 msgid "MySql database" msgstr "MySql veritabanı" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 msgid "Character Set:" msgstr "Karakter Seti:" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "Sıralama:" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 msgid "SQL Server database" msgstr "SQL Server veritabanı" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 msgid "Database:" msgstr "Veritabanı:" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "'{0}' adlı veritabanı bağlantısı zaten var." #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 msgid "SQLite database" msgstr "SQLite veritabanı" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 msgid "Open Database" msgstr "Veritabanı Aç" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "SQLite veritabanları" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 msgid "All files" msgstr "Tüm dosyalar" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 msgid "Oracle database" msgstr "Oracle veritabanı" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 msgid "PostgreSQL database" msgstr "PostgreSQL veritabanı" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Veritabanı Bağlantıları" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "Bağlanılamadı:" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 msgid "Are you sure you want to remove connection '{0}'?" msgstr "'{0}' bağlantısını silmek istediğinizden emin misiniz?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Görünümü Sil" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 msgid "Are you sure you want to drop database '{0}'" msgstr "'{0}' veritabanını tamamen silmek istediğinizden emin misiniz?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Tablolar" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Görünümler" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Yordamlar" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Kullanıcılar" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Sınırlamalar" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 msgid "Empty Table" msgstr "Tabloyu Boşalt" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 msgid "Are you sure you want to empty table '{0}'" msgstr "'{0}' tablosunu boşaltmak istediğinizden emin misiniz?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Tablo boşaltıldı" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 msgid "Are you sure you want to drop table '{0}'" msgstr "'{0}' tablosunu silmek istediğinizden emin misiniz?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 msgid "Are you sure you want to drop user '{0}'" msgstr "'{0}' kullanıcısını silmek istediğinizden emin misiniz?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 msgid "Are you sure you want to drop procedure '{0}'" msgstr "'{0}' yordamını silmek istediğinizden emin misiniz?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 msgid "Are you sure you want to drop view '{0}'" msgstr "'{0}' görünümünü silmek istediğinizden emin misiniz?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Kolon" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Kolonlar" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Sınırlama" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Toplayıcılar" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Gruplar" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Diller" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "İşleçler" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Roller" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Kurallar" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Sayaçlar" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Tetikleyiciler" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Türler" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Parametreler" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "Parametre" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Veritabanı Gözatıcı" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Sistem Nesnelerini Göster" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Veritabanı" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 msgid "Database Provider List" msgstr "Veritabanı Eriştirici Listesi" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 msgid "Edit Connection" msgstr "Bağlantıyı Düzenle" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Çıkar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Tazele" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 msgid "Connect" msgstr "Bağlan" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Bağlantıyı kes" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 msgid "Select *" msgstr "Tümünü seç" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "Kolonları seç" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 msgid "Query" msgstr "Sorgu" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 msgid "Create Table" msgstr "Tablo Oluştur" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 msgid "Create View" msgstr "Görünüm Oluştur" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 msgid "Create Procedure" msgstr "Yordam Oluştur" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 msgid "Create Constraint" msgstr "Kısıt Oluştur" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 msgid "Create Trigger" msgstr "Tetikleyici Oluştur" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 msgid "Create User" msgstr "Kullanıcı Oluştur" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 msgid "Alter Database" msgstr "Veritabanını Değiştir" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 msgid "Alter Table" msgstr "Tabloyu Değiştir" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "Görünümü Değiştir" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 msgid "Alter Procedure" msgstr "Yordamı Değiştir" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 msgid "Alter Constraint" msgstr "Sınırlamayı Değiştir" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 msgid "Alter Trigger" msgstr "Tetikleyiciyi Değiştir" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "Kullanıcıyı Değiştir" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 msgid "Drop Database" msgstr "Veritabanını Sil" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 msgid "Drop Table" msgstr "Tabloyu Sil" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 msgid "Drop View" msgstr "Görünümü Sil" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 msgid "Drop Procedure" msgstr "Yordamı Sil" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 msgid "Drop Trigger" msgstr "Tetikleyiciyi Sil" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 msgid "Drop Constraint" msgstr "Sınırlamayı Sil" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 msgid "Drop User" msgstr "Kullanıcıyı Sil" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 msgid "Toggle System Objects" msgstr "Sistem Nesneleri Gösterimi Aç/Kapat" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 msgid "Add Database Connection" msgstr "Veritabanı Bağlantısı Ekle" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 msgid "Create Database" msgstr "Veritabanı Oluştur" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "Veriyi Görselleştirme Şekli" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 msgid "Import From File" msgstr "Dosyadan İthal Et" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 msgid "Export To File" msgstr "Dosyaya İhraç Et" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "Veriyi Görselleştir" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 msgid "Select Column" msgstr "Kolon Seç" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "Tümünü seç" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 msgid "Deselect All" msgstr "Hiçbirini seçme" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Ad" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 msgid "Db Type" msgstr "Veritabanı Türü" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Tür" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "Alan Adı" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 msgid "Property Name" msgstr "Öznitelik Adı" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 msgid "Setter" msgstr "Kaydedici" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "of" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "E" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "H" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 msgid "Image" msgstr "İzlenim" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "Nesne bir izlenim olarak yüklenemedi" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Metin" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "button462" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 msgid "Edit Database Connection" msgstr "Veritabanı Bağlantısını Düzenle" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "Lütfen Bekleyin" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 msgid "WaitDialog" msgstr "BeklemeDiyaloğu" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "Lütfen bekleyin" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 msgid "SQL files" msgstr "SQL dosyaları" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "'{0}' dosyasının üzerine yazmak istediğinizden emin misiniz?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "Sınıf Adı" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 msgid "No databases found!" msgstr "Hiç veritabanı bulunamadı!" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 msgid "Trying to connect to database ..." msgstr "'{0}' veritabanına bağlantı deneniyor ..." #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "Sınama Başarılı." #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "Sınama Başarısız: {0}." #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 msgid "Test" msgstr "Sınama" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 msgid "Use custom connection string" msgstr "Özel bağlantı ifadesi kullan" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 msgid "Min Pool Size:" msgstr "En Küçük Havuz Boyutu:" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 msgid "Max Pool Size:" msgstr "En Büyük Havuz Boyutu:" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 msgid "Advanced" msgstr "Gelişmiş" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 msgid "Save Password" msgstr "Parolayı Kaydet" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 msgid "Name:" msgstr "Ad:" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 msgid "Password:" msgstr "Parola:" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 msgid "Port:" msgstr "Bağlantı noktası:" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 msgid "Server:" msgstr "Sunucu:" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 msgid "Username:" msgstr "Kullanıcı adı:" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "Hiçbir veritabanı eriştirici bulunamadı." #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 msgid "Event" msgstr "Olay" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "Her Satır" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 msgid "Position" msgstr "Konum" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 msgid "Active" msgstr "Etkin" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 msgid "Comment" msgstr "Yorum" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 msgid "Are you sure you want to remove trigger '{0}'?" msgstr "'{0}' tetikleyicisini silmek istediğinizden emin misiniz?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "'{0}' tetikleyicisi bir tetikleyici deyimi içermiyor." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "Deyim" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "PK" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "Uzunluk" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 msgid "Nullable" msgstr "Hükümsüzleştirilebilir" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 msgid "Are you sure you want to remove column '{0}'" msgstr "'{0}' kolonunu silmek istediğinizden emin misiniz?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "'{1}' kolonuna bilinmeyen veri tipi '{0}' uygulanmış." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "'{0}' tablosu en az bir birincil anahtar içermelidir." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "'{0}' tablosu en az bir kolon içermelidir." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "Birincil Anahtar" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "Yabancı Anahtar" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 msgid "Check" msgstr "Denetle" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 msgid "Unique" msgstr "Eşsiz" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 msgid "No name specified." msgstr "Hiçbir ad belirtilmedi." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 msgid "Edit Table" msgstr "Tabloyu Düzenle" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "SQL Önizleme" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 msgid "Connection" msgstr "Bağlantı" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 msgid "Definition" msgstr "Tanımlama" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 msgid "Preview" msgstr "Önizleme" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 msgid "Reference Table" msgstr "Atıf Tablosu" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 msgid "Column Constraint" msgstr "Kolon Kısıtı" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 msgid "Delete Action" msgstr "Eylemi Sil" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 msgid "Update Action" msgstr "Eylemi Güncelle" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 msgid "Are you sure you want to remove constraint '{0}'?" msgstr "'{0}' kısıtını silmek istediğinizden emin misiniz?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" "'{0}' adlı Eşsiz Anahtar kısıtı bir veya daha fazla kolona uygulanmalıdır." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 msgid "Reference Columns" msgstr "Atıf Kolonları" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "'{0}' adlı denetlenmiş kısıt bir check deyimi içermiyor." #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" "'{0}' adlı denetlenmiş kısıt bir kolon kısıtı olarak işaretlenmiş olmasına " "karşın herhangi bir kolona uygulanmamış." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 msgid "Check Condition" msgstr "Koşulu Kontrol Et" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" "'{0}' adlı Birincil Anahtar kısıtı bir veya daha fazla kolona uygulanmalıdır." #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 msgid "Generate Data Classes" msgstr "Veri Sınıflarını Üret" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "Konum:" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "Genel" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "Alanlar & Öznitelikler" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "Sınıflar" #~ msgid "Re_name" #~ msgstr "Ye_niden adlandır" #~ msgid "Remove Connection" #~ msgstr "Bağlantıyı Sil" #~ msgid "Overwrite?" #~ msgstr "Üzerine yazılsın mı?" #~ msgid "Remove Trigger" #~ msgstr "Tetikleyiciyi Sil" #~ msgid "Remove Column" #~ msgstr "Kolonu Sil" #~ msgid "Remove Constraint" #~ msgstr "Kısıtı Sil" #~ msgid "Property Type" #~ msgstr "Öznitelik Türü" #~ msgid "Ctor Parameter" #~ msgstr "Üretici Oluştur" #~ msgid "Display content as text" #~ msgstr "İçeriği metin olarak görüntüle" #~ msgid "Display content as xml text" #~ msgstr "İçeriği XML metni olarak görüntüle" #~ msgid "Display content as xml tree" #~ msgstr "İçeriği XML ağacı olarak görüntüle" #~ msgid "Display content as image" #~ msgstr "İçeriği izlenim olarak görüntüle" monodevelop-database-4.0.12/po/pl.po0000644000175000017500000007775611266446160020034 0ustar directhexdirecthex# Polish translation of MonoDevelop. # Copyright (C) 2005 Marek Sieradzki # This file is distributed under the same license as the MonoDevelop package. # Marek Sieradzki , 2005. # # msgid "" msgstr "" "Project-Id-Version: MonoDevelop 0.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2007-02-18 14:50+0100\n" "Last-Translator: Marek Sieradzki \n" "Language-Team: Polish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 #, fuzzy msgid "Enter Password" msgstr "Hasło" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 #, fuzzy msgid "Query Database" msgstr "Baza danych" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 #, fuzzy msgid "_Database" msgstr "Baza danych" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Uruchom" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 #, fuzzy msgid "Clear Results" msgstr "Wyczyść wyniki" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "Status" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Tabela" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 #, fuzzy msgid "No Results" msgstr "Rezultat" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 #, fuzzy msgid "Executing query" msgstr "Wykonywanie zapytań SQL włączone" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 #, fuzzy msgid "Query execute cancelled" msgstr "Anulowano wykonanie testu." #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 #, fuzzy msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Anulowano wykonanie testu." msgstr[1] "Anulowano wykonanie testu." #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "Baza danych" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "Utwórz nowy folder" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "Baza danych" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "Baza danych" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "Baza danych" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 #, fuzzy msgid "Open Database" msgstr "Baza danych" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 #, fuzzy msgid "All files" msgstr "Wszystkie pliki" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "Utwórz połaczenie do bazy danych" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "Baza danych" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Połączenia z bazami danych" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 #, fuzzy msgid "Unable to connect:" msgstr "Nie udało się otworzyć pliku." #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 #, fuzzy msgid "Are you sure you want to remove connection '{0}'?" msgstr "Czy na pewno chcesz usunąć '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Usuń tabelę" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 #, fuzzy msgid "Are you sure you want to drop database '{0}'" msgstr "Czy na pewno chcesz usunąć '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Tabele" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Widoki" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Procedury" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Użytkownicy" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Ograniczenia" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 #, fuzzy msgid "Empty Table" msgstr "Pusta tabela" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 #, fuzzy msgid "Are you sure you want to empty table '{0}'" msgstr "Czy na pewno chcesz usunąć '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Wyczyszczono tabelę" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 #, fuzzy msgid "Are you sure you want to drop table '{0}'" msgstr "Czy na pewno chcesz usunąć '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 #, fuzzy msgid "Are you sure you want to drop user '{0}'" msgstr "Czy na pewno chcesz usunąć '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 #, fuzzy msgid "Are you sure you want to drop procedure '{0}'" msgstr "Czy na pewno chcesz usunąć '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 #, fuzzy msgid "Are you sure you want to drop view '{0}'" msgstr "Czy na pewno chcesz usunąć '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Kolumna" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Kolumny" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Ograniczenia" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Agregaty" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Grupy" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Języki" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "Operatory" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Role" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Zasady" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Sekwencje" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Wyzwalacze" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Typy" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Parametry" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "Parametr" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Przeglądarka baz danych" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Pokaż obiekty systemowe" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Baza danych" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "Przeglądarka baz danych" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 #, fuzzy msgid "Edit Connection" msgstr "Dodaj połączenie" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Usuń" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Odśwież" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 #, fuzzy msgid "Connect" msgstr "Rozłącz" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Rozłącz" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 #, fuzzy msgid "Select *" msgstr "Zaznacz folder" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 #, fuzzy msgid "Query" msgstr "Co" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 #, fuzzy msgid "Create Table" msgstr "Twórz bazę danych" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 #, fuzzy msgid "Create View" msgstr "Agregaty" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 #, fuzzy msgid "Create Procedure" msgstr "Procedura" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 #, fuzzy msgid "Create Constraint" msgstr "Ograniczenia" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 #, fuzzy msgid "Create Trigger" msgstr "Twórz bazę danych" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 #, fuzzy msgid "Create User" msgstr "Agregaty" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 #, fuzzy msgid "Alter Database" msgstr "Baza danych" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 #, fuzzy msgid "Alter Table" msgstr "Wyczyść" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 #, fuzzy msgid "Alter Procedure" msgstr "Procedura" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 #, fuzzy msgid "Alter Constraint" msgstr "Ograniczenia" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 #, fuzzy msgid "Alter Trigger" msgstr "Wyzwalacze" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 #, fuzzy msgid "Drop Database" msgstr "Usuń tabelę" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 #, fuzzy msgid "Drop Table" msgstr "Usuń tabelę" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 #, fuzzy msgid "Drop View" msgstr "Usuń tabelę" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 #, fuzzy msgid "Drop Procedure" msgstr "Procedura" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 #, fuzzy msgid "Drop Trigger" msgstr "Wyzwalacze" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 #, fuzzy msgid "Drop Constraint" msgstr "Ograniczenia" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 #, fuzzy msgid "Drop User" msgstr "Usuń tabelę" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "Pokaż obiekty systemowe" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 #, fuzzy msgid "Add Database Connection" msgstr "Połączenia z bazami danych" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 #, fuzzy msgid "Create Database" msgstr "Utwórz połaczenie do bazy danych" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 #, fuzzy msgid "Import From File" msgstr "Pusty plik" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 #, fuzzy msgid "Export To File" msgstr "Pusty plik HTML" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 #, fuzzy msgid "Select Column" msgstr "Wybierz polecenie" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 #, fuzzy msgid "Select All" msgstr "Zaznacz _wszystko" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 #, fuzzy msgid "Deselect All" msgstr "Usuń wszystko" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Nazwa" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "Typ" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Typ" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 #, fuzzy msgid "Property Name" msgstr "Nazwa projektu:" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "Serwer" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 #, fuzzy msgid "Image" msgstr "Strona" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 #, fuzzy msgid "Unable to load object as Image" msgstr "Nie udało się otworzyć pliku." #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Tekst" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 #, fuzzy msgid "Edit Database Connection" msgstr "Połączenia z bazami danych" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 #, fuzzy msgid "WaitDialog" msgstr "Okno dialogowe" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 #, fuzzy msgid "SQL files" msgstr "Dodaj pliki" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 #, fuzzy msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "Czy na pewno chcesz usunąc tę kontrolkę '{0}'?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 #, fuzzy msgid "No databases found!" msgstr "Nie znaleziono nieudanych testów." #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 msgid "Trying to connect to database ..." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "Tekst" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 #, fuzzy msgid "Use custom connection string" msgstr "Nieprawidłowy łancuch połączenia" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 msgid "Min Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 msgid "Max Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 #, fuzzy msgid "Advanced" msgstr "Z_aawansowane" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 #, fuzzy msgid "Save Password" msgstr "Hasło" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "Nazwa" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "Hasło" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "Port:" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "Serwer" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "Zmień nazwę" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 #, fuzzy msgid "Event" msgstr "Zdarzenia" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 #, fuzzy msgid "Position" msgstr "Opis" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 #, fuzzy msgid "Active" msgstr "(Aktywny)" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 #, fuzzy msgid "Comment" msgstr "Komentarze" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 #, fuzzy msgid "Are you sure you want to remove trigger '{0}'?" msgstr "Czy na pewno chcesz usunąć '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 #, fuzzy msgid "Nullable" msgstr "Tabela" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 #, fuzzy msgid "Are you sure you want to remove column '{0}'" msgstr "Czy na pewno chcesz usunąć '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 #, fuzzy msgid "Check" msgstr "_Informacje o..." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 #, fuzzy msgid "Unique" msgstr "Unicode" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 #, fuzzy msgid "No name specified." msgstr "Podano nieprawidłową nazwę assembly" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 #, fuzzy msgid "Edit Table" msgstr "Edycja " #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "Dodaj połączenie" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 #, fuzzy msgid "Definition" msgstr "Edycja SQL" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 #, fuzzy msgid "Preview" msgstr "Dostawca" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 #, fuzzy msgid "Reference Table" msgstr "Nazwa odnośnika" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 #, fuzzy msgid "Column Constraint" msgstr "Ograniczenia" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 #, fuzzy msgid "Delete Action" msgstr "Usuń zaznaczenie" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 #, fuzzy msgid "Update Action" msgstr "Cofnij ostatnią akcję" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 #, fuzzy msgid "Are you sure you want to remove constraint '{0}'?" msgstr "Czy na pewno chcesz usunąć '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 #, fuzzy msgid "Reference Columns" msgstr "Referencje" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 #, fuzzy msgid "Check Condition" msgstr "Nowa konfiguracja" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "Utwórz połaczenie do bazy danych" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "Ogólne" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "_Zmień nazwę" #, fuzzy #~ msgid "Remove Connection" #~ msgstr "Zmień nazwę konfiguracji" #, fuzzy #~ msgid "Property Type" #~ msgstr "Właściwość" #, fuzzy #~ msgid "Ctor Parameter" #~ msgstr "Parametr" #, fuzzy #~ msgid "Display content as text" #~ msgstr "Wyświetl listę opcji" #, fuzzy #~ msgid "Remove Trigger" #~ msgstr "Wyzwalacze" #, fuzzy #~ msgid "Remove Column" #~ msgstr "Usuń grupę" #, fuzzy #~ msgid "Base Settings" #~ msgstr "Pakiety" #, fuzzy #~ msgid "Remove Constraint" #~ msgstr "Ograniczenia" monodevelop-database-4.0.12/po/it.po0000644000175000017500000010311611266446160020011 0ustar directhexdirecthex# ITALIAN translation of MonoDevelop. # Copyright (C) 2005 THE MonoDevelop's COPYRIGHT HOLDER. # This file is distributed under the same license as the MonoDevelop package. # Alberto Paro , 2005 # Milo Casagrande , 2006-2007 # # Piccolo glossario: # item -> elemento (me lo dimentico sempre :) # pattern -> criterio # match -> corrispondenza # target -> obiettivo # dock -> invariato (da wikipedia it.wikipedia.org/wiki/Dock, benché qui sia riferito al Mac) + # ho usato "oggetto agganciabile" nel caso di "dock item", però bisognerebbe verificare meglio # to deploy -> produrre, mettere in produzione # to build -> generare, opzione di generazione # # Collegamento molto utile: # # http://msdn2.microsoft.com/it-it/library/6c701b8w(VS.80).aspx (glossario di MSDN) # msgid "" msgstr "" "Project-Id-Version: monodevelop\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2007-11-24 23:52+0100\n" "Last-Translator: Milo Casagrande \n" "Language-Team: Italian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-forms: nplurals=2; plural=(n != 1);\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "Impossibile caricare le informazioni della connessione SQL archiviate." #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "Inserire la password per la connessione «{0}»" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 msgid "Enter Password" msgstr "Inserire password" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 msgid "Query Database" msgstr "Query database" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 msgid "_Database" msgstr "_Database" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Esegui" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 msgid "Clear Results" msgstr "Pulisci risultati" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "Stato" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "Impossibile collegarsi al database «{0}»" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Tabella" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "Righe interessate" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 msgid "No Results" msgstr "Nessun risultato" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 msgid "Executing query" msgstr "Esecuzione query" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 msgid "Query execute cancelled" msgstr "Esecuzione query annullata." #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 #, fuzzy msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Query eseguita ({0} tabella risultante)" msgstr[1] "Query eseguita ({0} tabella risultante)" #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "Salva database" # (ndt) proprio di una classe di Windows #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "Crea Setter" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "Database SQLite" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "Database" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "Database SQLite" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 msgid "Open Database" msgstr "Apri database" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "Database SQLite" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 msgid "All files" msgstr "Tutti i file" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "Crea database" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "Database SQLite" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Connessioni al database" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "Impossibili connettere:" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 msgid "Are you sure you want to remove connection '{0}'?" msgstr "Rimuovere la connessione «{0}»?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Drop View" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 msgid "Are you sure you want to drop database '{0}'" msgstr "Eseguire veramente il drop del database «{0}»" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Tabelle" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Viste" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Procedure" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Utenti" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Vincoli" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 msgid "Empty Table" msgstr "Tabella vuota" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 msgid "Are you sure you want to empty table '{0}'" msgstr "Svuotare veramente la tabella «{0}»" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Tabella svuotata" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 msgid "Are you sure you want to drop table '{0}'" msgstr "Eseguire veramente il drop della tabella «{0}»" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 msgid "Are you sure you want to drop user '{0}'" msgstr "Eseguire veramente il drop dell'utente «{0}»" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 msgid "Are you sure you want to drop procedure '{0}'" msgstr "Eseguire veramente il drop della procedura «{0}»" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 msgid "Are you sure you want to drop view '{0}'" msgstr "Eseguire veramente il drop della vista «{0}»" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Colonna" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Colonne" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Vincolo" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Aggregati" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Gruppi" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Linguaggi" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "Operatori" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Ruoli" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Regole" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Sequenze" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Trigger" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Tipi" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Parametri" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "Parametro" # (NdT) questa scritta appare in due posti, assieme alle schede File, Classi... # e come titolo del riquadro. È lasciata corta per non occupare troppo spazio #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Database" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Mostra oggetti di sistema" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Database" # (NdT) questa scritta appare in due posti, assieme alle schede File, Classi... # e come titolo del riquadro. È lasciata corta per non occupare troppo spazio #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "Database" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 msgid "Edit Connection" msgstr "Modifica connessione" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Rimuovi" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Aggiorna" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 msgid "Connect" msgstr "Connetti" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Disconnetti" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 msgid "Select *" msgstr "Select *" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "Select x,y, ..." #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 msgid "Query" msgstr "Query" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 msgid "Create Table" msgstr "Crea tabella" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 msgid "Create View" msgstr "Crea vista" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 msgid "Create Procedure" msgstr "Crea procedura" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 msgid "Create Constraint" msgstr "Crea vincolo" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 msgid "Create Trigger" msgstr "Crea trigger" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 msgid "Create User" msgstr "Crea utente" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 msgid "Alter Database" msgstr "Alter Database" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 msgid "Alter Table" msgstr "Alter Table" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "Alter View" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 msgid "Alter Procedure" msgstr "Alter Procedure" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 msgid "Alter Constraint" msgstr "Alter Constraint" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 msgid "Alter Trigger" msgstr "Alter Trigger" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "Alter User" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 msgid "Drop Database" msgstr "Drop Database" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 msgid "Drop Table" msgstr "Drop Table" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 msgid "Drop View" msgstr "Drop View" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 msgid "Drop Procedure" msgstr "Drop Procedure" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 msgid "Drop Trigger" msgstr "Drop Trigger" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 msgid "Drop Constraint" msgstr "Drop Constraint" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 msgid "Drop User" msgstr "Drop User" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "Mostra oggetti di sistema" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 msgid "Add Database Connection" msgstr "Aggiungi connessione al database" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 msgid "Create Database" msgstr "Crea database" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 msgid "Import From File" msgstr "Importa da file" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 msgid "Export To File" msgstr "Esporta su file" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 msgid "Select Column" msgstr "Selezione colonna" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "Seleziona tutto" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 msgid "Deselect All" msgstr "Deseleziona tutto" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Nome" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "Tipo" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Tipo" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 msgid "Property Name" msgstr "Nome proprietà" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "Server" # (ndt) boh? #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "di" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "Y" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "N" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 msgid "Image" msgstr "Immagine" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "Impossibile caricare l'oggetto come immagine" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Testo" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "button462" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 msgid "Edit Database Connection" msgstr "Modifica connessione al database" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "Attendere" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 msgid "WaitDialog" msgstr "WaitDialog" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "Attendere" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 msgid "SQL files" msgstr "File SQL" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "Sovrascrivere veramente il file «{0}»?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 msgid "No databases found!" msgstr "Nessun database trovato." #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 #, fuzzy msgid "Trying to connect to database ..." msgstr "Impossibile collegarsi al database «{0}»" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "Testo" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 msgid "Use custom connection string" msgstr "Usare stringa di connessione personalizzata" # (ndt) a quanto pare sono due proprietà di SqlConnection.ConnectionString #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 #, fuzzy msgid "Min Pool Size:" msgstr "Min Pool Size" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 #, fuzzy msgid "Max Pool Size:" msgstr "Max Pool Size" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 msgid "Advanced" msgstr "Avanzato" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 msgid "Save Password" msgstr "Salvare password" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "Nome" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "Password" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "Porta" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "Server" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "Nome utente" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 msgid "Event" msgstr "Evento" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "Ogni riga" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 msgid "Position" msgstr "Posizione" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 msgid "Active" msgstr "Attivo" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 msgid "Comment" msgstr "Commento" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 msgid "Are you sure you want to remove trigger '{0}'?" msgstr "Rimuovere veramente il trigger «{0}»?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "Il trigger «{0}» non contiene una dichiarazione trigger." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "Dichiarazione" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "PK" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "Lunghezza" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 msgid "Nullable" msgstr "Nullable" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 msgid "Are you sure you want to remove column '{0}'" msgstr "Rimuovere veramente la colonna «{0}»?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "Tipo di dato «{0}» applicato alla colonna «{1}» sconosciuto." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "La tabella «{0}» deve contenere almeno una chiave primaria." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "La tabella «{0}» devo contenere almeno una colonna." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "Chiave primaria" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "Chiave esterna" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 msgid "Check" msgstr "Check" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 msgid "Unique" msgstr "Unique" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 msgid "No name specified." msgstr "Nessun nome specificato." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 msgid "Edit Table" msgstr "Modifica tabella" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "Anteprima SQL" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "Aggiungi connessione" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 msgid "Definition" msgstr "Definizione" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 msgid "Preview" msgstr "Anteprima" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 msgid "Reference Table" msgstr "Tabella di riferimento" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 msgid "Column Constraint" msgstr "Vincolo colonna" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 msgid "Delete Action" msgstr "Azione di cancellazione" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 msgid "Update Action" msgstr "Azione di aggiornamento" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 msgid "Are you sure you want to remove constraint '{0}'?" msgstr "Rimuovere veramente il vincolo «{0}»?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" "Il vincolo di chiave unica «{0}» deve essere applicato a uno a più colonne." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 msgid "Reference Columns" msgstr "Colonne di riferimento" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "Vincolo check «{0}» non contiene una dichiarazione check." #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" "Vincolo check «{0}» è indicato come un vincolo di colonna ma non è applicato " "a una colonna." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 msgid "Check Condition" msgstr "Condizione check" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" "Il vincolo di chiave primaria «{0}» deve essere applicato a una o più colonne." #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "Crea database" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "Generale" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "Ri_nomina" #~ msgid "Remove Connection" #~ msgstr "Rimuovi connessione" #~ msgid "Property Type" #~ msgstr "Tipo proprietà" #~ msgid "Ctor Parameter" #~ msgstr "Parametro ctor" #~ msgid "Overwrite?" #~ msgstr "Sovrascrivere?" #~ msgid "Display content as text" #~ msgstr "Visualizzare il contenuto come testo" #~ msgid "Display content as xml text" #~ msgstr "Visualizzare il contenuto come testo xml" #~ msgid "Display content as xml tree" #~ msgstr "Visualizzare il contenuto come un albero xml" #~ msgid "Display content as image" #~ msgstr "Visualizzare il contenuto come immagine" #~ msgid "Remove Trigger" #~ msgstr "Rimuovi trigger" #~ msgid "Remove Column" #~ msgstr "Rimuovi colonna" #~ msgid "Base Settings" #~ msgstr "Impostazioni di base" #~ msgid "Remove Constraint" #~ msgstr "Rimuovi vincolo" monodevelop-database-4.0.12/po/Makefile.in0000644000175000017500000002717711266446160021116 0ustar directhexdirecthex# Makefile.in generated by automake 1.12.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2012 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.include ChangeLog subdir = po ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ASSEMBLY_VERSION = @ASSEMBLY_VERSION@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CSC = @CSC@ CSC_FLAGS = @CSC_FLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ GLIB_SHARP_CFLAGS = @GLIB_SHARP_CFLAGS@ GLIB_SHARP_LIBS = @GLIB_SHARP_LIBS@ GTK_SHARP_CFLAGS = @GTK_SHARP_CFLAGS@ GTK_SHARP_LIBS = @GTK_SHARP_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD_LIBRARY_PATH = @LD_LIBRARY_PATH@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_PREFIX = @LIB_PREFIX@ LIB_SUFFIX = @LIB_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MCS = @MCS@ MD_ADDIN_DIR = @MD_ADDIN_DIR@ MD_ASSEMBLY_DIR = @MD_ASSEMBLY_DIR@ MD_DIR = @MD_DIR@ MKDIR_P = @MKDIR_P@ MONO = @MONO@ MONODEVELOP_CFLAGS = @MONODEVELOP_CFLAGS@ MONODEVELOP_CORE_ADDINS_CFLAGS = @MONODEVELOP_CORE_ADDINS_CFLAGS@ MONODEVELOP_CORE_ADDINS_LIBS = @MONODEVELOP_CORE_ADDINS_LIBS@ MONODEVELOP_LIBS = @MONODEVELOP_LIBS@ MONO_ADDINS_CFLAGS = @MONO_ADDINS_CFLAGS@ MONO_ADDINS_GUI_CFLAGS = @MONO_ADDINS_GUI_CFLAGS@ MONO_ADDINS_GUI_LIBS = @MONO_ADDINS_GUI_LIBS@ MONO_ADDINS_LIBS = @MONO_ADDINS_LIBS@ MONO_ADDINS_SETUP_CFLAGS = @MONO_ADDINS_SETUP_CFLAGS@ MONO_ADDINS_SETUP_LIBS = @MONO_ADDINS_SETUP_LIBS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ PACKAGE = monodevelop-database PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH = @PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RUNTIME = @RUNTIME@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ UNMANAGED_DEPENDENCIES_MONO_CFLAGS = @UNMANAGED_DEPENDENCIES_MONO_CFLAGS@ UNMANAGED_DEPENDENCIES_MONO_LIBS = @UNMANAGED_DEPENDENCIES_MONO_LIBS@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gtksharp_prefix = @gtksharp_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ MDTOOL = $(LOCAL_PKGCONFIG) mono `$(LOCAL_PKGCONFIG) pkg-config --variable=libdir monodevelop`/bin/mdtool.exe BUILD_DIR = $(top_builddir)/build/locale INSTALL_DIR = $(DESTDIR)$(MD_ADDIN_DIR)/MonoDevelop.Database/locale FILES = \ ca.po\ cs.po\ da.po\ de.po\ es.po\ fr.po\ gl.po\ hu.po\ id.po\ it.po\ ja.po\ nl.po\ pl.po\ pt.po\ pt_BR.po\ ru.po\ sl_SI.po\ sv.po\ tr.po\ zh_CN.po\ zh_TW.po GMO_FILES = $(patsubst %.po,$(BUILD_DIR)/%/LC_MESSAGES/$(PACKAGE).mo,$(FILES)) MO_FILES = $(foreach po,$(FILES), $(INSTALL_DIR)/$(basename $(po))/LC_MESSAGES/$(PACKAGE).mo) CLEANFILES = $(GMO_FILES) EXTRA_DIST = $(FILES) build_sources = $(addprefix $(srcdir)/, $(FILES)) $(GENERATED_FILES) build_resources = $(addprefix $(srcdir)/, $(RES)) build_test_sources = $(addprefix $(srcdir)/, $(TESTFILES)) $(GENERATED_FILES) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.include $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu po/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu po/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_srcdir)/Makefile.include: $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): tags: TAGS TAGS: ctags: CTAGS CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile installdirs: install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-data-local install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-local .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am \ install-data-local install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am uninstall uninstall-am uninstall-local all: $(GMO_FILES) update-po: cd $(top_srcdir) && $(MDTOOL) gettext-update statistics: @for LANGFILE in $(FILES); do \ echo "$$LANGFILE:"; \ msgfmt -o /dev/null --verbose "$$LANGFILE"; \ done $(GMO_FILES): $(BUILD_DIR)/%/LC_MESSAGES/$(PACKAGE).mo: %.po mkdir -p '$(dir $@)' msgfmt '$<' -o '$@' $(MO_FILES): $(INSTALL_DIR)/%/LC_MESSAGES/$(PACKAGE).mo : $(BUILD_DIR)/%/LC_MESSAGES/$(PACKAGE).mo mkdir -p '$(dir $@)' $(INSTALL) '$<' '$@' install-data-local: $(MO_FILES) uninstall-local: rm -f $(MO_FILES) # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: monodevelop-database-4.0.12/po/hu.po0000755000175000017500000010233011266446160020011 0ustar directhexdirecthex# msgid "" msgstr "" "Project-Id-Version: MonoDevelop Hungarian translation 1.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2008-02-03 23:23+0100\n" "Last-Translator: Gergely Kiss \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "Nem sikerült betölteni a tárolt SQL-kapcsolat adatait." #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "Kérem, adja meg a kapcsolathoz ('{0}') tartozó jelszót" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 msgid "Enter Password" msgstr "Jelszó megadása" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 msgid "Query Database" msgstr "Adatbázis lekérdezése" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 msgid "_Database" msgstr "A_datbázis" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Futtatás" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 msgid "Clear Results" msgstr "Eredmények törlése" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "Állapot" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "Nem sikerült kapcsolódni az adatbázishoz ({0})." #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Tábla" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "Érintett sorok" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 msgid "No Results" msgstr "Nincs visszatérési érték" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 msgid "Executing query" msgstr "Lekérdezés futtatása" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 msgid "Query execute cancelled" msgstr "A lekérdezés futtatása meg lett szakítva" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 #, fuzzy msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "A lekérdezés sikeresen lefutott ({0} eredménytábla jött létre)" msgstr[1] "A lekérdezés sikeresen lefutott ({0} eredménytábla jött létre)" #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "Adatbázis mentése" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "Beállító (setter) létrehozása" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "SQLite adatbázisok" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "Adatbázis" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "SQLite adatbázisok" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 msgid "Open Database" msgstr "Adatbázis megnyitása" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "SQLite adatbázisok" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 msgid "All files" msgstr "Minden fájl" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "Adatbázis létrehozása" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "SQLite adatbázisok" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Adatbázis-kapcsolatok" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "Nem sikerült csatlakozni:" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 msgid "Are you sure you want to remove connection '{0}'?" msgstr "Biztos benne, hogy törli a kapcsolatot ('{0}')?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Nézet törlése" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 msgid "Are you sure you want to drop database '{0}'" msgstr "Biztosan törli az adatbázist ('{0}')?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Táblák" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Nézetek" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Eljárások" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Felhasználók" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Megszorítások" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 msgid "Empty Table" msgstr "Üres tábla" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 msgid "Are you sure you want to empty table '{0}'" msgstr "Biztosan törli az összes rekordot a táblában ('{0}')?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "A rekordok törlése sikerült" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 msgid "Are you sure you want to drop table '{0}'" msgstr "Biztosan törölni szeretné a táblát ('{0}')?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 msgid "Are you sure you want to drop user '{0}'" msgstr "Biztosan törölni szeretné a felhasználót ('{0}')?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 msgid "Are you sure you want to drop procedure '{0}'" msgstr "Biztosan törölni szeretné az eljárást ('{0}')?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 msgid "Are you sure you want to drop view '{0}'" msgstr "Biztosan törölni szeretné a nézetet ('{0}')?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Mező" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Mezők" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Megszorítás" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Összesítések" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Csoportok" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Nyelvek" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "Operátorok" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Szerepek" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Szabályok" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Folyamatok" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Triggerek" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Típusok" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Paraméterek" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "Paraméter" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Adatbáziskezelő" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Rendszerobjektumok megjelenítése" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Adatbázis" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "Adatbáziskezelő" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 msgid "Edit Connection" msgstr "Kapcsolat szerkesztése" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Eltávolítás" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Frissítés" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 msgid "Connect" msgstr "Kapcsolódás" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Kapcsolat bontása" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 msgid "Select *" msgstr "Select *" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "Select x,y,..." #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 msgid "Query" msgstr "Lekérdezés" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 msgid "Create Table" msgstr "Tábla létrehozása" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 msgid "Create View" msgstr "Nézet létrehozása" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 msgid "Create Procedure" msgstr "Eljárás létrehozása" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 msgid "Create Constraint" msgstr "Megszorítás létrehozása" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 msgid "Create Trigger" msgstr "Trigger létrehozása" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 msgid "Create User" msgstr "Új felhasználó" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 msgid "Alter Database" msgstr "Adatbázis módosítása" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 msgid "Alter Table" msgstr "Tábla módosítása" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "Nézet módosítása" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 msgid "Alter Procedure" msgstr "Eljárás módosítása" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 msgid "Alter Constraint" msgstr "Megszorítás módosítása" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 msgid "Alter Trigger" msgstr "Trigger módosítása" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "Felhasználó módosítása" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 msgid "Drop Database" msgstr "Adatbázis törlése" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 msgid "Drop Table" msgstr "Tábla törlése" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 msgid "Drop View" msgstr "Nézet törlése" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 msgid "Drop Procedure" msgstr "Eljárás törlése" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 msgid "Drop Trigger" msgstr "Trigger törlése" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 msgid "Drop Constraint" msgstr "Megszorítás törlése" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 msgid "Drop User" msgstr "Felhasználó törlése" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "Rendszerobjektumok megjelenítése" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 msgid "Add Database Connection" msgstr "Új adatbázis-kapcsolat" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 msgid "Create Database" msgstr "Adatbázis létrehozása" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 msgid "Import From File" msgstr "Importálás fájlból" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 msgid "Export To File" msgstr "Exportálás fájlba" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 msgid "Select Column" msgstr "Mező kijelölése" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "Mindent kijelöl" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 msgid "Deselect All" msgstr "Kijelölés megszüntetése" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Név" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "Típus" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Típus" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 msgid "Property Name" msgstr "Tulajdonság neve" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "Kiszolgáló" # Máris le lett küzdve egy eltérés a magyar és az angol nyelv között. :) # Sok helyen láttam zavaros megoldásokat az "of" szó fordításakor, # szerintem így a legkorrektebb. #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "/" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "I" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "N" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 msgid "Image" msgstr "Kép" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "Nem lehet az objektumot képként betölteni" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Szöveg" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "button462" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 msgid "Edit Database Connection" msgstr "Adatbázis-kapcsolat szerkesztése" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "Kérem, várjon..." #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 msgid "WaitDialog" msgstr "Várakozási ablak" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "Kérem, várjon..." #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 msgid "SQL files" msgstr "SQL fájlok" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "Biztos, hogy felülírja a fájlt ('{0}')?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 msgid "No databases found!" msgstr "Nincs egyetlen adatbázis sem." #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 #, fuzzy msgid "Trying to connect to database ..." msgstr "Nem sikerült kapcsolódni az adatbázishoz ({0})." #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "Szöveg" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 msgid "Use custom connection string" msgstr "Egyedi kapcsolódási sztring használata" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 #, fuzzy msgid "Min Pool Size:" msgstr "Legkisebb poolméret" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 #, fuzzy msgid "Max Pool Size:" msgstr "Legnagyobb poolméret" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 msgid "Advanced" msgstr "Fejlett" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 msgid "Save Password" msgstr "Jelszó mentése" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "Név" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "Jelszó" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "Port" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "Kiszolgáló" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "Felhasználónév" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 msgid "Event" msgstr "Esemény" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "Minden rekord" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 msgid "Position" msgstr "Pozíció" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 msgid "Active" msgstr "Aktív" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 msgid "Comment" msgstr "Megjegyzés" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 msgid "Are you sure you want to remove trigger '{0}'?" msgstr "Biztosan törli a triggert ('{0}')?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "A trigger ('{0}') nem tartalmazza a TRIGGER kulcsszót." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "Állítás" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "EK" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "Szélesség" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 msgid "Nullable" msgstr "NULL-értéket felvehet" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 msgid "Are you sure you want to remove column '{0}'" msgstr "Biztosan törli a mezőt ('{0}')?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "Ismeretlen adattípust ('{0}') adott meg a mezőhöz ('{1}')." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "" "A táblához ('{0}') hozzá kell rendelni legalább egy elsődleges kulcsot." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "A tábla ('{0}') nem tartalmaz egyetlen mezőt sem." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "Elsődleges kulcs" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "Idegenkulcs" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 msgid "Check" msgstr "Ellenőrzés" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 msgid "Unique" msgstr "Egyedi" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 msgid "No name specified." msgstr "Nem adott meg nevet." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 msgid "Edit Table" msgstr "Tábla szerkesztése" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "SQL-kód előnézete" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "Új kapcsolat" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 msgid "Definition" msgstr "Definíció" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 msgid "Preview" msgstr "Előnézet" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 msgid "Reference Table" msgstr "Referenciatábla" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 msgid "Column Constraint" msgstr "Mezőmegszorítás" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 msgid "Delete Action" msgstr "Akció törlése" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 msgid "Update Action" msgstr "Akció frissítése" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 msgid "Are you sure you want to remove constraint '{0}'?" msgstr "Biztosan törli a megszorítást ('{0}')?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" "Az egyedi kulcs megszorítást ('{0}') legalább egy mezőre alkalmazni kell." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 msgid "Reference Columns" msgstr "Referenciamezők" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "" "Az ellenőrzött megszorításban ('{0}') szerepelnie kell a CHECK kulcsszónak." #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" "Az ellenőrzött megszorítás ('{0}') mezőre vonatkozó megszorításnak van " "megjelölve, de nincs alkalmazva egyetlen mezőre sem." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 msgid "Check Condition" msgstr "Feltételek ellenőrzése" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" "Az elsődleges kulcs megszorítást ('{0}') alkalmazni kell legalább egy mezőre." #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "Adatbázis létrehozása" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "Általános" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "Át_nevezés" #~ msgid "Remove Connection" #~ msgstr "Kapcsolat törlése" #~ msgid "Property Type" #~ msgstr "Tulajdonság típusa" #~ msgid "Ctor Parameter" #~ msgstr "Ctor paraméter" #~ msgid "Overwrite?" #~ msgstr "Felül szeretné írni?" #~ msgid "Display content as text" #~ msgstr "Tartalom megjelenítése szövegként" #~ msgid "Display content as xml text" #~ msgstr "Tartalom megjelenítése XML kódként" #~ msgid "Display content as xml tree" #~ msgstr "Tartalom megjelenítése XML faként" #~ msgid "Display content as image" #~ msgstr "Tartalom megjelenítése képként" #~ msgid "Remove Trigger" #~ msgstr "Trigger törlése" #~ msgid "Remove Column" #~ msgstr "Mező törlése" #~ msgid "Base Settings" #~ msgstr "Alapbeállítások" #~ msgid "Remove Constraint" #~ msgstr "Megszorítás törlése" monodevelop-database-4.0.12/po/fr.po0000644000175000017500000010212111266446160017777 0ustar directhexdirecthex# MonoDevelop fr_FR translation # Copyright (C) Vincent Daron , # Nicolas Favre-Felix 2006. # This file is distributed under the same license as Monodevelop # # msgid "" msgstr "" "Project-Id-Version: fr_FR\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2009-03-06 22:20:03+0100\n" "Last-Translator: Vincent DARON \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: MonoDevelop Gettext addin\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "Impossible de charger les informations de connection SQL." #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "Veuillez entrer le mot de passe pour la connection '{0}'" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 msgid "Enter Password" msgstr "Mot de passe" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 msgid "Query Database" msgstr "Exécuter une requète sur la Base de données" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 msgid "_Database" msgstr "_Base de données" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Exécuter" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 msgid "Clear Results" msgstr "Effacer les résultats" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "Status" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "Impossible de se connecter à la base de données '{0}'" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "Durée de la requète: {0}" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Table" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "Rangées affectées" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 msgid "No Results" msgstr "Pas de Résultat" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 msgid "Executing query" msgstr "Exécution de la la requête" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 msgid "Query execute cancelled" msgstr "Exécution de la requète annulée." #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Requète exécutée ({0} table de résultat)" msgstr[1] "Requète exécutée ({0} tables de résultat)" #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 msgid "MySql database" msgstr "Base de données MySql" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 msgid "Character Set:" msgstr "Jeu de Caractères" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "Collation:" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 msgid "SQL Server database" msgstr "Base de données SQL Server" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 msgid "Database:" msgstr "Base de données:" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "La base de donnée '{0}' existe déjà.." #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 msgid "SQLite database" msgstr "Base de données SQLite" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 msgid "Open Database" msgstr "Ouvrir une Base de données" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "Bases de données SQLite" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 msgid "All files" msgstr "Tous les fichiers" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 msgid "Oracle database" msgstr "Base de données Oracle" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 msgid "PostgreSQL database" msgstr "Base de données PostgreSQL" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Connections aux bases de données" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "Erreur de connection:" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 msgid "Are you sure you want to remove connection '{0}'?" msgstr "Êtes-vous sur de vouloir supprimer la connection '{0}' ?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 msgid "Drop" msgstr "Effacer" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 msgid "Are you sure you want to drop database '{0}'" msgstr "Êtes-vous sur de vouloir supprimer la base de données '{0}' ?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Tables" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Vues" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Procédures" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Utilisateurs" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Contraintes" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 msgid "Empty Table" msgstr "Vider la Table" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 msgid "Are you sure you want to empty table '{0}'" msgstr "Êtes-vous sur de vouloir vide la table '{0}' ?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Table vidée" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 msgid "Are you sure you want to drop table '{0}'" msgstr "Êtes-vous sur de vouloir supprimer la table '{0}' ?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 msgid "Are you sure you want to drop user '{0}'" msgstr "Êtes-vous sur de vouloir supprimer l'utilisateur '{0}' ?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 msgid "Are you sure you want to drop procedure '{0}'" msgstr "Êtes-vous sur de vouloir supprimer la procédure '{0}' ?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 msgid "Are you sure you want to drop view '{0}'" msgstr "Êtes-vous sur de vouloir supprimer la vue '{0}' ?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Colonne" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Colonnes" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Contraintes" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Agrégats" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Groupes" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Langues" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "Opérateurs" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Rôles" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Règles" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Séquences" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Triggers" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Types" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Paramètres" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "Paramètre" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Explorateur de Base de données" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Afficher les objets systèmes" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Base de données" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 msgid "Database Provider List" msgstr "Liste des Fournisseurs de Base de données" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 msgid "Edit Connection" msgstr "Editer la connection" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Effacer" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Rafraîchir" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 msgid "Connect" msgstr "Connecter" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Déconnecter" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 msgid "Select *" msgstr "Select *" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "Select x,y,..." #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 msgid "Query" msgstr "Requète" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 msgid "Create Table" msgstr "Créer une Table" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 msgid "Create View" msgstr "Créer une Vue" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 msgid "Create Procedure" msgstr "Créer une Procédure" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 msgid "Create Constraint" msgstr "Créer une Contrainte" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 msgid "Create Trigger" msgstr "Créer un Trigger" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 msgid "Create User" msgstr "Créer un Utilisateur" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 msgid "Alter Database" msgstr "Modifier une Base de données" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 msgid "Alter Table" msgstr "Modifier une Table" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "Modifier une Vue" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 msgid "Alter Procedure" msgstr "Modifier une Procédure" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 msgid "Alter Constraint" msgstr "Modifier une Contrainte" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 msgid "Alter Trigger" msgstr "Modifier un Trigger" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "Modifier un Utilisateur" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 msgid "Drop Database" msgstr "Effacer une Base de données" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 msgid "Drop Table" msgstr "Effacer une Table" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 msgid "Drop View" msgstr "Effacer une Vue" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 msgid "Drop Procedure" msgstr "Effacer une Procédure" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 msgid "Drop Trigger" msgstr "Effacer une Trigger" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 msgid "Drop Constraint" msgstr "Effacer une Contrainte" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 msgid "Drop User" msgstr "Effacer un Utilisateur" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 msgid "Toggle System Objects" msgstr "Afficher/Cacher les Objets Systèmes" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 msgid "Add Database Connection" msgstr "Ajouter une Connections à une Base de données" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 msgid "Create Database" msgstr "Créer la base de données" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "Afficher les Données Comme" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 msgid "Import From File" msgstr "Importer à partir d'un Fichier" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 msgid "Export To File" msgstr "Exporter dans un Fichier" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "Afficher les Données" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 msgid "Select Column" msgstr "Sélectionnez la Colonne" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "Tout sélectionner" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 msgid "Deselect All" msgstr "Tout Déselectionner" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Nom" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 msgid "Db Type" msgstr "Type Db" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Type" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "Nom du Champ" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 msgid "Property Name" msgstr "Nom de la Propriété" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 msgid "Setter" msgstr "Setter" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "ou" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "O" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "N" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 msgid "Image" msgstr "Image" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "Impossible de charger l'objet comme une Image" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Texte" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "button462" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 msgid "Edit Database Connection" msgstr "Editer la Connection à la Base de données" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "Veuillez Patienter" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 msgid "WaitDialog" msgstr "WaitDialog" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "Veuillez patienter" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 msgid "SQL files" msgstr "Fichiers SQL" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "Êtes-vous sur de vouloir écraser le fichier '{0}' ?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "Nom de Classe" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 msgid "No databases found!" msgstr "Pas de base de données trouvée!" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 msgid "Trying to connect to database ..." msgstr "Connection à la Base de données ..." #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "Test réussit." #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "Test en Erreur: {0}." #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 msgid "Test" msgstr "Test" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 msgid "Use custom connection string" msgstr "Utiliser une chaîne de connection personnalisée" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 msgid "Min Pool Size:" msgstr "Taille min du Pool:" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 msgid "Max Pool Size:" msgstr "Taille max du Pool:" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 msgid "Advanced" msgstr "Avancé" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 msgid "Save Password" msgstr "Sauver le Mot de passe" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 msgid "Name:" msgstr "Nom:" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 msgid "Password:" msgstr "Mot de passe:" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 msgid "Port:" msgstr "Port:" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 msgid "Server:" msgstr "Serveur:" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 msgid "Username:" msgstr "Utilisateur:" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "Pas de fournisseur de base de données détecté." #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 msgid "Event" msgstr "Evènement" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "Chaque Rangée" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 msgid "Position" msgstr "Position" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 msgid "Active" msgstr "Active" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 msgid "Comment" msgstr "Commentaires" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 msgid "Are you sure you want to remove trigger '{0}'?" msgstr "Êtes-vous sur de vouloir supprimer le trigger '{0}' ?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "Le Trigger '{0}' ne contient pas de déclaration de trigger." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "Déclaration" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "PK" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "Tailler" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 msgid "Nullable" msgstr "NULL Autorisé" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 msgid "Are you sure you want to remove column '{0}'" msgstr "Êtes-vous sur de vouloir supprimer la colonne '{0}' ?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "Type de donnée '{0}' de la colonne '{1}' inconnu." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "La Table '{0}' doit contenir au moins une clef primaire." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "La Table '{0}' doit contenir au moins une colonne." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "Clef Primaire" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "Clef étrangère" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 msgid "Check" msgstr "Vérification" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 msgid "Unique" msgstr "Unique" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 msgid "No name specified." msgstr "Pas de nom spécifié." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 msgid "Edit Table" msgstr "Editer la Table" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "Prévisualisation du SQL" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 msgid "Connection" msgstr "Connection" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 msgid "Definition" msgstr "Définition" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 msgid "Preview" msgstr "Prévisualisation" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 msgid "Reference Table" msgstr "Table de Référence" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 msgid "Column Constraint" msgstr "Contrainte de Colonne" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 msgid "Delete Action" msgstr "Action de Suppression" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 msgid "Update Action" msgstr "Action de Mise à jour" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 msgid "Are you sure you want to remove constraint '{0}'?" msgstr "Êtes-vous sur de vouloir supprimer la contrainte '{0}' ?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" "La contrainte de Clef Unique '{0}' doit être appliquée à une ou plusieurs " "colonnes." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 msgid "Reference Columns" msgstr "Colonne de Référence" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "" "La Contrainte de Validation '{0}' ne contient pas de déclaration de " "validation." #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" "Contrainte de Validation '{0}' est notée comme contrainte de colonne mais " "n'est appliquée à aucune colonne." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 msgid "Check Condition" msgstr "Condition de Validation" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" "La contrainte de Clef Primaire '{0}' doit être appliquée à une ou plusieurs " "colonnes." #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 msgid "Generate Data Classes" msgstr "Génère les Classes de Données" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "Emplacement:" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "Général" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "Champs & Propriétés" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "Classes" #~ msgid "Re_name" #~ msgstr "Renommer" #, fuzzy #~ msgid "Remove Connection" #~ msgstr "Renommer la configuration" #, fuzzy #~ msgid "Property Type" #~ msgstr "Propriété" #, fuzzy #~ msgid "Ctor Parameter" #~ msgstr "Paramètre" #, fuzzy #~ msgid "Display content as text" #~ msgstr "Afficher la liste d'options" #, fuzzy #~ msgid "Remove Trigger" #~ msgstr "Triggers" #, fuzzy #~ msgid "Remove Column" #~ msgstr "Retirer groupe" #, fuzzy #~ msgid "Base Settings" #~ msgstr "Préférences Gtk#" #, fuzzy #~ msgid "Remove Constraint" #~ msgstr "Contraintes" monodevelop-database-4.0.12/po/zh_CN.po0000755000175000017500000007657111266446160020417 0ustar directhexdirecthex# MonoDevelop zh_CN translation # Copyright(C) 2006 Yu Lindong # This file is distributed under the same license as the PACKAGE package. # Yu Lindong , 2006. # Funda Wang , 2006. # # msgid "" msgstr "" "Project-Id-Version: MonoDevelop 0.10\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2007-12-26 21:22+0800\n" "Last-Translator: Simon Keung \n" "Language-Team: Yu Lindong \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 msgid "Enter Password" msgstr "输入密码" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 msgid "Query Database" msgstr "查询数据库" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 msgid "_Database" msgstr "数据库(_D)" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "执行" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 msgid "Clear Results" msgstr "清除结果" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "状态" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "不能连接到数据库‘{0}’" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "表" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 msgid "No Results" msgstr "没有结果" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 msgid "Executing query" msgstr "正在执行 SQL 查询" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 msgid "Query execute cancelled" msgstr "执行 SQL 查询被取消" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "查询执行完 ({0} 结果)" #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "保存数据库" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "创建新文件夹" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "保存数据库" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "数据库" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "保存数据库" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 msgid "Open Database" msgstr "打开数据库" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 #, fuzzy msgid "All files" msgstr "全部文件" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "创建新数据库" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "数据库" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "数据库连接" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 #, fuzzy msgid "Are you sure you want to remove connection '{0}'?" msgstr "您确定想要删除窗口“{0}”吗?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "删除表" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 #, fuzzy msgid "Are you sure you want to drop database '{0}'" msgstr "您确定想要删除部件“{0}”吗?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "表" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "视图" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "过程" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "用户" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "约束" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 msgid "Empty Table" msgstr "清空表" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 msgid "Are you sure you want to empty table '{0}'" msgstr "您确定想要放空表“{0}”吗?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "表已清空" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 msgid "Are you sure you want to drop table '{0}'" msgstr "您确定想要删除表“{0}”吗?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 msgid "Are you sure you want to drop user '{0}'" msgstr "您确定想要删除用户“{0}”吗?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 msgid "Are you sure you want to drop procedure '{0}'" msgstr "您确定想要删除过程“{0}”吗?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 #, fuzzy msgid "Are you sure you want to drop view '{0}'" msgstr "您确定想要删除部件“{0}”吗?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "列" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "列" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "约束" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "聚合" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "组" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "语言" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "操作符" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "角色" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "规则" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "序列" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "触发器" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "类型" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "参数" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "参数" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "数据库浏览器" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "显示系统对象" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "数据库" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "数据库浏览器" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 #, fuzzy msgid "Edit Connection" msgstr "添加连接" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "删除" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "刷新" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 #, fuzzy msgid "Connect" msgstr "断开连接" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "断开连接" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 msgid "Select *" msgstr "全选 *" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 msgid "Query" msgstr "查询" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 msgid "Create Table" msgstr "创建新表" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 #, fuzzy msgid "Create View" msgstr "创建新文件夹" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 msgid "Create Procedure" msgstr "创建新工序" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 msgid "Create Constraint" msgstr "创建新约束" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 msgid "Create Trigger" msgstr "创建新触发器" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 msgid "Create User" msgstr "创建新用户" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 #, fuzzy msgid "Alter Database" msgstr "数据库" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 #, fuzzy msgid "Alter Table" msgstr "表" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 #, fuzzy msgid "Alter Procedure" msgstr "过程" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 #, fuzzy msgid "Alter Constraint" msgstr "约束" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 #, fuzzy msgid "Alter Trigger" msgstr "触发器" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 msgid "Drop Database" msgstr "删除数据库" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 msgid "Drop Table" msgstr "删除表" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 #, fuzzy msgid "Drop View" msgstr "删除表" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 msgid "Drop Procedure" msgstr "删除工序" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 msgid "Drop Trigger" msgstr "删除触发器" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 msgid "Drop Constraint" msgstr "删除约束" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 msgid "Drop User" msgstr "删除用户" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "显示系统对象" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 #, fuzzy msgid "Add Database Connection" msgstr "数据库连接" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 msgid "Create Database" msgstr "创建新数据库" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 #, fuzzy msgid "Import From File" msgstr "空文件" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 #, fuzzy msgid "Export To File" msgstr "空 HTML 文件" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 #, fuzzy msgid "Select Column" msgstr "选择命令" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "全选" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 msgid "Deselect All" msgstr "全部不选" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "名称" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "类型" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "类型" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 #, fuzzy msgid "Property Name" msgstr "属性" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "服务器" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "的" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "是(Y)" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "否(N)" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 msgid "Image" msgstr "图像" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "文本" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 #, fuzzy msgid "Edit Database Connection" msgstr "数据库连接" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 #, fuzzy msgid "WaitDialog" msgstr "查找对话框" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 #, fuzzy msgid "SQL files" msgstr "添加文件" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 #, fuzzy msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "您确定想要删除部件“{0}”吗?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 #, fuzzy msgid "No databases found!" msgstr "未找到失败测试。" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 #, fuzzy msgid "Trying to connect to database ..." msgstr "不能连接到数据库‘{0}’" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "文本" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 #, fuzzy msgid "Use custom connection string" msgstr "连接字符串" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 msgid "Min Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 msgid "Max Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 #, fuzzy msgid "Advanced" msgstr "高级(_A)" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 #, fuzzy msgid "Save Password" msgstr "密码" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "名称" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "密码" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 msgid "Port:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "服务器" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "用户名" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 #, fuzzy msgid "Event" msgstr "事件 {0}" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "每一行" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 #, fuzzy msgid "Position" msgstr "描述" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 #, fuzzy msgid "Active" msgstr "(活动)" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 #, fuzzy msgid "Comment" msgstr "公共" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 msgid "Are you sure you want to remove trigger '{0}'?" msgstr "您确定想要删除触发器“{0}”吗?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 #, fuzzy msgid "Nullable" msgstr "表" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 #, fuzzy msgid "Are you sure you want to remove column '{0}'" msgstr "您确定想要删除窗口“{0}”吗?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 msgid "Check" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 msgid "Unique" msgstr "" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 #, fuzzy msgid "No name specified." msgstr "指定了无效的程序集名称" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 msgid "Edit Table" msgstr "编辑表" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "添加连接" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 #, fuzzy msgid "Definition" msgstr "描述" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 msgid "Preview" msgstr "预览" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 #, fuzzy msgid "Reference Table" msgstr "引用名称" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 #, fuzzy msgid "Column Constraint" msgstr "约束" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 #, fuzzy msgid "Delete Action" msgstr "删除选中区域" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 #, fuzzy msgid "Update Action" msgstr "撤消最后的操作" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 #, fuzzy msgid "Are you sure you want to remove constraint '{0}'?" msgstr "您确定想要删除部件“{0}”吗?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 #, fuzzy msgid "Reference Columns" msgstr "引用" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 #, fuzzy msgid "Check Condition" msgstr "新建配置" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "创建新数据库" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "常规" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "重命名(_N)" #, fuzzy #~ msgid "Remove Connection" #~ msgstr "重命名配置" #, fuzzy #~ msgid "Property Type" #~ msgstr "属性" #, fuzzy #~ msgid "Ctor Parameter" #~ msgstr "参数" #~ msgid "Overwrite?" #~ msgstr "覆盖?" #, fuzzy #~ msgid "Display content as text" #~ msgstr "显示选项列表" #~ msgid "Remove Trigger" #~ msgstr "删除触发器" #, fuzzy #~ msgid "Remove Column" #~ msgstr "删除组" #, fuzzy #~ msgid "Remove Constraint" #~ msgstr "约束" monodevelop-database-4.0.12/po/ca.po0000644000175000017500000010012311266446160017753 0ustar directhexdirecthex# Translation of monodevelop.po into Catalan # Copyright (C) 2006 The Mono Project # This file is distributed under the same license as the MonoDevelop package. # Jonathan Hernández Velasco , 2006. # Jordi Mas i Hernàndez, , 2006, 2007 # # Traduïm namespace per "espai de nom" (veure TERMCAT) i assembly per "assemblat" # # msgid "" msgstr "" "Project-Id-Version: MonoDevelop rev62170\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2006-11-29 02:13+0200\n" "Last-Translator: Jordi Mas i Hernàndez \n" "Language-Team: Catalan\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 #, fuzzy msgid "Enter Password" msgstr "Contrasenya" # #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 msgid "Query Database" msgstr "Consulta base de dades" # #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 msgid "_Database" msgstr "_Base de dades" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Executa" # # #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 msgid "Clear Results" msgstr "Esborra els resultats" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "Estat" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Taula" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "" # #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 msgid "No Results" msgstr "Cap resultat" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 #, fuzzy msgid "Executing query" msgstr "S'està executant la consulta SQL a" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 #, fuzzy msgid "Query execute cancelled" msgstr "Execució de prova cancel·lada." #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 #, fuzzy msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Execució de prova cancel·lada." msgstr[1] "Execució de prova cancel·lada." #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "Base de dades" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "Crea una carpeta nova" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "Base de dades" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "Base de dades" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "Base de dades" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 #, fuzzy msgid "Open Database" msgstr "Base de dades" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 #, fuzzy msgid "All files" msgstr "Tots els fitxers" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "Base de dades" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "Base de dades" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Connexions de base de dades" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 #, fuzzy msgid "Are you sure you want to remove connection '{0}'?" msgstr "Esteu segur de que voleu suprimir '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Eliminar taula" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 #, fuzzy msgid "Are you sure you want to drop database '{0}'" msgstr "Esteu segur de que voleu suprimir '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Taules" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Visualitzacions" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Procediments" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Usuaris" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Restriccions" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 #, fuzzy msgid "Empty Table" msgstr "Taula buida" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 msgid "Are you sure you want to empty table '{0}'" msgstr "Esteu segur de que voleu buidar la taula '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Taula buida" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 msgid "Are you sure you want to drop table '{0}'" msgstr "Esteu segur de que voleu deixar anar la taula '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 #, fuzzy msgid "Are you sure you want to drop user '{0}'" msgstr "Esteu segur de que voleu suprimir '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 msgid "Are you sure you want to drop procedure '{0}'" msgstr "Esteu segur de que voleu deixar anar el procediment '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 #, fuzzy msgid "Are you sure you want to drop view '{0}'" msgstr "Esteu segur de que voleu suprimir '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Columna" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Columnes" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Restricció" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Conjunts" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Grups" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Llenguatges" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "Operadors" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Rols" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Regles" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Seqüències" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Activadors" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Tipus" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Paràmetres" # #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "Paràmetre" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Explorador de bases de dades" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Mostra objectes del sistema" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Base de dades" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "Explorador de bases de dades" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 #, fuzzy msgid "Edit Connection" msgstr "Afegeix connexió" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Suprimeix" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Refresca" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 #, fuzzy msgid "Connect" msgstr "Desconnecta" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Desconnecta" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 #, fuzzy msgid "Select *" msgstr "Seleccion_a-ho tot" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 #, fuzzy msgid "Query" msgstr "Cada" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 #, fuzzy msgid "Create Table" msgstr "Paquet" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 #, fuzzy msgid "Create View" msgstr "Conjunts" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 #, fuzzy msgid "Create Procedure" msgstr "Procediment" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 #, fuzzy msgid "Create Constraint" msgstr "Restricció" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 #, fuzzy msgid "Create Trigger" msgstr "Paquet" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 #, fuzzy msgid "Create User" msgstr "Conjunts" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 #, fuzzy msgid "Alter Database" msgstr "Base de dades" # #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 #, fuzzy msgid "Alter Table" msgstr "Després de netejar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 #, fuzzy msgid "Alter Procedure" msgstr "Procediment" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 #, fuzzy msgid "Alter Constraint" msgstr "Restricció" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 #, fuzzy msgid "Alter Trigger" msgstr "Activadors" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 #, fuzzy msgid "Drop Database" msgstr "Eliminar taula" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 #, fuzzy msgid "Drop Table" msgstr "Eliminar taula" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 #, fuzzy msgid "Drop View" msgstr "Eliminar taula" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 #, fuzzy msgid "Drop Procedure" msgstr "Procediment" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 #, fuzzy msgid "Drop Trigger" msgstr "Activadors" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 #, fuzzy msgid "Drop Constraint" msgstr "Restricció" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 #, fuzzy msgid "Drop User" msgstr "Eliminar taula" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "Mostra objectes del sistema" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 #, fuzzy msgid "Add Database Connection" msgstr "Connexions de base de dades" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 #, fuzzy msgid "Create Database" msgstr "Base de dades" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 #, fuzzy msgid "Import From File" msgstr "Fitxer buit" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 #, fuzzy msgid "Export To File" msgstr "Fitxer HTML buit" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" # #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 #, fuzzy msgid "Select Column" msgstr "Seleccioneu la carpeta" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 #, fuzzy msgid "Select All" msgstr "Seleccion_a-ho tot" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 #, fuzzy msgid "Deselect All" msgstr "Seleccion_a-ho tot" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Nom" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "Tipus" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Tipus" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" # #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 #, fuzzy msgid "Property Name" msgstr "Nom de la propietat:" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "Servidor" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 #, fuzzy msgid "Image" msgstr "Pàgina" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Text" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 #, fuzzy msgid "Edit Database Connection" msgstr "Connexions de base de dades" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "" # #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 #, fuzzy msgid "WaitDialog" msgstr "Diàleg" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 #, fuzzy msgid "SQL files" msgstr "Afegeix fitxers" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 #, fuzzy msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "Esteu segur de que voleu suprimir el giny '{0}'?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 #, fuzzy msgid "No databases found!" msgstr "No s'han trobat proves fallides." #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 msgid "Trying to connect to database ..." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "Text" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 #, fuzzy msgid "Use custom connection string" msgstr "Cadena de connexió" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 msgid "Min Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 msgid "Max Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 #, fuzzy msgid "Advanced" msgstr "_Avançat" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 #, fuzzy msgid "Save Password" msgstr "Contrasenya" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "Nom" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "Contrasenya" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "Camí" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "Servidor" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "Reanomena" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 #, fuzzy msgid "Event" msgstr "Event {0}" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "" # #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 msgid "Position" msgstr "Posició" # #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 msgid "Active" msgstr "Actiu" # #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 #, fuzzy msgid "Comment" msgstr "Comentaris" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 msgid "Are you sure you want to remove trigger '{0}'?" msgstr "Esteu segur de que voleu suprimir l'activador '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 #, fuzzy msgid "Nullable" msgstr "Taula" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 #, fuzzy msgid "Are you sure you want to remove column '{0}'" msgstr "Esteu segur de que voleu suprimir '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "" # #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 msgid "Check" msgstr "Comprova" # #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 msgid "Unique" msgstr "Únic" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 #, fuzzy msgid "No name specified." msgstr "Nom d'assemblat no vàlid" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 #, fuzzy msgid "Edit Table" msgstr "Taula" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "Afegeix connexió" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 #, fuzzy msgid "Definition" msgstr "Descripció" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 #, fuzzy msgid "Preview" msgstr "_Visualització prèvia de la impressió" # #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 msgid "Reference Table" msgstr "Taula de referència" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 #, fuzzy msgid "Column Constraint" msgstr "Restricció" # #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 msgid "Delete Action" msgstr "Acció suprimir" # #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 msgid "Update Action" msgstr "Acció actualitzar" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 #, fuzzy msgid "Are you sure you want to remove constraint '{0}'?" msgstr "Esteu segur de que voleu suprimir '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 #, fuzzy msgid "Reference Columns" msgstr "Referències" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" # #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 msgid "Check Condition" msgstr "Comprova la condició" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "Base de dades" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "General" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "Ca_nvia el nom" #, fuzzy #~ msgid "Remove Connection" #~ msgstr "Reanomena la configuració" #, fuzzy #~ msgid "Property Type" #~ msgstr "Propietats" #, fuzzy #~ msgid "Ctor Parameter" #~ msgstr "Paràmetres" #, fuzzy #~ msgid "Display content as text" #~ msgstr "Llista d'opcions de visualizació" # #~ msgid "Remove Trigger" #~ msgstr "Suprimeix activador" #, fuzzy #~ msgid "Remove Column" #~ msgstr "Suprimei grup" # #~ msgid "Base Settings" #~ msgstr "Configuració base" #, fuzzy #~ msgid "Remove Constraint" #~ msgstr "Reanomena la configuració" monodevelop-database-4.0.12/po/id.po0000644000175000017500000010064211266446160017772 0ustar directhexdirecthex# Indonesian MonoDevelop translation. # Copyright (C) 2007 Fajrin Azis # This file is distributed under the same license as the PACKAGE package. # Fajrin Azis , 2007. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Fajrin Azis \n" "Language-Team: Indonesian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "Tidak dapat memuat informasi koneksi SQL yang tersimpan." #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "Harap masukkan password untuk koneksi '{0}'" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 msgid "Enter Password" msgstr "Masukkan Password" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 msgid "Query Database" msgstr "Query Database" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 msgid "_Database" msgstr "_Database" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Eksekusi" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 msgid "Clear Results" msgstr "Hapus Hasil" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "Status" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "Tidak dapat tersambung ke database '{0}'" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Tabel" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "Baris Palsu" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 msgid "No Results" msgstr "Tidak Ada Hasil" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 msgid "Executing query" msgstr "Eksekusi query" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 msgid "Query execute cancelled" msgstr "Eksekusi query dibatalkan" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Query executed ({0} result table)" msgstr[1] "Query executed ({0} result tables)" #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "Simpan Database" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "Buat Setter" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "Database SQLite" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "Database" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "Database SQLite" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 msgid "Open Database" msgstr "Buka Database" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "Database SQLite" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 msgid "All files" msgstr "Semua file" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "Buat Database" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "Database SQLite" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Koneksi Database" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "Tidak dapat tersambung:" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 msgid "Are you sure you want to remove connection '{0}'?" msgstr "Apakah Anda yakin untuk memindahkan koneksi '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Drop Pandangan" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 msgid "Are you sure you want to drop database '{0}'" msgstr "Apakah Anda yakin untuk mendrop database '{0}'" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Tabel" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Pandangan" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Prosedur" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "User" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Constraint" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 msgid "Empty Table" msgstr "Tabel Kosong" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 msgid "Are you sure you want to empty table '{0}'" msgstr "Apakah Anda yakin untuk mengosongkan tabel '{0}'" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Tabel dikosongkan" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 msgid "Are you sure you want to drop table '{0}'" msgstr "Apakah Anda yakin untuk mendrop tabel '{0}'" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 msgid "Are you sure you want to drop user '{0}'" msgstr "Apakah Anda yakin untuk mendrop user '{0}'" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 msgid "Are you sure you want to drop procedure '{0}'" msgstr "Apakah Anda yakin untuk mendrop prosedur '{0}'" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 msgid "Are you sure you want to drop view '{0}'" msgstr "Apakah Anda yakin untuk mendrop pandangan '{0}'" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Kolom" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Kolom" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Constraint" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Agregat" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Grup" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Bahasa" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "Operator" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Roles" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Peraturan" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Urutan" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Trigger" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Tipe" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Parameter" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "Parameter" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Database Browser" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Tampilkan Objek Sistem" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Database" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "Database Browser" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 msgid "Edit Connection" msgstr "Edit Koneksi" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Pindah" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Refresh" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 msgid "Connect" msgstr "Sambung" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Putus Hubungan" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 msgid "Select *" msgstr "Pilih *" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "Pilih x,y,..." #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 msgid "Query" msgstr "Query" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 msgid "Create Table" msgstr "Buat Tabel" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 msgid "Create View" msgstr "Buat Pandangan" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 msgid "Create Procedure" msgstr "Buat Prosedur" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 msgid "Create Constraint" msgstr "Buat Constraint" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 msgid "Create Trigger" msgstr "Buat Trigger" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 msgid "Create User" msgstr "Buat User" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 msgid "Alter Database" msgstr "Database yang Lebih Tua" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 msgid "Alter Table" msgstr "Tabel yang Lebih Tua" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "Pandangan yang Lebih Tua" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 msgid "Alter Procedure" msgstr "Prosedur yang Lebih Tua" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 msgid "Alter Constraint" msgstr "Constraint yang Lebih Tua" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 msgid "Alter Trigger" msgstr "Trigger yang Lebih Tua" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "User yang Lebih Tua" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 msgid "Drop Database" msgstr "Drop Database" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 msgid "Drop Table" msgstr "Drop Tabel" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 msgid "Drop View" msgstr "Drop Pandangan" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 msgid "Drop Procedure" msgstr "Drop Prosedur" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 msgid "Drop Trigger" msgstr "Drop Trigger" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 msgid "Drop Constraint" msgstr "Drop Constraint" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 msgid "Drop User" msgstr "Drop User" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "Tampilkan Objek Sistem" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 msgid "Add Database Connection" msgstr "Tambah Koneksi Database" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 msgid "Create Database" msgstr "Buat Database" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 msgid "Import From File" msgstr "Import dari File" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 msgid "Export To File" msgstr "Eksport ke File" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 msgid "Select Column" msgstr "Pilih Kolom" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "Seleksi Seluruhnya" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 msgid "Deselect All" msgstr "Batalkan Seluruh Seleksi" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Nama" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "Tipe" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Tipe" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 msgid "Property Name" msgstr "Nama Properti" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "Server" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "dari" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "Y" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "N" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 msgid "Image" msgstr "Gambar" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "Tidak dapat memuat objek sebagai Gambar" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Teks" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "button462" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 msgid "Edit Database Connection" msgstr "Edit Koneksi Database" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "Harap Tunggu" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 msgid "WaitDialog" msgstr "DialogTunggu" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "Harap Tunggu" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 msgid "SQL files" msgstr "File SQL" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "Apakah Anda yakin untuk mengganti file '{0}'?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 msgid "No databases found!" msgstr "Tidak ada database yang ditemukan!" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 #, fuzzy msgid "Trying to connect to database ..." msgstr "Tidak dapat tersambung ke database '{0}'" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "Teks" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 msgid "Use custom connection string" msgstr "Use custom connection string" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 #, fuzzy msgid "Min Pool Size:" msgstr "Min Pool Size" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 #, fuzzy msgid "Max Pool Size:" msgstr "Max Pool Size" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 msgid "Advanced" msgstr "Terdepan" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 msgid "Save Password" msgstr "Simpan Password" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "Nama" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "Password" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "Port" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "Server" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "Username" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 msgid "Event" msgstr "Event" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "Setiap Baris" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 msgid "Position" msgstr "Posisi" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 msgid "Active" msgstr "Aktif" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 msgid "Comment" msgstr "Komentar" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 msgid "Are you sure you want to remove trigger '{0}'?" msgstr "Apakah and yakin untuk memindahkan trigger '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "Trigger '{0}' tidak memilik pernyataan trigger." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "Pernyataan" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "PK" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "Panjang" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 msgid "Nullable" msgstr "Nullable" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 msgid "Are you sure you want to remove column '{0}'" msgstr "Apakah Anda yakin untuk memindahkan kolom '{0}'" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "Tipe data tidak diketahui '{0}' berlaku pada kolom '{1}'" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "Tabel '{0}' setidaknya memiliki satu kunci utama." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "Tabel '{0}' setidaknya memiliki satu kolom." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "Kunci Utama" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "Kunci Asing" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 msgid "Check" msgstr "Periksa" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 msgid "Unique" msgstr "Unik" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 msgid "No name specified." msgstr "Tidak ada nama yang spesifik" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 msgid "Edit Table" msgstr "Edit Tabel" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "Preview SQL" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "Tambah Koneksi" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 msgid "Definition" msgstr "Definisi" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 msgid "Preview" msgstr "Preview" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 msgid "Reference Table" msgstr "Tabel Referensi" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 msgid "Column Constraint" msgstr "Constraint Kolom" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 msgid "Delete Action" msgstr "Hapus Aksi" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 msgid "Update Action" msgstr "Update Aksi" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 msgid "Are you sure you want to remove constraint '{0}'?" msgstr "Apakah Anda yakin untuk memindahkan constraint '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "Constraint Kunci Unik '{0}' harus berlaku untuk satu atau lebih kolom" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 msgid "Reference Columns" msgstr "Kolom Referensi" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "Periksa constraint '{0}' tidak memiliki pernyataan tanda." #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" "Constraint yang dicek '{0}' ditandai sebagai constraint kolom tapi tidak " "diterapkan pada sebuah kolom." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 msgid "Check Condition" msgstr "Periksa Kondisi" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "Constraint Kunci Utama '{0}' harus berlaku untuk satu atau lebih kolom" #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "Buat Database" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "General" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "Ubah _nama" #~ msgid "Remove Connection" #~ msgstr "Pindahkan Koneksi" #~ msgid "Property Type" #~ msgstr "Tipe Properti" #~ msgid "Ctor Parameter" #~ msgstr "Ctor Parameter" #~ msgid "Overwrite?" #~ msgstr "Ganti?" #~ msgid "Display content as text" #~ msgstr "Tampilkan konten sebagai teks" #~ msgid "Display content as xml text" #~ msgstr "Tampilkan konten sebagai teks xml" #~ msgid "Display content as xml tree" #~ msgstr "Tampilkan konten sebagai xml tree" #~ msgid "Display content as image" #~ msgstr "Tampilkan konten sebagai gambar" #~ msgid "Remove Trigger" #~ msgstr "Pindahkan Trigger" #~ msgid "Remove Column" #~ msgstr "Pindahkan Kolom" #~ msgid "Base Settings" #~ msgstr "Pengaturan Dasar" #~ msgid "Remove Constraint" #~ msgstr "Pindahkan Constraint" monodevelop-database-4.0.12/po/zh_TW.po0000644000175000017500000007644611266446160020447 0ustar directhexdirecthex# msgid "" msgstr "" "Project-Id-Version: MonoDevelop 0.17\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2007-11-29 15:36+0800\n" "Last-Translator: Yan-ren Tsai \n" "Language-Team: 繁體中文 \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;X-Poedit-Language: Chinese\n" "X-Poedit-Country: TAIWAN\n" "X-Poedit-SourceCharset: utf-8\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 #, fuzzy msgid "Enter Password" msgstr "密碼" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 #, fuzzy msgid "Query Database" msgstr "資料庫" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 #, fuzzy msgid "_Database" msgstr "資料庫" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "執行" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 #, fuzzy msgid "Clear Results" msgstr "清除搜索結果" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "狀態" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 #, fuzzy msgid "Unable to connect to database '{0}'" msgstr "在 {0} 無法找到 configure.in" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "表格" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 #, fuzzy msgid "No Results" msgstr "結果" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 #, fuzzy msgid "Executing query" msgstr "執行 sql 查詢" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 #, fuzzy msgid "Query execute cancelled" msgstr "測試執行已取消。" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 #, fuzzy msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "測試執行已取消。" #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "資料庫" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "建立新資料夾" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "資料庫" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "資料庫" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "資料庫" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 #, fuzzy msgid "Open Database" msgstr "資料庫" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 #, fuzzy msgid "All files" msgstr "所有檔案" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "資料庫" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "資料庫" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "資料庫連接" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 #, fuzzy msgid "Are you sure you want to remove connection '{0}'?" msgstr "確定要刪除 '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "丟棄表格" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 #, fuzzy msgid "Are you sure you want to drop database '{0}'" msgstr "確定要刪除 '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "表格" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "檢視" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "程序" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "使用者" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "制約" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 #, fuzzy msgid "Empty Table" msgstr "空白表格" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 #, fuzzy msgid "Are you sure you want to empty table '{0}'" msgstr "確定要刪除 '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "表格已清空" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 #, fuzzy msgid "Are you sure you want to drop table '{0}'" msgstr "確定要刪除 '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 #, fuzzy msgid "Are you sure you want to drop user '{0}'" msgstr "確定要刪除 '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 #, fuzzy msgid "Are you sure you want to drop procedure '{0}'" msgstr "確定要刪除 '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 #, fuzzy msgid "Are you sure you want to drop view '{0}'" msgstr "確定要刪除 '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "列" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "列" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "制約" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "集合" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "群組" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "語言" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "運算子" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "角色" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "尺規" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "順序" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "觸發條件" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "型" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "參數" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "參數" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "資料庫瀏覽器" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "顯示系統物件" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "資料庫" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "資料庫瀏覽器" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 #, fuzzy msgid "Edit Connection" msgstr "新增連結" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "移除" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "重新整理" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 #, fuzzy msgid "Connect" msgstr "中斷連結" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "中斷連結" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 #, fuzzy msgid "Select *" msgstr "選擇全部" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 #, fuzzy msgid "Query" msgstr "MonoQuery" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 #, fuzzy msgid "Create Table" msgstr "建立套件" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 #, fuzzy msgid "Create View" msgstr "建立" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 #, fuzzy msgid "Create Procedure" msgstr "程序" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 #, fuzzy msgid "Create Constraint" msgstr "制約" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 #, fuzzy msgid "Create Trigger" msgstr "建立套件" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 #, fuzzy msgid "Create User" msgstr "建立" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 #, fuzzy msgid "Alter Database" msgstr "資料庫" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 #, fuzzy msgid "Alter Table" msgstr "清理之後" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 #, fuzzy msgid "Alter Procedure" msgstr "程序" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 #, fuzzy msgid "Alter Constraint" msgstr "制約" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 #, fuzzy msgid "Alter Trigger" msgstr "觸發條件" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 #, fuzzy msgid "Drop Database" msgstr "丟棄表格" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 #, fuzzy msgid "Drop Table" msgstr "丟棄表格" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 #, fuzzy msgid "Drop View" msgstr "丟棄表格" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 #, fuzzy msgid "Drop Procedure" msgstr "程序" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 #, fuzzy msgid "Drop Trigger" msgstr "觸發條件" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 #, fuzzy msgid "Drop Constraint" msgstr "制約" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 #, fuzzy msgid "Drop User" msgstr "丟棄表格" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "顯示系統物件" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 #, fuzzy msgid "Add Database Connection" msgstr "資料庫連接" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 #, fuzzy msgid "Create Database" msgstr "資料庫" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 #, fuzzy msgid "Import From File" msgstr "空白檔案" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 #, fuzzy msgid "Export To File" msgstr "空白HTML檔案" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 #, fuzzy msgid "Select Column" msgstr "不選取" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "選擇全部" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 #, fuzzy msgid "Deselect All" msgstr "刪除全部" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "名稱" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "型" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "型" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 #, fuzzy msgid "Property Name" msgstr "屬性名稱(_P)" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "伺服器" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 #, fuzzy msgid "Image" msgstr "頁" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "文字" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 #, fuzzy msgid "Edit Database Connection" msgstr "資料庫連接" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 #, fuzzy msgid "WaitDialog" msgstr "對話盒" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 #, fuzzy msgid "SQL files" msgstr "添加多檔" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 #, fuzzy msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "確定要刪除此 widget '{0}'?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 #, fuzzy msgid "No databases found!" msgstr "沒有失敗的測試。" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 #, fuzzy msgid "Trying to connect to database ..." msgstr "在 {0} 無法找到 configure.in" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "文字" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 #, fuzzy msgid "Use custom connection string" msgstr "連接字串" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 msgid "Min Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 msgid "Max Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 #, fuzzy msgid "Advanced" msgstr "進階(_A)" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 #, fuzzy msgid "Save Password" msgstr "密碼" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "名稱" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "密碼" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "Port(埠):" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "伺服器" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "更名" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 #, fuzzy msgid "Event" msgstr "事件" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 #, fuzzy msgid "Position" msgstr "説明" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 #, fuzzy msgid "Active" msgstr "(當前)" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 #, fuzzy msgid "Comment" msgstr "註解" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 #, fuzzy msgid "Are you sure you want to remove trigger '{0}'?" msgstr "確定要刪除 '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 #, fuzzy msgid "Nullable" msgstr "表格" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 #, fuzzy msgid "Are you sure you want to remove column '{0}'" msgstr "確定要刪除 '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 #, fuzzy msgid "Check" msgstr "簽出..." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 #, fuzzy msgid "Unique" msgstr "Unicode" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 #, fuzzy msgid "No name specified." msgstr "指定了不合法的組件名稱" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 #, fuzzy msgid "Edit Table" msgstr "編輯" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "新增連結" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 #, fuzzy msgid "Definition" msgstr "SQL 定義" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 #, fuzzy msgid "Preview" msgstr "提供者" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 #, fuzzy msgid "Reference Table" msgstr "參照名稱" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 #, fuzzy msgid "Column Constraint" msgstr "制約" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 #, fuzzy msgid "Delete Action" msgstr "刪除選擇區域" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 #, fuzzy msgid "Update Action" msgstr "取消最後一次動作" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 #, fuzzy msgid "Are you sure you want to remove constraint '{0}'?" msgstr "確定要刪除 '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 #, fuzzy msgid "Reference Columns" msgstr "參照" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 #, fuzzy msgid "Check Condition" msgstr "開新配置" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "資料庫" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "一般" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "更名 (_N)" #~ msgid "Remove Connection" #~ msgstr "移除連接" #, fuzzy #~ msgid "Property Type" #~ msgstr "屬性" #, fuzzy #~ msgid "Ctor Parameter" #~ msgstr "參數" #, fuzzy #~ msgid "Display content as text" #~ msgstr "顯示選項列表" #, fuzzy #~ msgid "Remove Trigger" #~ msgstr "觸發條件" #, fuzzy #~ msgid "Remove Column" #~ msgstr "移除群組" #, fuzzy #~ msgid "Base Settings" #~ msgstr "套件設定" #, fuzzy #~ msgid "Remove Constraint" #~ msgstr "移除連接" monodevelop-database-4.0.12/po/ja.po0000644000175000017500000010302511266446160017766 0ustar directhexdirecthex# MonoDevelop ja_JP translation # Copyright (C) 2004 Atsushi Enomoto # This file is distributed under the same license as the PACKAGE package. # Atsushi Enomoto , 2004. # msgid "" msgstr "" "Project-Id-Version: MonoDevelop 0.3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-02-25 19:34:25+0900\n" "PO-Revision-Date: 2008-01-24 02:21:06+0900\n" "Last-Translator: Atsushi Eno \n" "Language-Team: Atsushi Enomoto \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: MonoDevelop.Gettext \n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "保存されたSQL接続情報を読み込めません" #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "接続 '{0}' 用のパスワードを入力してください" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 msgid "Enter Password" msgstr "パスワードを入力してください" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 msgid "Query Database" msgstr "データベースをクエリ" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 msgid "_Database" msgstr "データベース(_D)" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "実行" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 msgid "Clear Results" msgstr "結果をクリア" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "状態" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "データベース'{0}'に接続できません" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "テーブル" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "変更される行" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 msgid "No Results" msgstr "該当無し" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 msgid "Executing query" msgstr "クエリを実行しています" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 msgid "Query execute cancelled" msgstr "クエリの実行は中断されました" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "クエリを実行しました({0}の結果テーブル)" msgstr[1] "クエリを実行しました({0}の結果テーブル)" #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "データベースを保存" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "setterの作成" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "SQLiteデータベース" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "データベース" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "SQLiteデータベース" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 msgid "Open Database" msgstr "データベースを開く" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "SQLiteデータベース" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 msgid "All files" msgstr "全てのファイル" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "データベースの作成" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "SQLiteデータベース" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "データベース接続" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "接続できません:" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 msgid "Are you sure you want to remove connection '{0}'?" msgstr "本当に接続 '{0})' を削除しますか?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "ビューの削除" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 msgid "Are you sure you want to drop database '{0}'" msgstr "本当にデータベース '{0})' を削除しますか?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "テーブル" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "ビュー" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "プロシージャ" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "ユーザー" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "制約" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 msgid "Empty Table" msgstr "テーブルを空にする" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 msgid "Are you sure you want to empty table '{0}'" msgstr "本当にテーブル '{0})' を空にしますか?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "空にされるテーブル" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 msgid "Are you sure you want to drop table '{0}'" msgstr "本当にテーブル '{0})' を削除しますか?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 msgid "Are you sure you want to drop user '{0}'" msgstr "本当にユーザ '{0})' を削除しますか?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 msgid "Are you sure you want to drop procedure '{0}'" msgstr "本当にプロシージャ '{0})' を削除しますか?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 msgid "Are you sure you want to drop view '{0}'" msgstr "本当にビュー '{0})' を削除しますか?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "列" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "列" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "制約" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "集合" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "グループ" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "言語" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "演算子" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "役割" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "ルール" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "シーケンス" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "トリガー" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "型" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "パラメータ" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "パラメータ" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "データベースブラウザ" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "システム オブジェクトを表示" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "データベース" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "データベースブラウザ" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 msgid "Edit Connection" msgstr "接続を編集" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "削除" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "最新の状態に更新" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 msgid "Connect" msgstr "接続" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "切断" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 msgid "Select *" msgstr "Select *" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "Select x,y,..." #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 msgid "Query" msgstr "クエリ" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 msgid "Create Table" msgstr "テーブルの作成" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 msgid "Create View" msgstr "ビューの作成" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 msgid "Create Procedure" msgstr "プロシージャの作成" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 msgid "Create Constraint" msgstr "制約の作成" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 msgid "Create Trigger" msgstr "トリガの作成" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 msgid "Create User" msgstr "ユーザの作成" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 msgid "Alter Database" msgstr "データベースの置換" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 msgid "Alter Table" msgstr "テーブルの置換" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "ビューの置換" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 msgid "Alter Procedure" msgstr "プロシージャの置換" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 msgid "Alter Constraint" msgstr "制約の置換" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 msgid "Alter Trigger" msgstr "トリガの置換" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "ユーザの置換" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 msgid "Drop Database" msgstr "データベースの削除" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 msgid "Drop Table" msgstr "テーブルの削除" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 msgid "Drop View" msgstr "ビューの削除" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 msgid "Drop Procedure" msgstr "プロシージャの削除" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 msgid "Drop Trigger" msgstr "トリガの削除" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 msgid "Drop Constraint" msgstr "制約の削除" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 msgid "Drop User" msgstr "ユーザの削除" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "システム オブジェクトを表示" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 msgid "Add Database Connection" msgstr "データベース接続を追加" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 msgid "Create Database" msgstr "データベースの作成" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 msgid "Import From File" msgstr "ファイルからインポート" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 msgid "Export To File" msgstr "ファイルにエクスポート" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 msgid "Select Column" msgstr "列を選択" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "全て選択" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 msgid "Deselect All" msgstr "全て選択解除" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "名前" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "型" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "型" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 msgid "Property Name" msgstr "プロパティ名" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "サーバ" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "of" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "Y" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "N" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 msgid "Image" msgstr "画像" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "オブジェクトを画像として読み込めませんでした" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "テキスト" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "button462" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 msgid "Edit Database Connection" msgstr "データベース接続を編集" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "お待ちください" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 msgid "WaitDialog" msgstr "WaitDialog" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "お待ちください" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 msgid "SQL files" msgstr "SQLファイル" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "本当にファイル '{0})' を上書きしますか?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 msgid "No databases found!" msgstr "データベースが見つかりません!" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 #, fuzzy msgid "Trying to connect to database ..." msgstr "データベース'{0}'に接続できません" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "テキスト" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 msgid "Use custom connection string" msgstr "カスタム接続文字列を使用" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 #, fuzzy msgid "Min Pool Size:" msgstr "最小プールサイズ" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 #, fuzzy msgid "Max Pool Size:" msgstr "最大プールサイズ" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 msgid "Advanced" msgstr "上級者向け" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 msgid "Save Password" msgstr "パスワードを保存" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "名前" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "パスワード" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "ポート" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "サーバ" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "ユーザ名" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 msgid "Event" msgstr "イベント" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "それぞれの行" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 msgid "Position" msgstr "位置" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 msgid "Active" msgstr "アクティブ" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 msgid "Comment" msgstr "コメント" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 msgid "Are you sure you want to remove trigger '{0}'?" msgstr "本当にトリガ '{0})' を削除しますか?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "トリガ '{0}' にはトリガ式が含まれていません" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "ステートメント" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "PK" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "長さ" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 msgid "Nullable" msgstr "Null許容" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 msgid "Are you sure you want to remove column '{0}'" msgstr "本当に列 '{0})' を削除しますか?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "未知のデータ型 '{0}' が列 '{1}' に適用されています" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "テーブル '{0}' は最低でも1つの主キーをもっていなければなりません" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "テーブル '{0}' は最低でも1つの列をもっていなければなりません" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "主キー" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "外部キー" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 msgid "Check" msgstr "チェック" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 msgid "Unique" msgstr "一意" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 msgid "No name specified." msgstr "名前が指定されていません" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 msgid "Edit Table" msgstr "テーブルを編集" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "SQLプレビュー" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "接続を追加" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 msgid "Definition" msgstr "定義" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 msgid "Preview" msgstr "プレビュー" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 msgid "Reference Table" msgstr "参照テーブル" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 msgid "Column Constraint" msgstr "列の制約" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 msgid "Delete Action" msgstr "削除アクション" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 msgid "Update Action" msgstr "更新アクション" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 msgid "Are you sure you want to remove constraint '{0}'?" msgstr "本当に制約 '{0})' を削除しますか?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "一意キー制約 '{0}' は1つ以上の列に適用されなければなりません。" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 msgid "Reference Columns" msgstr "参照する列" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "チェック制約 '{0}' にチェック式が含まれていません" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" "チェック制約 '{0}' は列の制約としてマークされていますが、列に適用されていませ" "ん。" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 msgid "Check Condition" msgstr "チェック条件" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "主キー制約 '{0}' は1つ以上の列に適用されなければなりません。" #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "データベースの作成" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "一般" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "名前の変更 (_N)" #~ msgid "Remove Connection" #~ msgstr "接続を削除" #~ msgid "Property Type" #~ msgstr "プロパティ型" #~ msgid "Ctor Parameter" #~ msgstr "ctorパラメータ" #~ msgid "Overwrite?" #~ msgstr "上書きしますか?" #~ msgid "Display content as text" #~ msgstr "内容をテキストとして表示" #~ msgid "Display content as xml text" #~ msgstr "内容をxmlテキストとして表示" #~ msgid "Display content as xml tree" #~ msgstr "内容をxmlツリーとして表示" #~ msgid "Display content as image" #~ msgstr "内容を画像として表示" #~ msgid "Remove Trigger" #~ msgstr "トリガを削除" #~ msgid "Remove Column" #~ msgstr "列を削除" #~ msgid "Base Settings" #~ msgstr "基本設定" #~ msgid "Remove Constraint" #~ msgstr "制約を削除" monodevelop-database-4.0.12/po/ru.po0000644000175000017500000010306111266446160020022 0ustar directhexdirecthex# Russian translation of MonoDevelop. # Copyright (C) 2006 Maxim Krentovskiy # Copyright (C) 2007 Semyon Soldatov # This file is distributed under the same license as the MonoDevelop package. # Maxim Krentovskiy , 2006 # Semyon Soldatov , 2007 # msgid "" msgstr "" "Project-Id-Version: MonoDevelop 0.13\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2007-10-29 10:54+0300\n" "Last-Translator: Daniel Abramov \n" "Language-Team: Russian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" "10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n" "X-Poedit-Language: Russian\n" "X-Poedit-Country: RUSSIAN FEDERATION\n" "X-Poedit-SourceCharset: utf-8\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 #, fuzzy msgid "Enter Password" msgstr "Пароль" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 #, fuzzy msgid "Query Database" msgstr "База данных" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 #, fuzzy msgid "_Database" msgstr "База данных" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Выполнение" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 #, fuzzy msgid "Clear Results" msgstr "Очистить результаты" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "Статус" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 #, fuzzy msgid "Unable to connect to database '{0}'" msgstr "Не удалось найти файл configure.in в {0}" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Таблица" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 #, fuzzy msgid "No Results" msgstr "Результат" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 #, fuzzy msgid "Executing query" msgstr "Выполнение запроса в рамках" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 #, fuzzy msgid "Query execute cancelled" msgstr "Выполнение тестов прервано." #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 #, fuzzy msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Выполнение тестов прервано." msgstr[1] "Выполнение тестов прервано." msgstr[2] "Выполнение тестов прервано." #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "База данных" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "Создать новую папку" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "База данных" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "База данных" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "База данных" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 #, fuzzy msgid "Open Database" msgstr "База данных" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 #, fuzzy msgid "All files" msgstr "Все файлы" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "База данных" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "База данных" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Соединения с базой данных" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 #, fuzzy msgid "Are you sure you want to remove connection '{0}'?" msgstr "Удалить '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Удалить таблицу" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 #, fuzzy msgid "Are you sure you want to drop database '{0}'" msgstr "Удалить '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Таблицы" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Представления" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Процедуры" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Пользователи" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Ограничения" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 #, fuzzy msgid "Empty Table" msgstr "Пустая таблица" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 #, fuzzy msgid "Are you sure you want to empty table '{0}'" msgstr "Удалить '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Таблица опустошена" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 #, fuzzy msgid "Are you sure you want to drop table '{0}'" msgstr "Удалить '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 #, fuzzy msgid "Are you sure you want to drop user '{0}'" msgstr "Удалить '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 #, fuzzy msgid "Are you sure you want to drop procedure '{0}'" msgstr "Удалить '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 #, fuzzy msgid "Are you sure you want to drop view '{0}'" msgstr "Удалить '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Колонка" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Колонки" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Ограничение" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Агрегация" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Группы" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Языки" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "Операторы" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Роли" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Правила" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Последовательности" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Триггеры" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Типы" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Параметры" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "Параметр " #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Просмотр баз данных" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Показать системные объекты" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "База данных" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "Просмотр баз данных" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 #, fuzzy msgid "Edit Connection" msgstr "Добавить соединение" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Удалить" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Обновить" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 #, fuzzy msgid "Connect" msgstr "Отключиться" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Отключиться" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 #, fuzzy msgid "Select *" msgstr "Выделить всё" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 #, fuzzy msgid "Query" msgstr "MonoQuery" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 #, fuzzy msgid "Create Table" msgstr "Создать пакет" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 #, fuzzy msgid "Create View" msgstr "Создать" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 #, fuzzy msgid "Create Procedure" msgstr "Процедура" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 #, fuzzy msgid "Create Constraint" msgstr "Ограничение" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 #, fuzzy msgid "Create Trigger" msgstr "Создать пакет" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 #, fuzzy msgid "Create User" msgstr "Создать" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 #, fuzzy msgid "Alter Database" msgstr "База данных" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 #, fuzzy msgid "Alter Table" msgstr "После очистки" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 #, fuzzy msgid "Alter Procedure" msgstr "Процедура" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 #, fuzzy msgid "Alter Constraint" msgstr "Ограничение" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 #, fuzzy msgid "Alter Trigger" msgstr "Триггеры" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 #, fuzzy msgid "Drop Database" msgstr "Удалить таблицу" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 #, fuzzy msgid "Drop Table" msgstr "Удалить таблицу" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 #, fuzzy msgid "Drop View" msgstr "Удалить таблицу" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 #, fuzzy msgid "Drop Procedure" msgstr "Процедура" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 #, fuzzy msgid "Drop Trigger" msgstr "Триггеры" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 #, fuzzy msgid "Drop Constraint" msgstr "Ограничение" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 #, fuzzy msgid "Drop User" msgstr "Удалить таблицу" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "Показать системные объекты" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 #, fuzzy msgid "Add Database Connection" msgstr "Соединения с базой данных" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 #, fuzzy msgid "Create Database" msgstr "База данных" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 #, fuzzy msgid "Import From File" msgstr "Файл" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 #, fuzzy msgid "Export To File" msgstr "Файл HTML" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 #, fuzzy msgid "Select Column" msgstr "Снять выделение" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "Выделить всё" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 #, fuzzy msgid "Deselect All" msgstr "Удалить всё" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Имя" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "Тип" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Тип" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 #, fuzzy msgid "Property Name" msgstr "Имя _свойства:" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "Сервер" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 #, fuzzy msgid "Image" msgstr "Страница" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Текст" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 #, fuzzy msgid "Edit Database Connection" msgstr "Соединения с базой данных" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 #, fuzzy msgid "WaitDialog" msgstr "Диалог" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 #, fuzzy msgid "SQL files" msgstr "Добавить файлы" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 #, fuzzy msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "Удалить виджет '{0}'?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 #, fuzzy msgid "No databases found!" msgstr "Все тесты были пройдены успешно." #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 #, fuzzy msgid "Trying to connect to database ..." msgstr "Не удалось найти файл configure.in в {0}" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "Текст" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 #, fuzzy msgid "Use custom connection string" msgstr "Строка соединения" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 msgid "Min Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 msgid "Max Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 #, fuzzy msgid "Advanced" msgstr "_Дополнительно" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 #, fuzzy msgid "Save Password" msgstr "Пароль" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "Имя" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "Пароль" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "Порт:" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "Сервер" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "Переименовать" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 #, fuzzy msgid "Event" msgstr "События" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 #, fuzzy msgid "Position" msgstr "Описание" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 #, fuzzy msgid "Active" msgstr "(Активная)" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 #, fuzzy msgid "Comment" msgstr "Комментарии" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 #, fuzzy msgid "Are you sure you want to remove trigger '{0}'?" msgstr "Удалить '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 #, fuzzy msgid "Nullable" msgstr "Таблица" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 #, fuzzy msgid "Are you sure you want to remove column '{0}'" msgstr "Удалить '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 #, fuzzy msgid "Check" msgstr "Создать рабочую копию..." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 #, fuzzy msgid "Unique" msgstr "Юникод" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 #, fuzzy msgid "No name specified." msgstr "Указано неверное название сборки" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 #, fuzzy msgid "Edit Table" msgstr "Редактировать " #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "Добавить соединение" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 #, fuzzy msgid "Definition" msgstr "Определение SQL" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 #, fuzzy msgid "Preview" msgstr "Провайдер" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 #, fuzzy msgid "Reference Table" msgstr "Ссылка:" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 #, fuzzy msgid "Column Constraint" msgstr "Ограничение" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 #, fuzzy msgid "Delete Action" msgstr "Удалить выделенный текст" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 #, fuzzy msgid "Update Action" msgstr "Отменить последнее действие" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 #, fuzzy msgid "Are you sure you want to remove constraint '{0}'?" msgstr "Удалить '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 #, fuzzy msgid "Reference Columns" msgstr "Ссылки" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 #, fuzzy msgid "Check Condition" msgstr "Новая конфигурация" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "База данных" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "Общие" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "Пере_именовать" #~ msgid "Remove Connection" #~ msgstr "Удалить соединение" #, fuzzy #~ msgid "Property Type" #~ msgstr "Свойство" #, fuzzy #~ msgid "Ctor Parameter" #~ msgstr "Параметр " #, fuzzy #~ msgid "Display content as text" #~ msgstr "Отобразить список настроек" #, fuzzy #~ msgid "Remove Trigger" #~ msgstr "Триггеры" #, fuzzy #~ msgid "Remove Column" #~ msgstr "Удалить группу" #, fuzzy #~ msgid "Base Settings" #~ msgstr "Настройки пакета" #, fuzzy #~ msgid "Remove Constraint" #~ msgstr "Удалить соединение" monodevelop-database-4.0.12/po/Makefile.am0000644000175000017500000000231111266446160021064 0ustar directhexdirecthex PACKAGE = monodevelop-database MDTOOL = $(LOCAL_PKGCONFIG) mono `$(LOCAL_PKGCONFIG) pkg-config --variable=libdir monodevelop`/bin/mdtool.exe BUILD_DIR = $(top_builddir)/build/locale INSTALL_DIR = $(DESTDIR)$(MD_ADDIN_DIR)/MonoDevelop.Database/locale FILES = \ ca.po\ cs.po\ da.po\ de.po\ es.po\ fr.po\ gl.po\ hu.po\ id.po\ it.po\ ja.po\ nl.po\ pl.po\ pt.po\ pt_BR.po\ ru.po\ sl_SI.po\ sv.po\ tr.po\ zh_CN.po\ zh_TW.po GMO_FILES = $(patsubst %.po,$(BUILD_DIR)/%/LC_MESSAGES/$(PACKAGE).mo,$(FILES)) MO_FILES = $(foreach po,$(FILES), $(INSTALL_DIR)/$(basename $(po))/LC_MESSAGES/$(PACKAGE).mo) all: $(GMO_FILES) update-po: cd $(top_srcdir) && $(MDTOOL) gettext-update statistics: @for LANGFILE in $(FILES); do \ echo "$$LANGFILE:"; \ msgfmt -o /dev/null --verbose "$$LANGFILE"; \ done $(GMO_FILES): $(BUILD_DIR)/%/LC_MESSAGES/$(PACKAGE).mo: %.po mkdir -p '$(dir $@)' msgfmt '$<' -o '$@' $(MO_FILES): $(INSTALL_DIR)/%/LC_MESSAGES/$(PACKAGE).mo : $(BUILD_DIR)/%/LC_MESSAGES/$(PACKAGE).mo mkdir -p '$(dir $@)' $(INSTALL) '$<' '$@' install-data-local: $(MO_FILES) uninstall-local: rm -f $(MO_FILES) CLEANFILES = $(GMO_FILES) EXTRA_DIST = $(FILES) include $(top_srcdir)/Makefile.include monodevelop-database-4.0.12/po/sv.po0000644000175000017500000010013311266446160020021 0ustar directhexdirecthex# Swedish translation for MonoDevelop. # Copyright (C) 2007 Free Software Foundation, Inc. # This file is distributed under the same license as the monodevelop package. # Daniel Nylander , 2007. # msgid "" msgstr "" "Project-Id-Version: monodevelop\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2007-10-01 22:12+0100\n" "Last-Translator: Daniel Nylander \n" "Language-Team: Swedish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 #, fuzzy msgid "Enter Password" msgstr "Lösenord" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 #, fuzzy msgid "Query Database" msgstr "Databas" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 #, fuzzy msgid "_Database" msgstr "Databas" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 #, fuzzy msgid "Clear Results" msgstr "Töm resultat" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "Status" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 #, fuzzy msgid "Unable to connect to database '{0}'" msgstr "Kunde inte hitta configure.in i {0}" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Tabell" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 #, fuzzy msgid "No Results" msgstr "Resultat" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 #, fuzzy msgid "Executing query" msgstr "Kör SQL-fråga på" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 #, fuzzy msgid "Query execute cancelled" msgstr "Sökning avbröts." #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 #, fuzzy msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Sökning avbröts." msgstr[1] "Sökning avbröts." #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "Databas" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "Skapa ny mapp" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "Databas" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "Databas" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "Databas" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 #, fuzzy msgid "Open Database" msgstr "Databas" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 #, fuzzy msgid "SQLite databases" msgstr "Databas" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 #, fuzzy msgid "All files" msgstr "Alla filer" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "Databas" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "Databas" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Databasanslutningar" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 #, fuzzy msgid "Unable to connect:" msgstr "Kunde inte hitta configure.in i {0}" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 #, fuzzy msgid "Are you sure you want to remove connection '{0}'?" msgstr "Är du säker på att du vill ta bort \"{0}\"?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Ta bort tabell" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 #, fuzzy msgid "Are you sure you want to drop database '{0}'" msgstr "Är du säker på att du vill ta bort \"{0}\"?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Tabeller" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Vyer" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Procedurer" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Användare" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 #, fuzzy msgid "Empty Table" msgstr "Töm tabell" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 #, fuzzy msgid "Are you sure you want to empty table '{0}'" msgstr "Är du säker på att du vill ta bort \"{0}\"?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Tabell tömd" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 #, fuzzy msgid "Are you sure you want to drop table '{0}'" msgstr "Är du säker på att du vill ta bort \"{0}\"?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 #, fuzzy msgid "Are you sure you want to drop user '{0}'" msgstr "Är du säker på att du vill ta bort \"{0}\"?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 #, fuzzy msgid "Are you sure you want to drop procedure '{0}'" msgstr "Är du säker på att du vill ta bort \"{0}\"?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 #, fuzzy msgid "Are you sure you want to drop view '{0}'" msgstr "Är du säker på att du vill ta bort \"{0}\"?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Kolumn" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Kolumner" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Grupper" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Språk" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Roller" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Regler" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Sekvenser" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Utlösare" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Typer" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Parametrar" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "Parameter" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Databasbläddare" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Visa systemobjekt" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Databas" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "Databasbläddare" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 #, fuzzy msgid "Edit Connection" msgstr "Lägg till anslutning" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Ta bort" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Uppdatera" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 #, fuzzy msgid "Connect" msgstr "Koppla från" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Koppla från" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 #, fuzzy msgid "Select *" msgstr "Markera _allt" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 #, fuzzy msgid "Select x,y,..." msgstr "Välj mall:" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 msgid "Query" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 #, fuzzy msgid "Create Table" msgstr "Skapa paket" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 #, fuzzy msgid "Create View" msgstr "Skapa" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 #, fuzzy msgid "Create Procedure" msgstr "Skapa paket" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 #, fuzzy msgid "Create Constraint" msgstr "Skapa i lösning:" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 #, fuzzy msgid "Create Trigger" msgstr "Skapa paket" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 #, fuzzy msgid "Create User" msgstr "Skapa" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 #, fuzzy msgid "Alter Database" msgstr "Databas" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 #, fuzzy msgid "Alter Table" msgstr "Tabell" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 #, fuzzy msgid "Alter View" msgstr "Utlösare" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 #, fuzzy msgid "Alter Procedure" msgstr "Skapa paket" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 #, fuzzy msgid "Alter Constraint" msgstr "Aktiv konfiguration" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 #, fuzzy msgid "Alter Trigger" msgstr "Utlösare" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 #, fuzzy msgid "Alter User" msgstr "Utlösare" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 #, fuzzy msgid "Drop Database" msgstr "Ta bort tabell" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 #, fuzzy msgid "Drop Table" msgstr "Ta bort tabell" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 #, fuzzy msgid "Drop View" msgstr "Ta bort tabell" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 #, fuzzy msgid "Drop Procedure" msgstr "Procedur" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 #, fuzzy msgid "Drop Trigger" msgstr "Utlösare" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 #, fuzzy msgid "Drop Constraint" msgstr "Aktiv konfiguration" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 #, fuzzy msgid "Drop User" msgstr "Ta bort tabell" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "Visa systemobjekt" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 #, fuzzy msgid "Add Database Connection" msgstr "Databasanslutningar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 #, fuzzy msgid "Create Database" msgstr "Databas" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 #, fuzzy msgid "Import From File" msgstr "Tom fil" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 #, fuzzy msgid "Export To File" msgstr "Tom HTML-fil" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 #, fuzzy msgid "Select Column" msgstr "Välj mapp" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "Markera allt" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 #, fuzzy msgid "Deselect All" msgstr "Ta bort alla" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Namn" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "Typ" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Typ" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 #, fuzzy msgid "Property Name" msgstr "_Egenskapsnamn:" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "Server" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "J" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "N" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 #, fuzzy msgid "Image" msgstr "Sida" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Text" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 #, fuzzy msgid "button462" msgstr "Ny lösning" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 #, fuzzy msgid "Edit Database Connection" msgstr "Databasanslutningar" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "Var god vänta" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 #, fuzzy msgid "WaitDialog" msgstr "Dialog" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 #, fuzzy msgid "Please wait" msgstr "Var god vänta" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 #, fuzzy msgid "SQL files" msgstr "Lägg till filer" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 #, fuzzy msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "Är du säker på att du vill ta bort widgeten \"{0}\"?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 #, fuzzy msgid "No databases found!" msgstr "Inga misslyckade tester hittades." #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 #, fuzzy msgid "Trying to connect to database ..." msgstr "Kunde inte hitta configure.in i {0}" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "Text" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 #, fuzzy msgid "Use custom connection string" msgstr "Anslutningssträng" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 msgid "Min Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 msgid "Max Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 #, fuzzy msgid "Advanced" msgstr "_Avancerat" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 #, fuzzy msgid "Save Password" msgstr "Lösenord" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "Namn" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "Lösenord" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "Port:" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "Server" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "Byt namn" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 #, fuzzy msgid "Event" msgstr "Händelser" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "Varje rad" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 #, fuzzy msgid "Position" msgstr "Beskrivning" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 #, fuzzy msgid "Active" msgstr "(Aktiv)" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 #, fuzzy msgid "Comment" msgstr "Kommentarer" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 #, fuzzy msgid "Are you sure you want to remove trigger '{0}'?" msgstr "Är du säker på att du vill ta bort \"{0}\"?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 #, fuzzy msgid "Trigger '{0}' does not contain a trigger statement." msgstr "Filen \"{0}\" kunde inte öppnas." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 #, fuzzy msgid "Statement" msgstr "Status" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "Längd" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 #, fuzzy msgid "Nullable" msgstr "Tabell" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 #, fuzzy msgid "Are you sure you want to remove column '{0}'" msgstr "Är du säker på att du vill ta bort \"{0}\"?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 #, fuzzy msgid "Table '{0}' must contain at least 1 column." msgstr "Filen \"{0}\" kunde inte öppnas." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "Primärnyckel" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "Främmande nyckel" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 #, fuzzy msgid "Check" msgstr "Checka ut..." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 #, fuzzy msgid "Unique" msgstr "Unicode" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 msgid "No name specified." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 #, fuzzy msgid "Edit Table" msgstr "Redigera" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 #, fuzzy msgid "Preview SQL" msgstr "Skriv ut _förhandsvisning" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "Lägg till anslutning" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 #, fuzzy msgid "Definition" msgstr "SQL-definition" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 #, fuzzy msgid "Preview" msgstr "Skriv ut _förhandsvisning" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 #, fuzzy msgid "Reference Table" msgstr "Referens: " #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 #, fuzzy msgid "Column Constraint" msgstr "Aktiv konfiguration" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 #, fuzzy msgid "Delete Action" msgstr "Ta bort markeringen" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 #, fuzzy msgid "Update Action" msgstr "Ångra senaste åtgärden" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 #, fuzzy msgid "Are you sure you want to remove constraint '{0}'?" msgstr "Är du säker på att du vill ta bort \"{0}\"?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 #, fuzzy msgid "Reference Columns" msgstr "Referenser" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 #, fuzzy msgid "Checked constraint '{0}' does not contain a check statement." msgstr "Filen \"{0}\" kunde inte öppnas." #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 #, fuzzy msgid "Check Condition" msgstr "Ny konfiguration" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "Databas" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "Allmänt" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "By_t namn" #~ msgid "Remove Connection" #~ msgstr "Ta bort anslutning" #, fuzzy #~ msgid "Property Type" #~ msgstr "Egenskap" #, fuzzy #~ msgid "Ctor Parameter" #~ msgstr "Parameter" #~ msgid "Overwrite?" #~ msgstr "Skriv över?" #, fuzzy #~ msgid "Remove Trigger" #~ msgstr "Utlösare" #, fuzzy #~ msgid "Remove Column" #~ msgstr "Ta bort grupp" #, fuzzy #~ msgid "Base Settings" #~ msgstr "Paketinställningar" #, fuzzy #~ msgid "Remove Constraint" #~ msgstr "Skapa i lösning:" monodevelop-database-4.0.12/po/es.po0000644000175000017500000010234011266446160020002 0ustar directhexdirecthex# Translation of monodevelop.po into Spanish # Copyright (C) 2005 The Mono Project # This file is distributed under the same license as the MonoDevelop package. # Andrés G. Aragoneses , 2005-2008 # Alejandro Serrano , 2006 # Jonathan Hernández Velasco , 2004-2005 # Antonio Ognio , 2004 # msgid "" msgstr "" "Project-Id-Version: MonoDevelop rev2237\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2005-03-01 16:34+0100\n" "Last-Translator: Andrés G. Aragoneses \n" "Language-Team: Spanish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "Imposible cargar la información guardada sobre conexiones SQL." #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "Por favor introduzca la contraseña para la conexión '{0}'" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 msgid "Enter Password" msgstr "Introducir contraseña" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 msgid "Query Database" msgstr "Consultar base de datos" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 msgid "_Database" msgstr "Base de _datos" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Ejecutar" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 msgid "Clear Results" msgstr "Limpiar resultados" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "Estado" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "Imposible conectar a la base de datos '{0}'" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Tabla" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "Filas afectadas" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 msgid "No Results" msgstr "No hay resultados" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 msgid "Executing query" msgstr "Ejecutando consulta" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 msgid "Query execute cancelled" msgstr "Ejecución de consulta cancelada" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Consulta ejecutada ({0} tabla resultante)" msgstr[1] "Consulta ejecutada ({0} tablas resultantes)" #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "Guardar base de datos" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "Crear Setter" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "Bases de datos SQLite" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "Base de datos" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "Bases de datos SQLite" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 msgid "Open Database" msgstr "Abrir base de datos" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "Bases de datos SQLite" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 msgid "All files" msgstr "Todos los archivos" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "Crear base de datos" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "Bases de datos SQLite" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Conexiones de base de datos" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "Imposible conectar:" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 msgid "Are you sure you want to remove connection '{0}'?" msgstr "¿Está seguro de que desea eliminar la conexión '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Eliminar vista" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 msgid "Are you sure you want to drop database '{0}'" msgstr "¿Está seguro de que desea eliminar la base de datos '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Tablas" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Vistas" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Procedimientos" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Usuarios" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Restricciones" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 msgid "Empty Table" msgstr "Tabla vacía" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 msgid "Are you sure you want to empty table '{0}'" msgstr "¿Está seguro de que desea vaciar la tabla '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Tabla vaciada" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 msgid "Are you sure you want to drop table '{0}'" msgstr "¿Está seguro de que desea eliminar la tabla '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 msgid "Are you sure you want to drop user '{0}'" msgstr "¿Está seguro de que desea eliminar el usuario '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 msgid "Are you sure you want to drop procedure '{0}'" msgstr "¿Está seguro de que desea eliminar el procedimiento '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 msgid "Are you sure you want to drop view '{0}'" msgstr "¿Está seguro de que desea eliminar la vista '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Columna" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Columnas" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Restricción" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Conjuntos" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Grupos" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Lenguajes" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "Operadores" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Roles" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Reglas" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Secuencias" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Disparadores" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Tipos" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Parámetros" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "Parámetro" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Explorador de bases de datos" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Mostrar objetos de sistema" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Base de datos" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "Explorador de bases de datos" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 msgid "Edit Connection" msgstr "Editar conexión" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Quitar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Refrescar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 msgid "Connect" msgstr "Conectar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Desconectar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 msgid "Select *" msgstr "Seleccionar *" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "Seleccionar x,y,..." #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 msgid "Query" msgstr "Consulta" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 msgid "Create Table" msgstr "Crear tabla" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 msgid "Create View" msgstr "Crear vista" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 msgid "Create Procedure" msgstr "Crear procedimiento" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 msgid "Create Constraint" msgstr "Crear restricción" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 msgid "Create Trigger" msgstr "Crear disparador" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 msgid "Create User" msgstr "Crear usuario" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 msgid "Alter Database" msgstr "Alterar base de datos" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 msgid "Alter Table" msgstr "Alterar tabla" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "Alterar vista" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 msgid "Alter Procedure" msgstr "Alterar procedimiento" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 msgid "Alter Constraint" msgstr "Alterar restricción" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 msgid "Alter Trigger" msgstr "Alterar disparador" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "Alterar usuario" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 msgid "Drop Database" msgstr "Eliminar base de datos" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 msgid "Drop Table" msgstr "Eliminar tabla" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 msgid "Drop View" msgstr "Eliminar vista" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 msgid "Drop Procedure" msgstr "Eliminar procedimiento" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 msgid "Drop Trigger" msgstr "Eliminar disparador" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 msgid "Drop Constraint" msgstr "Eliminar restricción" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 msgid "Drop User" msgstr "Eliminar usuario" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "Mostrar objetos de sistema" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 msgid "Add Database Connection" msgstr "Agregar conexión a base de datos" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 msgid "Create Database" msgstr "Crear base de datos" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 msgid "Import From File" msgstr "Importar desde archivo" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 msgid "Export To File" msgstr "Exportar a archivo" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 msgid "Select Column" msgstr "Seleccionar columna" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "Seleccionar todo" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 msgid "Deselect All" msgstr "Deseleccionar todo" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Nombre" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "Tipo" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Tipo" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 msgid "Property Name" msgstr "Nombre de la propiedad" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "Servidor" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "de" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "S" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "N" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 msgid "Image" msgstr "Imagen" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "Imposible cargar el objeto como imagen" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Texto" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 msgid "Edit Database Connection" msgstr "Editar conexión a base de datos" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "Por favor espere" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 msgid "WaitDialog" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "Por favor espere" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 msgid "SQL files" msgstr "Archivos SQL" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "¿Está seguro de que desea sobreescribir el archivo '{0}'?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 msgid "No databases found!" msgstr "No se encontró ninguna base de datos" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 #, fuzzy msgid "Trying to connect to database ..." msgstr "Imposible conectar a la base de datos '{0}'" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "Texto" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 msgid "Use custom connection string" msgstr "Usar cadena de conexión personalizada" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 #, fuzzy msgid "Min Pool Size:" msgstr "Tamaño mínimo de Pool" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 #, fuzzy msgid "Max Pool Size:" msgstr "Tamaño máximo de Pool" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 msgid "Advanced" msgstr "Avanzado" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 msgid "Save Password" msgstr "Guardar contraseña" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "Nombre" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "Contraseña" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "Puerto" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "Servidor" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "Nombre de usuario" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 msgid "Event" msgstr "Evento" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "Cada fila" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 msgid "Position" msgstr "Posición" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 msgid "Active" msgstr "Activo" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 msgid "Comment" msgstr "Comentario" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 msgid "Are you sure you want to remove trigger '{0}'?" msgstr "¿Está seguro de que desea eliminar el disparador '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "El disparador '{0}' no contiene una instrucción trigger." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "Instrucción" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "PK" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "Longitud" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 msgid "Nullable" msgstr "Nulable" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 msgid "Are you sure you want to remove column '{0}'" msgstr "¿Está seguro de que desea eliminar la columna '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "Tipo de datos desconocido '{0}' aplicado a columna '{1}'." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "La tabla '{0}' debe contener al menos una clave primaria." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "La tabla '{0}' debe contener al menos 1 columna." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "Clave primaria" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "Clave ajena" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 msgid "Check" msgstr "Chequear" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 msgid "Unique" msgstr "Único" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 msgid "No name specified." msgstr "Sin nombre especificado." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 msgid "Edit Table" msgstr "Editar tabla" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "Previsualizar SQL" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "Agregar conexión" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 msgid "Definition" msgstr "Definición" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 msgid "Preview" msgstr "Vista preliminar" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 msgid "Reference Table" msgstr "Tabla de referencia" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 msgid "Column Constraint" msgstr "Restricción de la columna" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 msgid "Delete Action" msgstr "Eliminar acción" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 msgid "Update Action" msgstr "Actualizar acción" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 msgid "Are you sure you want to remove constraint '{0}'?" msgstr "¿Está seguro de que desea eliminar la restricción '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" "La restricción de clave única '{0}' debe ser aplicada a una o más columnas" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 msgid "Reference Columns" msgstr "Columnas de referencia" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "La restricción de chequeo '{0}' no contiene una instrucción check." #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" "La restricción de chequeo '{0}' está marcada como una restricción de columna " "pero no se está aplicando a ninguna columna." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 msgid "Check Condition" msgstr "Comprobar condición" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" "La restricción de clave primaria '{0}' debe ser aplicada a una o más " "columnas." #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "Crear base de datos" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "General" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "Re_nombrar" #~ msgid "Remove Connection" #~ msgstr "Eliminar conexión" #~ msgid "Property Type" #~ msgstr "Tipo de la propiedad" #~ msgid "Ctor Parameter" #~ msgstr "Parámetro del constructor" #~ msgid "Overwrite?" #~ msgstr "¿Sobreescribir?" #~ msgid "Display content as text" #~ msgstr "Representar el contenido como texto" #~ msgid "Display content as xml text" #~ msgstr "Representar el contenido como texto XML" #~ msgid "Display content as xml tree" #~ msgstr "Representar el contenido como un árbol XML" #~ msgid "Display content as image" #~ msgstr "Representar el contenido como una imagen" #~ msgid "Remove Trigger" #~ msgstr "Eliminar disparador" #~ msgid "Remove Column" #~ msgstr "Eliminar columna" #~ msgid "Base Settings" #~ msgstr "Preferencias básicas" #~ msgid "Remove Constraint" #~ msgstr "Eliminar restricción" monodevelop-database-4.0.12/po/da.po0000644000175000017500000007746611266446160020003 0ustar directhexdirecthex# Danish translation of MonoDevelop. # Copyright (C) 2004, 2005 Martin Willemoes Hansen # This file is distributed under the same license as the MonoDevelop package. # Martin Willemoes Hansen , 2004 - 2005 # # Husk at tilføje dig i credit-listen (besked id "translator-credits") # msgid "" msgstr "" "Project-Id-Version: MonoDevelop\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2005-05-20 17:07+0200\n" "Last-Translator: Martin Willemoes Hansen \n" "Language-Team: Martin Willemoes Hansen \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 #, fuzzy msgid "Enter Password" msgstr "Adgangskode" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 #, fuzzy msgid "Query Database" msgstr "Database" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 #, fuzzy msgid "_Database" msgstr "Database" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Start" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 #, fuzzy msgid "Clear Results" msgstr "Søgeresultater" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Tabel" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 #, fuzzy msgid "No Results" msgstr "Resultat" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 #, fuzzy msgid "Executing query" msgstr "Køre" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 #, fuzzy msgid "Query execute cancelled" msgstr "Testafvikling afbrudt." #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 #, fuzzy msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Testafvikling afbrudt." msgstr[1] "Testafvikling afbrudt." #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "Lav database" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "Opret ny folder" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "Lav database" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "Database" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "Lav database" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 #, fuzzy msgid "Open Database" msgstr "Database" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 #, fuzzy msgid "SQLite databases" msgstr "Lav database" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 #, fuzzy msgid "All files" msgstr "Alle filer" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "Lav database" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "Lav database" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Databasetilslutninger" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 #, fuzzy msgid "Unable to connect:" msgstr "Kunne ikke indlæse filen." #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 #, fuzzy msgid "Are you sure you want to remove connection '{0}'?" msgstr "Er du sikker på at du vil slette denne fil?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Drop tabel" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 #, fuzzy msgid "Are you sure you want to drop database '{0}'" msgstr "Er du sikker på at du vil slette denne fil?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Tabeller" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Oversigter" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Procedurer" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Brugere" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Begrænsninger" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 #, fuzzy msgid "Empty Table" msgstr "Tøm tabel" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 #, fuzzy msgid "Are you sure you want to empty table '{0}'" msgstr "Er du sikker på at du vil slette denne fil?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Tabel tømt" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 #, fuzzy msgid "Are you sure you want to drop table '{0}'" msgstr "Er du sikker på at du vil slette denne fil?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 #, fuzzy msgid "Are you sure you want to drop user '{0}'" msgstr "Er du sikker på at du vil slette denne fil?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 #, fuzzy msgid "Are you sure you want to drop procedure '{0}'" msgstr "Er du sikker på at du vil slette denne fil?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 #, fuzzy msgid "Are you sure you want to drop view '{0}'" msgstr "Er du sikker på at du vil slette denne fil?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Kolonne" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Kolonner" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Begrænsning" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Aggregater" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Grupper" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Sprog" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "Operatorer" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Roller" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Regler" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Sekvenser" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Triggers" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Typer" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Parametre" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 #, fuzzy msgid "Parameter" msgstr "Parametre" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 #, fuzzy msgid "Database Browser" msgstr "Database" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Vis systemobjekter" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Database" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "Database" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 #, fuzzy msgid "Edit Connection" msgstr "Test tilslutning" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Fjern" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Opdater" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 msgid "Connect" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 #, fuzzy msgid "Select *" msgstr "Vælg alle" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 #, fuzzy msgid "Query" msgstr "Alle" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 #, fuzzy msgid "Create Table" msgstr "Lav database" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 #, fuzzy msgid "Create View" msgstr "Opret ny folder" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 #, fuzzy msgid "Create Procedure" msgstr "Procedure" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 #, fuzzy msgid "Create Constraint" msgstr "Begrænsning" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 #, fuzzy msgid "Create Trigger" msgstr "Triggers" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 #, fuzzy msgid "Create User" msgstr "Lav database" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 #, fuzzy msgid "Alter Database" msgstr "Lav database" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 #, fuzzy msgid "Alter Table" msgstr "Slet side" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 #, fuzzy msgid "Alter Procedure" msgstr "Procedure" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 #, fuzzy msgid "Alter Constraint" msgstr "Begrænsning" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 #, fuzzy msgid "Alter Trigger" msgstr "Triggers" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 #, fuzzy msgid "Drop Database" msgstr "Drop tabel" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 #, fuzzy msgid "Drop Table" msgstr "Drop tabel" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 #, fuzzy msgid "Drop View" msgstr "Drop tabel" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 #, fuzzy msgid "Drop Procedure" msgstr "Procedure" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 #, fuzzy msgid "Drop Trigger" msgstr "Triggers" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 #, fuzzy msgid "Drop Constraint" msgstr "Begrænsning" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 #, fuzzy msgid "Drop User" msgstr "Drop tabel" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "Vis systemobjekter" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 #, fuzzy msgid "Add Database Connection" msgstr "Databasetilslutninger" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 msgid "Create Database" msgstr "Lav database" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 #, fuzzy msgid "Import From File" msgstr "Tom fil" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 #, fuzzy msgid "Export To File" msgstr "Tom HTML-fil" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 #, fuzzy msgid "Select Column" msgstr "Vælg kommando" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "Vælg alle" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 #, fuzzy msgid "Deselect All" msgstr "Vælg alle" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Navn" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "Type" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Type" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 #, fuzzy msgid "Property Name" msgstr "Projektnavn" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "Server" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 #, fuzzy msgid "Image" msgstr "Pause" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 #, fuzzy msgid "Unable to load object as Image" msgstr "Kunne ikke indlæse filen." #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Tekst" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 #, fuzzy msgid "Edit Database Connection" msgstr "Databasetilslutninger" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 #, fuzzy msgid "WaitDialog" msgstr "Find-dialog" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 #, fuzzy msgid "SQL files" msgstr "Tilføj filer" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 #, fuzzy msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "Er du sikker på at du vil slette denne fil?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 #, fuzzy msgid "No databases found!" msgstr "Ingen fejlede tests fundet." #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 msgid "Trying to connect to database ..." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "Tekst" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 #, fuzzy msgid "Use custom connection string" msgstr "Forkert tilslutningsstreng" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 msgid "Min Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 msgid "Max Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 #, fuzzy msgid "Advanced" msgstr "Avanceret" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 #, fuzzy msgid "Save Password" msgstr "Adgangskode" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "Navn" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "Adgangskode" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 msgid "Port:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "Server" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "Omdøb" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 #, fuzzy msgid "Event" msgstr "Ryd {0}" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 #, fuzzy msgid "Position" msgstr "Beskrivelse" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 #, fuzzy msgid "Active" msgstr "(Aktive)" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 #, fuzzy msgid "Comment" msgstr "Fælles" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 #, fuzzy msgid "Are you sure you want to remove trigger '{0}'?" msgstr "Er du sikker på at du vil slette denne fil?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 #, fuzzy msgid "Nullable" msgstr "Tabel" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 #, fuzzy msgid "Are you sure you want to remove column '{0}'" msgstr "Er du sikker på at du vil slette denne fil?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 msgid "Check" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 msgid "Unique" msgstr "" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 #, fuzzy msgid "No name specified." msgstr "Specificeret udrulningsmål er invalid" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 #, fuzzy msgid "Edit Table" msgstr "Tøm tabel" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "Test tilslutning" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 #, fuzzy msgid "Definition" msgstr "Beskrivelse" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 #, fuzzy msgid "Preview" msgstr "Udbyder" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 #, fuzzy msgid "Reference Table" msgstr "Referencenavn" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 #, fuzzy msgid "Column Constraint" msgstr "Begrænsning" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 #, fuzzy msgid "Delete Action" msgstr "Vælg mål-stedet" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 #, fuzzy msgid "Update Action" msgstr "Enhedstestindstillinger" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 #, fuzzy msgid "Are you sure you want to remove constraint '{0}'?" msgstr "Er du sikker på at du vil slette denne fil?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 #, fuzzy msgid "Reference Columns" msgstr "Referencer" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 #, fuzzy msgid "Check Condition" msgstr "Konfigureringer" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "Lav database" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "Generelt" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "O_mdøb" #, fuzzy #~ msgid "Remove Connection" #~ msgstr "Konfigureringer" #, fuzzy #~ msgid "Property Type" #~ msgstr "Byg egenskaber" #, fuzzy #~ msgid "Ctor Parameter" #~ msgstr "Parametre" #, fuzzy #~ msgid "Display content as text" #~ msgstr "Vis indstillingsliste" #, fuzzy #~ msgid "Remove Trigger" #~ msgstr "Triggers" #, fuzzy #~ msgid "Remove Column" #~ msgstr "Fjern gruppe" #, fuzzy #~ msgid "Base Settings" #~ msgstr "Indstillinger for tilslutning" #, fuzzy #~ msgid "Remove Constraint" #~ msgstr "Begrænsning" monodevelop-database-4.0.12/po/ChangeLog0000644000175000017500000000153311266446160020607 0ustar directhexdirecthex2009-04-17 Michael Hutchinson * Makefile.am: Fix builddir paths. 2009-03-19 Michael Hutchinson * fr.po: Updated translation from Vincent Daron. 2009-03-04 Michael Hutchinson * pt.po: * da.po: * it.po: * ca.po: * tr.po: * sv.po: * id.po: * ru.po: * de.po: * hu.po: * es.po: * cs.po: * gl.po: * fr.po: * nl.po: * pl.po: * zh_TW.po: * sl_SI.po: * zh_CN.po: * pt_BR.po: * messages.po: Updated for string freeze. * po.mdproj: Updated format. 2009-02-26 Michael Hutchinson * po.mdproj: Fix translation projects' GUIDs. 2009-02-25 Atsushi Enomoto * messages.po, ja.po : updated translation. 2009/02/06 Lluis Sanchez Gual * po.mdse: * po.mdproj: Migrated to MSBuild format. monodevelop-database-4.0.12/po/sl_SI.po0000644000175000017500000007777711266446160020435 0ustar directhexdirecthex# translation of sl_SI.po to Slovene # Slovenian translation of MonoDevelop # Copyright (C) 2006 Matej Urbas # This file is distributed under the same license as the MonoDevelop package. # # Matej Urbas , 2006. msgid "" msgstr "" "Project-Id-Version: sl_SI\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2006-11-18 01:38+0100\n" "Last-Translator: Matej Urbas \n" "Language-Team: Slovene\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=n==1 ? 0 : n==2 ? 1 : (n>4 || n < 1) ? 3 : " "2;\n" "X-Generator: KBabel 1.11.4\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 #, fuzzy msgid "Enter Password" msgstr "Geslo" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 #, fuzzy msgid "Query Database" msgstr "Podatkovna baza" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 #, fuzzy msgid "_Database" msgstr "Podatkovna baza" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Izvedi" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 #, fuzzy msgid "Clear Results" msgstr "Počisti rezultate" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Tabela" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 #, fuzzy msgid "No Results" msgstr "Rezultat" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 #, fuzzy msgid "Executing query" msgstr "Izvajam sql poizvedbo na" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 #, fuzzy msgid "Query execute cancelled" msgstr "Izvajanje testa je bilo prekinjeno" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 #, fuzzy msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Izvajanje testa je bilo prekinjeno" msgstr[1] "Izvajanje testa je bilo prekinjeno" msgstr[2] "Izvajanje testa je bilo prekinjeno" msgstr[3] "Izvajanje testa je bilo prekinjeno" #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "Podatkovna baza" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "Ustvari nov imenik" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "Podatkovna baza" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "Podatkovna baza" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "Podatkovna baza" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 #, fuzzy msgid "Open Database" msgstr "Podatkovna baza" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 #, fuzzy msgid "All files" msgstr "Vse datoteke" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "Podatkovna baza" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "Podatkovna baza" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Povezave s podatkovnimi bazami" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 #, fuzzy msgid "Are you sure you want to remove connection '{0}'?" msgstr "Ste prepričani da želite izbrisati '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Opusti tabelo" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 #, fuzzy msgid "Are you sure you want to drop database '{0}'" msgstr "Ste prepričani da želite izbrisati '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Tabele" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Pogledi" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Procedure" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Uporabniki" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Omejitve" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 #, fuzzy msgid "Empty Table" msgstr "Izprazni tabelo" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 #, fuzzy msgid "Are you sure you want to empty table '{0}'" msgstr "Ste prepričani da želite izbrisati '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Tabela izpraznjena" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 #, fuzzy msgid "Are you sure you want to drop table '{0}'" msgstr "Ste prepričani da želite izbrisati '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 #, fuzzy msgid "Are you sure you want to drop user '{0}'" msgstr "Ste prepričani da želite izbrisati '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 #, fuzzy msgid "Are you sure you want to drop procedure '{0}'" msgstr "Ste prepričani da želite izbrisati '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 #, fuzzy msgid "Are you sure you want to drop view '{0}'" msgstr "Ste prepričani da želite izbrisati '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Stolpec" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Stolpci" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Omejitev" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Agregati" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Skupine" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Jeziki" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "Operatorji" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Vloge" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Pravila" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Sekvence" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Sprožilci" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Tipi" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Parametri" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 #, fuzzy msgid "Parameter" msgstr "Parametri" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Brskalnik podatkovnih baz" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Prikaži sistemske objekte" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Podatkovna baza" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "Brskalnik podatkovnih baz" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 #, fuzzy msgid "Edit Connection" msgstr "Dodaj povezavo" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Odstrani" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Osveži" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 #, fuzzy msgid "Connect" msgstr "Odjavi se" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Odjavi se" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 #, fuzzy msgid "Select *" msgstr "Ozn_ači vse" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 #, fuzzy msgid "Query" msgstr "Vsak" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 #, fuzzy msgid "Create Table" msgstr "Ustvari novo datoteko" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 #, fuzzy msgid "Create View" msgstr "Ustvari novo opravilo" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 #, fuzzy msgid "Create Procedure" msgstr "Procedura" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 #, fuzzy msgid "Create Constraint" msgstr "Omejitev" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 #, fuzzy msgid "Create Trigger" msgstr "Sprožilci" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 #, fuzzy msgid "Create User" msgstr "Ustvari nov imenik" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 #, fuzzy msgid "Alter Database" msgstr "Podatkovna baza" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 #, fuzzy msgid "Alter Table" msgstr "Tabela" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 #, fuzzy msgid "Alter Procedure" msgstr "Procedura" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 #, fuzzy msgid "Alter Constraint" msgstr "Omejitev" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 #, fuzzy msgid "Alter Trigger" msgstr "Sprožilci" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 #, fuzzy msgid "Drop Database" msgstr "Opusti tabelo" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 #, fuzzy msgid "Drop Table" msgstr "Opusti tabelo" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 #, fuzzy msgid "Drop View" msgstr "Opusti tabelo" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 #, fuzzy msgid "Drop Procedure" msgstr "Procedura" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 #, fuzzy msgid "Drop Trigger" msgstr "Sprožilci" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 #, fuzzy msgid "Drop Constraint" msgstr "Omejitev" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 #, fuzzy msgid "Drop User" msgstr "Opusti tabelo" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "Prikaži sistemske objekte" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 #, fuzzy msgid "Add Database Connection" msgstr "Povezave s podatkovnimi bazami" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 #, fuzzy msgid "Create Database" msgstr "Podatkovna baza" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 #, fuzzy msgid "Import From File" msgstr "Prazna datoteka" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 #, fuzzy msgid "Export To File" msgstr "Prazna HTML datoteka" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 #, fuzzy msgid "Select Column" msgstr "Izberi imenik" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 #, fuzzy msgid "Select All" msgstr "Ozn_ači vse" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 #, fuzzy msgid "Deselect All" msgstr "_Počisti oznake" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Ime" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "Tip" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Tip" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 #, fuzzy msgid "Property Name" msgstr "Lastnosti" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "Strežnik" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 #, fuzzy msgid "Image" msgstr "Stran" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Tekst" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 #, fuzzy msgid "Edit Database Connection" msgstr "Povezave s podatkovnimi bazami" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 #, fuzzy msgid "WaitDialog" msgstr "AWT OK dialog" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 #, fuzzy msgid "SQL files" msgstr "Dodaj datoteke" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 #, fuzzy msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "Ste prepričani da želite izbrisati gradnik '{0}'?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 #, fuzzy msgid "No databases found!" msgstr "Ni bilo zaznanih spodletelih testov." #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 msgid "Trying to connect to database ..." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "Tekst" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 #, fuzzy msgid "Use custom connection string" msgstr "Niz za povezavo" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 msgid "Min Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 msgid "Max Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 #, fuzzy msgid "Advanced" msgstr "_Napredno" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 #, fuzzy msgid "Save Password" msgstr "Geslo" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "Ime" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "Geslo" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "Prioriteta" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "Strežnik" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "Preimenuj" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 #, fuzzy msgid "Event" msgstr "Dogodek {0}" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 #, fuzzy msgid "Position" msgstr "Opis" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 #, fuzzy msgid "Active" msgstr "(Aktiven)" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 #, fuzzy msgid "Comment" msgstr "Komentarji" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 #, fuzzy msgid "Are you sure you want to remove trigger '{0}'?" msgstr "Ste prepričani da želite izbrisati '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 #, fuzzy msgid "Nullable" msgstr "Tabela" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 #, fuzzy msgid "Are you sure you want to remove column '{0}'" msgstr "Ste prepričani da želite izbrisati '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 #, fuzzy msgid "Check" msgstr "Uvozi..." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 msgid "Unique" msgstr "" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 #, fuzzy msgid "No name specified." msgstr "Podano neveljavno ime zbirke" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 #, fuzzy msgid "Edit Table" msgstr "Izprazni tabelo" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "Dodaj povezavo" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 #, fuzzy msgid "Definition" msgstr "Opis" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 #, fuzzy msgid "Preview" msgstr "Gostitelj" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 #, fuzzy msgid "Reference Table" msgstr "Ime reference" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 #, fuzzy msgid "Column Constraint" msgstr "Omejitev" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 #, fuzzy msgid "Delete Action" msgstr "Izbriši označeno vsebino" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 #, fuzzy msgid "Update Action" msgstr "Razveljavi zadnje dejanje" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 #, fuzzy msgid "Are you sure you want to remove constraint '{0}'?" msgstr "Ste prepričani da želite izbrisati '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 #, fuzzy msgid "Reference Columns" msgstr "Reference" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 #, fuzzy msgid "Check Condition" msgstr "Nova nastavitev" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "Podatkovna baza" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "Splošno" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "P_reimenuj" #, fuzzy #~ msgid "Remove Connection" #~ msgstr "Preimenuj nastavitve" #, fuzzy #~ msgid "Property Type" #~ msgstr "Lastnosti" #, fuzzy #~ msgid "Ctor Parameter" #~ msgstr "Parametri" #, fuzzy #~ msgid "Display content as text" #~ msgstr "Prikaži seznam nastavitev" #, fuzzy #~ msgid "Remove Trigger" #~ msgstr "Sprožilci" #, fuzzy #~ msgid "Remove Column" #~ msgstr "Odstrani skupino" #, fuzzy #~ msgid "Remove Constraint" #~ msgstr "Omejitev" monodevelop-database-4.0.12/po/de.po0000644000175000017500000010150611266446160017766 0ustar directhexdirecthex# benste , 2007. # # msgid "" msgstr "" "Project-Id-Version: Monodevelop\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2008-01-28 23:56+0100\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "Kann gespeicherte SQL-Verbindungs-Informationen nicht laden." #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "Bitte geben sie das Passwort für Verbindung '{0}' ein" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 msgid "Enter Password" msgstr "Passwort eingeben" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 msgid "Query Database" msgstr "Datenbank abfragen" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 msgid "_Database" msgstr "_Datenbank" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Ausführen" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 msgid "Clear Results" msgstr "Ergebnisse löschen" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "Status" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "Kann nicht mit Datenbank '{0}' verbinden" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Tabelle" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "Betroffene Zeilen" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 msgid "No Results" msgstr "Keine Ergebnisse" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 msgid "Executing query" msgstr "Führe Abfrage aus" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 msgid "Query execute cancelled" msgstr "Abfrageausführung abgebrochen" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 #, fuzzy msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Abfrage ausgeführt ({0} Ergebnis-Tabelle)" msgstr[1] "Abfrage ausgeführt ({0} Ergebnis-Tabelle)" #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "Datenbank speichern" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "Setter erzeugen" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "SQLite-Datenbank" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "Datenbank" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "SQLite-Datenbank" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 msgid "Open Database" msgstr "Datenbank öffnen" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "SQLite-Datenbank" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 msgid "All files" msgstr "Alle Dateien" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "Datenbank erzeugen" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "SQLite-Datenbank" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Datenbank-Verbindungen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "Konnte nicht verbinden:" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 msgid "Are you sure you want to remove connection '{0}'?" msgstr "Sind sie sich sicher, dass sie Verbindung '{0}' entfernen möchten?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Ansicht fallen lassen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 msgid "Are you sure you want to drop database '{0}'" msgstr "Sind sie sich sicher, dass sie Datenbank '{0}' fallen lassen möchten?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Tabellen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Ansichten" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Prozeduren" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Benutzer" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Bedingungen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 msgid "Empty Table" msgstr "Leere Tabelle" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 msgid "Are you sure you want to empty table '{0}'" msgstr "Sind sie sich sicher, dass sie Tabelle '{0}' leeren wollen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Tabelle geleert" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 msgid "Are you sure you want to drop table '{0}'" msgstr "Sind sie sich sicher, dass sie Tabelle '{0}' fallen lassen möchten?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 msgid "Are you sure you want to drop user '{0}'" msgstr "Sind sie sich sicher, dass sie Benutzer '{0}' fallen lassen möchten?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 msgid "Are you sure you want to drop procedure '{0}'" msgstr "Sind sie sich sicher, dass sie Prozedur '{0}' fallen lassen möchten?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 msgid "Are you sure you want to drop view '{0}'" msgstr "Sind sie sich sicher, dass sie Ansicht '{0}' fallen lassen möchten?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Spalte" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Spalten" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Einschränkung" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Aggregate" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Gruppen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Sprachen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "Operatoren" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Rollen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Regeln" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Sequenzen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Auslöser" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Typen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Parameter" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "Parameter" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Datenbank-Browser" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Zeige System-Objekte" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Datenbank" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "Datenbank-Browser" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 msgid "Edit Connection" msgstr "Verbindung bearbeiten" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Entfernen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Aktualisieren" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 msgid "Connect" msgstr "Verbinden" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Verbindung trennen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 msgid "Select *" msgstr "* auswählen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "Wähle x,y,..." #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 msgid "Query" msgstr "Abfrage" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 msgid "Create Table" msgstr "Tabelle erzeugen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 msgid "Create View" msgstr "Ansicht erzeugen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 msgid "Create Procedure" msgstr "Erzeuge Prozedur" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 msgid "Create Constraint" msgstr "Erzeuge Einschränkung" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 msgid "Create Trigger" msgstr "Erzeuge Auslöser" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 msgid "Create User" msgstr "Benutzer erzeugen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 msgid "Alter Database" msgstr "Datenbank modifizieren" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 msgid "Alter Table" msgstr "Tabelle modifizieren" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "Verändere Ansicht" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 msgid "Alter Procedure" msgstr "Verändere Prozedur" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 msgid "Alter Constraint" msgstr "Verändere Einschränkung" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 msgid "Alter Trigger" msgstr "Verändere Auslöser" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "Verändere Benutzer" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 msgid "Drop Database" msgstr "Datenbank fallen lassen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 msgid "Drop Table" msgstr "Tabelle fallen lassen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 msgid "Drop View" msgstr "Ansicht fallen lassen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 msgid "Drop Procedure" msgstr "Prozedur fallen lassen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 msgid "Drop Trigger" msgstr "Auslöser fallen lassen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 msgid "Drop Constraint" msgstr "Einschränkung fallen lassen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 msgid "Drop User" msgstr "Benutzer fallen lassen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "Zeige System-Objekte" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 msgid "Add Database Connection" msgstr "Datenbank-Verbindung hinzufügen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 msgid "Create Database" msgstr "Datenbank erzeugen" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 msgid "Import From File" msgstr "Aus Datei importieren" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 msgid "Export To File" msgstr "In Datei exportieren" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 msgid "Select Column" msgstr "Spalte auswählen" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "Alles auswählen" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 msgid "Deselect All" msgstr "Alles abwählen" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Name" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "Typ" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Typ" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 msgid "Property Name" msgstr "Eigenschaftsname" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "Server" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "von" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "Y" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "N" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 msgid "Image" msgstr "Bild" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "Konnte Objekt nicht als Bild laden" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "text" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "button462" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 msgid "Edit Database Connection" msgstr "Datenbank-Verbindung editieren" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "Bitte Warten" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 msgid "WaitDialog" msgstr "Warten-Dialog" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "Bitte warten" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 msgid "SQL files" msgstr "SQL-Dateien" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "Bist du dir sicher, dass du die Datei '{0}' überschreiben möchtest?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 msgid "No databases found!" msgstr "Keine Datenbank gefunden!" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 #, fuzzy msgid "Trying to connect to database ..." msgstr "Kann nicht mit Datenbank '{0}' verbinden" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "text" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 msgid "Use custom connection string" msgstr "Benutzerdefinierte Verbindungs-Zeichenkette benutzen" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 #, fuzzy msgid "Min Pool Size:" msgstr "Min Pool-Größe" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 #, fuzzy msgid "Max Pool Size:" msgstr "Max Pool-Größe" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 msgid "Advanced" msgstr "Erweitert" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 msgid "Save Password" msgstr "Passwort speichern" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "Name" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "Passwort" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "Port" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "Server" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "Benutzername" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 msgid "Event" msgstr "Ereignis" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "Jede Zeile" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 msgid "Position" msgstr "Position" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 msgid "Active" msgstr "Aktiv" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 msgid "Comment" msgstr "Kommentar" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 msgid "Are you sure you want to remove trigger '{0}'?" msgstr "Sind sie sicher, dass sie Auslöser '{0}' entfernen möchten?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "Auslöser '{0}' enthält keine Auslöser-Aussage." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "Aussage" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "PK" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "Länge" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 msgid "Nullable" msgstr "Nullable" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 msgid "Are you sure you want to remove column '{0}'" msgstr "Sind sie sich sicher, dass sie Spalte '{0}' löschen wollen" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "Unbekannter Datentyp '{0}' angewandt auf Spalte '{1}'." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "Tabelle '{0}' muss mindestens einen primären Schlüssel enthalten." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "Tabelle '{0}' muss mindestens eine Spalte enthalten." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "Primärer Schlüssel" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "Fremd-Schlüssel" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 msgid "Check" msgstr "Prüfung" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 msgid "Unique" msgstr "Eindeutig" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 msgid "No name specified." msgstr "Kein Name angegeben." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 msgid "Edit Table" msgstr "Tabelle bearbeiten" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "SQL-Vorschau" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "Verbindung hinzufügen" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 msgid "Definition" msgstr "Definition" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 msgid "Preview" msgstr "Vorschau" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 msgid "Reference Table" msgstr "Verweis-Tabelle" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 msgid "Column Constraint" msgstr "Spalten-Einschränkung" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 msgid "Delete Action" msgstr "Lösch-Aktion" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 msgid "Update Action" msgstr "Aktualisierungs-Aktion" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 msgid "Are you sure you want to remove constraint '{0}'?" msgstr "Sind sie sicher, dass sie die Einschränkung '{0}' entfernen wollen?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" "Eindeutige Schlüssel-Einschränkung '{0}' muss auf eine oder mehrere Spalten " "angewandt werden." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 msgid "Reference Columns" msgstr "Verweis-Spalten" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "Überprüfte Einschränkung '{0}' enthält keinen Überprüfungsausdruck." #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" "Überprüfte Einschränkung '{0}' ist als Spalten-Einschränkung markiert aber " "nicht auf eine Spalte angewandt." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 msgid "Check Condition" msgstr "Bedingung prüfen" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" "Primäre Schlüssel-Einschränkung '{0}' muss auf eine oder mehrere Spalten " "angewandt werden." #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "Datenbank erzeugen" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "Allgemein" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "Umbe_nennen" #~ msgid "Remove Connection" #~ msgstr "Verbindung entfernen" #~ msgid "Property Type" #~ msgstr "Eigenschaftstyp" #~ msgid "Ctor Parameter" #~ msgstr "Ctor Parameter" #~ msgid "Overwrite?" #~ msgstr "Überschreiben?" #~ msgid "Display content as text" #~ msgstr "Inhalt als Text anzeigen" #~ msgid "Display content as xml text" #~ msgstr "Inhalt als XML-Text anzeigen" #~ msgid "Display content as xml tree" #~ msgstr "Inhalt als XML-Baum anzeigen" #~ msgid "Display content as image" #~ msgstr "Inhalt als Bild anzeigen" #~ msgid "Remove Trigger" #~ msgstr "Auslöser entfernen" #~ msgid "Remove Column" #~ msgstr "Spalte entfernen" #~ msgid "Base Settings" #~ msgstr "Grund-Einstellungen" #~ msgid "Remove Constraint" #~ msgstr "Einschränkung entfernen" monodevelop-database-4.0.12/po/pt_BR.po0000644000175000017500000010243611266446160020407 0ustar directhexdirecthex# MonoDevelop Portuguese (Brazilian) translation # Copyright (C) 2004, Andre Filipe de Assuncao e Brito # Copyright (C) 2004, Maurício de Lemos Rodrigues Collares Neto # Copyright (C) 2006, Rafael "Monoman" Teixeira # Copyright (C) 2007, Renato Felipe Atilio # # This file is distributed under the same license as the MonoDevelop package. # # msgid "" msgstr "" "Project-Id-Version: MonoDevelop 0.10\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2007-12-14 21:15-0300\n" "Last-Translator: Renato Felipe Atilio \n" "Language-Team: pt_BR \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=n != 1;\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "Não foi possível carregar informações de conexão SQL armazenadas." #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "Por favor informe a senha para a conexão '{0}'" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 msgid "Enter Password" msgstr "Informar Senha" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 msgid "Query Database" msgstr "Consultar Banco de Dados" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 msgid "_Database" msgstr "Banco de _Dados" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Executar" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 msgid "Clear Results" msgstr "Limpar Resultados" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "Status" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "Não foi possível conectar ao banco de dados '{0}'" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Tabela" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "Linhas Afetadas" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 msgid "No Results" msgstr "Sem Resultado" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 msgid "Executing query" msgstr "Executando consulta" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 msgid "Query execute cancelled" msgstr "Execução da consulta cancelada" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Consulta executada ({0} tabela resultante)" msgstr[1] "Consulta executada ({0} tabelas resultantes)" #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "Salvar Banco de Dados" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "Criar Setter" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "Bancos de dados SQLite" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "Banco de Dados" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "Bancos de dados SQLite" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 msgid "Open Database" msgstr "Abrir Banco de Dados" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "Bancos de dados SQLite" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 msgid "All files" msgstr "Todos os arquivos" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "Criar Banco de Dados" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "Bancos de dados SQLite" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Conexões com os Bancos de Dados" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "Não foi possível conectar:" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 msgid "Are you sure you want to remove connection '{0}'?" msgstr "Você tem certeza de que deseja remover a conexão '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Remover View" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 msgid "Are you sure you want to drop database '{0}'" msgstr "Você tem certeza de que deseja remover o banco de dados '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Tabelas" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Views" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Procedures" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Usuários" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Restrições" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 msgid "Empty Table" msgstr "Limpar Tabela" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 msgid "Are you sure you want to empty table '{0}'" msgstr "Você tem certeza de que deseja limpar a tabela '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Tabela esvaziada" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 msgid "Are you sure you want to drop table '{0}'" msgstr "Você tem certeza de que deseja remover a tabela '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 msgid "Are you sure you want to drop user '{0}'" msgstr "Você tem certeza de que deseja remover o usuário '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 msgid "Are you sure you want to drop procedure '{0}'" msgstr "Você tem certeza de que deseja remover a procedure '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 msgid "Are you sure you want to drop view '{0}'" msgstr "Você tem certeza de que deseja remover o view '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Coluna" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Colunas" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Restrição" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Agregações" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Grupos" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Linguagens" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "Operadores" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Papeis" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Regras" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Seqüências" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Triggers" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Tipos" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Parâmetros" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "Parâmetro" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Navegador de Bancos de Dados" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Mostrar Objetos do Sistema" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Banco de Dados" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "Navegador de Bancos de Dados" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 msgid "Edit Connection" msgstr "Editar Conexão" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Remover" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Atualizar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 msgid "Connect" msgstr "Conectar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Desconectar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 msgid "Select *" msgstr "Selecionar Tudo" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "Selecionar x,y,..." #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 msgid "Query" msgstr "Consulta" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 msgid "Create Table" msgstr "Criar Tabela" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 msgid "Create View" msgstr "Criar View" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 msgid "Create Procedure" msgstr "Criar Procedure" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 msgid "Create Constraint" msgstr "Criar Restrição" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 msgid "Create Trigger" msgstr "Criar Trigger" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 msgid "Create User" msgstr "Criar Usuário" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 msgid "Alter Database" msgstr "Alterar Banco de Dados" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 msgid "Alter Table" msgstr "Alterar Tabela" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "Alterar Visualização" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 msgid "Alter Procedure" msgstr "Alterar Procedure" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 msgid "Alter Constraint" msgstr "Alterar Restrição" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 msgid "Alter Trigger" msgstr "Alterar Trigger" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "Alterar Usuário" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 msgid "Drop Database" msgstr "Remover Banco de Dados" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 msgid "Drop Table" msgstr "Remover Tabela" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 msgid "Drop View" msgstr "Remover View" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 msgid "Drop Procedure" msgstr "Remover Procedure" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 msgid "Drop Trigger" msgstr "Remover Trigger" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 msgid "Drop Constraint" msgstr "Remover Restrição" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 msgid "Drop User" msgstr "Remover Usuário" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "Mostrar Objetos do Sistema" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 msgid "Add Database Connection" msgstr "Adicionar Conexão de Banco de Dados" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 msgid "Create Database" msgstr "Criar Banco de Dados" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 msgid "Import From File" msgstr "Importar de Arquivo" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 msgid "Export To File" msgstr "Exportar para Arquivo" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 msgid "Select Column" msgstr "Selecionar Coluna" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "Selecionar Tudo" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 msgid "Deselect All" msgstr "Deselecionar tudo" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Nome" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "Tipo" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Tipo" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 msgid "Property Name" msgstr "Nome da Propriedade" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "Servidor" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "de" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "S" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "N" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 msgid "Image" msgstr "Imagem" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "Não foi possível carregar objeto como imagem" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Texto" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "button462" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 msgid "Edit Database Connection" msgstr "Editar Conexão de Banco de Dados" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "Por favor, aguarde" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 msgid "WaitDialog" msgstr "WaitDialog" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "Por favor aguarde" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 msgid "SQL files" msgstr "Arquivos SQL" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "Você tem certeza de que deseja sobrescrever o arquivo '{0}'?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 msgid "No databases found!" msgstr "Nenhum banco de dados encontrado!" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 #, fuzzy msgid "Trying to connect to database ..." msgstr "Não foi possível conectar ao banco de dados '{0}'" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "Texto" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 msgid "Use custom connection string" msgstr "Usar string de conexão personalizada" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 #, fuzzy msgid "Min Pool Size:" msgstr "Tamanho Mínimo de Pool" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 #, fuzzy msgid "Max Pool Size:" msgstr "Tamanho Máximo de Pool" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 msgid "Advanced" msgstr "Avançado" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 msgid "Save Password" msgstr "Salvar Senha" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "Nome" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "Senha" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "Porta" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "Servidor" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "Nome de Usuário" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 msgid "Event" msgstr "Evento" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "Cada Linha" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 msgid "Position" msgstr "Posição" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 msgid "Active" msgstr "Atual" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 msgid "Comment" msgstr "Comentário" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 msgid "Are you sure you want to remove trigger '{0}'?" msgstr "Você tem certeza de que deseja remover trigger '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "Trigger '{0}' não contém uma declaração de trigger." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "Declaração" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "PK" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "Tamanho" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 msgid "Nullable" msgstr "Nullável" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 msgid "Are you sure you want to remove column '{0}'" msgstr "Você tem certeza de que deseja remover a coluna '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "Tipo de dado '{0}' desconhecido aplicado à coluna '{1}'." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "Tabela '{0}' deve conter ao menos uma chave primária." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "Tabela '{0}' deve conter ao menos uma coluna." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "Chave Primária" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "Chave Estrangeira" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 msgid "Check" msgstr "Verificação" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 msgid "Unique" msgstr "Única" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 msgid "No name specified." msgstr "Nenhum nome especificado." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 msgid "Edit Table" msgstr "Editar Tabela" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "Prever SQL" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "Adicionar Conexão" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 msgid "Definition" msgstr "Definição" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 msgid "Preview" msgstr "Prever" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 msgid "Reference Table" msgstr "Tabela de Referência" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 msgid "Column Constraint" msgstr "Restrição da Coluna" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 msgid "Delete Action" msgstr "Ação de Exclusão" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 msgid "Update Action" msgstr "Ação de Atualização" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 msgid "Are you sure you want to remove constraint '{0}'?" msgstr "Você tem certeza de que deseja remover a restrição '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" "Restrição de Chave Única '{0}' deve ser aplicada a uma ou mais colunas." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 msgid "Reference Columns" msgstr "Colunas de Referência" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "Restrição verificada '{0}' não contém uma declaração de verificação." #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" "Restrição verificada '{0}' está marcada como uma restrição de coluna mas não " "está aplicada a uma coluna." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 msgid "Check Condition" msgstr "Condição de Verificação" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" "Restrição de Chave Primária '{0}' deve ser aplicada a uma ou mais colunas." #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "Criar Banco de Dados" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "Geral" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "Re_nomear" #~ msgid "Remove Connection" #~ msgstr "Remover Conexão" #~ msgid "Property Type" #~ msgstr "Tipo de Propriedade" #~ msgid "Ctor Parameter" #~ msgstr "Parâmetro de Construtor" #~ msgid "Overwrite?" #~ msgstr "Sobrescrever?" #~ msgid "Display content as text" #~ msgstr "Exibir conteúdo como texto" #~ msgid "Display content as xml text" #~ msgstr "Exibir conteúdo como texto xml" #~ msgid "Display content as xml tree" #~ msgstr "Display conteúdo como árvore xml" #~ msgid "Display content as image" #~ msgstr "Exibir conteúdo como imagem" #~ msgid "Remove Trigger" #~ msgstr "Remover Trigger" #~ msgid "Remove Column" #~ msgstr "Remover Coluna" #~ msgid "Base Settings" #~ msgstr "Definições Principais" #~ msgid "Remove Constraint" #~ msgstr "Remover Restrição" monodevelop-database-4.0.12/po/cs.po0000644000175000017500000010136411266446160020005 0ustar directhexdirecthex# Czech translation of MonoDevelop. # Copyright (C) 2005 THE MonoDevelop'S COPYRIGHT HOLDER # This file is distributed under the same license as the MonoDevelop package. # David Makovský (Yakeen) , 2005. # # msgid "" msgstr "" "Project-Id-Version: MonoDevelop Database Addin\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2008-01-24 00:08+0100\n" "Last-Translator: David Makovský (Yakeen) \n" "Language-Team: Czech \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "X-Poedit-Language: Czech\n" "X-Poedit-Country: CZECH REPUBLIC\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "Nepodařilo se načíst uložené informace o SQL spojení." #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "Vložte heslo pro spojení '{0}'" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 msgid "Enter Password" msgstr "Vložte heslo" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 msgid "Query Database" msgstr "Dotázat databázi" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 msgid "_Database" msgstr "Databáze" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Spustit" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 msgid "Clear Results" msgstr "Smazat výsledky" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "Status" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "Nepodařilo se spojit s databází '{0}'" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Tabulky" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "Ovlivněných řádků" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 msgid "No Results" msgstr "Žádné výsledky" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 msgid "Executing query" msgstr "Provádím dotaz" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 msgid "Query execute cancelled" msgstr "Provádění dotazu zrušeno" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Dotaz proveden ({0} výsledek tabulky)" msgstr[1] "Dotaz proveden ({0} výsledky tabulky)" msgstr[2] "Dotaz proveden ({0} výsledků tabulek)" #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "Uložit databázi" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "Vytvořit setter" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "SQLite databáze" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "Databáze" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "SQLite databáze" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 msgid "Open Database" msgstr "Otevřít databázi" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "SQLite databáze" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 msgid "All files" msgstr "Všechny soubory" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "Vytvořit databázi" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "SQLite databáze" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Databázová spojení" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "Nepodařilo se připojit:" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 msgid "Are you sure you want to remove connection '{0}'?" msgstr "Opravdu chcete smazat spojení '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Smazat pohled" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 msgid "Are you sure you want to drop database '{0}'" msgstr "Opravdu chcete smazat databázi '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Tabulky" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Pohledy" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Procedury" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Uživatelé" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Omezení" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 msgid "Empty Table" msgstr "Prázdná tabulka" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 msgid "Are you sure you want to empty table '{0}'" msgstr "Opravdu chcete vyprázdnit tabulku '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Tabulka byla vyprázdněna" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 msgid "Are you sure you want to drop table '{0}'" msgstr "Opravdu chcete smazat tabulku '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 msgid "Are you sure you want to drop user '{0}'" msgstr "Opravdu chcete smazat uživatele '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 msgid "Are you sure you want to drop procedure '{0}'" msgstr "Opravdu chcete smazat proceduru '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 msgid "Are you sure you want to drop view '{0}'" msgstr "Opravdu chcete smazat pohled '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Sloupec" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Sloupce" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Omezení" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Agregace" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Skupiny" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Jazyky" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "Operátory" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Role" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Pravidla" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Sekvence" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Trigry" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Typy" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Parametry" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "Parametr" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Prohlížeč databáze" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Zobrazovat systémové objekty" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Databáze" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "Prohlížeč databáze" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 msgid "Edit Connection" msgstr "Upravit spojení" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Odstranit" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Obnovit" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 msgid "Connect" msgstr "Připojit" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Odpojit" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 msgid "Select *" msgstr "Vybrat *" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "Vybrat x,y,..." #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 msgid "Query" msgstr "Dotaz" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 msgid "Create Table" msgstr "Vytvořit tabulku" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 msgid "Create View" msgstr "Vytvořit pohled" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 msgid "Create Procedure" msgstr "Vytvořit proceduru" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 msgid "Create Constraint" msgstr "Vytvořit omezení" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 msgid "Create Trigger" msgstr "Vytvořit událost" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 msgid "Create User" msgstr "Vytvořit uživatele" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 msgid "Alter Database" msgstr "Modifikovat databázi" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 msgid "Alter Table" msgstr "Modifikovat tabulku" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "Modifikovat pohled" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 msgid "Alter Procedure" msgstr "Modifikovat proceduru" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 msgid "Alter Constraint" msgstr "Modifikovat omezení" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 msgid "Alter Trigger" msgstr "Modifikovat událost" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "Modifikovat uživatele" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 msgid "Drop Database" msgstr "Smazat databázi" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 msgid "Drop Table" msgstr "Smazat tabulku" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 msgid "Drop View" msgstr "Smazat pohled" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 msgid "Drop Procedure" msgstr "Smazat proceduru" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 msgid "Drop Trigger" msgstr "Smazat událost" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 msgid "Drop Constraint" msgstr "Smazat omezení" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 msgid "Drop User" msgstr "Smazat uživatele" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "Zobrazovat systémové objekty" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 msgid "Add Database Connection" msgstr "Přidat databázové spojení" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 msgid "Create Database" msgstr "Vytvořit databázi" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 msgid "Import From File" msgstr "Importovat ze souboru" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 msgid "Export To File" msgstr "Exportovat do souboru" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 msgid "Select Column" msgstr "Vybrat sloupec" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "Označit vše" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 msgid "Deselect All" msgstr "Odznačit vše" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Jméno" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "Typ" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Typ" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 msgid "Property Name" msgstr "Název vlastnosti" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "Server" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "z" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "A" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "N" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 msgid "Image" msgstr "Obrázek" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "Nezdařilo se načíst objekt jako obrázek" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Text" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 msgid "Edit Database Connection" msgstr "Upravit databázové spojení" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "Počkejte chvíli" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 msgid "WaitDialog" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "Počkejte chvíli" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 msgid "SQL files" msgstr "SQL soubory" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "Opravdu chcete přepsat soubor '{0}'?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 msgid "No databases found!" msgstr "Žádné databáze nebyly nenalezeny!" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 #, fuzzy msgid "Trying to connect to database ..." msgstr "Nepodařilo se spojit s databází '{0}'" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "Text" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 msgid "Use custom connection string" msgstr "Použít vlastní řetězec spojení k databázi" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 msgid "Min Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 msgid "Max Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 msgid "Advanced" msgstr "Pokročilé" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 msgid "Save Password" msgstr "Uložit heslo" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "Jméno" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "Heslo" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "Port" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "Server" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "Uživatel" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 msgid "Event" msgstr "Událost" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "Všechny řádky" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 msgid "Position" msgstr "Pozice" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 msgid "Active" msgstr "Aktivní" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 msgid "Comment" msgstr "Komentář" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 msgid "Are you sure you want to remove trigger '{0}'?" msgstr "Opravdu chcete odebrat událost '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "Událost '{0}' neobsahuje výraz události." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "Výrok" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "PK" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "Délka" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 msgid "Nullable" msgstr "Nullable" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 msgid "Are you sure you want to remove column '{0}'" msgstr "Opravdu chcete odebrat sloupec '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "Neznámý datový typ '{0}' aplikovaný na sloupec '{1}'." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "Tabulka '{0}' musí obsahovat alespoň jeden primární klíč." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "Tabulka '{0}' musí obsahovat alespoň jeden sloupec." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "Primární klíč" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "Cizí klíč" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 msgid "Check" msgstr "Zkontrolovat" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 msgid "Unique" msgstr "Unikátní" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 msgid "No name specified." msgstr "Jméno nespecifikováno." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 msgid "Edit Table" msgstr "Upravit tabulku" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "SQL náhled" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "Přidat spojení" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 msgid "Definition" msgstr "Definice" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 msgid "Preview" msgstr "Náhled" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 msgid "Reference Table" msgstr "Referenční tabulka" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 msgid "Column Constraint" msgstr "Sloupec omezení" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 msgid "Delete Action" msgstr "Smazat akci" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 msgid "Update Action" msgstr "Aktualizovat akci" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 msgid "Are you sure you want to remove constraint '{0}'?" msgstr "Opravdu chcete odebrat omezení '{0}'?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" "Omezení unikátního klíče '{0}' musí být aplikováno na jeden či více sloupců. " #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 msgid "Reference Columns" msgstr "Sloupce reference" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "Omezení kontroly '{0}' neobsahuje výrok kontroly." #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" "Omezení kontroly '{0}' je označeno jako omezení sloupce, ale není aplikováno " "na žádný sloupec." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 msgid "Check Condition" msgstr "Zkontrolovat stav" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" "Omezení primárního klíče '{0}' musí být aplikováno na jeden či více sloupců. " #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "Vytvořit databázi" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "Základní" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "Přejme_novat" #~ msgid "Remove Connection" #~ msgstr "Odebrat spojení" #~ msgid "Property Type" #~ msgstr "Typ vlastnosti" #~ msgid "Ctor Parameter" #~ msgstr "Parametr konstruktoru" #~ msgid "Overwrite?" #~ msgstr "Přepsat?" #~ msgid "Display content as text" #~ msgstr "Zobrazit obsah jako text" #~ msgid "Display content as xml text" #~ msgstr "Zobrazit obsah jako xml text" #~ msgid "Display content as xml tree" #~ msgstr "Zobrazit obsah jako xml strom" #~ msgid "Display content as image" #~ msgstr "Zobrazit obsah jako obrázek " #~ msgid "Remove Trigger" #~ msgstr "Odebrat událost" #~ msgid "Remove Column" #~ msgstr "Odebrat sloupec" #~ msgid "Base Settings" #~ msgstr "Základní nastavení" #~ msgid "Remove Constraint" #~ msgstr "Odebrat omezení" monodevelop-database-4.0.12/po/gl.po0000644000175000017500000010076711266446160020010 0ustar directhexdirecthex# translation of gl.po to Galego # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Ignacio Casal Quinteiro , 2007. # Ignacio Casal Quinteiro , 2007. # Ignacio Casal Quinteiro , 2007. msgid "" msgstr "" "Project-Id-Version: gl\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2007-12-01 22:23+0100\n" "Last-Translator: Ignacio Casal Quinteiro \n" "Language-Team: Galego \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: KBabel 1.11.4\n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "Imposible cargar a información da conexión SQL almacenada." #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "Introduza o contrasinal para a conexión '{0}'" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 msgid "Enter Password" msgstr "Introducir contrasinal" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 #, fuzzy msgid "Query Database" msgstr "Base de datos" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 msgid "_Database" msgstr "Base de _datos" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Executar" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 msgid "Clear Results" msgstr "Limpar resultados" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "Estado" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "Imposible conectar á base de datos '{0}'" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Táboa" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "Filas afectadas" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 msgid "No Results" msgstr "Sen resultados" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 #, fuzzy msgid "Executing query" msgstr "Executando consulta sql en" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 #, fuzzy msgid "Query execute cancelled" msgstr "Execución de probas cancelada." #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 #, fuzzy msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Execución de probas cancelada." msgstr[1] "Execución de probas cancelada." #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "Gardar base de datos" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "Crear un cartafol novo" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "Bases de datos SQLite" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "Base de datos" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "Bases de datos SQLite" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 msgid "Open Database" msgstr "Abrir base de datos" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "Bases de datos SQLite" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 msgid "All files" msgstr "Todos os ficheiros" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "Crear base de datos" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "Bases de datos SQLite" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Conexións de base de datos" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "Imposible conectar:" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 msgid "Are you sure you want to remove connection '{0}'?" msgstr "Está seguro de que quere eliminar a conexión '{0}'?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Eliminar táboa" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 msgid "Are you sure you want to drop database '{0}'" msgstr "Está seguro de que quere eliminar a base de datos '{0}'" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Táboas" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Vistas" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Procedementos" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Usuarios" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Restricións" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 msgid "Empty Table" msgstr "Táboa baleira" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 msgid "Are you sure you want to empty table '{0}'" msgstr "Está seguro de que quere eliminar a táboa baleira '{0}'" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Táboa baleirada" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 msgid "Are you sure you want to drop table '{0}'" msgstr "Está seguro de que quere borrar a táboa '{0}'" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 msgid "Are you sure you want to drop user '{0}'" msgstr "Está seguro de que quere borrar o usuario '{0}'" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 msgid "Are you sure you want to drop procedure '{0}'" msgstr "Está seguro de que quere eliminar o procedemento '{0}'" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 msgid "Are you sure you want to drop view '{0}'" msgstr "Está seguro de que quere borrar o visor '{0}'" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Columna" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Columnas" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Restrición" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Conxuntos" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Grupos" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Linguas" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "Operadores" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Roles" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Regras" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Secuencias" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Disparadores" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Tipos" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Parámetros" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "Parámetro" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Examinador da base de datos" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Mostrar obxectos de sistema" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Base de datos" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "Examinador da base de datos" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 msgid "Edit Connection" msgstr "Editar conexión" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Eliminar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Actualizar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 msgid "Connect" msgstr "Conectar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Desconectar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 msgid "Select *" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 #, fuzzy msgid "Query" msgstr "Entrada de menú" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 msgid "Create Table" msgstr "Crear táboa" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 msgid "Create View" msgstr "Crear visor" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 msgid "Create Procedure" msgstr "Crear procedemento" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 #, fuzzy msgid "Create Constraint" msgstr "Restrición" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 #, fuzzy msgid "Create Trigger" msgstr "Crear paquete" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 msgid "Create User" msgstr "Crear usuario" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 msgid "Alter Database" msgstr "Alterar base de datos" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 #, fuzzy msgid "Alter Table" msgstr "Despois de limpar" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 #, fuzzy msgid "Alter Procedure" msgstr "Procedemento" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 #, fuzzy msgid "Alter Constraint" msgstr "Restrición" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 #, fuzzy msgid "Alter Trigger" msgstr "Disparadores" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 #, fuzzy msgid "Drop Database" msgstr "Eliminar táboa" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 #, fuzzy msgid "Drop Table" msgstr "Eliminar táboa" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 #, fuzzy msgid "Drop View" msgstr "Eliminar táboa" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 #, fuzzy msgid "Drop Procedure" msgstr "Procedemento" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 #, fuzzy msgid "Drop Trigger" msgstr "Disparadores" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 #, fuzzy msgid "Drop Constraint" msgstr "Restrición" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 #, fuzzy msgid "Drop User" msgstr "Eliminar táboa" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "Mostrar obxectos de sistema" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 msgid "Add Database Connection" msgstr "Engadir conexión da base de datos" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 msgid "Create Database" msgstr "Crear base de datos" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 msgid "Import From File" msgstr "Importar de ficheiro" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 msgid "Export To File" msgstr "Exportar a ficheiro" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 msgid "Select Column" msgstr "Seleccionar columna" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "Seleccionar todo" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 msgid "Deselect All" msgstr "Deseleccionar todo" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Nome" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "Tipo" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Tipo" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 msgid "Property Name" msgstr "Nome da propiedade" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "Servidor" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "de" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "Y" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "N" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 msgid "Image" msgstr "Imaxe" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "Imposible cargar obxecto como imaxe" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Texto" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "button462" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 msgid "Edit Database Connection" msgstr "Editar conexión da base de datos" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "Por favor espere" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 #, fuzzy msgid "WaitDialog" msgstr "Diálogo" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "Por favor espere" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 msgid "SQL files" msgstr "Ficheiros SQL" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "Está seguro de que quere substituír o ficheiro '{0}'?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 msgid "No databases found!" msgstr "Non se encontraron bases de datos!" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 #, fuzzy msgid "Trying to connect to database ..." msgstr "Imposible conectar á base de datos '{0}'" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "Texto" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 msgid "Use custom connection string" msgstr "Usar cadea de conexión personalizada" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 msgid "Min Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 msgid "Max Pool Size:" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 msgid "Advanced" msgstr "Avanzado" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 msgid "Save Password" msgstr "Gardar contrasinal" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "Nome" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "Contrasinal" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "Porto" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "Servidor" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "Nome de usuario" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 msgid "Event" msgstr "Evento" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "Cada fila" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 msgid "Position" msgstr "Posición" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 msgid "Active" msgstr "Activo" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 msgid "Comment" msgstr "Comentario" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 msgid "Are you sure you want to remove trigger '{0}'?" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "Lonxitude" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 #, fuzzy msgid "Nullable" msgstr "Táboa" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 msgid "Are you sure you want to remove column '{0}'" msgstr "Está seguro de que quere eliminar a columna '{0}'" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "A táboa '{0}' debe conter alomenos unha chave primaria." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "A táboa '{0}' debe conter alomenos 1 columna." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "Chave primaria" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 msgid "Check" msgstr "Comprobar" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 #, fuzzy msgid "Unique" msgstr "Unicode" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 msgid "No name specified." msgstr "Ningún nome especificado." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 msgid "Edit Table" msgstr "Editar táboa" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "Engadir conexión" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 msgid "Definition" msgstr "Definición" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 msgid "Preview" msgstr "Vista previa" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 #, fuzzy msgid "Reference Table" msgstr "Referencia: " #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 #, fuzzy msgid "Column Constraint" msgstr "Restrición" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 msgid "Delete Action" msgstr "Borrar acción" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 msgid "Update Action" msgstr "Actualizar acción" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 msgid "Are you sure you want to remove constraint '{0}'?" msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 #, fuzzy msgid "Reference Columns" msgstr "Referencias" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 msgid "Check Condition" msgstr "Comprobar condición" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "Crear base de datos" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "Xeral" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "Re_nomear" #~ msgid "Remove Connection" #~ msgstr "Eliminar conexión" #~ msgid "Property Type" #~ msgstr "Tipo de propiedade" #, fuzzy #~ msgid "Ctor Parameter" #~ msgstr "Parámetro" #~ msgid "Overwrite?" #~ msgstr "Substituír?" #~ msgid "Display content as text" #~ msgstr "Mostrar o contido como texto" #~ msgid "Display content as xml text" #~ msgstr "Mostrar o contido como texto xml" #~ msgid "Display content as xml tree" #~ msgstr "Mostrar o contido como árbore xml" #~ msgid "Display content as image" #~ msgstr "Mostrar o contido como imaxe" #, fuzzy #~ msgid "Remove Trigger" #~ msgstr "Disparadores" #~ msgid "Remove Column" #~ msgstr "Eliminar columna" #, fuzzy #~ msgid "Base Settings" #~ msgstr "Configuración do paquete" #, fuzzy #~ msgid "Remove Constraint" #~ msgstr "Eliminar conexión" monodevelop-database-4.0.12/po/nl.po0000644000175000017500000010066611266446160020015 0ustar directhexdirecthexmsgid "" msgstr "" "Project-Id-Version: \n" "POT-Creation-Date: 2009-03-04 18:11:47-0500\n" "PO-Revision-Date: 2008-01-22 18:55:02+0100\n" "Last-Translator: André Offringa\n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: MonoDevelop.Gettext \n" #: ../MonoDevelop.Database.Sql/ConnectionContextService.cs:112 msgid "Unable to load stored SQL connection information." msgstr "Kon opgeslagen informatie van SQL-verbinding niet inladen." #: ../MonoDevelop.Database.Sql/QueryService.cs:75 msgid "Please enter the password for connection '{0}'" msgstr "Voer het wachtwoord voor verbinding '{0}' in" #: ../MonoDevelop.Database.Sql/QueryService.cs:77 msgid "Enter Password" msgstr "Voer wachtwoord in" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:31 msgid "Query Database" msgstr "Query database" #: ../MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml:37 msgid "_Database" msgstr "_Database" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:77 msgid "Execute" msgstr "Uitvoeren" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:80 msgid "Clear Results" msgstr "Wis resultaten" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:110 msgid "Status" msgstr "Status" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:170 #: ../MonoDevelop.Database.CodeGenerator/Dialogs/GenerateDataClassesDialog.cs:95 msgid "Unable to connect to database '{0}'" msgstr "Kon niet verbinden met database '{0}'" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:192 msgid "Query duration: {0}" msgstr "" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:209 #: ../MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs:71 msgid "Table" msgstr "Tabel" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:210 msgid "Affected Rows" msgstr "Beïnvloede regels" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:223 msgid "No Results" msgstr "Geen resultaten" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:241 msgid "Executing query" msgstr "Uitvoeren query" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:255 msgid "Query execute cancelled" msgstr "Uitvoeren van query geannuleerd" #: ../MonoDevelop.Database.Query/SqlQueryView.cs:189 msgid "Query executed ({0} result table)" msgid_plural "Query executed ({0} result tables)" msgstr[0] "Query uitgevoerd ({0} resultaattabel)" msgstr[1] "Query uitgevoerd ({0} resultaattabellen)" #: ../MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs:45 #, fuzzy msgid "MySql database" msgstr "Database opslaan" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:60 #, fuzzy msgid "Character Set:" msgstr "Setter aanmaken" #: ../MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs:69 #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:71 msgid "Collation:" msgstr "" #: ../MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs:44 #, fuzzy msgid "SQL Server database" msgstr "SQLite-databases" #: ../MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs:62 #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:337 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:74 #, fuzzy msgid "Database:" msgstr "Database" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs:235 msgid "Database '{0}' already exists." msgstr "" #: ../MonoDevelop.Database.Sql.Sqlite/SqliteDbFactory.cs:45 #, fuzzy msgid "SQLite database" msgstr "SQLite-databases" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:60 msgid "Open Database" msgstr "Database opvragen" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:72 msgid "SQLite databases" msgstr "SQLite-databases" #: ../MonoDevelop.Database.Sql.Sqlite/Widgets/SqliteConnectionSettingsWidget.cs:75 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:108 msgid "All files" msgstr "Alle bestanden" #: ../MonoDevelop.Database.Sql.Oracle/OracleDbFactory.cs:41 #, fuzzy msgid "Oracle database" msgstr "Database aanmaken" #: ../MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs:44 #, fuzzy msgid "PostgreSQL database" msgstr "SQLite-databases" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextCollectionNodeBuilder.cs:72 msgid "Database Connections" msgstr "Databaseverbindingen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:88 msgid "Unable to connect:" msgstr "Kan niet verbinden:" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:168 msgid "Are you sure you want to remove connection '{0}'?" msgstr "Weet u zeker dat u verbinding '{0}' wilt verwijderen?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:246 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:278 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:169 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:187 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:188 #, fuzzy msgid "Drop" msgstr "Weergave weggooien" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConnectionContextNodeBuilder.cs:248 msgid "Are you sure you want to drop database '{0}'" msgstr "Weet u zeker dat u database '{0}' wilt weggooien?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:67 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs:72 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:117 msgid "Tables" msgstr "Tabellen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewsNodeBuilder.cs:71 msgid "Views" msgstr "Weergaves" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProceduresNodeBuilder.cs:71 msgid "Procedures" msgstr "Procedures" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:66 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UsersNodeBuilder.cs:71 msgid "Users" msgstr "Gebruikers" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:86 msgid "Constraints" msgstr "Constraints" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:251 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:199 msgid "Empty Table" msgstr "Lege tabel" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:253 msgid "Are you sure you want to empty table '{0}'" msgstr "Weet u zeker dat u tabel '{0}' wilt leegmaken?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:270 msgid "Table emptied" msgstr "Tabel leeggemaakt" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TableNodeBuilder.cs:280 msgid "Are you sure you want to drop table '{0}'" msgstr "Weet u zeker dat u tabel '{0}' wilt weggooien?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/UserNodeBuilder.cs:171 msgid "Are you sure you want to drop user '{0}'" msgstr "Weet u zeker dat u gebruiker '{0}' wilt weggooien?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilder.cs:189 msgid "Are you sure you want to drop procedure '{0}'" msgstr "Weet u zeker dat u procedure '{0}' wilt weggooien?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ViewNodeBuilder.cs:190 msgid "Are you sure you want to drop view '{0}'" msgstr "Weet u zeker dat u weergave '{0}' wilt weggooien?" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnNodeBuilder.cs:57 #: ../MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs:71 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:82 msgid "Column" msgstr "Kolom" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ColumnsNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:81 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:134 msgid "Columns" msgstr "Kolommen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ConstraintNodeBuilder.cs:57 msgid "Constraint" msgstr "Constraint" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/AggregatesNodeBuilder.cs:69 msgid "Aggregates" msgstr "Aggregeert" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/GroupsNodeBuilder.cs:69 msgid "Groups" msgstr "Groepen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/LanguagesNodeBuilder.cs:69 msgid "Languages" msgstr "Talen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/OperatorsNodeBuilder.cs:69 msgid "Operators" msgstr "Operatoren" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RolesNodeBuilder.cs:69 msgid "Roles" msgstr "Rollen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/RulesNodeBuilder.cs:69 msgid "Rules" msgstr "Regels" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/SequencesNodeBuilder.cs:69 msgid "Sequences" msgstr "Sequenties" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TriggersNodeBuilder.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:96 msgid "Triggers" msgstr "Triggers" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/TypesNodeBuilder.cs:69 msgid "Types" msgstr "Typen" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:64 #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParametersNodeBuilder.cs:69 msgid "Parameters" msgstr "Parameters" #: ../MonoDevelop.Database.ConnectionManager/NodeBuilders/ParameterNodeBuilder.cs:57 msgid "Parameter" msgstr "Parameter" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:27 msgid "Database Browser" msgstr "Database browser" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:28 msgid "Show System Objects" msgstr "Systeemobjecten weergeven" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:171 #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:42 msgid "Database" msgstr "Database" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:176 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:212 #, fuzzy msgid "Database Provider List" msgstr "Database browser" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:178 msgid "Edit Connection" msgstr "Wijzig verbinding" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:181 msgid "Remove" msgstr "Verwijder" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:184 msgid "Refresh" msgstr "Ververs" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:187 msgid "Connect" msgstr "Verbind" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:190 msgid "Disconnect" msgstr "Verbinding verbreken" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:193 msgid "Select *" msgstr "Select *" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:196 msgid "Select x,y,..." msgstr "Select x,y,..." #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:202 msgid "Query" msgstr "Query" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:214 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:70 msgid "Create Table" msgstr "Tabel aanmaken" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:217 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:61 msgid "Create View" msgstr "View aanmaken" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:220 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:63 msgid "Create Procedure" msgstr "Procedure aanmaken" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:223 msgid "Create Constraint" msgstr "Constraint aanmaken" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:226 msgid "Create Trigger" msgstr "Trigger aanmaken" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:229 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:62 msgid "Create User" msgstr "Gebruiker aanmaken" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:233 msgid "Alter Database" msgstr "Database aanpassen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:236 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:72 msgid "Alter Table" msgstr "Tabel aanpassen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:239 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:63 msgid "Alter View" msgstr "Weergave aanpassen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:242 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:65 msgid "Alter Procedure" msgstr "Procedure aanpassen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:245 msgid "Alter Constraint" msgstr "Constraint aanpassen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:248 msgid "Alter Trigger" msgstr "Trigger aanpassen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:251 #: ../MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs:64 msgid "Alter User" msgstr "Gebruiker aanpassen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:255 msgid "Drop Database" msgstr "Database weggooien" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:258 msgid "Drop Table" msgstr "Tabel weggooien" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:261 msgid "Drop View" msgstr "Weergave weggooien" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:264 msgid "Drop Procedure" msgstr "Procedure weggooien" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:267 msgid "Drop Trigger" msgstr "Trigger weggooien" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:270 msgid "Drop Constraint" msgstr "Constraint weggooien" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:273 msgid "Drop User" msgstr "Gebruiker weggooien" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:278 #, fuzzy msgid "Toggle System Objects" msgstr "Systeemobjecten weergeven" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:284 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:396 #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:50 msgid "Add Database Connection" msgstr "Databaseverbinding toevoegen" #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:287 #: ../MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.addin.xml:399 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:29 msgid "Create Database" msgstr "Database aanmaken" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:46 msgid "Visualize Data As" msgstr "" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:49 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:95 msgid "Import From File" msgstr "Van bestand importeren" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:52 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:126 msgid "Export To File" msgstr "Exporteer naar bestand" #: ../MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xml:59 msgid "Visualize Data" msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:31 msgid "Select Column" msgstr "Selecteer kolom" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:55 msgid "Select All" msgstr "Selecteer alle" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs:65 msgid "Deselect All" msgstr "Alles deselecteren" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:55 #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:54 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:95 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:90 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:61 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs:56 #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs:50 #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:106 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:81 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:75 msgid "Name" msgstr "Naam" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:65 #, fuzzy msgid "Db Type" msgstr "Type" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:70 #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:96 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:91 msgid "Type" msgstr "Type" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:75 msgid "Field Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:82 msgid "Property Name" msgstr "Property naam" #: ../MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs:89 #, fuzzy msgid "Setter" msgstr "Server" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.cs:103 msgid "of" msgstr "of" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "Y" msgstr "Y" #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.cs:43 msgid "N" msgstr "N" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:31 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.cs:61 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.cs:59 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:37 msgid "Image" msgstr "Afbeelding" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs:73 msgid "Unable to load object as Image" msgstr "Kon object niet als afbeelding inladen" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:23 #: ../MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.cs:59 msgid "Text" msgstr "Tekst" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs:49 msgid "button462" msgstr "button462" #: ../MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.cs:48 msgid "Edit Database Connection" msgstr "Bewerk databaseverbinding" #: ../MonoDevelop.Database.Components/Dialogs/WaitDialog.cs:57 msgid "Please Wait" msgstr "Even wachten a.u.b." #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:29 msgid "WaitDialog" msgstr "WachtDialoog" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs:63 msgid "Please wait" msgstr "Even wachten a.u.b." #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:105 #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:137 msgid "SQL files" msgstr "SQL-bestanden" #: ../MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs:143 msgid "Are you sure you want to overwrite the file '{0}'?" msgstr "Weet u zeker dat u het bestand '{0}' wilt overschrijven?" #: ../MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs:64 msgid "Class Name" msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:241 #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:316 msgid "No databases found!" msgstr "Geen databases gevonden!" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:337 #, fuzzy msgid "Trying to connect to database ..." msgstr "Kon niet verbinden met database '{0}'" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:372 msgid "Test Succeeded." msgstr "" #: ../MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs:374 msgid "Test Failed: {0}." msgstr "" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:102 #, fuzzy msgid "Test" msgstr "Tekst" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:169 msgid "Use custom connection string" msgstr "Gebruik alternatieve connectiestring" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:182 #, fuzzy msgid "Min Pool Size:" msgstr "Min pool-grootte" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:191 #, fuzzy msgid "Max Pool Size:" msgstr "Max pool-grootte" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:248 msgid "Advanced" msgstr "Uitgebreid" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:317 msgid "Save Password" msgstr "Wachtwoord opslaan" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:348 #, fuzzy msgid "Name:" msgstr "Naam" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:357 #, fuzzy msgid "Password:" msgstr "Wachtwoord" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:368 #, fuzzy msgid "Port:" msgstr "Poort" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:379 #, fuzzy msgid "Server:" msgstr "Server" #: ../MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs:403 #, fuzzy msgid "Username:" msgstr "Gebruikersnaam" #: ../MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs:48 msgid "No database providers detected." msgstr "" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:97 msgid "Event" msgstr "Gebeurtenis" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:98 msgid "Each Row" msgstr "Elke regel" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:99 msgid "Position" msgstr "Positie" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:100 msgid "Active" msgstr "Actief" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:101 #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:94 #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:101 #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:73 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:75 msgid "Comment" msgstr "Commentaar" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:187 msgid "Are you sure you want to remove trigger '{0}'?" msgstr "Weet u zeker dat u trigger '{0}' wilt verwijderen?" #: ../MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs:343 msgid "Trigger '{0}' does not contain a trigger statement." msgstr "Trigger '{0}' bevat geen trigger statement." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs:119 msgid "Statement" msgstr "Statement" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:89 msgid "PK" msgstr "PK" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:92 msgid "Length" msgstr "Lengte" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:93 msgid "Nullable" msgstr "Nullable" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:225 msgid "Are you sure you want to remove column '{0}'" msgstr "Weet u zeker dat u kolom '{0}' wilt verwijderen?" #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:389 msgid "Unknown data type '{0}' applied to column '{1}'." msgstr "Onbekend datatype '{0}' toegepast op kolom '{1}'." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:401 msgid "Table '{0}' must contain at least one primary key." msgstr "Tabel '{0}' moet op zijn minst één primaire sleutel bevatten." #: ../MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs:408 msgid "Table '{0}' must contain at least 1 column." msgstr "Tabel '{0}' moet op zijn minst één kolom bevatten." #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:71 msgid "Primary Key" msgstr "Primaire sleutel" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:77 msgid "Foreign Key" msgstr "Oneigen sleutel" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:83 msgid "Check" msgstr "Controleer" #: ../MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs:89 msgid "Unique" msgstr "Uniek" #: ../MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs:231 msgid "No name specified." msgstr "Geen naam opgegeven." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:39 msgid "Edit Table" msgstr "Wijzig tabel" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs:111 msgid "Preview SQL" msgstr "SQL voorbeeld" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs:53 #, fuzzy msgid "Connection" msgstr "Verbinding toevoegen" #: ../MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs:69 #: ../MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs:71 msgid "Definition" msgstr "Definitie" #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs:27 msgid "Preview" msgstr "Voorbeeld" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:107 msgid "Reference Table" msgstr "Referentie tabel" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:108 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:83 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:76 msgid "Column Constraint" msgstr "Kolom constraint" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:109 msgid "Delete Action" msgstr "Verwijder actie" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:110 msgid "Update Action" msgstr "Actie bijwerken" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:201 #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:158 #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:176 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:195 msgid "Are you sure you want to remove constraint '{0}'?" msgstr "Weet u zeker dat u constraint '{0}' wilt verwijderen?" #: ../MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs:356 #: ../MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs:235 msgid "Unique Key constraint '{0}' must be applied to one or more columns." msgstr "" "Unieke sleutelconstraint '{0}' moet op één of meer kolommen worden toegepast." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs:159 msgid "Reference Columns" msgstr "Referentie kolommen" #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:255 msgid "Checked constraint '{0}' does not contain a check statement." msgstr "Gecontroleerde constraint '{0}' bevat geen controle statement." #: ../MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs:260 msgid "" "Checked constraint '{0}' is marked as a column constraint but is not applied " "to a column." msgstr "" "Gecontroleerde constraint '{0}' is gemarkeerd als een kolomconstraint maar " "wordt niet toegepast op een kolom." #: ../MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs:118 msgid "Check Condition" msgstr "Controleer conditie" #: ../MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs:200 msgid "Primary Key constraint '{0}' must be applied to one or more columns." msgstr "" "Pimaire sleutel-constraint '{0}' moet worden toegepast op één of meerdere " "kolommen." #: ../MonoDevelop.Database.CodeGenerator/MonoDevelop.Database.CodeGenerator.addin.xml:28 #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:41 #, fuzzy msgid "Generate Data Classes" msgstr "Database aanmaken" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:65 msgid "Location:" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:85 msgid "General" msgstr "Algemeen" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:96 msgid "Fields & Properties" msgstr "" #: ../MonoDevelop.Database.CodeGenerator/gtk-gui/MonoDevelop.Database.CodeGenerator.GenerateDataClassesDialog.cs:106 msgid "Classes" msgstr "" #~ msgid "Re_name" #~ msgstr "Her_noem" #~ msgid "Remove Connection" #~ msgstr "Verwijder verbinding" #~ msgid "Property Type" #~ msgstr "Property type" #~ msgid "Ctor Parameter" #~ msgstr "Ctor parameter" #~ msgid "Overwrite?" #~ msgstr "Overschrijven?" #~ msgid "Display content as text" #~ msgstr "Inhoud weergeven als tekst" #~ msgid "Display content as xml text" #~ msgstr "Inhoud weergevan als xml-tekst" #~ msgid "Display content as xml tree" #~ msgstr "Inhoud weergeven als xml-boom" #~ msgid "Display content as image" #~ msgstr "Inhoud weergeven als afbeelding" #~ msgid "Remove Trigger" #~ msgstr "Verwijder trigger" #~ msgid "Remove Column" #~ msgstr "Verwijder kolom" #~ msgid "Base Settings" #~ msgstr "Basis instellingen" #~ msgid "Remove Constraint" #~ msgstr "Verwijder constraint" monodevelop-database-4.0.12/Makefile.in0000644000175000017500000006652111266446160020474 0ustar directhexdirecthex# Makefile.in generated by automake 1.12.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2012 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/monodevelop-database.pc.in \ $(srcdir)/monodevelop-database.spec.in $(top_srcdir)/configure \ AUTHORS COPYING ChangeLog INSTALL NEWS install-sh missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = monodevelop-database.pc monodevelop-database.spec CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(pkgconfigdir)" DATA = $(pkgconfig_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ cscope distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ASSEMBLY_VERSION = @ASSEMBLY_VERSION@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CSC = @CSC@ CSC_FLAGS = @CSC_FLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ GLIB_SHARP_CFLAGS = @GLIB_SHARP_CFLAGS@ GLIB_SHARP_LIBS = @GLIB_SHARP_LIBS@ GTK_SHARP_CFLAGS = @GTK_SHARP_CFLAGS@ GTK_SHARP_LIBS = @GTK_SHARP_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD_LIBRARY_PATH = @LD_LIBRARY_PATH@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_PREFIX = @LIB_PREFIX@ LIB_SUFFIX = @LIB_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MCS = @MCS@ MD_ADDIN_DIR = @MD_ADDIN_DIR@ MD_ASSEMBLY_DIR = @MD_ASSEMBLY_DIR@ MD_DIR = @MD_DIR@ MKDIR_P = @MKDIR_P@ MONO = @MONO@ MONODEVELOP_CFLAGS = @MONODEVELOP_CFLAGS@ MONODEVELOP_CORE_ADDINS_CFLAGS = @MONODEVELOP_CORE_ADDINS_CFLAGS@ MONODEVELOP_CORE_ADDINS_LIBS = @MONODEVELOP_CORE_ADDINS_LIBS@ MONODEVELOP_LIBS = @MONODEVELOP_LIBS@ MONO_ADDINS_CFLAGS = @MONO_ADDINS_CFLAGS@ MONO_ADDINS_GUI_CFLAGS = @MONO_ADDINS_GUI_CFLAGS@ MONO_ADDINS_GUI_LIBS = @MONO_ADDINS_GUI_LIBS@ MONO_ADDINS_LIBS = @MONO_ADDINS_LIBS@ MONO_ADDINS_SETUP_CFLAGS = @MONO_ADDINS_SETUP_CFLAGS@ MONO_ADDINS_SETUP_LIBS = @MONO_ADDINS_SETUP_LIBS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH = @PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RUNTIME = @RUNTIME@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ UNMANAGED_DEPENDENCIES_MONO_CFLAGS = @UNMANAGED_DEPENDENCIES_MONO_CFLAGS@ UNMANAGED_DEPENDENCIES_MONO_LIBS = @UNMANAGED_DEPENDENCIES_MONO_LIBS@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gtksharp_prefix = @gtksharp_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = \ MonoDevelop.Database.Sql \ MonoDevelop.Database.Components \ MonoDevelop.Database.Designer \ MonoDevelop.Database.Sql.MySql \ MonoDevelop.Database.Sql.Npgsql \ MonoDevelop.Database.Sql.Sqlite \ MonoDevelop.Database.Sql.SqlServer \ MonoDevelop.Database.Query \ MonoDevelop.Database.CodeGenerator \ MonoDevelop.Database.ConnectionManager \ po pkgconfig_in_files = monodevelop-database.pc.in pkgconfigdir = $(prefix)/lib/pkgconfig pkgconfig_DATA = $(pkgconfig_in_files:.pc.in=.pc) PACKAGES = ### SYNCH BLOCK: any changes to this line should be kept in sync with the corresponding block in Makefile.am MD_PKG_CONFIG_PATH = $(gtksharp_prefix)/lib/pkgconfig/:/usr/lib/pkgconfig/:/usr/local/lib/pkgconfig/:/usr/share/pkgconfig/:/usr/local/share/pkgconfig/$(shell if test -d /usr/lib64; then echo ":/usr/lib64/pkgconfig/:/usr/local/lib64/pkgconfig/"; fi) ### END BLOCK # we can't use the variables that are conditionally defined EXTRA_DIST = $(pkgconfig_in_files) DISTCLEANFILES = $(pkgconfig_DATA) all: all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): monodevelop-database.pc: $(top_builddir)/config.status $(srcdir)/monodevelop-database.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ monodevelop-database.spec: $(top_builddir)/config.status $(srcdir)/monodevelop-database.spec.in cd $(top_builddir) && $(SHELL) ./config.status $@ install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ done uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done cscopelist-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist-recursive cscopelist cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(DATA) installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(pkgconfigdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-pkgconfigDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-pkgconfigDATA .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) \ cscopelist-recursive ctags-recursive install-am install-strip \ tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-cscope \ clean-generic cscope cscopelist cscopelist-recursive ctags \ ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-lzip \ dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \ distclean-generic distclean-tags distcleancheck distdir \ distuninstallcheck dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-pkgconfigDATA install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-pkgconfigDATA all: mpacks: $(PACKAGES) test -z "packages" || mkdir -p packages mdtool setup p $(PACKAGES:%=%) -d:packages mdtool setup rb packages # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: monodevelop-database-4.0.12/install-sh0000755000175000017500000003325511266446160020431 0ustar directhexdirecthex#!/bin/sh # install - install a program, script, or datafile scriptversion=2011-11-20.07; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for 'test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: monodevelop-database-4.0.12/MonoDevelop.Database.Components/0000755000175000017500000000000011266446160024473 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Makefile.in0000644000175000017500000004026611266446160026550 0ustar directhexdirecthex# Makefile.in generated by automake 1.12.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2012 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.include ChangeLog subdir = MonoDevelop.Database.Components ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(assemblydir)" DATA = $(assembly_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ASSEMBLY_VERSION = @ASSEMBLY_VERSION@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CSC = @CSC@ CSC_FLAGS = @CSC_FLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ GLIB_SHARP_CFLAGS = @GLIB_SHARP_CFLAGS@ GLIB_SHARP_LIBS = @GLIB_SHARP_LIBS@ GTK_SHARP_CFLAGS = @GTK_SHARP_CFLAGS@ GTK_SHARP_LIBS = @GTK_SHARP_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD_LIBRARY_PATH = @LD_LIBRARY_PATH@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_PREFIX = @LIB_PREFIX@ LIB_SUFFIX = @LIB_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MCS = @MCS@ MD_ADDIN_DIR = @MD_ADDIN_DIR@ MD_ASSEMBLY_DIR = @MD_ASSEMBLY_DIR@ MD_DIR = @MD_DIR@ MKDIR_P = @MKDIR_P@ MONO = @MONO@ MONODEVELOP_CFLAGS = @MONODEVELOP_CFLAGS@ MONODEVELOP_CORE_ADDINS_CFLAGS = @MONODEVELOP_CORE_ADDINS_CFLAGS@ MONODEVELOP_CORE_ADDINS_LIBS = @MONODEVELOP_CORE_ADDINS_LIBS@ MONODEVELOP_LIBS = @MONODEVELOP_LIBS@ MONO_ADDINS_CFLAGS = @MONO_ADDINS_CFLAGS@ MONO_ADDINS_GUI_CFLAGS = @MONO_ADDINS_GUI_CFLAGS@ MONO_ADDINS_GUI_LIBS = @MONO_ADDINS_GUI_LIBS@ MONO_ADDINS_LIBS = @MONO_ADDINS_LIBS@ MONO_ADDINS_SETUP_CFLAGS = @MONO_ADDINS_SETUP_CFLAGS@ MONO_ADDINS_SETUP_LIBS = @MONO_ADDINS_SETUP_LIBS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH = @PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RUNTIME = @RUNTIME@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ UNMANAGED_DEPENDENCIES_MONO_CFLAGS = @UNMANAGED_DEPENDENCIES_MONO_CFLAGS@ UNMANAGED_DEPENDENCIES_MONO_LIBS = @UNMANAGED_DEPENDENCIES_MONO_LIBS@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gtksharp_prefix = @gtksharp_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.Components.dll REFS = \ $(GLIB_SHARP_LIBS) \ $(GTK_SHARP_LIBS) \ $(MONO_ADDINS_LIBS) \ $(MONODEVELOP_CORE_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:Mono.Posix \ -r:System \ -r:System.Data \ -r:System.Xml FILES = \ AssemblyInfo.cs \ Codons/DataGridContentRendererCodon.cs \ Codons/DataGridVisualizerCodon.cs \ Commands/AbstractDatabaseProviderList.cs \ Commands/DataGridCommands.cs \ Commands/SqlEditorCommands.cs \ ComponentHelper.cs \ Containers/ColumnContainer.cs \ Containers/ConditionContainer.cs \ Containers/ParameterContainer.cs \ Containers/SchemaContainers.cs \ Containers/TableContainer.cs \ Dialogs/DatabaseAvailableProvidersDialog.cs \ Dialogs/DatabaseConnectionSettingsDialog.cs \ Dialogs/SelectColumnDialog.cs \ Dialogs/ShowImageDialog.cs \ Dialogs/ShowTextDialog.cs \ Dialogs/WaitDialog.cs \ gtk-gui/generated.cs \ gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs \ gtk-gui/MonoDevelop.Database.Components.DatabaseAvailableProvidersDialog.cs \ gtk-gui/MonoDevelop.Database.Components.DatabaseConnectionEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.cs \ gtk-gui/MonoDevelop.Database.Components.DataGrid.cs \ gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs \ gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs \ gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs \ gtk-gui/MonoDevelop.Database.Components.SqlEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs \ Widgets/CellRendererTypeCombo.cs \ Widgets/ColumnMappingWidget.cs \ Widgets/ConnectionSettingsWidget.cs \ Widgets/DatabaseConnectionContextComboBox.cs \ Widgets/DatabaseConnectionEditorWidget.cs \ Widgets/DataGrid/DataGrid.cs \ Widgets/DataGrid/DataGridColumn.cs \ Widgets/DataGrid/Renderers/BlobContentRenderer.cs \ Widgets/DataGrid/Renderers/BooleanContentRenderer.cs \ Widgets/DataGrid/Renderers/ByteContentRenderer.cs \ Widgets/DataGrid/Renderers/DecimalContentRenderer.cs \ Widgets/DataGrid/Renderers/DoubleContentRenderer.cs \ Widgets/DataGrid/Renderers/FloatContentRenderer.cs \ Widgets/DataGrid/Renderers/IDataGridContentRenderer.cs \ Widgets/DataGrid/Renderers/IntegerContentRenderer.cs \ Widgets/DataGrid/Renderers/LongContentRenderer.cs \ Widgets/DataGrid/Renderers/NullContentRenderer.cs \ Widgets/DataGrid/Renderers/ObjectContentRenderer.cs \ Widgets/DataGrid/Renderers/StringContentRenderer.cs \ Widgets/DataGrid/Views/ImageVisualizerView.cs \ Widgets/DataGrid/Views/TextVisualizerView.cs \ Widgets/DataGrid/Visualizers/DefaultVisualizers.cs \ Widgets/DataGrid/Visualizers/IDataGridVisualizer.cs \ Widgets/ProjectDirectoryComboBox.cs \ Widgets/SelectColumnWidget.cs \ Widgets/SelectSchemaWidget.cs \ Widgets/SelectTableWidget.cs \ Widgets/SortedColumnListStore.cs \ Widgets/SortedTableListStore.cs \ Widgets/SqlEditorWidget.cs \ Widgets/TableMappingWidget.cs RES = \ gtk-gui/gui.stetic \ gtk-gui/objects.xml \ MonoDevelop.Database.Components.addin.xml \ SqlSyntaxMode.xml assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb EXTRA_DIST = $(FILES) $(RES) build_sources = $(addprefix $(srcdir)/, $(FILES)) $(GENERATED_FILES) build_resources = $(addprefix $(srcdir)/, $(RES)) build_test_sources = $(addprefix $(srcdir)/, $(TESTFILES)) $(GENERATED_FILES) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.include $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu MonoDevelop.Database.Components/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu MonoDevelop.Database.Components/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_srcdir)/Makefile.include: $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-assemblyDATA: $(assembly_DATA) @$(NORMAL_INSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(assemblydir)'"; \ $(MKDIR_P) "$(DESTDIR)$(assemblydir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(assemblydir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(assemblydir)" || exit $$?; \ done uninstall-assemblyDATA: @$(NORMAL_UNINSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(assemblydir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: ctags: CTAGS CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(assemblydir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-assemblyDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-assemblyDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-assemblyDATA install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am uninstall uninstall-am uninstall-assemblyDATA all: $(ASSEMBLY) $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: monodevelop-database-4.0.12/MonoDevelop.Database.Components/Containers/0000755000175000017500000000000011266446160026600 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Containers/ParameterContainer.cs0000644000175000017500000000406311266446160032715 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic;using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Components { public class ParameterContainer { private ParameterSchema parameter; private string propName; private string propType; public ParameterContainer (ParameterSchema parameter) { if (parameter == null) throw new ArgumentNullException ("parameter"); this.parameter = parameter; } public ParameterSchema ParameterSchema { get { return parameter; } } public string PropertyName { get { return propName; } set { if (String.IsNullOrEmpty (value)) throw new ArgumentException ("PropertyName"); propName = value; } } public string PropertyType { get { return propType; } set { if (String.IsNullOrEmpty (value)) throw new ArgumentException ("PropertyType"); propType = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Containers/TableContainer.cs0000644000175000017500000000344311266446160032025 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Components { public class TableContainer { private TableSchema table; private string className; public TableContainer (TableSchema table) { if (table == null) throw new ArgumentNullException ("table"); this.table = table; } public TableSchema TableSchema { get { return table; } } public string ClassName { get { return className; } set { if (String.IsNullOrEmpty (value)) throw new ArgumentException ("ClassName"); className = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Containers/ColumnContainer.cs0000644000175000017500000000471211266446160032233 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Components { public class ColumnContainer { private ColumnSchema column; private string fieldName; private string propName; private string propType; private bool hasSetter; private bool nullable; public ColumnContainer (ColumnSchema column) { if (column == null) throw new ArgumentNullException ("column"); this.column = column; } public ColumnSchema ColumnSchema { get { return column; } } public string FieldName { get { return fieldName; } set { if (String.IsNullOrEmpty (value)) throw new ArgumentException ("FieldName"); fieldName = value; } } public string PropertyName { get { return propName; } set { if (String.IsNullOrEmpty (value)) throw new ArgumentException ("PropertyName"); propName = value; } } public string PropertyType { get { return propType; } set { if (String.IsNullOrEmpty (value)) throw new ArgumentException ("PropertyType"); propType = value; } } public bool HasSetter { get { return hasSetter; } set { hasSetter = value; } } public bool Nullable { get { return nullable; } set { nullable = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Containers/SchemaContainers.cs0000644000175000017500000000652411266446160032364 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic;using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Components { public interface ISchemaContainer { ISchema Schema { get; } ColumnSchemaCollection Columns { get; } ParameterSchemaCollection Parameters { get; } SchemaContainerType SchemaContainerType { get; } } public enum SchemaContainerType { Table, View, Procedure, Query } public class TableSchemaContainer : ISchemaContainer { protected TableSchema schema; public TableSchemaContainer (TableSchema schema) { if (schema == null) throw new ArgumentNullException ("schema"); this.schema = schema; } public ISchema Schema { get { return schema; } } public ColumnSchemaCollection Columns { get { return schema.Columns; } } public ParameterSchemaCollection Parameters { get { return null; } } public SchemaContainerType SchemaContainerType { get { return SchemaContainerType.Table; } } } public class ViewSchemaContainer : ISchemaContainer { protected ViewSchema schema; public ViewSchemaContainer (ViewSchema schema) { if (schema == null) throw new ArgumentNullException ("schema"); this.schema = schema; } public ISchema Schema { get { return schema; } } public ColumnSchemaCollection Columns { get { return schema.Columns; } } public ParameterSchemaCollection Parameters { get { return null; } } public SchemaContainerType SchemaContainerType { get { return SchemaContainerType.View; } } } public class ProcedureSchemaContainer : ISchemaContainer { protected ProcedureSchema schema; public ProcedureSchemaContainer (ProcedureSchema schema) { if (schema == null) throw new ArgumentNullException ("schema"); this.schema = schema; } public ISchema Schema { get { return schema; } } public ParameterSchemaCollection Parameters { get { return schema.Parameters; } } public SchemaContainerType SchemaContainerType { get { return SchemaContainerType.Procedure; } } public ColumnSchemaCollection Columns { get { throw new NotImplementedException (); } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Containers/ConditionContainer.cs0000644000175000017500000000005311266446160032716 0ustar directhexdirecthex // created on 7/8/2007 at 11:13 PM //TODO:monodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/0000755000175000017500000000000011266446160026042 5ustar directhexdirecthex././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.0000644000175000017500000000547411266446160034133 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Components { public partial class DatabaseConnectionSettingsDialog { private global::Gtk.VBox vbox; private global::Gtk.Button buttonCancel; private global::Gtk.Button buttonOk; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog this.Name = "MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog"; this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); this.WindowPosition = ((global::Gtk.WindowPosition)(1)); this.SkipTaskbarHint = true; // Internal child MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.VBox global::Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.vbox = new global::Gtk.VBox (); this.vbox.Name = "vbox"; this.vbox.Spacing = 6; w1.Add (this.vbox); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(w1[this.vbox])); w2.Position = 0; // Internal child MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.ActionArea global::Gtk.HButtonBox w3 = this.ActionArea; w3.Name = "dialog1_ActionArea"; w3.Spacing = 6; w3.BorderWidth = ((uint)(5)); w3.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new global::Gtk.Button (); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget (this.buttonCancel, -6); global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonCancel])); w4.Expand = false; w4.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new global::Gtk.Button (); this.buttonOk.Sensitive = false; this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget (this.buttonOk, -5); global::Gtk.ButtonBox.ButtonBoxChild w5 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonOk])); w5.Position = 1; w5.Expand = false; w5.Fill = false; if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 606; this.DefaultHeight = 355; this.Show (); this.buttonCancel.Clicked += new global::System.EventHandler (this.OnCancelClicked); this.buttonOk.Clicked += new global::System.EventHandler (this.OnOkClicked); } } } ././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.0000644000175000017500000001132211266446160034120 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Components { public partial class SelectColumnDialog { private global::Gtk.HBox hboxContent; private global::Gtk.VButtonBox vbuttonbox1; private global::Gtk.Button buttonSelectAll; private global::Gtk.Button buttonDeselectAll; private global::Gtk.Button buttonCancel; private global::Gtk.Button buttonOk; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Components.SelectColumnDialog this.Name = "MonoDevelop.Database.Components.SelectColumnDialog"; this.Title = global::MonoDevelop.Database.AddinCatalog.GetString ("Select Column"); this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); this.WindowPosition = ((global::Gtk.WindowPosition)(1)); this.DestroyWithParent = true; this.SkipTaskbarHint = true; // Internal child MonoDevelop.Database.Components.SelectColumnDialog.VBox global::Gtk.VBox w1 = this.VBox; w1.Name = "Dialog_Vbox"; w1.BorderWidth = ((uint)(2)); // Container child Dialog_Vbox.Gtk.Box+BoxChild this.hboxContent = new global::Gtk.HBox (); this.hboxContent.Name = "hboxContent"; this.hboxContent.Spacing = 6; // Container child hboxContent.Gtk.Box+BoxChild this.vbuttonbox1 = new global::Gtk.VButtonBox (); this.vbuttonbox1.Name = "vbuttonbox1"; this.vbuttonbox1.Spacing = 6; this.vbuttonbox1.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(3)); // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild this.buttonSelectAll = new global::Gtk.Button (); this.buttonSelectAll.CanFocus = true; this.buttonSelectAll.Name = "buttonSelectAll"; this.buttonSelectAll.UseUnderline = true; this.buttonSelectAll.Label = global::MonoDevelop.Database.AddinCatalog.GetString ("Select All"); this.vbuttonbox1.Add (this.buttonSelectAll); global::Gtk.ButtonBox.ButtonBoxChild w2 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.buttonSelectAll])); w2.Expand = false; w2.Fill = false; // Container child vbuttonbox1.Gtk.ButtonBox+ButtonBoxChild this.buttonDeselectAll = new global::Gtk.Button (); this.buttonDeselectAll.CanFocus = true; this.buttonDeselectAll.Name = "buttonDeselectAll"; this.buttonDeselectAll.UseUnderline = true; this.buttonDeselectAll.Label = global::MonoDevelop.Database.AddinCatalog.GetString ("Deselect All"); this.vbuttonbox1.Add (this.buttonDeselectAll); global::Gtk.ButtonBox.ButtonBoxChild w3 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox1[this.buttonDeselectAll])); w3.Position = 1; w3.Expand = false; w3.Fill = false; this.hboxContent.Add (this.vbuttonbox1); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hboxContent[this.vbuttonbox1])); w4.PackType = ((global::Gtk.PackType)(1)); w4.Position = 1; w4.Expand = false; w4.Fill = false; w1.Add (this.hboxContent); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(w1[this.hboxContent])); w5.Position = 0; // Internal child MonoDevelop.Database.Components.SelectColumnDialog.ActionArea global::Gtk.HButtonBox w6 = this.ActionArea; w6.Name = "GtkDialog_ActionArea"; w6.Spacing = 6; w6.BorderWidth = ((uint)(5)); w6.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child GtkDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new global::Gtk.Button (); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget (this.buttonCancel, -6); global::Gtk.ButtonBox.ButtonBoxChild w7 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonCancel])); w7.Expand = false; w7.Fill = false; // Container child GtkDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new global::Gtk.Button (); this.buttonOk.Sensitive = false; this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget (this.buttonOk, -5); global::Gtk.ButtonBox.ButtonBoxChild w8 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonOk])); w8.Position = 1; w8.Expand = false; w8.Fill = false; if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show (); this.buttonSelectAll.Clicked += new global::System.EventHandler (this.SelectAllClicked); this.buttonDeselectAll.Clicked += new global::System.EventHandler (this.DeselectAllClicked); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/generated.cs0000644000175000017500000000620011266446160030325 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace Stetic { internal class Gui { private static bool initialized; static internal void Initialize (Gtk.Widget iconRenderer) { if ((Stetic.Gui.initialized == false)) { Stetic.Gui.initialized = true; } } } internal class BinContainer { private Gtk.Widget child; private Gtk.UIManager uimanager; public static BinContainer Attach (Gtk.Bin bin) { BinContainer bc = new BinContainer (); bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested); bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated); bin.Added += new Gtk.AddedHandler (bc.OnAdded); return bc; } private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args) { if ((this.child != null)) { args.Requisition = this.child.SizeRequest (); } } private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args) { if ((this.child != null)) { this.child.Allocation = args.Allocation; } } private void OnAdded (object sender, Gtk.AddedArgs args) { this.child = args.Widget; } public void SetUiManager (Gtk.UIManager uim) { this.uimanager = uim; this.child.Realized += new System.EventHandler (this.OnRealized); } private void OnRealized (object sender, System.EventArgs args) { if ((this.uimanager != null)) { Gtk.Widget w; w = this.child.Toplevel; if (((w != null) && typeof(Gtk.Window).IsInstanceOfType (w))) { ((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup); this.uimanager = null; } } } } internal class IconLoader { public static Gdk.Pixbuf LoadIcon (Gtk.Widget widget, string name, Gtk.IconSize size) { Gdk.Pixbuf res = widget.RenderIcon (name, size, null); if ((res != null)) { return res; } else { int sz; int sy; global::Gtk.Icon.SizeLookup (size, out sz, out sy); try { return Gtk.IconTheme.Default.LoadIcon (name, sz, 0); } catch (System.Exception) { if ((name != "gtk-missing-image")) { return Stetic.IconLoader.LoadIcon (widget, "gtk-missing-image", size); } else { Gdk.Pixmap pmap = new Gdk.Pixmap (Gdk.Screen.Default.RootWindow, sz, sz); Gdk.GC gc = new Gdk.GC (pmap); gc.RgbFgColor = new Gdk.Color (255, 255, 255); pmap.DrawRectangle (gc, true, 0, 0, sz, sz); gc.RgbFgColor = new Gdk.Color (0, 0, 0); pmap.DrawRectangle (gc, false, 0, 0, (sz - 1), (sz - 1)); gc.SetLineAttributes (3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round); gc.RgbFgColor = new Gdk.Color (255, 0, 0); pmap.DrawLine (gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4))); pmap.DrawLine (gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4))); return Gdk.Pixbuf.FromDrawable (pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz); } } } } } internal class ActionGroups { public static Gtk.ActionGroup GetActionGroup (System.Type type) { return Stetic.ActionGroups.GetActionGroup (type.FullName); } public static Gtk.ActionGroup GetActionGroup (string name) { return null; } } } ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.0000644000175000017500000000401111266446160034115 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Components { public partial class ShowTextDialog { private global::Gtk.VBox vboxContent; private global::Gtk.Button button462; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Components.ShowTextDialog this.Name = "MonoDevelop.Database.Components.ShowTextDialog"; this.Title = global::MonoDevelop.Database.AddinCatalog.GetString ("Text"); this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); this.WindowPosition = ((global::Gtk.WindowPosition)(1)); this.SkipTaskbarHint = true; // Internal child MonoDevelop.Database.Components.ShowTextDialog.VBox global::Gtk.VBox w1 = this.VBox; w1.Name = "vbox"; w1.BorderWidth = ((uint)(2)); // Container child vbox.Gtk.Box+BoxChild this.vboxContent = new global::Gtk.VBox (); this.vboxContent.Name = "vboxContent"; this.vboxContent.Spacing = 6; this.vboxContent.BorderWidth = ((uint)(6)); w1.Add (this.vboxContent); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(w1[this.vboxContent])); w2.Position = 0; // Internal child MonoDevelop.Database.Components.ShowTextDialog.ActionArea global::Gtk.HButtonBox w3 = this.ActionArea; w3.Name = "GtkDialog_ActionArea"; w3.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child GtkDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.button462 = new global::Gtk.Button (); this.button462.CanFocus = true; this.button462.Name = "button462"; this.button462.UseUnderline = true; this.button462.Label = global::MonoDevelop.Database.AddinCatalog.GetString ("button462"); this.AddActionWidget (this.button462, 0); global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w3[this.button462])); w4.Expand = false; w4.Fill = false; if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.Show (); } } } ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.SqlEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.0000644000175000017500000000160211266446160034120 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Components { public partial class SqlEditorWidget { private global::Gtk.ScrolledWindow scrolledwindow; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Components.SqlEditorWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Components.SqlEditorWidget"; // Container child MonoDevelop.Database.Components.SqlEditorWidget.Gtk.Container+ContainerChild this.scrolledwindow = new global::Gtk.ScrolledWindow (); this.scrolledwindow.CanFocus = true; this.scrolledwindow.Name = "scrolledwindow"; this.scrolledwindow.ShadowType = ((global::Gtk.ShadowType)(1)); this.Add (this.scrolledwindow); if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); } } } ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.0000644000175000017500000000770411266446160034131 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Components { public partial class ShowImageDialog { private global::Gtk.ScrolledWindow scrolledwindow; private global::Gtk.Image image1; private global::Gtk.HBox hboxError; private global::Gtk.Image image; private global::Gtk.Label label; private global::Gtk.Button buttonClose; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Components.ShowImageDialog this.Name = "MonoDevelop.Database.Components.ShowImageDialog"; this.Title = global::MonoDevelop.Database.AddinCatalog.GetString ("Image"); this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); this.WindowPosition = ((global::Gtk.WindowPosition)(1)); this.SkipTaskbarHint = true; // Internal child MonoDevelop.Database.Components.ShowImageDialog.VBox global::Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.scrolledwindow = new global::Gtk.ScrolledWindow (); this.scrolledwindow.CanFocus = true; this.scrolledwindow.Name = "scrolledwindow"; this.scrolledwindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child scrolledwindow.Gtk.Container+ContainerChild global::Gtk.Viewport w2 = new global::Gtk.Viewport (); w2.ShadowType = ((global::Gtk.ShadowType)(0)); // Container child GtkViewport.Gtk.Container+ContainerChild this.image1 = new global::Gtk.Image (); this.image1.Name = "image1"; w2.Add (this.image1); this.scrolledwindow.Add (w2); w1.Add (this.scrolledwindow); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(w1[this.scrolledwindow])); w5.Position = 0; // Container child dialog1_VBox.Gtk.Box+BoxChild this.hboxError = new global::Gtk.HBox (); this.hboxError.Name = "hboxError"; this.hboxError.Spacing = 6; // Container child hboxError.Gtk.Box+BoxChild this.image = new global::Gtk.Image (); this.image.Name = "image"; this.image.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-dialog-error", global::Gtk.IconSize.Menu); this.hboxError.Add (this.image); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hboxError[this.image])); w6.Position = 0; w6.Expand = false; w6.Fill = false; // Container child hboxError.Gtk.Box+BoxChild this.label = new global::Gtk.Label (); this.label.Name = "label"; this.label.Xalign = 0f; this.label.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Unable to load object as Image"); this.hboxError.Add (this.label); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.hboxError[this.label])); w7.Position = 1; w1.Add (this.hboxError); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(w1[this.hboxError])); w8.Position = 1; w8.Expand = false; w8.Fill = false; // Internal child MonoDevelop.Database.Components.ShowImageDialog.ActionArea global::Gtk.HButtonBox w9 = this.ActionArea; w9.Name = "dialog1_ActionArea"; w9.Spacing = 6; w9.BorderWidth = ((uint)(5)); w9.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonClose = new global::Gtk.Button (); this.buttonClose.CanDefault = true; this.buttonClose.CanFocus = true; this.buttonClose.Name = "buttonClose"; this.buttonClose.UseStock = true; this.buttonClose.UseUnderline = true; this.buttonClose.Label = "gtk-close"; this.AddActionWidget (this.buttonClose, -7); global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonClose])); w10.Expand = false; w10.Fill = false; if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 400; this.DefaultHeight = 300; this.hboxError.Hide (); this.Show (); this.buttonClose.Clicked += new global::System.EventHandler (this.CloseClicked); } } } ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.WaitDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.0000644000175000017500000000540411266446160034124 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Components { public partial class WaitDialog { private global::Gtk.VBox vbox; private global::Gtk.HBox hbox2; private global::Gtk.Image image; private global::Gtk.Label label; private global::Gtk.ProgressBar progressbar; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Components.WaitDialog this.Name = "MonoDevelop.Database.Components.WaitDialog"; this.Title = global::MonoDevelop.Database.AddinCatalog.GetString ("WaitDialog"); this.TypeHint = ((global::Gdk.WindowTypeHint)(6)); this.WindowPosition = ((global::Gtk.WindowPosition)(1)); this.Modal = true; this.BorderWidth = ((uint)(1)); this.Resizable = false; this.AllowGrow = false; this.Decorated = false; this.SkipTaskbarHint = true; // Container child MonoDevelop.Database.Components.WaitDialog.Gtk.Container+ContainerChild this.vbox = new global::Gtk.VBox (); this.vbox.Name = "vbox"; this.vbox.Spacing = 6; this.vbox.BorderWidth = ((uint)(6)); // Container child vbox.Gtk.Box+BoxChild this.hbox2 = new global::Gtk.HBox (); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.image = new global::Gtk.Image (); this.image.Name = "image"; this.image.Xalign = 0f; this.image.Yalign = 0f; this.image.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "stock_alarm", global::Gtk.IconSize.Dialog); this.hbox2.Add (this.image); global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.image])); w1.Position = 0; w1.Expand = false; w1.Fill = false; // Container child hbox2.Gtk.Box+BoxChild this.label = new global::Gtk.Label (); this.label.Name = "label"; this.label.Xalign = 0f; this.label.Yalign = 0f; this.label.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Please wait"); this.hbox2.Add (this.label); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.label])); w2.Position = 1; this.vbox.Add (this.hbox2); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox[this.hbox2])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child vbox.Gtk.Box+BoxChild this.progressbar = new global::Gtk.ProgressBar (); this.progressbar.Name = "progressbar"; this.vbox.Add (this.progressbar); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox[this.progressbar])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.Add (this.vbox); if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 400; this.DefaultHeight = 114; this.Show (); } } } ././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DatabaseAvailableProvidersDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.0000644000175000017500000000670311266446160034127 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Components { public partial class DatabaseAvailableProvidersDialog { private global::Gtk.HBox hbox9; private global::Gtk.Label label3; private global::Gtk.ComboBox comboProviders; private global::Gtk.Button buttonCancel; private global::Gtk.Button buttonOk; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Components.DatabaseAvailableProvidersDialog this.Name = "MonoDevelop.Database.Components.DatabaseAvailableProvidersDialog"; this.Title = global::MonoDevelop.Database.AddinCatalog.GetString ("Available Providers"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Internal child MonoDevelop.Database.Components.DatabaseAvailableProvidersDialog.VBox global::Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.hbox9 = new global::Gtk.HBox (); this.hbox9.Name = "hbox9"; this.hbox9.Spacing = 6; // Container child hbox9.Gtk.Box+BoxChild this.label3 = new global::Gtk.Label (); this.label3.Name = "label3"; this.label3.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Choose a Provider"); this.hbox9.Add (this.label3); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox9[this.label3])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hbox9.Gtk.Box+BoxChild this.comboProviders = new global::Gtk.ComboBox (); this.comboProviders.Name = "comboProviders"; this.hbox9.Add (this.comboProviders); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox9[this.comboProviders])); w3.Position = 1; w1.Add (this.hbox9); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(w1[this.hbox9])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Internal child MonoDevelop.Database.Components.DatabaseAvailableProvidersDialog.ActionArea global::Gtk.HButtonBox w5 = this.ActionArea; w5.Name = "dialog1_ActionArea"; w5.Spacing = 10; w5.BorderWidth = ((uint)(5)); w5.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new global::Gtk.Button (); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget (this.buttonCancel, -6); global::Gtk.ButtonBox.ButtonBoxChild w6 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonCancel])); w6.Expand = false; w6.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new global::Gtk.Button (); this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget (this.buttonOk, -5); global::Gtk.ButtonBox.ButtonBoxChild w7 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w5[this.buttonOk])); w7.Position = 1; w7.Expand = false; w7.Fill = false; if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 469; this.DefaultHeight = 102; this.Show (); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/objects.xml0000644000175000017500000000775211266446160030230 0ustar directhexdirecthex ././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DatabaseConnectionEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.0000644000175000017500000000764411266446160034134 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Components { public partial class DatabaseConnectionEditorWidget { private global::Gtk.HBox hbox3; private global::MonoDevelop.Database.Components.DatabaseConnectionContextComboBox comboConnection; private global::Gtk.Button buttonNew; private global::Gtk.Button buttonEdit; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Components.DatabaseConnectionEditorWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Components.DatabaseConnectionEditorWidget"; // Container child MonoDevelop.Database.Components.DatabaseConnectionEditorWidget.Gtk.Container+ContainerChild this.hbox3 = new global::Gtk.HBox (); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.comboConnection = new global::MonoDevelop.Database.Components.DatabaseConnectionContextComboBox (); this.comboConnection.Name = "comboConnection"; this.hbox3.Add (this.comboConnection); global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.comboConnection])); w1.Position = 0; // Container child hbox3.Gtk.Box+BoxChild this.buttonNew = new global::Gtk.Button (); this.buttonNew.CanFocus = true; this.buttonNew.Name = "buttonNew"; this.buttonNew.UseUnderline = true; // Container child buttonNew.Gtk.Container+ContainerChild global::Gtk.Alignment w2 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f); // Container child GtkAlignment.Gtk.Container+ContainerChild global::Gtk.HBox w3 = new global::Gtk.HBox (); w3.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild global::Gtk.Image w4 = new global::Gtk.Image (); w4.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-new", global::Gtk.IconSize.Menu); w3.Add (w4); // Container child GtkHBox.Gtk.Container+ContainerChild global::Gtk.Label w6 = new global::Gtk.Label (); w6.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("_New"); w6.UseUnderline = true; w3.Add (w6); w2.Add (w3); this.buttonNew.Add (w2); this.hbox3.Add (this.buttonNew); global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.buttonNew])); w10.Position = 1; w10.Expand = false; w10.Fill = false; // Container child hbox3.Gtk.Box+BoxChild this.buttonEdit = new global::Gtk.Button (); this.buttonEdit.CanFocus = true; this.buttonEdit.Name = "buttonEdit"; this.buttonEdit.UseUnderline = true; // Container child buttonEdit.Gtk.Container+ContainerChild global::Gtk.Alignment w11 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f); // Container child GtkAlignment.Gtk.Container+ContainerChild global::Gtk.HBox w12 = new global::Gtk.HBox (); w12.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild global::Gtk.Image w13 = new global::Gtk.Image (); w13.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-edit", global::Gtk.IconSize.Menu); w12.Add (w13); // Container child GtkHBox.Gtk.Container+ContainerChild global::Gtk.Label w15 = new global::Gtk.Label (); w15.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("_Edit"); w15.UseUnderline = true; w12.Add (w15); w11.Add (w12); this.buttonEdit.Add (w11); this.hbox3.Add (this.buttonEdit); global::Gtk.Box.BoxChild w19 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.buttonEdit])); w19.Position = 2; w19.Expand = false; w19.Fill = false; this.Add (this.hbox3); if ((this.Child != null)) { this.Child.ShowAll (); } this.Hide (); this.comboConnection.Changed += new global::System.EventHandler (this.OnComboConnectionChanged); this.buttonNew.Clicked += new global::System.EventHandler (this.OnButtonNewClicked); this.buttonEdit.Clicked += new global::System.EventHandler (this.OnButtonEditClicked); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/gui.stetic0000644000175000017500000017536211266446160030061 0ustar directhexdirecthex .. 2.12 Select Column Dialog Center True True 2 False vbox 2 6 6 2 Start True TextOnly Select All True False False True TextOnly Deselect All True 1 False False End 1 True False False 0 True 6 5 2 End True True True StockItem gtk-cancel -6 gtk-cancel False False False True True True StockItem gtk-ok -5 gtk-ok 1 False False 5 5 True In True True False 0 True 5 True True StockItem gtk-goto-first gtk-goto-first 0 True False False True True StockItem gtk-go-back gtk-go-back 1 True False False True True 2 False False of 3 True False False True False 4 False False True True StockItem gtk-go-forward gtk-go-forward 5 True False False True True StockItem gtk-goto-last gtk-goto-last 6 True False False 1 True False False Image Dialog Center True 1 False 2 True In None 0 True hboxError False 6 stock:gtk-dialog-error Menu 0 True False False 0 Unable to load object as Image 1 False 1 True False False 6 5 1 End True True True StockItem gtk-close -7 gtk-close False False Text Dialog Center True 1 False vbox 2 6 6 0 True 1 End True TextOnly button462 True 0 False False Dialog Center True 2 False 2 6 0 True 6 5 2 End True True True StockItem gtk-cancel -6 gtk-cancel False False False True True True StockItem gtk-ok -5 gtk-ok 1 False False WaitDialog Dock Center True 1 False False False True 6 6 6 0 0 stock:stock_alarm Dialog 0 True False False 0 0 Please wait 1 False 0 True False False 1 True False False True In None 10 2 6 6 6 True TextAndIcon stock:gtk-apply Menu Test True 8 9 True Fill Fill False True False False True False True Use Integrated security True True True True 5 6 1 2 True Fill Fill False True False False True False True True True True 1 2 True Fill Fill False True False False True False True True 1 2 1 2 True Fill Fill False True False False True False True True 3 4 1 2 True Fill Fill False True False False True False True 4 2 6 6 6 True Use custom connection string True True True 2 3 2 False Fill True True False False True False 0 Min Pool Size: True Fill Fill False True False False True False 0 Max Pool Size: 1 2 True Fill Fill False True False False True False False True In True 3 4 2 False Fill True True False False True False True 1 100 10 1 1 True 5 1 2 1 2 True Fill Fill False True False False True False True 1 100 10 1 1 True 1 1 2 True Fill Fill False True False False True False Advanced True label_item 7 8 2 False Fill True True False False True False 6 True 1 65535 10 1 1 True 1 0 False True Use default port True True True 1 False False False 2 3 1 2 True Fill Fill False True False False True False 6 True 0 False True True StockItem gtk-refresh gtk-refresh 1 True False False True True StockItem gtk-open gtk-open 2 True False False 6 7 1 2 True Fill Fill False True False False True False 6 True True False 0 True True Save Password True True True True 1 False False 4 5 1 2 True Fill Fill False True False False True False 0 Database: 6 7 True Fill Fill False True False False True False 0 Name: True Fill Fill False True False False True False 0 Password: 4 5 True Fill Fill False True False False True False 0 Port: 2 3 True Fill Fill False True False False True False 0 Server: 1 2 True Fill Fill False True False False True False 0 True 8 9 1 2 True Fill Fill False True False False True False 0 Username: 3 4 True Fill Fill False True False False True False 6 True 0 False False 9 10 2 False Fill False True False True True False False 6 False 0 False True TextAndIcon stock:gtk-new Menu _New True 1 True False False True TextAndIcon stock:gtk-edit Menu _Edit True 2 True False False Available Providers CenterOnParent 2 False 2 6 Choose a Provider 0 True False False False 1 False 0 True False False 10 5 2 End True True True StockItem gtk-cancel -6 gtk-cancel False False True True True StockItem gtk-ok -5 gtk-ok 1 False False ././@LongLink0000000000000000000000000000020000000000000011555 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.0000644000175000017500000005465311266446160034136 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Components { public partial class ConnectionSettingsWidget { private global::Gtk.Table table; private global::Gtk.Button buttonTest; private global::Gtk.CheckButton checkIntegratedSecurity; private global::Gtk.Entry entryName; private global::Gtk.Entry entryServer; private global::Gtk.Entry entryUsername; private global::Gtk.Expander expander; private global::Gtk.Table tableAdvanced; private global::Gtk.CheckButton checkCustom; private global::Gtk.Label label10; private global::Gtk.Label label11; private global::Gtk.ScrolledWindow scrolledwindow; private global::Gtk.TextView textConnectionString; private global::Gtk.SpinButton spinMaxPoolSize; private global::Gtk.SpinButton spinMinPoolSize; private global::Gtk.Label GtkLabel5; private global::Gtk.HBox hbox2; private global::Gtk.SpinButton spinPort; private global::Gtk.CheckButton checkDefaultPort; private global::Gtk.HBox hboxDatabase; private global::Gtk.ComboBoxEntry comboDatabase; private global::Gtk.Button buttonRefresh; private global::Gtk.Button buttonOpen; private global::Gtk.HBox hboxPassword; private global::Gtk.Entry entryPassword; private global::Gtk.CheckButton checkSavePassword; private global::Gtk.Label labelDatabase; private global::Gtk.Label labelName; private global::Gtk.Label labelPassword; private global::Gtk.Label labelPort; private global::Gtk.Label labelServer; private global::Gtk.Label labelTest; private global::Gtk.Label labelUsername; private global::Gtk.VBox VBoxMain; private global::Gtk.Label labelMessage; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Components.ConnectionSettingsWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Components.ConnectionSettingsWidget"; // Container child MonoDevelop.Database.Components.ConnectionSettingsWidget.Gtk.Container+ContainerChild this.table = new global::Gtk.Table (((uint)(10)), ((uint)(2)), false); this.table.Name = "table"; this.table.RowSpacing = ((uint)(6)); this.table.ColumnSpacing = ((uint)(6)); this.table.BorderWidth = ((uint)(6)); // Container child table.Gtk.Table+TableChild this.buttonTest = new global::Gtk.Button (); this.buttonTest.CanFocus = true; this.buttonTest.Name = "buttonTest"; this.buttonTest.UseUnderline = true; // Container child buttonTest.Gtk.Container+ContainerChild global::Gtk.Alignment w1 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f); // Container child GtkAlignment.Gtk.Container+ContainerChild global::Gtk.HBox w2 = new global::Gtk.HBox (); w2.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild global::Gtk.Image w3 = new global::Gtk.Image (); w3.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-apply", global::Gtk.IconSize.Menu); w2.Add (w3); // Container child GtkHBox.Gtk.Container+ContainerChild global::Gtk.Label w5 = new global::Gtk.Label (); w5.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Test"); w5.UseUnderline = true; w2.Add (w5); w1.Add (w2); this.buttonTest.Add (w1); this.table.Add (this.buttonTest); global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table[this.buttonTest])); w9.TopAttach = ((uint)(8)); w9.BottomAttach = ((uint)(9)); w9.XOptions = ((global::Gtk.AttachOptions)(4)); w9.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.checkIntegratedSecurity = new global::Gtk.CheckButton (); this.checkIntegratedSecurity.CanFocus = true; this.checkIntegratedSecurity.Name = "checkIntegratedSecurity"; this.checkIntegratedSecurity.Label = global::MonoDevelop.Database.AddinCatalog.GetString ("Use Integrated security"); this.checkIntegratedSecurity.Active = true; this.checkIntegratedSecurity.DrawIndicator = true; this.checkIntegratedSecurity.UseUnderline = true; this.table.Add (this.checkIntegratedSecurity); global::Gtk.Table.TableChild w10 = ((global::Gtk.Table.TableChild)(this.table[this.checkIntegratedSecurity])); w10.TopAttach = ((uint)(5)); w10.BottomAttach = ((uint)(6)); w10.LeftAttach = ((uint)(1)); w10.RightAttach = ((uint)(2)); w10.XOptions = ((global::Gtk.AttachOptions)(4)); w10.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.entryName = new global::Gtk.Entry (); this.entryName.CanDefault = true; this.entryName.CanFocus = true; this.entryName.Name = "entryName"; this.entryName.IsEditable = true; this.entryName.ActivatesDefault = true; this.entryName.InvisibleChar = '●'; this.table.Add (this.entryName); global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.table[this.entryName])); w11.LeftAttach = ((uint)(1)); w11.RightAttach = ((uint)(2)); w11.XOptions = ((global::Gtk.AttachOptions)(4)); w11.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.entryServer = new global::Gtk.Entry (); this.entryServer.CanFocus = true; this.entryServer.Name = "entryServer"; this.entryServer.IsEditable = true; this.entryServer.InvisibleChar = '●'; this.table.Add (this.entryServer); global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table[this.entryServer])); w12.TopAttach = ((uint)(1)); w12.BottomAttach = ((uint)(2)); w12.LeftAttach = ((uint)(1)); w12.RightAttach = ((uint)(2)); w12.XOptions = ((global::Gtk.AttachOptions)(4)); w12.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.entryUsername = new global::Gtk.Entry (); this.entryUsername.CanFocus = true; this.entryUsername.Name = "entryUsername"; this.entryUsername.IsEditable = true; this.entryUsername.InvisibleChar = '●'; this.table.Add (this.entryUsername); global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table[this.entryUsername])); w13.TopAttach = ((uint)(3)); w13.BottomAttach = ((uint)(4)); w13.LeftAttach = ((uint)(1)); w13.RightAttach = ((uint)(2)); w13.XOptions = ((global::Gtk.AttachOptions)(4)); w13.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.expander = new global::Gtk.Expander (null); this.expander.CanFocus = true; this.expander.Name = "expander"; // Container child expander.Gtk.Container+ContainerChild this.tableAdvanced = new global::Gtk.Table (((uint)(4)), ((uint)(2)), false); this.tableAdvanced.Name = "tableAdvanced"; this.tableAdvanced.RowSpacing = ((uint)(6)); this.tableAdvanced.ColumnSpacing = ((uint)(6)); this.tableAdvanced.BorderWidth = ((uint)(6)); // Container child tableAdvanced.Gtk.Table+TableChild this.checkCustom = new global::Gtk.CheckButton (); this.checkCustom.CanFocus = true; this.checkCustom.Name = "checkCustom"; this.checkCustom.Label = global::MonoDevelop.Database.AddinCatalog.GetString ("Use custom connection string"); this.checkCustom.DrawIndicator = true; this.checkCustom.UseUnderline = true; this.tableAdvanced.Add (this.checkCustom); global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.tableAdvanced[this.checkCustom])); w14.TopAttach = ((uint)(2)); w14.BottomAttach = ((uint)(3)); w14.RightAttach = ((uint)(2)); w14.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child tableAdvanced.Gtk.Table+TableChild this.label10 = new global::Gtk.Label (); this.label10.Name = "label10"; this.label10.Xalign = 0f; this.label10.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Min Pool Size:"); this.tableAdvanced.Add (this.label10); global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.tableAdvanced[this.label10])); w15.XOptions = ((global::Gtk.AttachOptions)(4)); w15.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child tableAdvanced.Gtk.Table+TableChild this.label11 = new global::Gtk.Label (); this.label11.Name = "label11"; this.label11.Xalign = 0f; this.label11.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Max Pool Size:"); this.tableAdvanced.Add (this.label11); global::Gtk.Table.TableChild w16 = ((global::Gtk.Table.TableChild)(this.tableAdvanced[this.label11])); w16.TopAttach = ((uint)(1)); w16.BottomAttach = ((uint)(2)); w16.XOptions = ((global::Gtk.AttachOptions)(4)); w16.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child tableAdvanced.Gtk.Table+TableChild this.scrolledwindow = new global::Gtk.ScrolledWindow (); this.scrolledwindow.Sensitive = false; this.scrolledwindow.CanFocus = true; this.scrolledwindow.Name = "scrolledwindow"; this.scrolledwindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child scrolledwindow.Gtk.Container+ContainerChild this.textConnectionString = new global::Gtk.TextView (); this.textConnectionString.CanFocus = true; this.textConnectionString.Name = "textConnectionString"; this.scrolledwindow.Add (this.textConnectionString); this.tableAdvanced.Add (this.scrolledwindow); global::Gtk.Table.TableChild w18 = ((global::Gtk.Table.TableChild)(this.tableAdvanced[this.scrolledwindow])); w18.TopAttach = ((uint)(3)); w18.BottomAttach = ((uint)(4)); w18.RightAttach = ((uint)(2)); w18.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child tableAdvanced.Gtk.Table+TableChild this.spinMaxPoolSize = new global::Gtk.SpinButton (1, 100, 1); this.spinMaxPoolSize.CanFocus = true; this.spinMaxPoolSize.Name = "spinMaxPoolSize"; this.spinMaxPoolSize.Adjustment.PageIncrement = 10; this.spinMaxPoolSize.ClimbRate = 1; this.spinMaxPoolSize.Numeric = true; this.spinMaxPoolSize.Value = 5; this.tableAdvanced.Add (this.spinMaxPoolSize); global::Gtk.Table.TableChild w19 = ((global::Gtk.Table.TableChild)(this.tableAdvanced[this.spinMaxPoolSize])); w19.TopAttach = ((uint)(1)); w19.BottomAttach = ((uint)(2)); w19.LeftAttach = ((uint)(1)); w19.RightAttach = ((uint)(2)); w19.XOptions = ((global::Gtk.AttachOptions)(4)); w19.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child tableAdvanced.Gtk.Table+TableChild this.spinMinPoolSize = new global::Gtk.SpinButton (1, 100, 1); this.spinMinPoolSize.CanFocus = true; this.spinMinPoolSize.Name = "spinMinPoolSize"; this.spinMinPoolSize.Adjustment.PageIncrement = 10; this.spinMinPoolSize.ClimbRate = 1; this.spinMinPoolSize.Numeric = true; this.spinMinPoolSize.Value = 1; this.tableAdvanced.Add (this.spinMinPoolSize); global::Gtk.Table.TableChild w20 = ((global::Gtk.Table.TableChild)(this.tableAdvanced[this.spinMinPoolSize])); w20.LeftAttach = ((uint)(1)); w20.RightAttach = ((uint)(2)); w20.XOptions = ((global::Gtk.AttachOptions)(4)); w20.YOptions = ((global::Gtk.AttachOptions)(4)); this.expander.Add (this.tableAdvanced); this.GtkLabel5 = new global::Gtk.Label (); this.GtkLabel5.Name = "GtkLabel5"; this.GtkLabel5.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Advanced"); this.GtkLabel5.UseUnderline = true; this.expander.LabelWidget = this.GtkLabel5; this.table.Add (this.expander); global::Gtk.Table.TableChild w22 = ((global::Gtk.Table.TableChild)(this.table[this.expander])); w22.TopAttach = ((uint)(7)); w22.BottomAttach = ((uint)(8)); w22.RightAttach = ((uint)(2)); w22.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.hbox2 = new global::Gtk.HBox (); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.spinPort = new global::Gtk.SpinButton (1, 65535, 1); this.spinPort.CanFocus = true; this.spinPort.Name = "spinPort"; this.spinPort.Adjustment.PageIncrement = 10; this.spinPort.ClimbRate = 1; this.spinPort.Numeric = true; this.spinPort.Value = 1; this.hbox2.Add (this.spinPort); global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.spinPort])); w23.Position = 0; // Container child hbox2.Gtk.Box+BoxChild this.checkDefaultPort = new global::Gtk.CheckButton (); this.checkDefaultPort.CanFocus = true; this.checkDefaultPort.Name = "checkDefaultPort"; this.checkDefaultPort.Label = global::MonoDevelop.Database.AddinCatalog.GetString ("Use default port"); this.checkDefaultPort.DrawIndicator = true; this.checkDefaultPort.UseUnderline = true; this.hbox2.Add (this.checkDefaultPort); global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.checkDefaultPort])); w24.Position = 1; w24.Expand = false; w24.Fill = false; this.table.Add (this.hbox2); global::Gtk.Table.TableChild w25 = ((global::Gtk.Table.TableChild)(this.table[this.hbox2])); w25.TopAttach = ((uint)(2)); w25.BottomAttach = ((uint)(3)); w25.LeftAttach = ((uint)(1)); w25.RightAttach = ((uint)(2)); w25.XOptions = ((global::Gtk.AttachOptions)(4)); w25.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.hboxDatabase = new global::Gtk.HBox (); this.hboxDatabase.Name = "hboxDatabase"; this.hboxDatabase.Spacing = 6; // Container child hboxDatabase.Gtk.Box+BoxChild this.comboDatabase = global::Gtk.ComboBoxEntry.NewText (); this.comboDatabase.Name = "comboDatabase"; this.hboxDatabase.Add (this.comboDatabase); global::Gtk.Box.BoxChild w26 = ((global::Gtk.Box.BoxChild)(this.hboxDatabase[this.comboDatabase])); w26.Position = 0; // Container child hboxDatabase.Gtk.Box+BoxChild this.buttonRefresh = new global::Gtk.Button (); this.buttonRefresh.CanFocus = true; this.buttonRefresh.Name = "buttonRefresh"; this.buttonRefresh.UseStock = true; this.buttonRefresh.UseUnderline = true; this.buttonRefresh.Label = "gtk-refresh"; this.hboxDatabase.Add (this.buttonRefresh); global::Gtk.Box.BoxChild w27 = ((global::Gtk.Box.BoxChild)(this.hboxDatabase[this.buttonRefresh])); w27.Position = 1; w27.Expand = false; w27.Fill = false; // Container child hboxDatabase.Gtk.Box+BoxChild this.buttonOpen = new global::Gtk.Button (); this.buttonOpen.CanFocus = true; this.buttonOpen.Name = "buttonOpen"; this.buttonOpen.UseStock = true; this.buttonOpen.UseUnderline = true; this.buttonOpen.Label = "gtk-open"; this.hboxDatabase.Add (this.buttonOpen); global::Gtk.Box.BoxChild w28 = ((global::Gtk.Box.BoxChild)(this.hboxDatabase[this.buttonOpen])); w28.Position = 2; w28.Expand = false; w28.Fill = false; this.table.Add (this.hboxDatabase); global::Gtk.Table.TableChild w29 = ((global::Gtk.Table.TableChild)(this.table[this.hboxDatabase])); w29.TopAttach = ((uint)(6)); w29.BottomAttach = ((uint)(7)); w29.LeftAttach = ((uint)(1)); w29.RightAttach = ((uint)(2)); w29.XOptions = ((global::Gtk.AttachOptions)(4)); w29.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.hboxPassword = new global::Gtk.HBox (); this.hboxPassword.Name = "hboxPassword"; this.hboxPassword.Spacing = 6; // Container child hboxPassword.Gtk.Box+BoxChild this.entryPassword = new global::Gtk.Entry (); this.entryPassword.CanFocus = true; this.entryPassword.Name = "entryPassword"; this.entryPassword.IsEditable = true; this.entryPassword.Visibility = false; this.entryPassword.InvisibleChar = '●'; this.hboxPassword.Add (this.entryPassword); global::Gtk.Box.BoxChild w30 = ((global::Gtk.Box.BoxChild)(this.hboxPassword[this.entryPassword])); w30.Position = 0; // Container child hboxPassword.Gtk.Box+BoxChild this.checkSavePassword = new global::Gtk.CheckButton (); this.checkSavePassword.CanFocus = true; this.checkSavePassword.Name = "checkSavePassword"; this.checkSavePassword.Label = global::MonoDevelop.Database.AddinCatalog.GetString ("Save Password"); this.checkSavePassword.Active = true; this.checkSavePassword.DrawIndicator = true; this.checkSavePassword.UseUnderline = true; this.hboxPassword.Add (this.checkSavePassword); global::Gtk.Box.BoxChild w31 = ((global::Gtk.Box.BoxChild)(this.hboxPassword[this.checkSavePassword])); w31.Position = 1; w31.Expand = false; this.table.Add (this.hboxPassword); global::Gtk.Table.TableChild w32 = ((global::Gtk.Table.TableChild)(this.table[this.hboxPassword])); w32.TopAttach = ((uint)(4)); w32.BottomAttach = ((uint)(5)); w32.LeftAttach = ((uint)(1)); w32.RightAttach = ((uint)(2)); w32.XOptions = ((global::Gtk.AttachOptions)(4)); w32.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.labelDatabase = new global::Gtk.Label (); this.labelDatabase.Name = "labelDatabase"; this.labelDatabase.Xalign = 0f; this.labelDatabase.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Database:"); this.table.Add (this.labelDatabase); global::Gtk.Table.TableChild w33 = ((global::Gtk.Table.TableChild)(this.table[this.labelDatabase])); w33.TopAttach = ((uint)(6)); w33.BottomAttach = ((uint)(7)); w33.XOptions = ((global::Gtk.AttachOptions)(4)); w33.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.labelName = new global::Gtk.Label (); this.labelName.Name = "labelName"; this.labelName.Xalign = 0f; this.labelName.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Name:"); this.table.Add (this.labelName); global::Gtk.Table.TableChild w34 = ((global::Gtk.Table.TableChild)(this.table[this.labelName])); w34.XOptions = ((global::Gtk.AttachOptions)(4)); w34.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.labelPassword = new global::Gtk.Label (); this.labelPassword.Name = "labelPassword"; this.labelPassword.Xalign = 0f; this.labelPassword.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Password:"); this.table.Add (this.labelPassword); global::Gtk.Table.TableChild w35 = ((global::Gtk.Table.TableChild)(this.table[this.labelPassword])); w35.TopAttach = ((uint)(4)); w35.BottomAttach = ((uint)(5)); w35.XOptions = ((global::Gtk.AttachOptions)(4)); w35.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.labelPort = new global::Gtk.Label (); this.labelPort.Name = "labelPort"; this.labelPort.Xalign = 0f; this.labelPort.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Port:"); this.table.Add (this.labelPort); global::Gtk.Table.TableChild w36 = ((global::Gtk.Table.TableChild)(this.table[this.labelPort])); w36.TopAttach = ((uint)(2)); w36.BottomAttach = ((uint)(3)); w36.XOptions = ((global::Gtk.AttachOptions)(4)); w36.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.labelServer = new global::Gtk.Label (); this.labelServer.Name = "labelServer"; this.labelServer.Xalign = 0f; this.labelServer.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Server:"); this.table.Add (this.labelServer); global::Gtk.Table.TableChild w37 = ((global::Gtk.Table.TableChild)(this.table[this.labelServer])); w37.TopAttach = ((uint)(1)); w37.BottomAttach = ((uint)(2)); w37.XOptions = ((global::Gtk.AttachOptions)(4)); w37.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.labelTest = new global::Gtk.Label (); this.labelTest.Name = "labelTest"; this.labelTest.Xalign = 0f; this.labelTest.Wrap = true; this.table.Add (this.labelTest); global::Gtk.Table.TableChild w38 = ((global::Gtk.Table.TableChild)(this.table[this.labelTest])); w38.TopAttach = ((uint)(8)); w38.BottomAttach = ((uint)(9)); w38.LeftAttach = ((uint)(1)); w38.RightAttach = ((uint)(2)); w38.XOptions = ((global::Gtk.AttachOptions)(4)); w38.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.labelUsername = new global::Gtk.Label (); this.labelUsername.Name = "labelUsername"; this.labelUsername.Xalign = 0f; this.labelUsername.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Username:"); this.table.Add (this.labelUsername); global::Gtk.Table.TableChild w39 = ((global::Gtk.Table.TableChild)(this.table[this.labelUsername])); w39.TopAttach = ((uint)(3)); w39.BottomAttach = ((uint)(4)); w39.XOptions = ((global::Gtk.AttachOptions)(4)); w39.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.VBoxMain = new global::Gtk.VBox (); this.VBoxMain.Name = "VBoxMain"; this.VBoxMain.Spacing = 6; // Container child VBoxMain.Gtk.Box+BoxChild this.labelMessage = new global::Gtk.Label (); this.labelMessage.Name = "labelMessage"; this.labelMessage.UseMarkup = true; this.VBoxMain.Add (this.labelMessage); global::Gtk.Box.BoxChild w40 = ((global::Gtk.Box.BoxChild)(this.VBoxMain[this.labelMessage])); w40.Position = 0; w40.Fill = false; this.table.Add (this.VBoxMain); global::Gtk.Table.TableChild w41 = ((global::Gtk.Table.TableChild)(this.table[this.VBoxMain])); w41.TopAttach = ((uint)(9)); w41.BottomAttach = ((uint)(10)); w41.RightAttach = ((uint)(2)); w41.XOptions = ((global::Gtk.AttachOptions)(4)); this.Add (this.table); if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); this.entryPassword.Changed += new global::System.EventHandler (this.PasswordChanged); this.buttonRefresh.Clicked += new global::System.EventHandler (this.RefreshClicked); this.buttonOpen.Clicked += new global::System.EventHandler (this.OpenClicked); this.spinPort.Changed += new global::System.EventHandler (this.PortChanged); this.checkDefaultPort.Toggled += new global::System.EventHandler (this.OnCheckDefaultPortToggled); this.spinMinPoolSize.Changed += new global::System.EventHandler (this.MinPoolSizeChanged); this.spinMaxPoolSize.Changed += new global::System.EventHandler (this.MaxPoolSizeChanged); this.entryUsername.Changed += new global::System.EventHandler (this.UsernameChanged); this.entryServer.Changed += new global::System.EventHandler (this.ServerChanged); this.entryName.Changed += new global::System.EventHandler (this.NameChanged); this.checkIntegratedSecurity.Toggled += new global::System.EventHandler (this.OnCheckIntegratedSecurityToggled); this.buttonTest.Clicked += new global::System.EventHandler (this.TestClicked); } } } ././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.DataGrid.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/gtk-gui/MonoDevelop.Database.Components.0000644000175000017500000001331211266446160034121 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Components { public partial class DataGrid { private global::Gtk.VBox vbox; private global::Gtk.ScrolledWindow scrolledwindow; private global::Gtk.TreeView grid; private global::Gtk.HBox hbox; private global::Gtk.Button buttonFirst; private global::Gtk.Button buttonPrevious; private global::Gtk.Entry entryCurrent; private global::Gtk.Label label1; private global::Gtk.Entry entryTotal; private global::Gtk.Button buttonNext; private global::Gtk.Button buttonLast; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Components.DataGrid global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Components.DataGrid"; // Container child MonoDevelop.Database.Components.DataGrid.Gtk.Container+ContainerChild this.vbox = new global::Gtk.VBox (); this.vbox.Name = "vbox"; this.vbox.Spacing = 5; this.vbox.BorderWidth = ((uint)(5)); // Container child vbox.Gtk.Box+BoxChild this.scrolledwindow = new global::Gtk.ScrolledWindow (); this.scrolledwindow.CanFocus = true; this.scrolledwindow.Name = "scrolledwindow"; this.scrolledwindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child scrolledwindow.Gtk.Container+ContainerChild this.grid = new global::Gtk.TreeView (); this.grid.CanDefault = true; this.grid.CanFocus = true; this.grid.Name = "grid"; this.grid.EnableSearch = false; this.scrolledwindow.Add (this.grid); this.vbox.Add (this.scrolledwindow); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox[this.scrolledwindow])); w2.Position = 0; // Container child vbox.Gtk.Box+BoxChild this.hbox = new global::Gtk.HBox (); this.hbox.Name = "hbox"; this.hbox.Spacing = 5; // Container child hbox.Gtk.Box+BoxChild this.buttonFirst = new global::Gtk.Button (); this.buttonFirst.CanFocus = true; this.buttonFirst.Name = "buttonFirst"; this.buttonFirst.UseStock = true; this.buttonFirst.UseUnderline = true; this.buttonFirst.Label = "gtk-goto-first"; this.hbox.Add (this.buttonFirst); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox[this.buttonFirst])); w3.Position = 0; w3.Expand = false; w3.Fill = false; // Container child hbox.Gtk.Box+BoxChild this.buttonPrevious = new global::Gtk.Button (); this.buttonPrevious.CanFocus = true; this.buttonPrevious.Name = "buttonPrevious"; this.buttonPrevious.UseStock = true; this.buttonPrevious.UseUnderline = true; this.buttonPrevious.Label = "gtk-go-back"; this.hbox.Add (this.buttonPrevious); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox[this.buttonPrevious])); w4.Position = 1; w4.Expand = false; w4.Fill = false; // Container child hbox.Gtk.Box+BoxChild this.entryCurrent = new global::Gtk.Entry (); this.entryCurrent.CanFocus = true; this.entryCurrent.Name = "entryCurrent"; this.entryCurrent.IsEditable = true; this.entryCurrent.InvisibleChar = '●'; this.hbox.Add (this.entryCurrent); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox[this.entryCurrent])); w5.Position = 2; w5.Expand = false; // Container child hbox.Gtk.Box+BoxChild this.label1 = new global::Gtk.Label (); this.label1.Name = "label1"; this.label1.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("of"); this.hbox.Add (this.label1); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox[this.label1])); w6.Position = 3; w6.Expand = false; w6.Fill = false; // Container child hbox.Gtk.Box+BoxChild this.entryTotal = new global::Gtk.Entry (); this.entryTotal.CanFocus = true; this.entryTotal.Name = "entryTotal"; this.entryTotal.IsEditable = false; this.entryTotal.InvisibleChar = '●'; this.hbox.Add (this.entryTotal); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.hbox[this.entryTotal])); w7.Position = 4; w7.Expand = false; // Container child hbox.Gtk.Box+BoxChild this.buttonNext = new global::Gtk.Button (); this.buttonNext.CanFocus = true; this.buttonNext.Name = "buttonNext"; this.buttonNext.UseStock = true; this.buttonNext.UseUnderline = true; this.buttonNext.Label = "gtk-go-forward"; this.hbox.Add (this.buttonNext); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.hbox[this.buttonNext])); w8.Position = 5; w8.Expand = false; w8.Fill = false; // Container child hbox.Gtk.Box+BoxChild this.buttonLast = new global::Gtk.Button (); this.buttonLast.CanFocus = true; this.buttonLast.Name = "buttonLast"; this.buttonLast.UseStock = true; this.buttonLast.UseUnderline = true; this.buttonLast.Label = "gtk-goto-last"; this.hbox.Add (this.buttonLast); global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.hbox[this.buttonLast])); w9.Position = 6; w9.Expand = false; w9.Fill = false; this.vbox.Add (this.hbox); global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.vbox[this.hbox])); w10.Position = 1; w10.Expand = false; w10.Fill = false; this.Add (this.vbox); if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); this.buttonFirst.Clicked += new global::System.EventHandler (this.ButtonFirstClicked); this.buttonPrevious.Clicked += new global::System.EventHandler (this.ButtonPreviousClicked); this.entryCurrent.Activated += new global::System.EventHandler (this.EntryCurrentActivated); this.buttonNext.Clicked += new global::System.EventHandler (this.ButtonNextClicked); this.buttonLast.Clicked += new global::System.EventHandler (this.ButtonLastClicked); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Components/Codons/0000755000175000017500000000000011266446160025720 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Codons/DataGridVisualizerCodon.cs0000644000175000017500000000270611266446160032774 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; using Mono.Addins; namespace MonoDevelop.Database.Components { public class DataGridVisualizerCodon : TypeExtensionNode { public IDataGridVisualizer Visualizer { get { return (IDataGridVisualizer)base.CreateInstance (); } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Codons/DataGridContentRendererCodon.cs0000644000175000017500000000273211266446160033737 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; using Mono.Addins; namespace MonoDevelop.Database.Components { public class DataGridContentRendererCodon : TypeExtensionNode { public IDataGridContentRenderer ContentRenderer { get { return (IDataGridContentRenderer)base.CreateInstance (); } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Makefile.am0000644000175000017500000000701211266446160026527 0ustar directhexdirecthexADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.Components.dll REFS = \ $(GLIB_SHARP_LIBS) \ $(GTK_SHARP_LIBS) \ $(MONO_ADDINS_LIBS) \ $(MONODEVELOP_CORE_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:Mono.Posix \ -r:System \ -r:System.Data \ -r:System.Xml FILES = \ AssemblyInfo.cs \ Codons/DataGridContentRendererCodon.cs \ Codons/DataGridVisualizerCodon.cs \ Commands/AbstractDatabaseProviderList.cs \ Commands/DataGridCommands.cs \ Commands/SqlEditorCommands.cs \ ComponentHelper.cs \ Containers/ColumnContainer.cs \ Containers/ConditionContainer.cs \ Containers/ParameterContainer.cs \ Containers/SchemaContainers.cs \ Containers/TableContainer.cs \ Dialogs/DatabaseAvailableProvidersDialog.cs \ Dialogs/DatabaseConnectionSettingsDialog.cs \ Dialogs/SelectColumnDialog.cs \ Dialogs/ShowImageDialog.cs \ Dialogs/ShowTextDialog.cs \ Dialogs/WaitDialog.cs \ gtk-gui/generated.cs \ gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs \ gtk-gui/MonoDevelop.Database.Components.DatabaseAvailableProvidersDialog.cs \ gtk-gui/MonoDevelop.Database.Components.DatabaseConnectionEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.cs \ gtk-gui/MonoDevelop.Database.Components.DataGrid.cs \ gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs \ gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs \ gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs \ gtk-gui/MonoDevelop.Database.Components.SqlEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs \ Widgets/CellRendererTypeCombo.cs \ Widgets/ColumnMappingWidget.cs \ Widgets/ConnectionSettingsWidget.cs \ Widgets/DatabaseConnectionContextComboBox.cs \ Widgets/DatabaseConnectionEditorWidget.cs \ Widgets/DataGrid/DataGrid.cs \ Widgets/DataGrid/DataGridColumn.cs \ Widgets/DataGrid/Renderers/BlobContentRenderer.cs \ Widgets/DataGrid/Renderers/BooleanContentRenderer.cs \ Widgets/DataGrid/Renderers/ByteContentRenderer.cs \ Widgets/DataGrid/Renderers/DecimalContentRenderer.cs \ Widgets/DataGrid/Renderers/DoubleContentRenderer.cs \ Widgets/DataGrid/Renderers/FloatContentRenderer.cs \ Widgets/DataGrid/Renderers/IDataGridContentRenderer.cs \ Widgets/DataGrid/Renderers/IntegerContentRenderer.cs \ Widgets/DataGrid/Renderers/LongContentRenderer.cs \ Widgets/DataGrid/Renderers/NullContentRenderer.cs \ Widgets/DataGrid/Renderers/ObjectContentRenderer.cs \ Widgets/DataGrid/Renderers/StringContentRenderer.cs \ Widgets/DataGrid/Views/ImageVisualizerView.cs \ Widgets/DataGrid/Views/TextVisualizerView.cs \ Widgets/DataGrid/Visualizers/DefaultVisualizers.cs \ Widgets/DataGrid/Visualizers/IDataGridVisualizer.cs \ Widgets/ProjectDirectoryComboBox.cs \ Widgets/SelectColumnWidget.cs \ Widgets/SelectSchemaWidget.cs \ Widgets/SelectTableWidget.cs \ Widgets/SortedColumnListStore.cs \ Widgets/SortedTableListStore.cs \ Widgets/SqlEditorWidget.cs \ Widgets/TableMappingWidget.cs RES = \ gtk-gui/gui.stetic \ gtk-gui/objects.xml \ MonoDevelop.Database.Components.addin.xml \ SqlSyntaxMode.xml all: $(ASSEMBLY) $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb EXTRA_DIST = $(FILES) $(RES) include $(top_srcdir)/Makefile.include monodevelop-database-4.0.12/MonoDevelop.Database.Components/ChangeLog0000644000175000017500000005302211266446160026247 0ustar directhexdirecthex2010-03-22 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Components.addin.xml: Bumped MD version. 2010-03-19 Lluis Sanchez Gual * gtk-gui/objects.xml: * Widgets/ProjectDirectoryComboBox.cs: Fix build. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.Components.csproj: Flush. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.Components.csproj: Remove mono.addins.targets import. 2010-03-17 Lluis Sanchez Gual * gtk-gui/gui.stetic: * gtk-gui/objects.xml: * Dialogs/WaitDialog.cs: * Widgets/SqlEditorWidget.cs: * Commands/DataGridCommands.cs: * Widgets/SelectSchemaWidget.cs: * Commands/SqlEditorCommands.cs: * Widgets/ProjectDirectoryComboBox.cs: * Widgets/ConnectionSettingsWidget.cs: * MonoDevelop.Database.Components.csproj: * Commands/AbstractDatabaseProviderList.cs: * MonoDevelop.Database.Components.addin.xml: * Dialogs/DatabaseConnectionSettingsDialog.cs: * Widgets/DataGrid/Views/TextVisualizerView.cs: * Widgets/DataGrid/Views/ImageVisualizerView.cs: * Widgets/DataGrid/Visualizers/DefaultVisualizers.cs: Merged MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui and MD.Components into MD.Ide. 2010-02-18 Lluis Sanchez Gual * gtk-gui/gui.stetic: * gtk-gui/objects.xml: Flush. * MonoDevelop.Database.Components.csproj: * gtk-gui/MonoDevelop.Database.Components.DatabaseConnectionEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Components.DatabaseAvailableProvidersDialog.cs: Use correct gettext class. 2010-02-18 Lluis Sanchez Gual * Widgets/SelectSchemaWidget.cs: * Widgets/ProjectDirectoryComboBox.cs: Track api changes. 2010-02-15 Luciano N. Callero * Dialogs/DatabaseAvailableProvidersDialog.cs: Available providers selector. * Makefile.am: * gtk-gui/gui.stetic: * gtk-gui/objects.xml: * MonoDevelop.Database.Components.csproj: * Widgets/DatabaseConnectionEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Components.DatabaseConnectionEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Components.DatabaseAvailableProvidersDialog.cs: Flush Changes. Available providers dialog. Database Connection Editor Widget. * Widgets/ProjectDirectoryComboBox.cs: Fix bug. * Widgets/SelectSchemaWidget.cs: Use Gtk.CellRendererPixbuf 2010-02-12 Lluis Sanchez Gual * gtk-gui/objects.xml: Flush. 2010-02-12 Lluis Sanchez Gual * gtk-gui/gui.stetic: * gtk-gui/generated.cs: * gtk-gui/MonoDevelop.Database.Components.DataGrid.cs: * gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs: * gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs: * gtk-gui/MonoDevelop.Database.Components.SqlEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs: * gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs: * gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs: * gtk-gui/MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.cs: Flush. * MonoDevelop.Database.Components.csproj: Update references. Fix gettext class. 2010-02-03 Luciano N. Callero * MonoDevelop.Database.Components.csproj: - Flush changes. 2009-11-11 Luciano N. Callero * SqlSyntaxMode.xml: Implement Syntax mode by provider. * MonoDevelop.Database.Components.csproj: Target runtime from 2.0 to 3.5. 2009-11-03 Luciano N. Callero * Widgets/ConnectionSettingsWidget.cs: Initialize the Pool, and show pending errors. * gtk-gui/MonoDevelop.Database.Components.DataGrid.cs: * gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs: * gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs: * gtk-gui/MonoDevelop.Database.Components.SqlEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs: * gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs: * gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs: Flush changes. 2009-10-30 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Components.addin.xml: Bump MD version. 2009-10-28 Luciano N. Callero * SqlSyntaxMode.xml: Fix syntax case sensitive problem. 2009-10-22 Luciano N. Callero * gtk-gui/gui.stetic: * gtk-gui/objects.xml: * gtk-gui/generated.cs: * Widgets/ConnectionSettingsWidget.cs: * Dialogs/DatabaseConnectionSettingsDialog.cs: * gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs: * gtk-gui/MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.cs: Implement Use Default port (to use the default port without specifing it). Implement Integrated Security Connection. 2009-10-21 Luciano N. Callero * Widgets/ConnectionSettingsWidget.cs: * gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs: * gtk-gui/MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.cs: * gtk-gui/objects.xml: * gtk-gui/gui.stetic: Database Connection Widget Changes to support New Database Operation. 2009-10-18 Michael Hutchinson * MonoDevelop.Database.Components.csproj: Fix the build & flush format changes. 2009-10-07 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Components.addin.xml: Bump MD version. 2009-08-26 Lluis Sanchez Gual * gtk-gui/gui.stetic: * MonoDevelop.Database.Components.csproj: We now depend on gtk# 2.12.8, Mono 2.4, and Mono.Addins 0.4. 2009-07-31 Lluis Sanchez Gual * MonoDevelop.Database.Components.csproj: Disabled 'require specific version' flags. 2009-05-19 Lluis Sanchez Gual * MonoDevelop.Database.Components.csproj: Flush. 2009-05-18 Luciano N. Callero * Widgets/SqlEditorWidget.cs: Selected Text property to execute only the selected part of the SQL. 2009-04-21 Luciano N. Callero * Widgets/SelectColumnWidget.cs: * Widgets/SortedColumnListStore.cs: Add Clear Method to clear the Store. 2009-04-20 Lluis Sanchez Gual * Widgets/SelectSchemaWidget.cs: Fix build. 2009-04-17 Michael Hutchinson * Makefile.am: * MonoDevelop.Database.Components.csproj: Reference SourceEditor correctly from makefile builds. * Widgets/ProjectDirectoryComboBox.cs: Track removal of icon service API. 2009-04-15 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Components.addin.xml: Bump MD version. 2009-04-13 Luciano N. Callero * MonoDevelop.Database.Components.addin.xml: * SqlSyntaxMode.xml: Added Sql Syntax Mode Support. * Widgets/SqlEditorWidget.cs: Set the correct mime-Type. * MonoDevelop.Database.Components.csproj: * Makefile.am: * gtk-gui/gui.stetic: Updated. 2009-02-20 Lluis Sanchez Gual * MonoDevelop.Database.Components.csproj: Updated references. 2009/02/06 Lluis Sanchez Gual * MonoDevelop.Database.Components.mdp: * MonoDevelop.Database.Components.csproj: Migrated to MSBuild file format. 2009/02/03 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Components.addin.xml: Bump MD version. 2009/02/03 Lluis Sanchez Gual * gtk-gui/gui.stetic: * gtk-gui/objects.xml: * gtk-gui/generated.cs: * gtk-gui/MonoDevelop.Database.Components.DataGrid.cs: * gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs: * gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs: * gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs: * gtk-gui/MonoDevelop.Database.Components.SqlEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs: * gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs: * gtk-gui/MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.cs: Flush. 2009-01-26 Michael Hutchinson * MonoDevelop.Database.Components.mdp: Flush project format changes. 2008-12-09 Lluis Sanchez Gual * MonoDevelop.Database.Components.mdp: Don't require a specific version of Mono.Addins. 2008-12-02 Michael Hutchinson * Makefile.am: * AssemblyInfo.cs: * MonoDevelop.Database.Components.mdp: Add AssemblyInfo.cs files that are autogenerated from the addin manifests. 2008-11-17 Lluis Sanchez Gual * Widgets/ConnectionSettingsWidget.cs: Fix for bug #360297 - Cannot create new database connection. 2008-11-06 Michael Hutchinson * Makefile.am: Fix build dependencies. 2008-11-05 Lluis Sanchez Gual * MonoDevelop.Database.Components.addin.xml: Bump MD version. 2008-10-06 Michael Hutchinson * Widgets/ProjectDirectoryComboBox.cs: Track API, fix build. 2008-09-17 Lluis Sanchez Gual * MonoDevelop.Database.Components.mdp: Updated projects. 2008-09-17 Lluis Sanchez Gual * gtk-gui/objects.xml: Update. 2008-08-18 Lluis Sanchez Gual * Widgets/DataGrid/DataGrid.cs, Widgets/SelectTableWidget.cs, Widgets/ColumnMappingWidget.cs, Widgets/SelectColumnWidget.cs, Widgets/DatabaseConnectionContextComboBox.cs, Widgets/ProjectDirectoryComboBox.cs, Widgets/SelectSchemaWidget.cs, Widgets/ConnectionSettingsWidget.cs, Widgets/TableMappingWidget.cs, Widgets/SqlEditorWidget.cs, gtk-gui/objects.xml: Use new model for describing custom stetic widgets. 2008-08-18 Lluis Sanchez Gual * MonoDevelop.Database.Components.mdp: Fix reference to Mono.TextEditor. The incorrect add-in version number causes problems in the makefile synchronization. 2008-06-04 Lluis Sanchez Gual * MonoDevelop.Database.Components.addin.xml: Bump MD version. 2008-05-21 Lluis Sanchez Gual * Makefile.am, MonoDevelop.Database.Components.mdp: Fix projects. 2008-05-21 Lluis Sanchez Gual * Widgets/ProjectDirectoryComboBox.cs: New project model changes and updates. 2008-03-10 Lluis Sanchez Gual * Widgets/SqlEditorWidget.cs: Track changes in the MessageService class. 2008-01-30 Ben Motmans * Widgets/ProjectDirectoryComboBox.cs: added fix for non-code projects * Widgets/ConnectionSettingsWidget.cs: allow the test button to be disabled * gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs, gtk-gui/objects.xml, gtk-gui/gui.stetic: auto generated code 2008-01-29 Ben Motmans * Widgets/DataGrid/Visualizers/DefaultVisualizers.cs, MonoDevelop.Database.Components.addin.xml: implementation of text and image datagrid visualizers * Widgets/DataGrid/Views/TextVisualizerView.cs: allow to visualize byte arrays 2008-01-29 Ben Motmans * Commands/AbstractDatabaseProviderList.cs: use AddinCatalog to translate strings * Commands/DataGridCommands.cs, Widgets/DataGrid/DataGrid.cs, MonoDevelop.Database.Components.addin.xml: use an Array CommandItem to show all datagrid visualizers * Codons/DataGridVisualizerCodon.cs: Codon to add new DataGrid visualizers * Widgets/DataGrid/Visualizers/DataGridItemCommandHandler.cs, Widgets/DataGrid/Visualizers/XmlTreeVisualizer.cs, Widgets/DataGrid/Visualizers/ImageVisualizer.cs, Widgets/DataGrid/Visualizers/AbstractDataGridVisualizer.cs, Widgets/DataGrid/Visualizers/TextVisualizer.cs, Widgets/DataGrid/Visualizers/XmlTextVisualizer.cs: obsolete * Widgets/DataGrid/Visualizers/IDataGridVisualizer.cs: improved API * Widgets/DataGrid/Views/ImageVisualizerView.cs: datagrid visualizer for images * Widgets/DataGrid/Views/TextVisualizerView.cs: datagrid visualizer for text 2008-01-29 Ben Motmans * Widgets/ColumnMappingWidget.cs: use DotNetType property to get the .NET type 2008-01-29 Ben Motmans * gtk-gui/MonoDevelop.Database.Components.DataGrid.cs, gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs, gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs, gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs, gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs, gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs, gtk-gui/gui.stetic: auto generated code * MonoDevelop.Database.Components.mdp: depend on Gtk# 2.8 instead of 2.10 2008-01-29 Ben Motmans * Widgets/ConnectionSettingsWidget.cs, gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs: several improvements to the "test connection" method 2008-01-28 Ben Motmans * Widgets/ConnectionSettingsWidget.cs: implemented the test button 2008-01-28 Ben Motmans * Commands/AbstractDatabaseProviderList.cs: command that lists all available db providers * Dialogs/DatabaseConnectionSettingsDialog.cs: moved most of the functionality to a specific widget * Widgets/SelectTableWidget.cs: widget to select a specific table * Widgets/ColumnMappingWidget.cs: widget that allows a database object to be mapped to a .NET object * Widgets/SortedTableListStore.cs: listview containing a list of sorted tables * Widgets/ProjectDirectoryComboBox.cs: combobox that lists all projects/directories in the current open solution * Widgets/ConnectionSettingsWidget.cs: improved widget to edit/create connection settings * Widgets/TableMappingWidget.cs: table mapping widget for use in the codegeneration addin * gtk-gui/MonoDevelop.Database.Components.DataGrid.cs, gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs, gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs, gtk-gui/MonoDevelop.Database.Components.ConnectionSettingsWidget.cs, gtk-gui/MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.cs, gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs, gtk-gui/objects.xml, gtk-gui/MonoDevelop.Database.Components.SqlEditorWidget.cs, gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs, gtk-gui/gui.stetic, Makefile.am: auto generated changes 2008-01-25 Lluis Sanchez Gual * MonoDevelop.Database.Components.addin.xml: Update MD version. 2008-01-22 Lluis Sanchez Gual * MonoDevelop.Database.Components.addin.xml: Updated add-in category and description. 2007-12-14 Lluis Sanchez Gual * MonoDevelop.Database.Components.mdp: Updated project file. The order of extended properties won't change anymore. 2007-12-12 Lluis Sanchez Gual * MonoDevelop.Database.Components.addin.xml: Bump add-in versions. 2007-12-04 Lluis Sanchez Gual * MonoDevelop.Database.Components.mdp: Updated project files. 2007-12-04 Lluis Sanchez Gual * Dialogs/WaitDialog.cs, Dialogs/DatabaseConnectionSettingsDialog.cs, Widgets/DataGrid/Renderers/BooleanContentRenderer.cs, Widgets/ColumnMappingWidget.cs, Widgets/SelectColumnWidget.cs, Widgets/SqlEditorWidget.cs, gtk-gui/MonoDevelop.Database.Components.DataGrid.cs, gtk-gui/MonoDevelop.Database.Components.ShowImageDialog.cs, gtk-gui/MonoDevelop.Database.Components.WaitDialog.cs, gtk-gui/MonoDevelop.Database.Components.DatabaseConnectionSettingsDialog.cs, gtk-gui/MonoDevelop.Database.Components.ShowTextDialog.cs, gtk-gui/MonoDevelop.Database.Components.SelectColumnDialog.cs, gtk-gui/gui.stetic, Makefile.am, MonoDevelop.Database.Components.addin.xml, MonoDevelop.Database.Components.mdp: Directory reorganization. 2007-11-09 Michael Hutchinson * Widgets/DataGrid/DataGrid.cs: Track LoggingService API. Replace some "LogError" calls with "LogDebug" calls. 2007-10-29 Lluis Sanchez Gual * MonoDevelop.Database.Components.addin.xml: Bump MD version. 2007-10-23 Lluis Sanchez Gual * MonoDevelop.Database.Components.mdp: Project file names updated by change in MD path functions. 2007-10-16 Lluis Sanchez Gual * gtk-gui/gui.stetic, MonoDevelop.Database.Components.mdp: Fix required GTK# version. 2007-10-02 Ben Motmans * Dialogs/DatabaseConnectionSettingsDialog.cs: Allow empty passwords 2007-09-26 Michael Hutchinson * Makefile.am: Don't deploy .addin.xml file. * MonoDevelop.Database.Components.mdp: Don't unnecessarily local-copy project references. Don't sync EXTRA_DIST with deploy files. Add Makefile.am to file list. 2007-09-21 Lluis Sanchez Gual * MonoDevelop.Database.Components.addin.xml: Bump MD version. 2007-09-19 Ben Motmans 2007-09-16 Ben Motmans * Makefile.am: link to the correct Mono.Addins dll 2007-09-07 Ben Motmans * Dialogs/DatabaseConnectionSettingsDialog.cs: improved capabilities system 2007-08-29 Ben Motmans * MonoDevelop.Database.Components.addin.xml: use updated ExtensionNodeSet 2007-08-28 Ben Motmans * Widgets/DataGrid/DataGrid.cs: added a missing " char * gtk-gui/gui.stetic, Makefile.am, MonoDevelop.Database.Components.mdp: use project references instead of assembly references 2007-08-28 Ben Motmans * Widgets/DataGrid/DataGrid.cs, Widgets/SqlEditorWidget.cs, MonoDevelop.Database.Components.addin.xml: updated addin paths * Makefile.am: updated makefile 2007-08-03 Ben Motmans * Widgets/SqlEditorWidget.cs: fixed the context menu 2007-08-02 Ben Motmans * Dialogs/DatabaseConnectionSettingsDialog.cs: make sure the database entry is always editable * Widgets/SelectColumnWidget.cs, Widgets/SortedColumnListStore.cs: moved the liststore into a separate SortedColumnListStore class that can easily be reused * Widgets/DataGrid/DataGrid.cs: improved gchar workaround * Widgets/SelectColumnWidget.cs: added SingleMode property to force single selects 2007-08-01 Ben Motmans * Widgets/DataGrid/DataGrid.cs: Added workaround for chars in the liststore * Widgets/SqlEditorWidget.cs: Added a scrolledwindow * Widgets/SelectColumnWidget.cs: IsColumnChecked property to verify that at least 1 column is selected * Dialogs/SelectColumnDialog.cs: SelectAll and DeselectAll buttons * Dialogs/WaitDialog.cs: Correctly draw the window border 2007-07-31 Ben Motmans * Widgets/SelectColumnWidget.cs: various bugfixes * Widgets/SqlEditorWidget.cs: Added a addin based context menu and added ExportToFile and ImportFromFile commands 2007-07-25 Ben Motmans * Dialogs/DatabaseConnectionSettingsDialog.cs: Various improvements and bugfixes * Commands/SqlEditorCommands.cs, Commands/DataGridCommands.cs: Commands * Dialogs/WaitDialog.cs: Dialog to alert the user of progress during a background operation * Widgets/DataGrid/Visualizers/DataGridItemCommandHandler.cs: Command Handler for DataGrid context menu's * Widgets/DataGrid/Visualizers/AbstractDataGridVisualizer.cs: Abstract Visualizer implementation * Widgets/DatabaseConnectionContextComboBox.cs: ComboBox to list all DatabaseConnectionContexts * Widgets/SqlEditorWidget.cs: re-useable sql editor with syntax highlighting * MonoDevelop.Database.Components.addin.xml: addin definitions 2007-07-18 Ben Motmans * Dialogs/DatabaseConnectionSettingsDialog.cs: Do not make the name entry and provider combo insensitive when the custom connection string checkbutton is activated 2007-07-17 Ben Motmans * Makefile.am: initial makefile * Widgets/ConnectionComboBox.cs, Dialogs/ShowXmlTreeDialog.cs, Dialogs/PasswordDialog.cs: removed obsolete classes * Dialogs/DatabaseConnectionSettingsDialog.cs: improved connection settings dialog, fixes most of the old bugs 2007-07-14 Ben Motmans * Widgets/DataGrid/*: New DataGrid widget, with support for data visualizers and content based renderers * Dialogs/ShowTextDialog.cs: Text visualization widget for the DataGrid control * Dialogs/ShowImageDialog.cs: Image visualization widget for the DataGrid control * Dialogs/ShowXmlTreeDialog.cs: XML visualization widget for the DataGrid control * Codons/DataGridContentRendererCodon.cs: Codon to add content renderers to the datagrid control * Codons/DataGridVisualizerCodon.cs: Codon to add visualizers to the datagrid control 2007-07-10 Ben Motmans * Dialogs/ConnectionDialog.cs: imported from ConnectionManager project, added CheckBox to set the ConnectionSettings SavePassword property, various other bugfixes * Dialogs/PasswordDialog.cs: password dialog * Widgets/DataGrid/*: imported from Query project * Widgets/ConnectionComboBox.cs: ComboBox that lists all ConnectionSettings 2007-07-09 Ben Motmans * Project: re-usable gtk# data controls * Containers/*.cs: Data objects for use inside custom widgets * Dialogs/SelectColumnDialog.cs: Dialog to select columns * Widgets/CellRendererTypeCombo.cs: CellRendererCombo with a list of all standard .NET data types * Widgets/ColumnMappingWidget.cs: ListView used to map ColumnSchema objects to .NET objects * Widgets/ProjectDirectoryComboBox.cs: Combo used to select a target project or directory * Widgets/SelectColumnWidget.cs: ListView to select ColumnSchema objects * Widgets/SelectSchemaWidget.cs: ListView to select Table, View or Procedure schemas monodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/0000755000175000017500000000000011266446160026101 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/0000755000175000017500000000000011266446160027560 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/0000755000175000017500000000000011266446160031511 5ustar directhexdirecthex././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BlobContentRenderer.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BlobContentRe0000644000175000017500000000321411266446160034134 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections; using System.Data; using Mono.Addins; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { public class BlobContentRenderer : IDataGridContentRenderer { public Type[] DataTypes { get { return new Type[]{ typeof(byte[]) }; } } public void SetContent (CellRendererText cell, object dataObject) { cell.Markup = "bin"; } public int Compare (object x, object y) { return 0; } } }././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/ObjectContentRenderer.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/ObjectContent0000644000175000017500000000351611266446160034202 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections; using System.Data; using Mono.Addins; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { public class ObjectContentRenderer : IDataGridContentRenderer { public Type[] DataTypes { get { return Type.EmptyTypes; } //special case } public void SetContent (CellRendererText cell, object dataObject) { cell.Text = dataObject.ToString (); } public int Compare (object x, object y) { if (x == null && y == null) return 0; else if (x == null) return -1; else if (y == null) return 1; if (x is IComparable) return (x as IComparable).CompareTo (y); return 0; } } }././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/NullContentRenderer.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/NullContentRe0000644000175000017500000000321711266446160034173 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections; using System.Data; using Mono.Addins; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { public class NullContentRenderer : IDataGridContentRenderer { public Type[] DataTypes { get { return Type.EmptyTypes; } //special case } public void SetContent (CellRendererText cell, object dataObject) { cell.Markup = "null"; } public int Compare (object x, object y) { return 0; } } }././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/DecimalContentRenderer.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/DecimalConten0000644000175000017500000000346311266446160034147 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections; using System.Data; using Mono.Addins; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { public class DecimalContentRenderer : IDataGridContentRenderer { public Type[] DataTypes { get { return new Type[]{ typeof(decimal) }; } } public void SetContent (CellRendererText cell, object dataObject) { cell.Text = dataObject.ToString (); } public int Compare (object x, object y) { if (x == null && y == null) return 0; else if (x == null) return -1; else if (y == null) return 1; decimal dx = (decimal)x; return dx.CompareTo (y); } } }././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/StringContentRenderer.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/StringContent0000644000175000017500000000345711266446160034246 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections; using System.Data; using Mono.Addins; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { public class StringContentRenderer : IDataGridContentRenderer { public Type[] DataTypes { get { return new Type[]{ typeof(string) }; } } public void SetContent (CellRendererText cell, object dataObject) { cell.Text = dataObject.ToString (); } public int Compare (object x, object y) { if (x == null && y == null) return 0; else if (x == null) return -1; else if (y == null) return 1; string sx = (string)x; return sx.CompareTo (y); } } }././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/IntegerContentRenderer.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/IntegerConten0000644000175000017500000000352411266446160034204 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections; using System.Data; using Mono.Addins; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { public class IntegerContentRenderer : IDataGridContentRenderer { public Type[] DataTypes { get { return new Type[]{ typeof(int), typeof(uint), typeof(short), typeof(ushort) }; } } public void SetContent (CellRendererText cell, object dataObject) { cell.Text = dataObject.ToString (); } public int Compare (object x, object y) { if (x == null && y == null) return 0; else if (x == null) return -1; else if (y == null) return 1; int ix = (int)x; return ix.CompareTo (y); } } }././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanContentRenderer.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/BooleanConten0000644000175000017500000000355611266446160034173 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections; using System.Data; using Mono.Addins; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { public class BooleanContentRenderer : IDataGridContentRenderer { public Type[] DataTypes { get { return new Type[]{ typeof(bool) }; } } public void SetContent (CellRendererText cell, object dataObject) { bool b = (bool)dataObject; cell.Text = b ? AddinCatalog.GetString ("Y") : AddinCatalog.GetString ("N"); } public int Compare (object x, object y) { if (x == null && y == null) return 0; else if (x == null) return -1; else if (y == null) return 1; bool bx = (bool)x; return bx.CompareTo (y); } } }././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/FloatContentRenderer.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/FloatContentR0000644000175000017500000000345311266446160034163 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections; using System.Data; using Mono.Addins; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { public class FloatContentRenderer : IDataGridContentRenderer { public Type[] DataTypes { get { return new Type[]{ typeof(float) }; } } public void SetContent (CellRendererText cell, object dataObject) { cell.Text = dataObject.ToString (); } public int Compare (object x, object y) { if (x == null && y == null) return 0; else if (x == null) return -1; else if (y == null) return 1; float fx = (float)x; return fx.CompareTo (y); } } }././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/LongContentRenderer.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/LongContentRe0000644000175000017500000000346611266446160034166 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections; using System.Data; using Mono.Addins; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { public class LongContentRenderer : IDataGridContentRenderer { public Type[] DataTypes { get { return new Type[]{ typeof(long), typeof(ulong) }; } } public void SetContent (CellRendererText cell, object dataObject) { cell.Text = dataObject.ToString (); } public int Compare (object x, object y) { if (x == null && y == null) return 0; else if (x == null) return -1; else if (y == null) return 1; long lx = (long)x; return lx.CompareTo (y); } } }././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/DoubleContentRenderer.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/DoubleContent0000644000175000017500000000345711266446160034212 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections; using System.Data; using Mono.Addins; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { public class DoubleContentRenderer : IDataGridContentRenderer { public Type[] DataTypes { get { return new Type[]{ typeof(double) }; } } public void SetContent (CellRendererText cell, object dataObject) { cell.Text = dataObject.ToString (); } public int Compare (object x, object y) { if (x == null && y == null) return 0; else if (x == null) return -1; else if (y == null) return 1; double dx = (double)x; return dx.CompareTo (y); } } }././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/IDataGridContentRenderer.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/IDataGridCont0000644000175000017500000000274711266446160034062 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections; using System.Data; using Mono.Addins; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { public interface IDataGridContentRenderer : IComparer { Type[] DataTypes { get; } void SetContent (CellRendererText cell, object dataObject); } }././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/ByteContentRenderer.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Renderers/ByteContentRe0000644000175000017500000000346611266446160034172 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections; using System.Data; using Mono.Addins; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { public class ByteContentRenderer : IDataGridContentRenderer { public Type[] DataTypes { get { return new Type[]{ typeof(byte), typeof(sbyte) }; } } public void SetContent (CellRendererText cell, object dataObject) { cell.Text = dataObject.ToString (); } public int Compare (object x, object y) { if (x == null && y == null) return 0; else if (x == null) return -1; else if (y == null) return 1; byte bx = (byte)x; return bx.CompareTo (y); } } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/0000755000175000017500000000000011266446160032100 5ustar directhexdirecthex././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisualizers.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/DefaultVisu0000644000175000017500000000451711266446160034265 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Data; using Mono.Addins; using MonoDevelop.Core; using MonoDevelop.Ide; namespace MonoDevelop.Database.Components { public class ImageVisualizer : IDataGridVisualizer { public string Name { get { return AddinCatalog.GetString ("Image"); } } public bool CanVisualize (object dataObject) { if (dataObject == null) return false; return dataObject.GetType () == typeof (byte[]); } public void Visualize (object dataObject) { ImageVisualizerView view = new ImageVisualizerView (); view.Load (dataObject); IdeApp.Workbench.OpenDocument (view, true); } } public class TextVisualizer : IDataGridVisualizer { public string Name { get { return AddinCatalog.GetString ("Text"); } } public bool CanVisualize (object dataObject) { if (dataObject == null) return false; Type type = dataObject.GetType (); return type == typeof (string) || type == typeof (byte[]) || type.IsPrimitive; } public void Visualize (object dataObject) { TextVisualizerView view = new TextVisualizerView (); view.Load (dataObject); IdeApp.Workbench.OpenDocument (view, true); } } }././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/IDataGridVisualizer.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Visualizers/IDataGridVi0000644000175000017500000000271311266446160034115 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Data; using Mono.Addins; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { public interface IDataGridVisualizer { string Name { get; } bool CanVisualize (object dataObject); void Visualize (object dataObject); } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/DataGridColumn.cs0000644000175000017500000000555711266446160032760 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Data; using System.Collections; using System.Collections.Generic; using Mono.Addins; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { public class DataGridColumn : TreeViewColumn { private DataGrid grid; private DataColumn column; private int columnIndex; private IDataGridContentRenderer contentRenderer; private static IDataGridContentRenderer nullRenderer; static DataGridColumn () { nullRenderer = new NullContentRenderer (); } public DataGridColumn (DataGrid grid, DataColumn column, int columnIndex) { this.grid = grid; this.column = column; this.columnIndex = columnIndex; contentRenderer = grid.GetDataGridContentRenderer (column.DataType); Title = column.ColumnName.Replace ("_", "__"); //underscores are normally used for underlining, so needs escape char Clickable = true; CellRendererText textRenderer = new CellRendererText (); PackStart (textRenderer, true); SetCellDataFunc (textRenderer, new CellLayoutDataFunc (ContentDataFunc)); } public int ColumnIndex { get { return columnIndex; } } public IComparer ContentComparer { get { return contentRenderer; } } public Type DataType { get { return column.DataType; } } private void ContentDataFunc (CellLayout layout, CellRenderer cell, TreeModel model, TreeIter iter) { object dataObject = model.GetValue (iter, columnIndex); if (dataObject == null) nullRenderer.SetContent (cell as CellRendererText, dataObject); else contentRenderer.SetContent (cell as CellRendererText, dataObject); } protected override void OnClicked () { base.OnClicked (); grid.Sort (this); } } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Views/0000755000175000017500000000000011266446160030655 5ustar directhexdirecthex././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerView.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Views/TextVisualizerVie0000644000175000017500000000516511266446160034255 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic; using Mono.Addins; using MonoDevelop.Database.Sql; using MonoDevelop.Core; using MonoDevelop.Components; using MonoDevelop.Ide.Gui; namespace MonoDevelop.Database.Components { public class TextVisualizerView : AbstractViewContent { private VBox vbox; private ScrolledWindow scrolledWindow; private TextView textView; public TextVisualizerView () { vbox = new VBox (false, 6); vbox.BorderWidth = 6; TextTagTable tagTable = new TextTagTable (); TextBuffer buffer = new TextBuffer (tagTable); textView = new TextView (buffer); scrolledWindow = new ScrolledWindow (); scrolledWindow.AddWithViewport (textView); vbox.PackStart (scrolledWindow, true, true, 0); vbox.ShowAll (); } public override string UntitledName { get { return AddinCatalog.GetString ("Image"); } } public override void Dispose () { Control.Destroy (); } public override void Load (string filename) { throw new NotSupportedException (); } public override Widget Control { get { return vbox; } } public void Load (object dataObject) { if (dataObject != null) { Type type = dataObject.GetType (); if (type == typeof (byte[])) textView.Buffer.Text = System.Text.Encoding.UTF8.GetString (dataObject as byte[]); else textView.Buffer.Text = dataObject.ToString (); return; } textView.Buffer.Text = String.Empty; } } }././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerView.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/Views/ImageVisualizerVi0000644000175000017500000000474611266446160034212 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic; using Mono.Addins; using MonoDevelop.Database.Sql; using MonoDevelop.Core; using MonoDevelop.Components; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui; namespace MonoDevelop.Database.Components { public class ImageVisualizerView : AbstractViewContent { private VBox vbox; private ScrolledWindow scrolledWindow; private Gtk.Image image; public ImageVisualizerView () { vbox = new VBox (false, 6); vbox.BorderWidth = 6; image = new Gtk.Image (); scrolledWindow = new ScrolledWindow (); scrolledWindow.Add (image); vbox.PackStart (scrolledWindow, true, true, 0); vbox.ShowAll (); } public override string UntitledName { get { return AddinCatalog.GetString ("Image"); } } public override void Dispose () { Control.Destroy (); } public override void Load (string filename) { throw new NotSupportedException (); } public override Widget Control { get { return vbox; } } public void Load (object dataObject) { byte[] blob = dataObject as byte[]; if (blob != null) { try { Gdk.Pixbuf pixbuf = new Gdk.Pixbuf (blob); image.Pixbuf = pixbuf; return; } catch {} } image.Pixbuf = ImageService.GetPixbuf ("gtk-missing-image", IconSize.Dialog); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DataGrid/DataGrid.cs0000644000175000017500000003040111266446160031564 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections; using System.Collections.Generic; using System.Data; using Mono.Addins; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui; using MonoDevelop.Components.Commands; using Mono.TextEditor; namespace MonoDevelop.Database.Components { [System.ComponentModel.Category("MonoDevelop.Database.Components")] [System.ComponentModel.ToolboxItem(true)] public partial class DataGrid : Bin { private bool limitPageSize = true; private int pageSize = 50; private int currentRecord = 0; private int numRecords = 0; private DataTable dataSource; private ListStore store; private DataGridColumn[] columns; private int columnCount = 0; private int sortColumn = 0; private IComparer sortComparer; private ObjectContentRenderer defaultContentRenderer; private Dictionary contentRenderers; private Dictionary conversionLookup = new Dictionary (); private delegate string ConvertObjectFunc (object obj); private ConvertObjectFunc byteConvertFunc = new ConvertObjectFunc (ByteConvertFunc); private ConvertObjectFunc sbyteConvertFunc = new ConvertObjectFunc (SByteConvertFunc); private object clickedCellObject; public DataGrid () { this.Build (); //Gtk# 2.10: grid.EnableGridLines = TreeViewGridLines.Both; grid.ButtonPressEvent += ButtonPressed; grid.PopupMenu += (o, args) => DoPopupMenu (null); grid.Selection.Mode = Gtk.SelectionMode.Multiple; contentRenderers = new Dictionary (); AddContentRenderer (new BlobContentRenderer ()); AddContentRenderer (new BooleanContentRenderer ()); AddContentRenderer (new ByteContentRenderer ()); AddContentRenderer (new DecimalContentRenderer ()); AddContentRenderer (new DoubleContentRenderer ()); AddContentRenderer (new FloatContentRenderer ()); AddContentRenderer (new IntegerContentRenderer ()); AddContentRenderer (new LongContentRenderer ()); AddContentRenderer (new StringContentRenderer ()); foreach (DataGridContentRendererCodon codon in AddinManager.GetExtensionNodes ("/MonoDevelop/Database/DataGrid/Renderers")) AddContentRenderer (codon.ContentRenderer); } public bool ShowNavigator { get { return hbox.Visible; } set { hbox.Visible = value; } } public bool EnableNavigator { get { return hbox.Sensitive; } set { hbox.Sensitive = value; } } public int PageSize { get { return pageSize; } set { pageSize = value; } } public bool LimitPageSize { get { return limitPageSize; } set { limitPageSize = value; ShowNavigator = LimitPageSize; } } public int CurrentRecord { get { return currentRecord; } } public int RecordCount { get { return numRecords; } } public void DataBind () { if (dataSource == null) { Clear (); return; } int index = 0; Type[] storeTypes = new Type[dataSource.Columns.Count]; columnCount = dataSource.Columns.Count; foreach (DataColumn col in dataSource.Columns) { DataGridColumn dgCol = new DataGridColumn (this, col, index); grid.AppendColumn (dgCol); if (col.DataType == typeof (byte)) { //special case for gchar (TODO: look up the bugzilla bug id) storeTypes[index] = typeof (string); conversionLookup.Add (index, byteConvertFunc); } else if (col.DataType == typeof (sbyte)) { storeTypes[index] = typeof (string); conversionLookup.Add (index, sbyteConvertFunc); } else if (col.DataType.IsPrimitive || col.DataType == typeof (string) || col.DataType.IsEnum) { storeTypes[index] = col.DataType; } else { //the ListStore doesn't allow types that can't be converted to a GType storeTypes[index] = typeof (object); } index++; } store = new ListStore (storeTypes); grid.Model = store; TreeIterCompareFunc sortFunc = new TreeIterCompareFunc (SortFunc); store.SetSortFunc (0, sortFunc); store.SetSortColumnId (0, SortType.Ascending); //TODO: is this needed ? NavigateToRecord (0); } public DataTable DataSource { get { return dataSource; } set { dataSource = value; if (value != null) numRecords = dataSource.Rows.Count; else numRecords = 0; } } public void Clear () { currentRecord = 0; numRecords = 0; columnCount = 0; conversionLookup.Clear (); if (store != null) { store.Clear (); store = null; } if (columns != null) { for (int i=0; i numRecords) throw new ArgumentException ("Invalid record index."); if (limitPageSize) { int count = numRecords - record; if (count > pageSize) count = pageSize; FillGrid (record, count); } else { int count = numRecords - record; FillGrid (record, count); } ShowNavigationState (); } private void ShowNavigationState () { entryTotal.Text = numRecords.ToString (); int currentEnd = 0; if (limitPageSize) { currentEnd = currentRecord + pageSize; if (currentEnd > numRecords) currentEnd = numRecords; } else { currentEnd = numRecords; } entryCurrent.Text = String.Format ("{0}-{1}", currentRecord, currentEnd); } private void FillGrid (int start, int count) { grid.Model = null; int end = start + count; if (dataSource.Rows.Count < end) end = dataSource.Rows.Count; store.Clear (); for (int i=start; i numRecords) { int modulus = numRecords % pageSize; currentRecord = numRecords - modulus; } NavigateToRecord (currentRecord); } protected virtual void ButtonLastClicked (object sender, System.EventArgs e) { int modulus = numRecords % pageSize; currentRecord = numRecords - modulus; NavigateToRecord (currentRecord); } protected virtual void EntryCurrentActivated (object sender, System.EventArgs e) { string[] split = entryCurrent.Text.Split (new char[]{'-'}, 2, StringSplitOptions.RemoveEmptyEntries); if (split == null || split.Length < 1) { ShowNavigationState (); return; } int curRec; int curEnd; if (int.TryParse (split[0], out curRec)) { if (curRec < 0) curRec = 0; else if (curRec >= numRecords) curRec = numRecords - 1; currentRecord = curRec; } else { return; } if (split.Length > 1 && int.TryParse (split[1], out curEnd)) { pageSize = curEnd - curRec; if (pageSize <= 0) pageSize = 50; } ShowNavigationState (); } internal IDataGridContentRenderer GetDataGridContentRenderer (Type type) { IDataGridContentRenderer renderer = null; if (contentRenderers.TryGetValue (type, out renderer)) return renderer; if (defaultContentRenderer == null) defaultContentRenderer = new ObjectContentRenderer (); return defaultContentRenderer; } internal void Sort (DataGridColumn column) { sortColumn = column.ColumnIndex; sortComparer = column.ContentComparer; if (column.SortIndicator) column.SortOrder = ReverseSortOrder (column); //show indicator on current column, remove on all others foreach (TreeViewColumn col in grid.Columns) col.SortIndicator = col == column; store.SetSortFunc (column.ColumnIndex, new TreeIterCompareFunc (SortFunc)); store.SetSortColumnId (column.ColumnIndex, column.SortOrder); } private SortType ReverseSortOrder (TreeViewColumn column) { if (column.SortIndicator) { if (column.SortOrder == SortType.Ascending) return SortType.Descending; else return SortType.Ascending; } else { return SortType.Ascending; } } private int SortFunc (TreeModel model, TreeIter x, TreeIter y) { if (sortComparer == null) return 0; object ox = model.GetValue (x, sortColumn); object oy = model.GetValue (y, sortColumn); return sortComparer.Compare (ox, oy); } private void AddContentRenderer (IDataGridContentRenderer renderer) { foreach (Type type in renderer.DataTypes) { if (contentRenderers.ContainsKey (type)) LoggingService.LogError ("Duplicate IDataGridContentRenderer for type '{0}'", type.FullName); else contentRenderers.Add (type, renderer); } } [GLib.ConnectBefore] private void ButtonPressed (object sender, ButtonPressEventArgs args) { TreePath path = null; TreeViewColumn col = null; if (grid.GetPathAtPos ((int)args.Event.X, (int)args.Event.Y, out path, out col)) { DataGridColumn dgCol = col as DataGridColumn; TreeIter iter; if (store.GetIter (out iter, path)) clickedCellObject = store.GetValue (iter, dgCol.ColumnIndex); else return; } else { return; } if (args.Event.TriggersContextMenu ()) { DoPopupMenu (args.Event); args.RetVal = true; } } void DoPopupMenu (Gdk.EventButton evt) { IdeApp.CommandService.ShowContextMenu (grid, evt, "/MonoDevelop/Database/ContextMenu/DataGrid"); } private static string ByteConvertFunc (object obj) { if (Convert.IsDBNull (obj) || obj == null) return null; byte b = (byte)obj; return "0x" + b.ToString ("X"); } private static string SByteConvertFunc (object obj) { if (Convert.IsDBNull (obj) || obj == null) return null; sbyte b = (sbyte)obj; return b.ToString ("N"); } [CommandHandler (DataGridCommands.VisualizeAsList)] protected void VisualizeAsListCommand (object obj) { //FIXME: it seems that this code is never reached IDataGridVisualizer visualizer = (IDataGridVisualizer)obj; visualizer.Visualize (clickedCellObject); } [CommandUpdateHandler (DataGridCommands.VisualizeAsList)] protected void UpdateVisualizeAsListCommand (CommandArrayInfo info) { foreach (DataGridVisualizerCodon codon in AddinManager.GetExtensionNodes ("/MonoDevelop/Database/DataGrid/Visualizers")) { IDataGridVisualizer visualizer = codon.Visualizer; CommandInfo ci = info.Add (visualizer.Name, visualizer); ci.Enabled = visualizer.CanVisualize (clickedCellObject); } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/SortedTableListStore.cs0000644000175000017500000001374711266446160032525 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Components { public class SortedTableListStore { public event EventHandler TableToggled; protected TableSchemaCollection tables; protected ListStore store; public const int ColSelectIndex = 0; public const int ColNameIndex = 1; public const int ColObjIndex = 2; protected bool singleCheck; public SortedTableListStore (TableSchemaCollection tables) { if (tables == null) throw new ArgumentNullException ("tables"); this.tables = tables; store = new ListStore (typeof (bool), typeof (string), typeof (TableSchema)); store.SetSortColumnId (ColNameIndex, SortType.Ascending); store.SetSortFunc (ColNameIndex, new TreeIterCompareFunc (SortName)); foreach (TableSchema table in tables) AddTable (table); tables.ItemAdded += new SortedCollectionItemEventHandler (OnTableAdded); tables.ItemRemoved += new SortedCollectionItemEventHandler (OnTableRemoved); } public ListStore Store { get { return store; } } public virtual bool SingleCheck { get { return singleCheck; } set { if (value != singleCheck) { singleCheck = value; if (value) DeselectAll (); } } } public virtual TableSchema GetTableSchema (TreeIter iter) { if (!iter.Equals (TreeIter.Zero)) return store.GetValue (iter, ColObjIndex) as TableSchema; return null; } public virtual IEnumerable CheckedTables { get { TreeIter iter; if (store.GetIterFirst (out iter)) { do { bool chk = (bool)store.GetValue (iter, ColSelectIndex); if (chk) yield return store.GetValue (iter, ColObjIndex) as TableSchema; } while (store.IterNext (ref iter)); } } } public virtual bool IsTableChecked { get { TreeIter iter; if (store.GetIterFirst (out iter)) { do { bool chk = (bool)store.GetValue (iter, ColSelectIndex); if (chk) return true; } while (store.IterNext (ref iter)); } return false; } } public virtual void SelectAll () { SetSelectState (true); OnTableToggled (); } public virtual void DeselectAll () { SetSelectState (false); OnTableToggled (); } public virtual void Select (string name) { if (name == null) throw new ArgumentNullException ("name"); TableSchema table = tables.Search (name); if (table != null) Select (table); } public virtual void Select (TableSchema table) { if (table == null) throw new ArgumentNullException ("table"); TreeIter iter = GetTreeIter (table); if (!iter.Equals (TreeIter.Zero)) { if (singleCheck) SetSelectState (false); store.SetValue (iter, ColSelectIndex, true); OnTableToggled (); } } public virtual void ToggleSelect (TreeIter iter) { bool val = (bool) store.GetValue (iter, ColSelectIndex); bool newVal = !val; if (newVal && singleCheck) SetSelectState (false); store.SetValue (iter, ColSelectIndex, !val); OnTableToggled (); } protected virtual void SetSelectState (bool state) { TreeIter iter; if (store.GetIterFirst (out iter)) { do { store.SetValue (iter, ColSelectIndex, state); } while (store.IterNext (ref iter)); } } protected virtual TreeIter GetTreeIter (TableSchema table) { TreeIter iter; if (store.GetIterFirst (out iter)) { do { object obj = store.GetValue (iter, ColObjIndex); if (obj == table) return iter; } while (store.IterNext (ref iter)); } return TreeIter.Zero; } protected virtual void OnTableAdded (object sender, SortedCollectionItemEventArgs args) { AddTable (args.Item); } protected virtual void AddTable (TableSchema table) { store.AppendValues (false, table.Name, table); table.Changed += delegate (object sender, EventArgs args) { TreeIter iter = GetTreeIter (sender as TableSchema); if (!iter.Equals (TreeIter.Zero)) store.SetValue (iter, ColNameIndex, table.Name); }; } protected virtual void OnTableRemoved (object sender, SortedCollectionItemEventArgs args) { TreeIter iter = GetTreeIter (args.Item); if (!iter.Equals (TreeIter.Zero)) store.Remove (ref iter); } protected virtual int SortName (TreeModel model, TreeIter iter1, TreeIter iter2) { string name1 = model.GetValue (iter1, ColNameIndex) as string; string name2 = model.GetValue (iter2, ColNameIndex) as string; if (name1 == null && name2 == null) return 0; else if (name1 == null) return -1; else if (name2 == null) return 1; return name1.CompareTo (name2); } protected virtual void OnTableToggled () { if (TableToggled != null) TableToggled (this, EventArgs.Empty); } } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/ColumnMappingWidget.cs0000644000175000017500000002126211266446160032350 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic; using MonoDevelop.Database.Sql; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { [System.ComponentModel.Category("widget")] [System.ComponentModel.ToolboxItem(true)] public class ColumnMappingWidget : ScrolledWindow { private TreeView list; private ListStore store; private const int columnSelected = 0; private const int columnObj = 1; public ColumnMappingWidget () : this (true) { } public ColumnMappingWidget (bool showCheckBoxes) : base () { store = new ListStore (typeof (bool), typeof (ColumnContainer)); list = new TreeView (store); TreeViewColumn colName = new TreeViewColumn (); colName.Title = AddinCatalog.GetString ("Name"); CellRendererToggle toggleRenderer = new CellRendererToggle (); toggleRenderer.Activatable = true; toggleRenderer.Toggled += new ToggledHandler (SelectToggled); colName.PackStart (toggleRenderer, false); CellRendererText nameRenderer = new CellRendererText (); colName.PackStart (nameRenderer, true); TreeViewColumn colType = new TreeViewColumn (); colType.Title = AddinCatalog.GetString ("Db Type"); CellRendererText typeRenderer = new CellRendererText (); colType.PackStart (typeRenderer, true); TreeViewColumn colPropType = new TreeViewColumn (); colPropType.Title = AddinCatalog.GetString ("Type"); CellRendererText propTypeRenderer = new CellRendererText (); colPropType.PackStart (propTypeRenderer, true); TreeViewColumn colFieldName = new TreeViewColumn (); colFieldName.Title = AddinCatalog.GetString ("Field Name"); CellRendererText fieldNameRenderer = new CellRendererText (); fieldNameRenderer.Editable = true; fieldNameRenderer.Edited += new EditedHandler (FieldNameEdited); colFieldName.PackStart (fieldNameRenderer, true); TreeViewColumn colPropName = new TreeViewColumn (); colPropName.Title = AddinCatalog.GetString ("Property Name"); CellRendererText propNameRenderer = new CellRendererText (); propNameRenderer.Editable = true; propNameRenderer.Edited += new EditedHandler (PropNameEdited); colPropName.PackStart (propNameRenderer, true); TreeViewColumn colSetter = new TreeViewColumn (); colSetter.Title = AddinCatalog.GetString ("Setter"); CellRendererToggle setterRenderer = new CellRendererToggle (); setterRenderer.Activatable = true; setterRenderer.Toggled += new ToggledHandler (SetterToggled); colSetter.PackStart (setterRenderer, false); colName.SetCellDataFunc (nameRenderer, new CellLayoutDataFunc (NameDataFunc)); colType.SetCellDataFunc (typeRenderer, new CellLayoutDataFunc (TypeDataFunc)); colPropName.SetCellDataFunc (fieldNameRenderer, new CellLayoutDataFunc (FieldNameDataFunc)); colPropName.SetCellDataFunc (propNameRenderer, new CellLayoutDataFunc (PropNameDataFunc)); colPropType.SetCellDataFunc (propTypeRenderer, new CellLayoutDataFunc (PropTypeDataFunc)); colSetter.SetCellDataFunc (setterRenderer, new CellLayoutDataFunc (SetterDataFunc)); list.AppendColumn (colName); list.AppendColumn (colType); list.AppendColumn (colFieldName); list.AppendColumn (colPropName); list.AppendColumn (colPropType); list.AppendColumn (colSetter);; list.HeadersVisible = true; this.Add (list); } public void Append (IEnumerable columns) { foreach (ColumnContainer column in columns) store.AppendValues (true, column); } public IEnumerable CheckedColumns { get { TreeIter iter; if (store.GetIterFirst (out iter)) { do { bool chk = (bool)store.GetValue (iter, columnSelected); if (chk) yield return store.GetValue (iter, columnObj) as ColumnContainer; } while (store.IterNext (ref iter)); } } } public void SelectAll () { SetSelectState (true); } public void DeselectAll () { SetSelectState (false); } private void SetSelectState (bool state) { TreeIter iter; if (store.GetIterFirst (out iter)) { do { store.SetValue (iter, columnSelected, state); } while (store.IterNext (ref iter)); } } private void NameDataFunc (CellLayout layout, CellRenderer cell, TreeModel model, TreeIter iter) { CellRendererText textRenderer = cell as CellRendererText; ColumnContainer container = model.GetValue (iter, columnObj) as ColumnContainer; textRenderer.Text = container.ColumnSchema.Name; } private void TypeDataFunc (CellLayout layout, CellRenderer cell, TreeModel model, TreeIter iter) { CellRendererText textRenderer = cell as CellRendererText; ColumnContainer container = model.GetValue (iter, columnObj) as ColumnContainer; textRenderer.Text = container.ColumnSchema.DataTypeName; } private void FieldNameDataFunc (CellLayout layout, CellRenderer cell, TreeModel model, TreeIter iter) { CellRendererText textRenderer = cell as CellRendererText; ColumnContainer container = model.GetValue (iter, columnObj) as ColumnContainer; textRenderer.Text = container.FieldName; } private void PropNameDataFunc (CellLayout layout, CellRenderer cell, TreeModel model, TreeIter iter) { CellRendererText textRenderer = cell as CellRendererText; ColumnContainer container = model.GetValue (iter, columnObj) as ColumnContainer; textRenderer.Text = container.PropertyName; } private void PropTypeDataFunc (CellLayout layout, CellRenderer cell, TreeModel model, TreeIter iter) { CellRendererText textRenderer = cell as CellRendererText; ColumnContainer container = model.GetValue (iter, columnObj) as ColumnContainer; DataTypeSchema dt = container.ColumnSchema.DataType; ISchemaProvider provider = dt.SchemaProvider; Type type = dt.DotNetType; textRenderer.Text = type.Name; } private void SetterDataFunc (CellLayout layout, CellRenderer cell, TreeModel model, TreeIter iter) { CellRendererToggle toggleRenderer = cell as CellRendererToggle; ColumnContainer container = model.GetValue (iter, columnObj) as ColumnContainer; toggleRenderer.Active = container.HasSetter; } private void SelectToggled (object sender, ToggledArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { bool val = (bool) store.GetValue (iter, columnSelected); store.SetValue (iter, columnSelected, !val); } } private void SetterToggled (object sender, ToggledArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { ColumnContainer container = store.GetValue (iter, columnObj) as ColumnContainer; container.HasSetter = !container.HasSetter; } } private void PropNameEdited (object sender, EditedArgs args) { Gtk.TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { ColumnContainer container = store.GetValue (iter, columnObj) as ColumnContainer; if (args.NewText != null && args.NewText.Length > 0) { container.PropertyName = args.NewText; } else { //restore old name if new one is empty (sender as CellRendererText).Text = container.PropertyName; } } } private void FieldNameEdited (object sender, EditedArgs args) { Gtk.TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { ColumnContainer container = store.GetValue (iter, columnObj) as ColumnContainer; if (args.NewText != null && args.NewText.Length > 0) { container.FieldName = args.NewText; } else { //restore old name if new one is empty (sender as CellRendererText).Text = container.FieldName; } } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/ProjectDirectoryComboBox.cs0000644000175000017500000001016111266446160033353 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.IO; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Ide.Gui; using MonoDevelop.Ide; using MonoDevelop.Projects; namespace MonoDevelop.Database.Components { [System.ComponentModel.Category("widget")] [System.ComponentModel.ToolboxItem(true)] public class ProjectDirectoryComboBox : ComboBox { private TreeStore store; public ProjectDirectoryComboBox () { store = new TreeStore (typeof (Gdk.Pixbuf), typeof (string), typeof (Project), typeof (string)); var pixbuf = new CellRendererPixbuf (); CellRendererText text = new CellRendererText (); this.PackStart (pixbuf, false); this.PackStart (text, false); this.AddAttribute (pixbuf, "pixbuf", 0); this.AddAttribute (text, "markup", 1); this.Model = store; PopulateCombo (); } public string SelectedDirectory { get { TreeIter iter; if (this.GetActiveIter (out iter)) return store.GetValue (iter, 3) as string; return null; } } public Project SelectedProject { get { TreeIter iter; if (this.GetActiveIter (out iter)) return store.GetValue (iter, 2) as Project; return null; } } private void PopulateCombo () { Solution cmb = IdeApp.ProjectOperations.CurrentSelectedSolution; if (cmb != null) { SolutionItem selected = IdeApp.ProjectOperations.CurrentSelectedSolutionItem; TreeIter activeIter = TreeIter.Zero; //TODO: add support for recursive combines foreach (Project entry in IdeApp.Workspace.GetAllProjects ()) { if (!(entry is DotNetProject)) continue; DotNetProject proj = (DotNetProject)entry; Gdk.Pixbuf pixbuf = null; if (proj is DotNetProject && (proj as DotNetProject).LanguageBinding == null) { pixbuf = ImageService.GetPixbuf (Gtk.Stock.DialogError); } else { pixbuf = ImageService.GetPixbuf (proj.StockIcon, IconSize.Menu); } TreeIter iter = store.AppendValues (pixbuf, "" + proj.Name + "", proj, proj.BaseDirectory); PopulateCombo (iter, proj.BaseDirectory, proj); if (proj == selected) activeIter = iter; } if (activeIter.Equals (TreeIter.Zero)) { if (store.GetIterFirst (out activeIter)) this.SetActiveIter (activeIter); } else { this.SetActiveIter (activeIter); } } } private void PopulateCombo (TreeIter parent, string parentDir, Project project) { foreach (string dir in Directory.GetDirectories (parentDir)) { string name = System.IO.Path.GetFileName (dir); DirectoryInfo info = new DirectoryInfo (dir); //TODO: use the ProjectFile information if (name == "gtk-gui" || name == "bin" || info.Attributes.ToString ().Contains ("Hidden")) continue; Gdk.Pixbuf pixbuf = ImageService.GetPixbuf (Gtk.Stock.Directory); TreeIter iter = store.AppendValues (parent, pixbuf, name, project, dir); PopulateCombo (iter, dir, project); } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs0000644000175000017500000001270511266446160031507 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using Mono.TextEditor; using System; using System.IO; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Components; using MonoDevelop.Components.Commands; using MonoDevelop.Database.Sql; using MonoDevelop.SourceEditor; namespace MonoDevelop.Database.Components { //TODO: use the abstracted MD source editor widget //TODO: remove gtksourceview-sharp as dependency + from configure.in [System.ComponentModel.Category("widget")] [System.ComponentModel.ToolboxItem(true)] public partial class SqlEditorWidget : Bin { public event EventHandler TextChanged; private Mono.TextEditor.TextEditor sourceView; public SqlEditorWidget() { this.Build(); sourceView = new Mono.TextEditor.TextEditor (); // The SourceEditor Addin should be initialized before opening any Project. // Database Addin works with or without project opened. MonoDevelop.SourceEditor.Extension.TemplateExtensionNodeLoader.Init (); sourceView.Document.MimeType = "text/x-sql"; // TODO: Set styling ? // sourceView.Options = new MonoDevelop.SourceEditor.StyledSourceEditorOptions (null); // sourceView.ShowLineNumbers = true; sourceView.Document.TextReplaced += BufferChanged; sourceView.DoPopupMenu = delegate (Gdk.EventButton e) { IdeApp.CommandService.ShowContextMenu (sourceView, e, "/MonoDevelop/Database/ContextMenu/SqlEditor"); }; scrolledwindow.Add (sourceView); ShowAll (); } public string SelectedText { get { if (sourceView.IsSomethingSelected) return sourceView.SelectedText; else return string.Empty; } } private void BufferChanged (object sender, DocumentChangeEventArgs args) { if (TextChanged != null) TextChanged (this, EventArgs.Empty); } public string Text { get { return sourceView.Document.Text; } set { if (value == null) sourceView.Document.Text = String.Empty; else sourceView.Document.Text = value; } } public bool Editable { get { return !sourceView.Document.ReadOnly; } set { sourceView.Document.ReadOnly = !value; } } [CommandHandler (SqlEditorCommands.ImportFromFile)] protected void OnImportFromFile () { FileChooserDialog dlg = new FileChooserDialog ( AddinCatalog.GetString ("Import From File"), null, FileChooserAction.Open, "gtk-cancel", ResponseType.Cancel, "gtk-open", ResponseType.Accept ); dlg.SelectMultiple = false; dlg.LocalOnly = true; dlg.Modal = true; FileFilter filter = new FileFilter (); filter.AddPattern ("*.[sS][qQ][lL]"); filter.Name = AddinCatalog.GetString ("SQL files"); FileFilter filterAll = new FileFilter (); filterAll.AddPattern ("*"); filterAll.Name = AddinCatalog.GetString ("All files"); dlg.AddFilter (filter); dlg.AddFilter (filterAll); if (dlg.Run () == (int)ResponseType.Accept) { using (FileStream stream = File.Open (dlg.Filename, FileMode.Open)) { using (StreamReader reader = new StreamReader (stream)) { Text = reader.ReadToEnd (); } } } dlg.Destroy (); } [CommandHandler (SqlEditorCommands.ExportToFile)] protected void OnExportToFile () { FileChooserDialog dlg = new FileChooserDialog ( AddinCatalog.GetString ("Export To File"), null, FileChooserAction.Save, "gtk-cancel", ResponseType.Cancel, "gtk-save", ResponseType.Accept ); dlg.SelectMultiple = false; dlg.LocalOnly = true; dlg.Modal = true; FileFilter filter = new FileFilter (); filter.AddPattern ("*.[sS][qQ][lL]"); filter.Name = AddinCatalog.GetString ("SQL files"); dlg.AddFilter (filter); if (dlg.Run () == (int)ResponseType.Accept) { if (File.Exists (dlg.Filename)) { bool overwrite = MessageService.Confirm ( AddinCatalog.GetString ("Are you sure you want to overwrite the file '{0}'?", dlg.Filename), AlertButton.OverwriteFile); if (overwrite) { using (FileStream stream = File.Open (dlg.Filename, FileMode.Create)) { using (StreamWriter writer = new StreamWriter (stream)) { writer.Write (Text); writer.Flush (); } } } } } dlg.Destroy (); } [CommandUpdateHandler (SqlEditorCommands.ExportToFile)] protected void OnUpdateExportToFile (CommandInfo info) { info.Enabled = Text.Length > 0; } } } monodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/SelectTableWidget.cs0000644000175000017500000000753211266446160031772 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Components { [System.ComponentModel.Category("MonoDevelop.Database.Components")] [System.ComponentModel.ToolboxItem(true)] public class SelectTableWidget : ScrolledWindow { public event EventHandler TableToggled; protected TreeView list; protected SortedTableListStore store; private TableSchemaCollection tables; public SelectTableWidget () : this (true) { } public SelectTableWidget (bool showCheckBoxes) { list = new TreeView (); list.HeadersVisible = true; InitializeTables (showCheckBoxes); this.Add (list); } public bool SingleCheck { get { return store.SingleCheck; } set { if (store == null) return; //when init isn't called yet store.SingleCheck = value; } } protected virtual void InitializeTables (bool showCheckBoxes) { TreeViewColumn col = new TreeViewColumn (); col.Title = AddinCatalog.GetString ("Table"); if (showCheckBoxes) { CellRendererToggle toggleRenderer = new CellRendererToggle (); toggleRenderer.Activatable = true; toggleRenderer.Toggled += new ToggledHandler (ItemToggled); col.PackStart (toggleRenderer, false); col.AddAttribute (toggleRenderer, "active", SortedTableListStore.ColSelectIndex); } CellRendererText textRenderer = new CellRendererText (); col.PackStart (textRenderer, true); col.AddAttribute (textRenderer, "text", SortedTableListStore.ColNameIndex); list.AppendColumn (col); } public void Initialize (TableSchemaCollection tables) { this.tables = tables; store = new SortedTableListStore (tables); store.TableToggled += delegate (object sender, EventArgs args) { if (TableToggled != null) TableToggled (this, args); }; list.Model = store.Store; } public TableSchema SelectedTable { get { TreeIter iter; if (list.Selection.GetSelected (out iter)) return store.GetTableSchema (iter); return null; } } public IEnumerable CheckedTables { get { return store.CheckedTables; } } public bool IsTableChecked { get { return store.IsTableChecked; } } public void SelectAll () { store.SelectAll (); } public void DeselectAll () { store.DeselectAll (); } public void Select (string name) { store.Select (name); } public void Select (TableSchema table) { store.Select (table); } private void ItemToggled (object sender, ToggledArgs args) { TreeIter iter; if (store.Store.GetIterFromString (out iter, args.Path)) store.ToggleSelect (iter); } } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/TableMappingWidget.cs0000644000175000017500000001204711266446160032143 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic; using MonoDevelop.Database.Sql; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { [System.ComponentModel.Category("MonoDevelop.Database.Components")] [System.ComponentModel.ToolboxItem(true)] public class TableMappingWidget : ScrolledWindow { private TreeView list; private ListStore store; private const int tableSelected = 0; private const int tableObj = 1; public TableMappingWidget () : this (true) { } public TableMappingWidget (bool showCheckBoxes) { store = new ListStore (typeof (bool), typeof (TableContainer)); list = new TreeView (store); TreeViewColumn colName = new TreeViewColumn (); colName.Title = AddinCatalog.GetString ("Name"); CellRendererToggle toggleRenderer = new CellRendererToggle (); toggleRenderer.Activatable = true; toggleRenderer.Toggled += new ToggledHandler (SelectToggled); colName.PackStart (toggleRenderer, false); CellRendererText nameRenderer = new CellRendererText (); colName.PackStart (nameRenderer, true); TreeViewColumn colClassName = new TreeViewColumn (); colClassName.Title = AddinCatalog.GetString ("Class Name"); CellRendererText propNameRenderer = new CellRendererText (); propNameRenderer.Editable = true; propNameRenderer.Edited += new EditedHandler (ClassNameEdited); colClassName.PackStart (propNameRenderer, true); colName.SetCellDataFunc (nameRenderer, new CellLayoutDataFunc (NameDataFunc)); colClassName.SetCellDataFunc (propNameRenderer, new CellLayoutDataFunc (ClassNameDataFunc)); list.AppendColumn (colName); list.AppendColumn (colClassName); list.HeadersVisible = true; this.Add (list); } public void Append (IEnumerable tables) { foreach (TableContainer table in tables) store.AppendValues (true, table); } public IEnumerable CheckedTables { get { TreeIter iter; if (store.GetIterFirst (out iter)) { do { bool chk = (bool)store.GetValue (iter, tableSelected); if (chk) yield return store.GetValue (iter, tableObj) as TableContainer; } while (store.IterNext (ref iter)); } } } public void SelectAll () { SetSelectState (true); } public void DeselectAll () { SetSelectState (false); } private void SetSelectState (bool state) { TreeIter iter; if (store.GetIterFirst (out iter)) { do { store.SetValue (iter, tableSelected, state); } while (store.IterNext (ref iter)); } } private void NameDataFunc (CellLayout layout, CellRenderer cell, TreeModel model, TreeIter iter) { CellRendererText textRenderer = cell as CellRendererText; TableContainer container = model.GetValue (iter, tableObj) as TableContainer; textRenderer.Text = container.TableSchema.Name; } private void ClassNameDataFunc (CellLayout layout, CellRenderer cell, TreeModel model, TreeIter iter) { CellRendererText textRenderer = cell as CellRendererText; TableContainer container = model.GetValue (iter, tableObj) as TableContainer; textRenderer.Text = container.ClassName; } private void SelectToggled (object sender, ToggledArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { bool val = (bool) store.GetValue (iter, tableSelected); store.SetValue (iter, tableSelected, !val); } } private void ClassNameEdited (object sender, EditedArgs args) { Gtk.TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { TableContainer container = store.GetValue (iter, tableObj) as TableContainer; if (args.NewText != null && args.NewText.Length > 0) { //TODO: check if valid class name container.ClassName = args.NewText; } else { //restore old name if new one is empty (sender as CellRendererText).Text = container.ClassName; } } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs0000644000175000017500000000766511266446160032207 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Components { [System.ComponentModel.Category("widget")] [System.ComponentModel.ToolboxItem(true)] public class SelectColumnWidget : ScrolledWindow { public event EventHandler ColumnToggled; protected TreeView list; protected SortedColumnListStore store; private ColumnSchemaCollection columns; public SelectColumnWidget () : this (true) { } public SelectColumnWidget (bool showCheckBoxes) { list = new TreeView (); list.HeadersVisible = true; InitializeColumns (showCheckBoxes); this.Add (list); } public bool SingleCheck { get { return store.SingleCheck; } set { if (store == null) return; //when init isn't called yet store.SingleCheck = value; } } public virtual void Clear () { if (store != null) store.Clear (); } protected virtual void InitializeColumns (bool showCheckBoxes) { TreeViewColumn col = new TreeViewColumn (); col.Title = AddinCatalog.GetString ("Column"); if (showCheckBoxes) { CellRendererToggle toggleRenderer = new CellRendererToggle (); toggleRenderer.Activatable = true; toggleRenderer.Toggled += new ToggledHandler (ItemToggled); col.PackStart (toggleRenderer, false); col.AddAttribute (toggleRenderer, "active", SortedColumnListStore.ColSelectIndex); } CellRendererText textRenderer = new CellRendererText (); col.PackStart (textRenderer, true); col.AddAttribute (textRenderer, "text", SortedColumnListStore.ColNameIndex); list.AppendColumn (col); } public void Initialize (ColumnSchemaCollection columns) { this.columns = columns; store = new SortedColumnListStore (columns); store.ColumnToggled += delegate (object sender, EventArgs args) { if (ColumnToggled != null) ColumnToggled (this, args); }; list.Model = store.Store; } public ColumnSchema SelectedColumn { get { TreeIter iter; if (list.Selection.GetSelected (out iter)) return store.GetColumnSchema (iter); return null; } } public IEnumerable CheckedColumns { get { return store.CheckedColumns; } } public bool IsColumnChecked { get { return store.IsColumnChecked; } } public void SelectAll () { store.SelectAll (); } public void DeselectAll () { store.DeselectAll (); } public void Select (string name) { store.Select (name); } public void Select (ColumnSchema column) { store.Select (column); } private void ItemToggled (object sender, ToggledArgs args) { TreeIter iter; if (store.Store.GetIterFromString (out iter, args.Path)) store.ToggleSelect (iter); } } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/SelectSchemaWidget.cs0000644000175000017500000001312011266446160032131 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic; using MonoDevelop.Database.Sql; using MonoDevelop.Ide; namespace MonoDevelop.Database.Components { [System.ComponentModel.Category("MonoDevelop.Database.Components")] [System.ComponentModel.ToolboxItem(true)] public class SelectSchemaWidget : ScrolledWindow { private TreeView list; private ListStore store; private const int columnSelected = 0; private const int columnObj = 1; public SelectSchemaWidget () { store = new ListStore (typeof (bool), typeof (ISchemaContainer)); list = new TreeView (store); TreeViewColumn col = new TreeViewColumn (); CellRendererToggle toggleRenderer = new CellRendererToggle (); toggleRenderer.Activatable = true; toggleRenderer.Toggled += new ToggledHandler (ItemToggled); col.PackStart (toggleRenderer, false); var pixbufRenderer = new CellRendererPixbuf (); col.PackStart (pixbufRenderer, false); CellRendererText textRenderer = new CellRendererText (); col.PackStart (textRenderer, true); col.SetCellDataFunc (textRenderer, new CellLayoutDataFunc (TextDataFunc)); col.SetCellDataFunc (pixbufRenderer, new CellLayoutDataFunc (PixbufDataFunc)); list.AppendColumn (col); list.HeadersVisible = false; this.Add (list); } public void Append (IEnumerable tables) { if (tables == null) throw new ArgumentNullException ("tables"); List containers = new List (); foreach (TableSchema table in tables) containers.Add (new TableSchemaContainer (table)); PopulateList (containers); } public void Append (IEnumerable views) { if (views == null) throw new ArgumentNullException ("views"); List containers = new List (); foreach (ViewSchema view in views) containers.Add (new ViewSchemaContainer (view)); PopulateList (containers); } public void Append (IEnumerable procedures) { if (procedures == null) throw new ArgumentNullException ("procedures"); List containers = new List (); foreach (ProcedureSchema procedure in procedures) containers.Add (new ProcedureSchemaContainer (procedure)); PopulateList (containers); } public IEnumerable CheckedSchemas { get { TreeIter iter; if (store.GetIterFirst (out iter)) { do { bool chk = (bool)store.GetValue (iter, columnSelected); if (chk) yield return store.GetValue (iter, columnObj) as ISchemaContainer; } while (store.IterNext (ref iter)); } } } public void SelectAll () { SetSelectState (true); } public void DeselectAll () { SetSelectState (false); } private void SetSelectState (bool state) { TreeIter iter; if (store.GetIterFirst (out iter)) { do { store.SetValue (iter, columnSelected, state); } while (store.IterNext (ref iter)); } } private void PopulateList (IEnumerable containers) { foreach (ISchemaContainer container in containers) store.AppendValues (true, container); } private void TextDataFunc (CellLayout layout, CellRenderer cell, TreeModel model, TreeIter iter) { CellRendererText textRenderer = cell as CellRendererText; ISchemaContainer schema = model.GetValue (iter, columnObj) as ISchemaContainer; textRenderer.Text = schema.Schema.Name; } private void PixbufDataFunc (CellLayout layout, CellRenderer cell, TreeModel model, TreeIter iter) { var pixbufRenderer = (CellRendererPixbuf) cell; var schema = (ISchemaContainer) model.GetValue (iter, columnObj); string iconString = null; switch (schema.SchemaContainerType) { case SchemaContainerType.Table: iconString = "md-db-table"; break; case SchemaContainerType.View: iconString = "md-db-view"; break; case SchemaContainerType.Procedure: iconString = "md-db-procedure"; break; case SchemaContainerType.Query: //TODO: iconString = Stock.Execute; break; } if (iconString != null) pixbufRenderer.Pixbuf = ImageService.GetPixbuf (iconString); } private void ItemToggled (object sender, ToggledArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { bool val = (bool) store.GetValue (iter, columnSelected); store.SetValue (iter, columnSelected, !val); } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/CellRendererTypeCombo.cs0000644000175000017500000000435611266446160032630 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Components { public class CellRendererTypeCombo : CellRendererCombo { private ListStore store; public CellRendererTypeCombo () { store = new ListStore (typeof (string), typeof (Type)); store.AppendValues ("bool", typeof (bool)); store.AppendValues ("byte array", typeof (byte[])); store.AppendValues ("char", typeof (char)); store.AppendValues ("date/time", typeof (DateTime)); store.AppendValues ("decimal", typeof (decimal)); store.AppendValues ("double", typeof (double)); //TODO: store.AppendValues ("enum", typeof (Enum)); store.AppendValues ("short", typeof (short)); store.AppendValues ("integer", typeof (int)); store.AppendValues ("long", typeof (long)); store.AppendValues ("unsigned short", typeof (ushort)); store.AppendValues ("unsigned integer", typeof (uint)); store.AppendValues ("unsigned long", typeof (ulong)); store.AppendValues ("float", typeof (float)); Model = store; } } }././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DatabaseConnectionEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DatabaseConnectionEditorWidget.c0000644000175000017500000000610111266446160034302 0ustar directhexdirecthex// // DatabaseConnectionEditorWidget.cs // // Author: // Luciano N. Callero // // Copyright (c) 2010 Lucian0 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using Gtk; using MonoDevelop.Database.Components; using MonoDevelop.Database.Sql; using System; namespace MonoDevelop.Database.Components { [System.ComponentModel.ToolboxItem(true)] public partial class DatabaseConnectionEditorWidget : Gtk.Bin { public event EventHandler SelectedDatabaseChanged; public DatabaseConnectionEditorWidget () { this.Build (); this.comboConnection.Active = -1; } public DatabaseConnectionContext DatabaseConnection { get { return comboConnection.DatabaseConnection; } } protected virtual void OnButtonEditClicked (object sender, System.EventArgs e) { DatabaseConnectionSettings settings = null; DatabaseConnectionContext ctx; if (comboConnection.DatabaseConnection != null) { ctx = comboConnection.DatabaseConnection; if (ctx.DbFactory.GuiProvider.ShowEditConnectionDialog (comboConnection.DatabaseConnection.DbFactory, comboConnection.DatabaseConnection.ConnectionSettings, out settings)) { DatabaseConnectionContext newContext = new DatabaseConnectionContext (settings); ConnectionContextService.RemoveDatabaseConnectionContext (ctx); ConnectionContextService.AddDatabaseConnectionContext (newContext); } } } protected virtual void OnButtonNewClicked (object sender, System.EventArgs e) { DatabaseAvailableProvidersDialog provs = new DatabaseAvailableProvidersDialog (); if (provs.Run () == (int)ResponseType.Ok) { if (provs.SelectedProvider != null) provs.SelectedProvider.GuiProvider.ShowAddConnectionDialog (provs.SelectedProvider); } provs.Destroy (); } protected virtual void OnComboConnectionChanged (object sender, System.EventArgs e) { if (SelectedDatabaseChanged != null) SelectedDatabaseChanged (this, new EventArgs ()); } } } ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DatabaseConnectionContextComboBox.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/DatabaseConnectionContextComboBo0000644000175000017500000001104711266446160034361 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Components { [System.ComponentModel.Category("widget")] [System.ComponentModel.ToolboxItem(true)] public class DatabaseConnectionContextComboBox : ComboBox { private ListStore store; public DatabaseConnectionContextComboBox () { store = new ListStore (typeof (string), typeof (object)); Model = store; CellRendererText textRenderer = new CellRendererText (); PackStart (textRenderer, true); AddAttribute (textRenderer, "text", 0); foreach (DatabaseConnectionContext context in ConnectionContextService.DatabaseConnections) store.AppendValues (context.ConnectionSettings.Name, context); TreeIter iter; if (store.GetIterFirst (out iter)) SetActiveIter (iter); ConnectionContextService.ConnectionContextAdded += new DatabaseConnectionContextEventHandler (OnConnectionAdded); ConnectionContextService.ConnectionContextRemoved += new DatabaseConnectionContextEventHandler (OnConnectionRemoved); ConnectionContextService.ConnectionContextEdited += new DatabaseConnectionContextEventHandler (OnConnectionEdited); ConnectionContextService.ConnectionContextRefreshed += new DatabaseConnectionContextEventHandler (OnConnectionRefreshed); } public DatabaseConnectionContext DatabaseConnection { get { TreeIter iter; if (GetActiveIter (out iter)) return store.GetValue (iter, 1) as DatabaseConnectionContext; return null; } set { if (value == null) throw new ArgumentNullException ("DatabaseConnection"); TreeIter iter = GetTreeIter (value); if (!iter.Equals (TreeIter.Zero)) SetActiveIter (iter); } } public void AddDatabaseConnectionContext (DatabaseConnectionContext context) { if (context == null) throw new ArgumentNullException ("context"); store.AppendValues (context.ConnectionSettings.Name, context); } private void OnConnectionAdded (object sender, DatabaseConnectionContextEventArgs args) { TreeIter newIter = store.AppendValues (args.ConnectionContext.ConnectionSettings.Name, args.ConnectionContext); TreeIter iter; if (!GetActiveIter (out iter)) SetActiveIter (newIter); } private void OnConnectionRemoved (object sender, DatabaseConnectionContextEventArgs args) { TreeIter iter = GetTreeIter (args.ConnectionContext); TreeIter selected; if (GetActiveIter (out selected)) { if (iter.Equals (selected)) { store.Remove (ref iter); if (store.GetIterFirst (out iter)) SetActiveIter (iter); } } store.Remove (ref iter); } private void OnConnectionEdited (object sender, DatabaseConnectionContextEventArgs args) { TreeIter iter = GetTreeIter (args.ConnectionContext); store.SetValue (iter, 0, args.ConnectionContext.ConnectionSettings.Name); } private void OnConnectionRefreshed (object sender, DatabaseConnectionContextEventArgs args) { TreeIter iter = GetTreeIter (args.ConnectionContext); store.SetValue (iter, 0, args.ConnectionContext.ConnectionSettings.Name); } private TreeIter GetTreeIter (DatabaseConnectionContext context) { TreeIter iter; if (store.GetIterFirst (out iter)) { do { object obj = store.GetValue (iter, 1); if (obj == context) return iter; } while (store.IterNext (ref iter)); } return TreeIter.Zero; } } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/SortedColumnListStore.cs0000644000175000017500000001456611266446160032733 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Components { public class SortedColumnListStore { public event EventHandler ColumnToggled; protected ColumnSchemaCollection columns; protected ListStore store; public const int ColSelectIndex = 0; public const int ColNameIndex = 1; public const int ColObjIndex = 2; protected bool singleCheck; public SortedColumnListStore (ColumnSchemaCollection columns) { if (columns == null) throw new ArgumentNullException ("columns"); this.columns = columns; store = new ListStore (typeof (bool), typeof (string), typeof (ColumnSchema)); store.SetSortColumnId (ColNameIndex, SortType.Ascending); store.SetSortFunc (ColNameIndex, new TreeIterCompareFunc (SortName)); foreach (ColumnSchema col in columns) AddColumn (col); columns.ItemAdded += new SortedCollectionItemEventHandler (OnColumnAdded); columns.ItemRemoved += new SortedCollectionItemEventHandler (OnColumnRemoved); } public ListStore Store { get { return store; } } public virtual void Clear () { if (store != null) store.Clear (); } public virtual bool SingleCheck { get { return singleCheck; } set { if (value != singleCheck) { singleCheck = value; if (value) DeselectAll (); } } } public virtual ColumnSchema GetColumnSchema (TreeIter iter) { if (!iter.Equals (TreeIter.Zero)) return store.GetValue (iter, ColObjIndex) as ColumnSchema; return null; } public virtual IEnumerable CheckedColumns { get { TreeIter iter; if (store.GetIterFirst (out iter)) { do { bool chk = (bool)store.GetValue (iter, ColSelectIndex); if (chk) yield return store.GetValue (iter, ColObjIndex) as ColumnSchema; } while (store.IterNext (ref iter)); } } } public virtual bool IsColumnChecked { get { TreeIter iter; if (store.GetIterFirst (out iter)) { do { bool chk = (bool)store.GetValue (iter, ColSelectIndex); if (chk) return true; } while (store.IterNext (ref iter)); } return false; } } public virtual void SelectAll () { SetSelectState (true); } public virtual void DeselectAll () { SetSelectState (false); } public virtual void Select (string name) { if (name == null) throw new ArgumentNullException ("name"); ColumnSchema col = columns.Search (name); // FIXME: This is a workaround, last item on the list isn't find by columns.Search. // SortedCollectionBase.BinarySearchIndex Isn't working. if (col == null) if (columns[columns.Count -1].Name.IndexOf (name, StringComparison.OrdinalIgnoreCase) > -1) Select (columns[columns.Count -1]); if (col != null) Select (col); } public virtual void Select (ColumnSchema column) { if (column == null) throw new ArgumentNullException ("column"); TreeIter iter = GetTreeIter (column); if (!iter.Equals (TreeIter.Zero)) { if (singleCheck) SetSelectState (false); store.SetValue (iter, ColSelectIndex, true); OnColumnToggled (); } } public virtual void ToggleSelect (TreeIter iter) { bool val = (bool) store.GetValue (iter, ColSelectIndex); bool newVal = !val; if (newVal && singleCheck) SetSelectState (false); store.SetValue (iter, ColSelectIndex, !val); OnColumnToggled (); } protected virtual void SetSelectState (bool state) { TreeIter iter; if (store.GetIterFirst (out iter)) { do { store.SetValue (iter, ColSelectIndex, state); } while (store.IterNext (ref iter)); } } protected virtual TreeIter GetTreeIter (ColumnSchema column) { TreeIter iter; if (store.GetIterFirst (out iter)) { do { object obj = store.GetValue (iter, ColObjIndex); if (obj == column) return iter; } while (store.IterNext (ref iter)); } return TreeIter.Zero; } protected virtual void OnColumnAdded (object sender, SortedCollectionItemEventArgs args) { AddColumn (args.Item); } protected virtual void AddColumn (ColumnSchema column) { store.AppendValues (false, column.Name, column); column.Changed += delegate (object sender, EventArgs args) { TreeIter iter = GetTreeIter (sender as ColumnSchema); if (!iter.Equals (TreeIter.Zero)) store.SetValue (iter, ColNameIndex, column.Name); }; } protected virtual void OnColumnRemoved (object sender, SortedCollectionItemEventArgs args) { TreeIter iter = GetTreeIter (args.Item); if (!iter.Equals (TreeIter.Zero)) store.Remove (ref iter); } protected virtual int SortName (TreeModel model, TreeIter iter1, TreeIter iter2) { string name1 = model.GetValue (iter1, ColNameIndex) as string; string name2 = model.GetValue (iter2, ColNameIndex) as string; if (name1 == null && name2 == null) return 0; else if (name1 == null) return -1; else if (name2 == null) return 1; return name1.CompareTo (name2); } protected virtual void OnColumnToggled () { if (ColumnToggled != null) ColumnToggled (this, EventArgs.Empty); } } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Widgets/ConnectionSettingsWidget.cs0000644000175000017500000003321111266446160033414 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Threading; using System.Collections.Generic; using Mono.Addins; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Components { [System.ComponentModel.Category("MonoDevelop.Database.Components")] [System.ComponentModel.ToolboxItem(true)] public partial class ConnectionSettingsWidget : Gtk.Bin { public event EventHandler NeedsValidation; protected bool isDefaultSettings; protected ListStore storeDatabases; protected bool isDatabaseListEmpty; protected bool isEditMode = false; protected bool enablePasswordEntry; protected bool enableUsernameEntry; protected bool enableServerEntry; protected bool enablePortEntry; protected bool enableRefreshButton; protected bool enableOpenButton; protected bool enableTestButton; protected bool enableIntegratedSecurity; protected IDbFactory factory; protected DatabaseConnectionSettings settings; public ConnectionSettingsWidget (IDbFactory factory) { if (factory == null) throw new ArgumentNullException ("factory"); this.factory = factory; this.Build(); textConnectionString.Buffer.Changed += new EventHandler (ConnectionStringChanged); checkCustom.Toggled += new EventHandler (CustomConnectionStringActivated); storeDatabases = comboDatabase.Model as ListStore; comboDatabase.Entry.Changed += new EventHandler (DatabaseChanged); EnableServerEntry = true; EnablePortEntry = true; EnableUsernameEntry = true; EnablePasswordEntry = true; EnableRefreshButton = true; EnableOpenButton = false; } public ConnectionSettingsWidget (IDbFactory factory, bool isEditMode):this(factory) { this.isEditMode = isEditMode; } public DatabaseConnectionSettings ConnectionSettings { get { if (settings == null) settings = CreateDatabaseConnectionSettings (); FillDatabaseConnectionSettings (settings); return settings; } } public bool EnableServerEntry { get { return enableServerEntry; } set { enableServerEntry = value; entryServer.Sensitive = value; } } public bool EnablePortEntry { get { return enablePortEntry; } set { enablePortEntry = value; spinPort.Sensitive = value; checkDefaultPort.Sensitive = value; } } public bool EnableIntegratedSecurity { get { return enableIntegratedSecurity; } set { enableIntegratedSecurity = value; } } public bool EnableUsernameEntry { get { return enableUsernameEntry; } set { enableUsernameEntry = value; entryUsername.Sensitive = value; } } public bool EnablePasswordEntry { get { return enablePasswordEntry; } set { enablePasswordEntry = value; entryPassword.Sensitive = value; } } public bool EnableRefreshButton { get { return enableRefreshButton; } set { enableRefreshButton = value; buttonRefresh.Sensitive = value; } } public bool EnableOpenButton { get { return enableOpenButton; } set { enableOpenButton = value; buttonOpen.Sensitive = value; } } public bool EnableTestButton { get { return enableTestButton; } set { enableTestButton = value; buttonTest.Sensitive = value; } } protected ComboBoxEntry ComboDatabase { get { return comboDatabase; } } protected internal virtual void FillDatabaseConnectionSettings (DatabaseConnectionSettings settings) { settings.ConnectionString = textConnectionString.Buffer.Text; settings.UseConnectionString = checkCustom.Active; settings.MinPoolSize = (int)spinMinPoolSize.Value; settings.MaxPoolSize = (int)spinMaxPoolSize.Value; settings.Name = entryName.Text; if (!checkIntegratedSecurity.Active) { settings.Username = entryUsername.Text; settings.Password = entryPassword.Text; settings.UseIntegratedSecurity = false; } else { settings.UseIntegratedSecurity = true; } settings.Server = entryServer.Text; if (spinPort.Sensitive) settings.Port = (int)spinPort.Value; else settings.Port = 0; settings.Database = comboDatabase.Entry.Text; settings.SavePassword = checkSavePassword.Active; } public virtual void ShowSettings (DatabaseConnectionSettings settings) { checkCustom.Active = settings.UseConnectionString; entryName.Text = String.IsNullOrEmpty (settings.Name) ? String.Empty : settings.Name; entryPassword.Text = String.IsNullOrEmpty (settings.Password) ? String.Empty : settings.Password; spinPort.Value = settings.Port > 0 ? settings.Port : spinPort.Value; entryServer.Text = String.IsNullOrEmpty (settings.Server) ? String.Empty : settings.Server; entryUsername.Text = String.IsNullOrEmpty (settings.Username) ? String.Empty : settings.Username; textConnectionString.Buffer.Text = String.IsNullOrEmpty (settings.ConnectionString) ? String.Empty : settings.ConnectionString; comboDatabase.Entry.Text = String.IsNullOrEmpty (settings.Database) ? String.Empty : settings.Database; spinMinPoolSize.Value = settings.MinPoolSize; spinMaxPoolSize.Value = settings.MaxPoolSize; checkIntegratedSecurity.Sensitive = settings.CanUseIntegratedSecurity; if (settings.UseIntegratedSecurity) checkIntegratedSecurity.Active = true; else checkIntegratedSecurity.Active = false; FillDatabaseConnectionSettings (settings); } protected internal virtual void AppendDatabase (DatabaseConnectionSettings settings) { storeDatabases.AppendValues (settings.Database); isDatabaseListEmpty = false; } protected virtual void NameChanged (object sender, System.EventArgs e) { CheckSettings (false); } protected virtual void ServerChanged (object sender, System.EventArgs e) { CheckSettings (true); } protected virtual void PortChanged (object sender, System.EventArgs e) { CheckSettings (true); } protected virtual void UsernameChanged (object sender, System.EventArgs e) { CheckSettings (true); } protected virtual void PasswordChanged (object sender, System.EventArgs e) { CheckSettings (true); } protected virtual void MinPoolSizeChanged (object sender, System.EventArgs e) { if (spinMinPoolSize.Value > spinMaxPoolSize.Value) spinMaxPoolSize.Value = spinMinPoolSize.Value; } protected virtual void MaxPoolSizeChanged (object sender, System.EventArgs e) { if (spinMaxPoolSize.Value < spinMinPoolSize.Value) spinMinPoolSize.Value = spinMaxPoolSize.Value; } protected virtual void CustomConnectionStringActivated (object sender, System.EventArgs e) { bool sens = !checkCustom.Active; entryPassword.Sensitive = sens && enablePasswordEntry; entryUsername.Sensitive = sens && enableUsernameEntry; entryServer.Sensitive = sens && enableServerEntry; spinPort.Sensitive = sens && enablePortEntry; checkDefaultPort.Sensitive = sens && enablePortEntry; checkIntegratedSecurity.Sensitive = sens && enableIntegratedSecurity; comboDatabase.Sensitive = sens; buttonRefresh.Sensitive = sens && enableRefreshButton; scrolledwindow.Sensitive = !sens; } protected virtual void ConnectionStringChanged (object sender, EventArgs e) { CheckSettings (true); } protected virtual void DatabaseChanged (object sender, EventArgs e) { if (isDatabaseListEmpty && comboDatabase.Entry.Text == AddinCatalog.GetString ("No databases found!")) { comboDatabase.Entry.Text = String.Empty; } CheckSettings (true); } protected virtual void CheckSettings (bool requiresTest) { isDefaultSettings = false; if (requiresTest) labelTest.Text = String.Empty; if (NeedsValidation != null) NeedsValidation (this, EventArgs.Empty); } public virtual bool ValidateFields () { bool ok = false; if (checkCustom.Active) { ok = textConnectionString.Buffer.Text.Length > 0; } else { bool alreadyExists = ConnectionContextService.DatabaseConnectionContextExist (ConnectionSettings); TreeIter iter; ok = entryName.Text.Length > 0 && (entryServer.Text.Length > 0 || !enableServerEntry) && (entryUsername.Text.Length > 0 || !enableUsernameEntry) && (comboDatabase.Entry.Text.Length > 0) && (!alreadyExists || (isEditMode && ConnectionSettings.Name == entryName.Text)); if (alreadyExists && !isEditMode) labelMessage.Markup = string.Concat ("", AddinCatalog.GetString ("Connection Name Already used, choose another."),""); else labelMessage.Markup = ""; } return ok; } protected virtual DatabaseConnectionSettings CreateDatabaseConnectionSettings () { DatabaseConnectionSettings settings = new DatabaseConnectionSettings (); settings.ProviderIdentifier = factory.Identifier; FillDatabaseConnectionSettings (settings); return settings; } protected virtual void RefreshClicked (object sender, System.EventArgs e) { DatabaseConnectionSettings settingsCopy = CreateDatabaseConnectionSettings (); storeDatabases.Clear (); ThreadPool.QueueUserWorkItem (new WaitCallback (RefreshClickedThreaded), settingsCopy); } protected virtual void RefreshClickedThreaded (object state) { DatabaseConnectionSettings settings = state as DatabaseConnectionSettings; DatabaseConnectionContext context = new DatabaseConnectionContext (settings); IDbFactory fac = DbFactoryService.GetDbFactory (settings.ProviderIdentifier); FakeConnectionPool pool = null; try { pool = new FakeConnectionPool (fac, fac.ConnectionProvider, context); pool.Initialize (); if (pool.HasErrors) { MessageService.ShowError (pool.Error); return; } ISchemaProvider prov = fac.CreateSchemaProvider (pool); DatabaseSchemaCollection databases = prov.GetDatabases (); DispatchService.GuiDispatch (delegate () { foreach (DatabaseSchema db in databases) { storeDatabases.AppendValues (db.Name); } }); isDatabaseListEmpty = databases.Count == 0; } catch { } finally { if (pool != null) pool.Close (); } if (isDatabaseListEmpty) { DispatchService.GuiDispatch (delegate () { storeDatabases.AppendValues (AddinCatalog.GetString ("No databases found!")); }); } else { DispatchService.GuiDispatch (delegate () { TreeIter iter; if (storeDatabases.GetIterFirst (out iter)) comboDatabase.SetActiveIter (iter); }); } } protected virtual void OpenClicked (object sender, System.EventArgs e) { //do nothing by default //TODO: show a open file dialog with *.* as filter??? } protected virtual void TestClicked (object sender, System.EventArgs e) { //TODO: use a Thread object, so the thread can be aborted when the entered values change DatabaseConnectionSettings settingsCopy = CreateDatabaseConnectionSettings (); labelTest.Text = AddinCatalog.GetString ("Trying to connect to database ..."); buttonTest.Sensitive = false; ThreadPool.QueueUserWorkItem (new WaitCallback (TestClickedThreaded), settingsCopy); } protected virtual void TestClickedThreaded (object state) { DatabaseConnectionSettings settings = state as DatabaseConnectionSettings; DatabaseConnectionContext context = new DatabaseConnectionContext (settings); IDbFactory fac = DbFactoryService.GetDbFactory (settings.ProviderIdentifier); bool success = false; string error = null; FakeConnectionPool pool = null; IPooledDbConnection conn = null; try { pool = new FakeConnectionPool (fac, fac.ConnectionProvider, context); success = pool.Initialize (); error = pool.Error; } catch (System.Data.DataException ex) { error = ex.Message; success = false; } finally { if (conn != null) { conn.Release (); conn.Dispose (); } if (pool != null) pool.Close (); } DispatchService.GuiDispatch (delegate () { buttonTest.Sensitive = true; if (success) labelTest.Text = AddinCatalog.GetString ("Test Succeeded."); else labelTest.Text = AddinCatalog.GetString ("Test Failed: {0}.", error); }); } protected virtual void OnCheckDefaultPortToggled (object sender, System.EventArgs e) { if (checkDefaultPort.Active) spinPort.Sensitive = false; else spinPort.Sensitive = true; } protected virtual void OnCheckIntegratedSecurityToggled (object sender, System.EventArgs e) { if (checkIntegratedSecurity.Active) { entryUsername.Sensitive = false; entryPassword.Sensitive = false; checkSavePassword.Sensitive = false; } else { entryUsername.Sensitive = true; entryPassword.Sensitive = true; checkSavePassword.Sensitive = true; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Components/SqlSyntaxMode.xml0000644000175000017500000001314211266446160027771 0ustar directhexdirecthex - /* */ " " ' ' + - = AND ON OR IN NOT ( ) < > <= => As LIKE * @ SELECT FROM WHERE INNER JOIN LEFT JOIN RIGHT JOIN LEFT OUTER JOIN RIGHT OUTER JOIN FULL JOIN FULL OUTER JOIN UNION ORDER BY GROUP BY HAVING DELETE UPDATE INSERT INTO VALUES TRANSACTION COMMIT ROLLBACK EXISTS BREAK RETURN RETURNS TRUE FALSE NULL UNSIGNED NOT NULL DEFAULT SmallInt Integer BigInt Decimal Numeric Real Double Precision Serial BigSerial Money Character Text Bytea TimeStamp Interval Date Time Point Line Lseg Box Path Polygon Circle Cidr Inet MacAddr Bit Any AnyArray AnyElement CString Internal Record Trigger void Opaque Int TinyInt Bit Numeric SmallMoney Float DateTime SmallDateTime Char VarChar NText NChar NVarChar Binary VarBinary Image TinyText Text Blob LongBlob MediumBlob MediumText LongText MediumInt TimeStamp Enum Set Year Boolean CREATE DATABASE CREATE TABLE CREATE FUNCTION CREATE PROCEDURE ALTER DATABASE ALTER TABLE ALTER FUNCTION ALTER PROCEDURE VIEW TRIGGER BEGIN END DECLARE IN OUT TODO FIXME HACK UNDONE monodevelop-database-4.0.12/MonoDevelop.Database.Components/Commands/0000755000175000017500000000000011266446160026234 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Commands/AbstractDatabaseProviderList.cs0000644000175000017500000000362411266446160034327 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using MonoDevelop.Database.Sql; using MonoDevelop.Core; using MonoDevelop.Ide.Gui; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; namespace MonoDevelop.Database.Components { public abstract class AbstractDatabaseProviderList : CommandHandler { protected override void Update (CommandArrayInfo info) { if (DbFactoryService.DbFactoryCount > 0) { foreach (IDbFactory fac in DbFactoryService.DbFactories) { CommandInfo cmd = new CommandInfo (fac.Name); cmd.Icon = "md-db-database"; info.Add (cmd, fac); } } else { CommandInfo cmd = new CommandInfo (AddinCatalog.GetString ("No database providers detected.")); cmd.Enabled = false; info.Add (cmd, null); } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Commands/SqlEditorCommands.cs0000644000175000017500000000270211266446160032154 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using MonoDevelop.Database.Sql; using MonoDevelop.Core; using MonoDevelop.Ide.Gui; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; namespace MonoDevelop.Database.Components { public enum SqlEditorCommands { ImportFromFile, ExportToFile } }monodevelop-database-4.0.12/MonoDevelop.Database.Components/Commands/DataGridCommands.cs0000644000175000017500000000266211266446160031732 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using MonoDevelop.Database.Sql; using MonoDevelop.Core; using MonoDevelop.Ide.Gui; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; namespace MonoDevelop.Database.Components { public enum DataGridCommands { VisualizeAsList } }././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xmlmonodevelop-database-4.0.12/MonoDevelop.Database.Components/MonoDevelop.Database.Components.addin.xm0000644000175000017500000000603711266446160034203 0ustar directhexdirecthex DataGrid renderers. DataGrid object visualizers. monodevelop-database-4.0.12/MonoDevelop.Database.Components/ComponentHelper.cs0000644000175000017500000000476311266446160030136 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Text; using System.Collections.Generic; using MonoDevelop.Database.Sql; using MonoDevelop.Core; namespace MonoDevelop.Database.Components { public static class ComponentHelper { public static string GetClassName (string dbName) { return GetDotNetName (dbName, "Class", true); } public static string GetFieldName (string dbName) { return GetDotNetName (dbName, "field", false); } public static string GetPropertyName (string fieldName) { return GetDotNetName (fieldName, fieldName, true); } internal static string GetDotNetName (string dbName, string alternative, bool startWithLetter) { StringBuilder sb = new StringBuilder (); bool validStart = false; bool capitalizeNext = true; foreach (char c in dbName) { if (char.IsLetter (c)) { validStart = true; if (capitalizeNext) sb.Append (char.ToUpper (c)); else sb.Append (c); capitalizeNext = false; } else if (char.IsDigit (c)) { if (validStart) { sb.Append (c); capitalizeNext = false; } } else if (c == '_') { if (!validStart && !startWithLetter) { sb.Append (c); validStart = true; } capitalizeNext = true; } } if (sb.Length == 0) return alternative; return sb.ToString (); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Components/Dialogs/0000755000175000017500000000000011266446160026055 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Dialogs/WaitDialog.cs0000644000175000017500000000522411266446160030433 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Ide; namespace MonoDevelop.Database.Components { public partial class WaitDialog : Window { private static WaitDialog dlg; private static bool isRunning; protected WaitDialog () : base (WindowType.Popup) { this.KeepAbove = true; this.Build(); } public static void ShowDialog () { ShowDialog (null); } public static void ShowDialog (string text) { if (dlg == null) dlg = new WaitDialog (); if (text == null) dlg.label.Markup = AddinCatalog.GetString ("Please Wait"); else dlg.label.Markup = text; dlg.ShowAll (); if (!isRunning) { isRunning = true; ThreadPool.QueueUserWorkItem (new WaitCallback (ProgressUpdate)); } else { dlg.Present (); } } private static void ProgressUpdate (object state) { while (isRunning) { DispatchService.GuiDispatch (delegate () { dlg.progressbar.Pulse (); }); Thread.Sleep (1000); } } public static void HideDialog () { if (dlg == null) return; isRunning = false; dlg.Destroy (); dlg = null; } protected override bool OnExposeEvent (Gdk.EventExpose ev) { base.OnExposeEvent (ev); Requisition req = SizeRequest (); Style.PaintFlatBox (this.Style, this.GdkWindow, StateType.Normal, ShadowType.Out, Gdk.Rectangle.Zero, this, "tooltip", 0, 0, req.Width, req.Height); return true; } } } ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Dialogs/DatabaseAvailableProvidersDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Dialogs/DatabaseAvailableProvidersDialog0000644000175000017500000000407111266446160034325 0ustar directhexdirecthex// // DatabaseAvailableProvidersDialog.cs // // Author: // Luciano N. Callero // // Copyright (c) 2010 Lucian0 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using Gtk; using MonoDevelop.Database.Sql; using System; namespace MonoDevelop.Database.Components { public partial class DatabaseAvailableProvidersDialog : Gtk.Dialog { ListStore providerStore; public IDbFactory SelectedProvider { get { TreeIter iter; if (comboProviders.GetActiveIter (out iter)) return (IDbFactory)providerStore.GetValue (iter, 1); else return null; } } public DatabaseAvailableProvidersDialog () { this.Build (); providerStore = new ListStore(typeof(string), typeof(IDbFactory)); foreach (IDbFactory fac in DbFactoryService.DbFactories) providerStore.AppendValues (fac.Name, fac); CellRendererText textRenderer = new CellRendererText (); comboProviders.PackStart (textRenderer, true); comboProviders.AddAttribute (textRenderer, "text", 0); comboProviders.Model = providerStore; } } } monodevelop-database-4.0.12/MonoDevelop.Database.Components/Dialogs/SelectColumnDialog.cs0000644000175000017500000000500611266446160032122 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Components { public partial class SelectColumnDialog : Gtk.Dialog { private SelectColumnWidget selecter; public SelectColumnDialog (bool showCheckBoxes, ColumnSchemaCollection columns) { this.Build(); selecter = new SelectColumnWidget (showCheckBoxes); selecter.Initialize (columns); selecter.ColumnToggled += new EventHandler (OnColumnToggled); hboxContent.PackStart (selecter, true, true, 0); ShowAll (); } public ColumnSchema SelectedColumn { get { return selecter.SelectedColumn; } } public IEnumerable CheckedColumns { get { return selecter.CheckedColumns; } } protected virtual void CancelClicked (object sender, System.EventArgs e) { Respond (ResponseType.Cancel); Destroy (); } protected virtual void OkClicked (object sender, EventArgs e) { Respond (ResponseType.Ok); Destroy (); } protected virtual void DeselectAllClicked (object sender, EventArgs e) { selecter.DeselectAll (); } protected virtual void SelectAllClicked (object sender, EventArgs e) { selecter.SelectAll (); } protected virtual void OnColumnToggled (object sender, EventArgs e) { buttonOk.Sensitive = selecter.IsColumnChecked; } } } ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.Components/Dialogs/DatabaseConnectionSettingsDialog0000644000175000017500000000673411266446160034377 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Threading; using System.Collections.Generic; using Mono.Addins; using MonoDevelop.Core; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Components { public partial class DatabaseConnectionSettingsDialog : Gtk.Dialog { protected ConnectionSettingsWidget settingsWidget; protected bool isEditMode; protected DatabaseConnectionSettings settings; protected DatabaseConnectionSettingsDialog (IDbFactory factory, bool isEditMode) { this.isEditMode = isEditMode; this.Build (); if (isEditMode) Title = AddinCatalog.GetString ("Edit Database Connection"); else Title = AddinCatalog.GetString ("Add Database Connection"); settingsWidget = CreateConnectionSettingsWidget (factory, isEditMode); settingsWidget.NeedsValidation += delegate (object sender, EventArgs args) { buttonOk.Sensitive = settingsWidget.ValidateFields (); }; vbox.PackStart (settingsWidget); vbox.ShowAll (); } public DatabaseConnectionSettingsDialog (IDbFactory factory) : this (factory, false) { settingsWidget.ShowSettings (factory.GetDefaultConnectionSettings ()); } public DatabaseConnectionSettingsDialog (IDbFactory factory, DatabaseConnectionSettings settings) : this (factory, true) { if (settings == null) throw new ArgumentNullException ("settings"); settingsWidget.ShowSettings (settings); settingsWidget.AppendDatabase (settings); } public DatabaseConnectionSettings ConnectionSettings { get { if (settings == null) return settingsWidget.ConnectionSettings; else return settings; } } public ConnectionSettingsWidget ConnectionSettingsWidget { get { return settingsWidget; } } protected virtual ConnectionSettingsWidget CreateConnectionSettingsWidget (IDbFactory factory, bool isEditMode) { return new ConnectionSettingsWidget (factory, isEditMode); } protected virtual void OnOkClicked (object sender, System.EventArgs e) { if (!isEditMode) ConnectionContextService.AddDatabaseConnectionContext (ConnectionSettings); settings = settingsWidget.ConnectionSettings; Respond (ResponseType.Ok); Hide (); } protected virtual void OnCancelClicked (object sender, System.EventArgs e) { Respond (ResponseType.Cancel); Destroy (); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Components/Dialogs/ShowTextDialog.cs0000644000175000017500000000404511266446160031314 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using Mono.TextEditor; using System; using System.Collections.Generic; namespace MonoDevelop.Database.Components { public partial class ShowTextDialog : Gtk.Dialog { private Mono.TextEditor.TextEditor sourceView; public ShowTextDialog (string text, string mimeType) { this.Build(); sourceView = new Mono.TextEditor.TextEditor (); // TODO: Set styling ? //sourceView.Options = new MonoDevelop.SourceEditor.StyledSourceEditorOptions (null); sourceView.Document.MimeType = mimeType; sourceView.Document.Text = text; // sourceView.ShowLineNumbers = true; sourceView.Document.ReadOnly = true; vboxContent.PackStart (sourceView, true, true, 0); vboxContent.ShowAll (); if (text != null) sourceView.Document.Text = text; } protected virtual void CloseClicked (object sender, System.EventArgs e) { Destroy (); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Components/Dialogs/ShowImageDialog.cs0000644000175000017500000000315011266446160031406 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Collections.Generic; namespace MonoDevelop.Database.Components { public partial class ShowImageDialog : Gtk.Dialog { public ShowImageDialog (Gdk.Pixbuf pixbuf) { this.Build(); //FIXME: //if (pixbuf == null) // hboxWarning.Visible = true; //else image.Pixbuf = pixbuf; } protected virtual void CloseClicked (object sender, System.EventArgs e) { Destroy (); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Components/AssemblyInfo.cs0000644000175000017500000000052211266446160027414 0ustar directhexdirecthex// Autogenerated from MonoDevelop.Database.Components.addin.xml using System.Reflection; [assembly: AssemblyProduct ("MonoDevelop")] [assembly: AssemblyTitle ("MonoDevelop Database Components")] [assembly: AssemblyDescription ("Database Components Module")] [assembly: AssemblyVersion ("2.6")] [assembly: AssemblyCopyright ("MIT X11")] monodevelop-database-4.0.12/MonoDevelop.Database.Sql/0000755000175000017500000000000011266446160023105 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/ConnectionContextService.cs0000644000175000017500000001434611266446160030431 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (c) 2005 Christian Hergert // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.IO; using System.Text; using System.Xml.Serialization; using System.Collections.Generic; using Mono.Addins; using MonoDevelop.Core; using System.Linq; namespace MonoDevelop.Database.Sql { public static class ConnectionContextService { public static event DatabaseConnectionContextEventHandler ConnectionContextAdded; public static event DatabaseConnectionContextEventHandler ConnectionContextRemoved; public static event DatabaseConnectionContextEventHandler ConnectionContextEdited; public static event DatabaseConnectionContextEventHandler ConnectionContextRefreshed; private static DatabaseConnectionContextCollection contexts; private static string configFile = null; static ConnectionContextService () { configFile = Path.Combine (UserProfile.Current.ConfigDir, "MonoDevelop.Database.ConnectionManager.xml"); Initialize (configFile); } public static DatabaseConnectionContextCollection DatabaseConnections { get { return contexts; } } public static DatabaseConnectionContext AddDatabaseConnectionContext (DatabaseConnectionSettings settings) { if (settings == null) throw new ArgumentNullException ("settings"); DatabaseConnectionContext context = new DatabaseConnectionContext (settings); AddDatabaseConnectionContext (context); return context; } public static void AddDatabaseConnectionContext (DatabaseConnectionContext context) { if (context == null) throw new ArgumentNullException ("context"); if (!DatabaseConnectionContextExist (context.ConnectionSettings)) { contexts.Add (context); Save (); if (ConnectionContextAdded != null) ConnectionContextAdded (null, new DatabaseConnectionContextEventArgs (context)); } else throw new DuplicatedConnectionContextException (context.ConnectionSettings.Name); } public static bool DatabaseConnectionContextExist (DatabaseConnectionSettings settings) { var existsContext = from c in contexts where c.ConnectionSettings.Name.ToLower () == settings.Name.ToLower () select c; return existsContext.Count () > 0; } public static void RemoveDatabaseConnectionContext (DatabaseConnectionContext context) { if (context == null) throw new ArgumentNullException ("context"); contexts.Remove (context); Save (); if (ConnectionContextRemoved != null) ConnectionContextRemoved (null, new DatabaseConnectionContextEventArgs (context)); } public static void EditDatabaseConnectionContext (DatabaseConnectionContext context) { if (context == null) throw new ArgumentNullException ("context"); Save (); if (ConnectionContextEdited != null) ConnectionContextEdited (null, new DatabaseConnectionContextEventArgs (context)); } internal static void Initialize (string configFile) { DatabaseConnectionSettingsCollection connections = null; if (File.Exists (configFile)) { try { using (FileStream fs = File.OpenRead (configFile)) { XmlSerializer serializer = new XmlSerializer (typeof (DatabaseConnectionSettingsCollection)); connections = (DatabaseConnectionSettingsCollection) serializer.Deserialize (fs); } } catch { LoggingService.LogError (AddinCatalog.GetString ("Unable to load stored SQL connection information.")); File.Delete (configFile); } } contexts = new DatabaseConnectionContextCollection (); if (connections != null) { StringBuilder sb = new StringBuilder (); foreach (DatabaseConnectionSettings settings in connections) { IDbFactory fac = DbFactoryService.GetDbFactory (settings); if (fac == null) { sb.Append ("Error: unable to load database provider '"); sb.Append (settings.ProviderIdentifier); sb.Append ("' for connection '"); sb.Append (settings.Name); sb.Append ("'"); sb.Append (Environment.NewLine); continue; } contexts.Add (new DatabaseConnectionContext (settings)); } if (sb.Length > 0) { Exception ex = new Exception (sb.ToString ()); QueryService.RaiseException (ex); } } } public static void Save () { //temporarily empty all passwords that don't need to be saved Dictionary tmp = new Dictionary (); DatabaseConnectionSettingsCollection collection = new DatabaseConnectionSettingsCollection (); foreach (DatabaseConnectionContext context in contexts) { if (!context.ConnectionSettings.SavePassword) { tmp.Add (context.ConnectionSettings, context.ConnectionSettings.Password); context.ConnectionSettings.Password = null; } collection.Add (context.ConnectionSettings); } using (FileStream fs = new FileStream (configFile, FileMode.Create)) { XmlSerializer serializer = new XmlSerializer (typeof (DatabaseConnectionSettingsCollection)); serializer.Serialize (fs, collection); } foreach (KeyValuePair pair in tmp) pair.Key.Password = pair.Value; } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Configuration/0000755000175000017500000000000011266446160025714 5ustar directhexdirecthex././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Configuration/DuplicatedConnectionContextException.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Configuration/DuplicatedConnectionContextExcept0000644000175000017500000000272211266446160034456 0ustar directhexdirecthex// // ConnectionContextDuplicatedException.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; namespace MonoDevelop.Database.Sql { public class DuplicatedConnectionContextException:Exception { public DuplicatedConnectionContextException () { } public DuplicatedConnectionContextException (string message):base (message) { } } } ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Configuration/DatabaseConnectionSettingsCollection.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Configuration/DatabaseConnectionSettingsCollect0000644000175000017500000000510611266446160034414 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Xml.Serialization; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { [Serializable] public class DatabaseConnectionSettingsCollection : CollectionBase, IEnumerable { public event EventHandler Changed; public DatabaseConnectionSettingsCollection () : base () { } public DatabaseConnectionSettings this[int index] { get { return List[index] as DatabaseConnectionSettings; } set { List[index] = value; } } public int Add (DatabaseConnectionSettings item) { int retval = List.Add (item); OnChanged (EventArgs.Empty); return retval; } public int IndexOf (DatabaseConnectionSettings item) { return List.IndexOf (item); } public void Insert (int index, DatabaseConnectionSettings item) { List.Insert (index, item); OnChanged (EventArgs.Empty); } public void Remove (DatabaseConnectionSettings item) { List.Remove (item); OnChanged (EventArgs.Empty); } public bool Contains (DatabaseConnectionSettings item) { return List.Contains (item); } IEnumerator IEnumerable.GetEnumerator () { foreach (DatabaseConnectionSettings cs in this) yield return cs; } protected virtual void OnChanged (EventArgs e) { if (Changed != null ) Changed (this, e); } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Configuration/DatabaseConnectionContext.cs0000644000175000017500000000577311266446160033350 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public sealed class DatabaseConnectionContext { public event EventHandler RefreshEvent; private bool temp; private DatabaseConnectionSettings connectionSettings; private IConnectionPool connectionPool; private ISchemaProvider schemaProvider; public DatabaseConnectionContext (DatabaseConnectionSettings connectionSettings) : this (connectionSettings, false) { } public DatabaseConnectionContext (DatabaseConnectionSettings connectionSettings, bool temp) { if (connectionSettings == null) throw new ArgumentNullException ("connectionSettings"); this.connectionSettings = connectionSettings; this.temp = temp; } //temp connection contexts are not shown in the database pad public bool IsTemporary { get { return temp; } set { temp = false; } } public IDbFactory DbFactory { get { return DbFactoryService.GetDbFactory (connectionSettings.ProviderIdentifier); } } public DatabaseConnectionSettings ConnectionSettings { get { return connectionSettings; } } public IConnectionPool ConnectionPool { get { if (connectionPool == null) connectionPool = DbFactoryService.CreateConnectionPool (this); return connectionPool; } } public bool HasConnectionPool { get { return connectionPool != null; } } public ISchemaProvider SchemaProvider { get { if (ConnectionPool != null) { if (schemaProvider == null) schemaProvider = DbFactoryService.CreateSchemaProvider (this, connectionPool); return schemaProvider; } return null; } } public bool HasSchemaProvider { get { return schemaProvider != null; } } public void Refresh () { if (RefreshEvent != null) RefreshEvent (this, EventArgs.Empty); } } }././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Configuration/DatabaseConnectionContextEventArgs.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Configuration/DatabaseConnectionContextEventArg0000644000175000017500000000331111266446160034362 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public delegate void DatabaseConnectionContextEventHandler (object sender, DatabaseConnectionContextEventArgs args); public class DatabaseConnectionContextEventArgs : EventArgs { protected DatabaseConnectionContext context; public DatabaseConnectionContextEventArgs (DatabaseConnectionContext context) { this.context = context; } public DatabaseConnectionContext ConnectionContext { get { return context; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Configuration/DatabaseConnectionSettings.cs0000644000175000017500000000736411266446160033522 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { [Serializable] public class DatabaseConnectionSettings { string name; string providerIdentifier; string server; int port; string database; string username; string password; bool savePassword; int minPoolSize; int maxPoolSize; string connectionString; bool useConnectionString; bool useIntegratedSecurity; bool canUseIntegratedSecurity; public DatabaseConnectionSettings () { } public DatabaseConnectionSettings (DatabaseConnectionSettings copy) { name = copy.Name; providerIdentifier = copy.ProviderIdentifier; server = copy.Server; port = copy.Port; database = copy.Database; username = copy.Username; password = copy.Password; savePassword = copy.SavePassword; minPoolSize = copy.MinPoolSize; maxPoolSize = copy.MaxPoolSize; useConnectionString = copy.UseConnectionString; connectionString = copy.ConnectionString; useIntegratedSecurity = copy.UseIntegratedSecurity; canUseIntegratedSecurity = copy.canUseIntegratedSecurity; } public string ProviderIdentifier { get { return providerIdentifier; } set { providerIdentifier = value; } } public string Name { get { return name; } set { name = value; } } public string Server { get { return server; } set { server = value; } } public int Port { get { return port; } set { port = value; } } public string Database { get { return database; } set { database = value; } } public string Username { get { return username; } set { username = value; } } public string Password { get { return password; } set { password = value; } } public bool SavePassword { get { return savePassword; } set { savePassword = value; } } public int MinPoolSize { get { return minPoolSize; } set { minPoolSize = value; } } public int MaxPoolSize { get { return maxPoolSize; } set { maxPoolSize = value; } } public string ConnectionString { get { return connectionString; } set { connectionString = value; } } public bool UseConnectionString { get { return useConnectionString; } set { useConnectionString = value; } } public bool UseIntegratedSecurity { get {return useIntegratedSecurity;} set {useIntegratedSecurity = value;} } public bool CanUseIntegratedSecurity { get {return canUseIntegratedSecurity;} set {canUseIntegratedSecurity = value;} } } }././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Configuration/DatabaseConnectionContextCollection.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Configuration/DatabaseConnectionContextCollecti0000644000175000017500000000550211266446160034411 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class DatabaseConnectionContextCollection : IEnumerable { public event EventHandler Changed; private List contexts; public DatabaseConnectionContextCollection () { contexts = new List (); } public DatabaseConnectionContext this[int index] { get { return contexts[index]; } } internal void Add (DatabaseConnectionContext item) { contexts.Add (item); OnChanged (EventArgs.Empty); } public int Count { get { return contexts.Count; } } public int IndexOf (DatabaseConnectionContext item) { return contexts.IndexOf (item); } internal void Insert (int index, DatabaseConnectionContext item) { contexts.Insert (index, item); OnChanged (EventArgs.Empty); } internal void Remove (DatabaseConnectionContext item) { contexts.Remove (item); OnChanged (EventArgs.Empty); } public bool Contains (DatabaseConnectionContext item) { return contexts.Contains (item); } public bool Contains (string name) { foreach (DatabaseConnectionContext context in this) { if (context.ConnectionSettings.Name == name) return true; } return false; } public IEnumerator GetEnumerator () { return contexts.GetEnumerator (); } IEnumerator IEnumerable.GetEnumerator () { return (contexts as IEnumerable).GetEnumerator (); } protected virtual void OnChanged (EventArgs e) { if (Changed != null ) Changed (this, e); } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Makefile.in0000644000175000017500000004477011266446160025166 0ustar directhexdirecthex# Makefile.in generated by automake 1.12.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2012 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.include ChangeLog subdir = MonoDevelop.Database.Sql ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(assemblydir)" DATA = $(assembly_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ASSEMBLY_VERSION = @ASSEMBLY_VERSION@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CSC = @CSC@ CSC_FLAGS = @CSC_FLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ GLIB_SHARP_CFLAGS = @GLIB_SHARP_CFLAGS@ GLIB_SHARP_LIBS = @GLIB_SHARP_LIBS@ GTK_SHARP_CFLAGS = @GTK_SHARP_CFLAGS@ GTK_SHARP_LIBS = @GTK_SHARP_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD_LIBRARY_PATH = @LD_LIBRARY_PATH@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_PREFIX = @LIB_PREFIX@ LIB_SUFFIX = @LIB_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MCS = @MCS@ MD_ADDIN_DIR = @MD_ADDIN_DIR@ MD_ASSEMBLY_DIR = @MD_ASSEMBLY_DIR@ MD_DIR = @MD_DIR@ MKDIR_P = @MKDIR_P@ MONO = @MONO@ MONODEVELOP_CFLAGS = @MONODEVELOP_CFLAGS@ MONODEVELOP_CORE_ADDINS_CFLAGS = @MONODEVELOP_CORE_ADDINS_CFLAGS@ MONODEVELOP_CORE_ADDINS_LIBS = @MONODEVELOP_CORE_ADDINS_LIBS@ MONODEVELOP_LIBS = @MONODEVELOP_LIBS@ MONO_ADDINS_CFLAGS = @MONO_ADDINS_CFLAGS@ MONO_ADDINS_GUI_CFLAGS = @MONO_ADDINS_GUI_CFLAGS@ MONO_ADDINS_GUI_LIBS = @MONO_ADDINS_GUI_LIBS@ MONO_ADDINS_LIBS = @MONO_ADDINS_LIBS@ MONO_ADDINS_SETUP_CFLAGS = @MONO_ADDINS_SETUP_CFLAGS@ MONO_ADDINS_SETUP_LIBS = @MONO_ADDINS_SETUP_LIBS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH = @PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RUNTIME = @RUNTIME@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ UNMANAGED_DEPENDENCIES_MONO_CFLAGS = @UNMANAGED_DEPENDENCIES_MONO_CFLAGS@ UNMANAGED_DEPENDENCIES_MONO_LIBS = @UNMANAGED_DEPENDENCIES_MONO_LIBS@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gtksharp_prefix = @gtksharp_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.Sql.dll REFS = \ $(GTK_SHARP_LIBS) \ $(MONO_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:System \ -r:System.Data \ -r:System.Xml FILES = \ AddinCatalog.cs \ AlterSchema/AbstractAlterSchema.cs \ AlterSchema/Alterations/AbstractAlteration.cs \ AlterSchema/Alterations/ColumnAlterations.cs \ AlterSchema/Alterations/ConstraintAlterations.cs \ AlterSchema/Alterations/DefaultAlterations.cs \ AlterSchema/Alterations/IAlteration.cs \ AlterSchema/Alterations/IndexAlterations.cs \ AlterSchema/Alterations/ProcedureAlterations.cs \ AlterSchema/Alterations/TableAlterations.cs \ AlterSchema/Alterations/TriggerAlterations.cs \ AlterSchema/Alterations/UserAlterations.cs \ AlterSchema/Alterations/ViewAlterations.cs \ AlterSchema/CheckConstraintAlterSchema.cs \ AlterSchema/ColumnAlterSchema.cs \ AlterSchema/DatabaseAlterSchema.cs \ AlterSchema/ForeignKeyConstraintAlterSchema.cs \ AlterSchema/IAlterSchema.cs \ AlterSchema/IndexAlterSchema.cs \ AlterSchema/PrimaryKeyConstraintAlterSchema.cs \ AlterSchema/ProcedureAlterSchema.cs \ AlterSchema/TableAlterSchema.cs \ AlterSchema/TriggerAlterSchema.cs \ AlterSchema/UniqueConstraintAlterSchema.cs \ AlterSchema/UserAlterSchema.cs \ AlterSchema/ViewAlterSchema.cs \ AssemblyInfo.cs \ Codons/DbFactoryCodon.cs \ Collections/ColumnSchemaCollection.cs \ Collections/ConstraintSchemaCollection.cs \ Collections/DatabaseSchemaCollection.cs \ Collections/DataTypeSchemaCollection.cs \ Collections/IndexSchemaCollection.cs \ Collections/IPropertyComparer.cs \ Collections/ParameterSchemaCollection.cs \ Collections/ProcedureSchemaCollection.cs \ Collections/SortedCollectionBase.cs \ Collections/SortedCollectionItemEventArgs.cs \ Collections/TableSchemaCollection.cs \ Collections/TriggerSchemaCollection.cs \ Collections/UserSchemaCollection.cs \ Collections/ViewSchemaCollection.cs \ Configuration/DatabaseConnectionContext.cs \ Configuration/DatabaseConnectionContextCollection.cs \ Configuration/DatabaseConnectionContextEventArgs.cs \ Configuration/DatabaseConnectionSettings.cs \ Configuration/DatabaseConnectionSettingsCollection.cs \ Configuration/DuplicatedConnectionContextException.cs \ ConnectionContextService.cs \ ConnectionPool/AbstractPooledDbConnection.cs \ ConnectionPool/DefaultConnectionPool.cs \ ConnectionPool/FakeConnectionPool.cs \ ConnectionPool/IConnectionPool.cs \ ConnectionPool/IPooledDbConnection.cs \ ConnectionPool/PooledCommand.cs \ ConnectionPool/PooledDataReader.cs \ DbFactoryService.cs \ Dialect/AbstractSqlDialect.cs \ Dialect/Clauses/FromClause.cs \ Dialect/Clauses/FromSelectClause.cs \ Dialect/Clauses/FromTableClause.cs \ Dialect/Clauses/GroupByClause.cs \ Dialect/Clauses/HavingClause.cs \ Dialect/Clauses/IClause.cs \ Dialect/Clauses/JoinClause.cs \ Dialect/Clauses/JoinClauseType.cs \ Dialect/Clauses/OrderByClause.cs \ Dialect/Clauses/UnionClause.cs \ Dialect/Clauses/WhereClause.cs \ Dialect/Expressions/AliasedIdentifierExpression.cs \ Dialect/Expressions/BooleanExpression.cs \ Dialect/Expressions/BooleanOperator.cs \ Dialect/Expressions/IConditionalExpression.cs \ Dialect/Expressions/IdentifierExpression.cs \ Dialect/Expressions/IExpression.cs \ Dialect/Expressions/Operator.cs \ Dialect/Expressions/OperatorExpression.cs \ Dialect/Expressions/ParameterExpression.cs \ Dialect/ISqlDialect.cs \ Dialect/Literals/BitLiteral.cs \ Dialect/Literals/BooleanLiteral.cs \ Dialect/Literals/FalseLiteral.cs \ Dialect/Literals/HexLiteral.cs \ Dialect/Literals/ILiteral.cs \ Dialect/Literals/NullLiteral.cs \ Dialect/Literals/NumericLiteral.cs \ Dialect/Literals/StringLiteral.cs \ Dialect/Literals/TrueLiteral.cs \ Dialect/Statements/DeleteStatement.cs \ Dialect/Statements/DropStatement.cs \ Dialect/Statements/DropStatementType.cs \ Dialect/Statements/InsertStatement.cs \ Dialect/Statements/IStatement.cs \ Dialect/Statements/LineStatement.cs \ Dialect/Statements/SelectStatement.cs \ Dialect/Statements/TruncateStatement.cs \ Dialect/Statements/UpdateStatement.cs \ IDbFactory.cs \ IDbLinq.cs \ Providers/AbstractConnectionProvider.cs \ Providers/AbstractEditSchemaProvider.cs \ Providers/AbstractSchemaProvider.cs \ Providers/IConnectionProvider.cs \ Providers/IEditSchemaProvider.cs \ Providers/IGuiProvider.cs \ Providers/ISchemaProvider.cs \ QueryService.cs \ Schema/AbstractSchema.cs \ Schema/AggregateSchema.cs \ Schema/CheckConstraintSchema.cs \ Schema/ColumnSchema.cs \ Schema/ConstraintSchema.cs \ Schema/ConstraintType.cs \ Schema/DatabaseSchema.cs \ Schema/DataTypeCategory.cs \ Schema/DataTypeSchema.cs \ Schema/ForeignKeyAction.cs \ Schema/ForeignKeyConstraintSchema.cs \ Schema/GroupSchema.cs \ Schema/IndexSchema.cs \ Schema/IndexSortType.cs \ Schema/IndexType.cs \ Schema/ISchema.cs \ Schema/LanguageSchema.cs \ Schema/OperatorSchema.cs \ Schema/ParameterSchema.cs \ Schema/ParameterType.cs \ Schema/PrimaryKeyConstraintSchema.cs \ Schema/PrivilegeSchema.cs \ Schema/ProcedureSchema.cs \ Schema/Range.cs \ Schema/RoleSchema.cs \ Schema/RuleSchema.cs \ Schema/SchemaActions.cs \ Schema/SchemaSchema.cs \ Schema/SchemaType.cs \ Schema/SequenceSchema.cs \ Schema/TableSchema.cs \ Schema/TriggerEvent.cs \ Schema/TriggerFireType.cs \ Schema/TriggerSchema.cs \ Schema/TriggerType.cs \ Schema/UniqueConstraintSchema.cs \ Schema/UserSchema.cs \ Schema/ViewSchema.cs \ SqlMetalExecException.cs \ SqlMetalServices.cs RES = MonoDevelop.Database.Sql.addin.xml assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb EXTRA_DIST = $(FILES) $(RES) build_sources = $(addprefix $(srcdir)/, $(FILES)) $(GENERATED_FILES) build_resources = $(addprefix $(srcdir)/, $(RES)) build_test_sources = $(addprefix $(srcdir)/, $(TESTFILES)) $(GENERATED_FILES) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.include $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu MonoDevelop.Database.Sql/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu MonoDevelop.Database.Sql/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_srcdir)/Makefile.include: $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-assemblyDATA: $(assembly_DATA) @$(NORMAL_INSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(assemblydir)'"; \ $(MKDIR_P) "$(DESTDIR)$(assemblydir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(assemblydir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(assemblydir)" || exit $$?; \ done uninstall-assemblyDATA: @$(NORMAL_UNINSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(assemblydir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: ctags: CTAGS CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(assemblydir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-assemblyDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-assemblyDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-assemblyDATA install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am uninstall uninstall-am uninstall-assemblyDATA all: $(ASSEMBLY) $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: monodevelop-database-4.0.12/MonoDevelop.Database.Sql/DbFactoryService.cs0000644000175000017500000000612611266446160026637 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; using Mono.Addins; using MonoDevelop.Core; namespace MonoDevelop.Database.Sql { public static class DbFactoryService { private static Dictionary factories; static DbFactoryService () { factories = new Dictionary (); foreach (DbFactoryCodon codon in AddinManager.GetExtensionNodes ("/MonoDevelop/Database/Sql")) { IDbFactory fac = codon.DbFactory; if (fac != null) { factories.Add (fac.Identifier, fac); LoggingService.LogDebug ("DB FACTORY: " + fac.Identifier); } } } public static IEnumerable DbFactories { get { return factories.Values; } } public static int DbFactoryCount { get { return factories.Count; } } public static IDbFactory GetDbFactory (string id) { if (id == null) throw new ArgumentNullException ("id"); IDbFactory fac = null; if (factories.TryGetValue (id, out fac)) return fac; return null; } public static IDbFactory GetDbFactory (DatabaseConnectionSettings settings) { if (settings == null) throw new ArgumentNullException ("settings"); return GetDbFactory (settings.ProviderIdentifier); } public static IConnectionPool CreateConnectionPool (DatabaseConnectionContext context) { if (context == null) throw new ArgumentNullException ("context"); IDbFactory fac = GetDbFactory (context.ConnectionSettings); if (fac != null) return fac.CreateConnectionPool (context); return null; } public static ISchemaProvider CreateSchemaProvider (DatabaseConnectionContext context, IConnectionPool pool) { if (context == null) throw new ArgumentNullException ("context"); if (pool == null) throw new ArgumentNullException ("pool"); IDbFactory fac = GetDbFactory (context.ConnectionSettings); if (fac != null) return fac.CreateSchemaProvider (pool); return null; } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Codons/0000755000175000017500000000000011266446160024332 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Codons/DbFactoryCodon.cs0000644000175000017500000000306011266446160027520 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; using Mono.Addins; using MonoDevelop.Core; namespace MonoDevelop.Database.Sql { public class DbFactoryCodon : TypeExtensionNode { public IDbFactory DbFactory { get { try { return (IDbFactory)base.CreateInstance (); } catch (Exception e) { LoggingService.LogError (e.ToString ()); return null; } } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Providers/0000755000175000017500000000000011266446160025062 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Providers/IConnectionProvider.cs0000644000175000017500000000320311266446160031332 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public interface IConnectionProvider { IPooledDbConnection CreateConnection (IConnectionPool pool, DatabaseConnectionSettings settings, out string error); bool CheckConnection (IPooledDbConnection connection, DatabaseConnectionSettings settings); } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Providers/IEditSchemaProvider.cs0000644000175000017500000000562211266446160031250 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public interface IEditSchemaProvider : ISchemaProvider { void CreateDatabase (DatabaseSchema database); void CreateTable (TableSchema table); void CreateView (ViewSchema view); void CreateProcedure (ProcedureSchema procedure); void CreateIndex (IndexSchema index); void CreateTrigger (TriggerSchema trigger); void CreateUser (UserSchema user); void AlterDatabase (DatabaseAlterSchema database); void AlterTable (TableAlterSchema table); void AlterView (ViewAlterSchema view); void AlterProcedure (ProcedureAlterSchema procedure); void AlterIndex (IndexAlterSchema index); void AlterTrigger (TriggerAlterSchema trigger); void AlterUser (UserAlterSchema user); void DropDatabase (DatabaseSchema database); void DropTable (TableSchema table); void DropView (ViewSchema view); void DropProcedure (ProcedureSchema procedure); void DropIndex (IndexSchema index); void DropTrigger (TriggerSchema trigger); void DropUser (UserSchema user); void RenameDatabase (DatabaseSchema database, string name); void RenameTable (TableSchema table, string name); void RenameView (ViewSchema view, string name); void RenameProcedure (ProcedureSchema procedure, string name); void RenameIndex (IndexSchema index, string name); void RenameTrigger (TriggerSchema trigger, string name); void RenameUser (UserSchema user, string name); string GetTableAlterStatement (TableAlterSchema table); string GetViewAlterStatement (ViewSchema view); string GetProcedureAlterStatement (ProcedureSchema procedure); } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Providers/AbstractSchemaProvider.cs0000644000175000017500000006545411266446160032026 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Text; using System.Data; using System.Data.Common; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public abstract class AbstractSchemaProvider : ISchemaProvider { protected IConnectionPool connectionPool; protected Dictionary supportedActions; protected string databasesCollectionString = "Databases"; protected string tablesCollectionString = "Tables"; protected string viewsCollectionString = "Views"; protected string proceduresCollectionString = "Procedures"; protected string tableColumnsCollectionString = "Columns"; protected string viewColumnsCollectionString = "ViewColumns"; protected string procedureParametersCollectionString = "Procedure Parameters"; protected string usersCollectionString = "Users"; protected string indexesCollectionString = "Indexes"; protected string indexColumnsCollectionString = "IndexColumns"; protected string foreignKeysCollectionString = "Foreign Keys"; protected string triggersCollectionString = "Triggers"; protected string dataTypesCollectionString = "DataTypes"; protected string[] databaseItemStrings = new string[] { "DATABASE_NAME" }; protected string[] tableItemStrings = new string[] { "TABLE_SCHEMA", "TABLE_NAME", "TABLE_COMMENT" }; protected string[] viewItemStrings = new string[] { "TABLE_SCHEMA", "TABLE_NAME", "TABLE_COMMENT" }; protected string[] procedureItemStrings = new string[] { "ROUTINE_SCHEMA", "ROUTINE_NAME" }; protected string[] tableColumnItemStrings = new string[] { "COLUMN_NAME", "COLUMN_DEFAULT", "COLUMN_HASDEFAULT", "IS_NULLABLE", "ORDINAL_POSITION", "NUMERIC_PRECISION", "NUMERIC_SCALE", "DATA_TYPE" }; protected string[] viewColumnItemStrings = new string[] { "COLUMN_NAME" }; protected string[] procedureParameterItemStrings = new string[] { "PARAMETER_NAME", "DATA_TYPE", "ORDINAL_POSITION", "PARAMETER_MODE" }; protected string[] userItemStrings = new string[] { "user_name" }; protected string[] indexItemStrings = new string[] { }; protected string[] indexColumnItemStrings = new string[] { }; protected string[] foreignKeyItemStrings = new string[] { }; protected string[] triggerItemStrings = new string[] { }; protected string[] dataTypeItemStrings = new string[] { "TypeName", "ColumnSize", "CreateFormat", "CreateParameters", "DataType", "IsAutoIncrementable", "IsFixedLength", "IsNullable", "MaximumScale", "MinimumScale" }; protected AbstractSchemaProvider (IConnectionPool connectionPool) { if (connectionPool == null) throw new ArgumentNullException ("connectionPool"); this.connectionPool = connectionPool; this.supportedActions = new Dictionary (); } public virtual string GetComentSeparator () { return "--"; } public virtual bool CanComment { get { return true; } } public virtual bool CanEdit { get { return true; } } public IConnectionPool ConnectionPool { get { return connectionPool; } } public virtual DatabaseSchemaCollection GetDatabases () { DatabaseSchemaCollection collection = new DatabaseSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); try { //restrictions: name DataTable dt = conn.GetSchema (databasesCollectionString); for (int r = 0; r < dt.Rows.Count; r++) { DataRow row = dt.Rows[r]; collection.Add (GetDatabase (row)); } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return collection; } protected virtual DatabaseSchema GetDatabase (DataRow row) { DatabaseSchema schema = new DatabaseSchema (this); schema.Name = GetRowString (row, databaseItemStrings[0]); return schema; } public virtual string GetConstraintActionString (ForeignKeyAction action) { switch (action) { case ForeignKeyAction.None: return " NO ACTION "; case ForeignKeyAction.Cascade: return " CASCADE "; case ForeignKeyAction.Restrict: return " RESTRICT "; case ForeignKeyAction.NoAction: return " NO ACTION "; case ForeignKeyAction.SetDefault: return " SET DEFAULT "; case ForeignKeyAction.SetNull: return " SET NULL "; default: throw new NotImplementedException (); } } public virtual TableSchemaCollection GetTables () { TableSchemaCollection collection = new TableSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); try { //restrictions: database, schema, table, table type DataTable dt = conn.GetSchema (tablesCollectionString, null, connectionPool.ConnectionContext.ConnectionSettings.Database); for (int r = 0; r < dt.Rows.Count; r++) { DataRow row = dt.Rows[r]; collection.Add (GetTable (row)); } } catch (Exception e) { // Don't raise error, if the triggers doesn't exists return an empty collection } conn.Release (); return collection; } protected virtual TableSchema GetTable (DataRow row) { TableSchema schema = new TableSchema (this); schema.SchemaName = GetRowString (row, tableItemStrings[0]); schema.Name = GetRowString (row, tableItemStrings[1]); schema.Comment = GetRowString (row, tableItemStrings[2]); return schema; } public virtual ColumnSchemaCollection GetTableColumns (TableSchema table) { ColumnSchemaCollection collection = new ColumnSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); //restrictions: database, schema, table, column try { DataTable dt = conn.GetSchema (tableColumnsCollectionString, null, table.SchemaName, table.Name); for (int r = 0; r < dt.Rows.Count; r++) { DataRow row = dt.Rows[r]; collection.Add (GetTableColumn (row, table)); } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return collection; } protected virtual ColumnSchema GetTableColumn (DataRow row, TableSchema table) { ColumnSchema schema = new ColumnSchema (this, table); schema.SchemaName = table.SchemaName; schema.Name = GetRowString (row, tableColumnItemStrings[0]); schema.DefaultValue = GetRowString (row, tableColumnItemStrings[1]); schema.HasDefaultValue = GetRowBool (row, tableColumnItemStrings[2]); schema.IsNullable = GetRowBool (row, tableColumnItemStrings[3]); schema.Position = GetRowInt (row, tableColumnItemStrings[4]); schema.DataTypeName = GetRowString (row, tableColumnItemStrings[7]); schema.DataType.ScaleRange.Default = GetRowInt (row, tableColumnItemStrings[6]); schema.DataType.PrecisionRange.Default = GetRowInt (row, tableColumnItemStrings[5]); return schema; } public virtual ViewSchemaCollection GetViews () { ViewSchemaCollection collection = new ViewSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); try { //restrictions: database, schema, table DataTable dt = conn.GetSchema (viewsCollectionString, null, connectionPool.ConnectionContext.ConnectionSettings.Database); for (int r = 0; r < dt.Rows.Count; r++) { DataRow row = dt.Rows[r]; collection.Add (GetView (row)); } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return collection; } protected virtual ViewSchema GetView (DataRow row) { ViewSchema schema = new ViewSchema (this); schema.SchemaName = GetRowString (row, viewItemStrings[0]); schema.Name = GetRowString (row, viewItemStrings[1]); schema.Comment = GetRowString (row, viewItemStrings[2]); return schema; } public virtual ColumnSchemaCollection GetViewColumns (ViewSchema view) { ColumnSchemaCollection collection = new ColumnSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); try { //restrictions: database, schema, table, column DataTable dt = conn.GetSchema (viewColumnsCollectionString, null, view.SchemaName, view.Name); for (int r = 0; r < dt.Rows.Count; r++) { DataRow row = dt.Rows[r]; collection.Add (GetViewColumn (row, view)); } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return collection; } protected virtual ColumnSchema GetViewColumn (DataRow row, ViewSchema view) { ColumnSchema schema = new ColumnSchema (this, view); schema.SchemaName = view.SchemaName; schema.Name = GetRowString (row, viewColumnItemStrings[0]); return schema; } public virtual ProcedureSchemaCollection GetProcedures () { ProcedureSchemaCollection collection = new ProcedureSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); try { //restrictions: database, schema, name, type DataTable dt = conn.GetSchema (proceduresCollectionString, null, connectionPool.ConnectionContext.ConnectionSettings.Database); for (int r = 0; r < dt.Rows.Count; r++) { DataRow row = dt.Rows[r]; collection.Add (GetProcedure (row)); } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return collection; } protected virtual ProcedureSchema GetProcedure (DataRow row) { ProcedureSchema schema = new ProcedureSchema (this); schema.SchemaName = GetRowString (row, procedureItemStrings[0]); schema.Name = GetRowString (row, procedureItemStrings[1]); return schema; } public virtual ParameterSchemaCollection GetProcedureParameters (ProcedureSchema procedure) { ParameterSchemaCollection collection = new ParameterSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); try { //restrictions: database, schema, name, type, parameter DataTable dt = conn.GetSchema (procedureParametersCollectionString, null, procedure.SchemaName, procedure.Name); for (int r = 0; r < dt.Rows.Count; r++) { DataRow row = dt.Rows[r]; collection.Add (GetProcedureParameter (row, procedure)); } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return collection; } protected virtual ParameterSchema GetProcedureParameter (DataRow row, ProcedureSchema procedure) { ParameterSchema schema = new ParameterSchema (this); schema.SchemaName = procedure.SchemaName; schema.Name = GetRowString (row, procedureParameterItemStrings[0]); schema.DataTypeName = GetRowString (row, procedureParameterItemStrings[1]); schema.Position = GetRowInt (row, procedureParameterItemStrings[2]); string paramType = GetRowString (row, procedureParameterItemStrings[3]); schema.ParameterType = String.Compare (paramType, "IN", true) == 0 ? ParameterType.In : (String.Compare (paramType, "OUT", true) == 0 ? ParameterType.Out : ParameterType.InOut); return schema; } public virtual ConstraintSchemaCollection GetTableConstraints (TableSchema table) { ConstraintSchemaCollection collection = new ConstraintSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); try { //restrictions: database, schema, table, name DataTable dt = conn.GetSchema (foreignKeysCollectionString, null, connectionPool.ConnectionContext.ConnectionSettings.Database); for (int r = 0; r < dt.Rows.Count; r++) { DataRow row = dt.Rows[r]; collection.Add (GetTableConstraint (row, table)); } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return collection; } protected virtual ConstraintSchema GetTableConstraint (DataRow row, TableSchema table) { return null; } public virtual ColumnSchemaCollection GetTableIndexColumns (TableSchema table, IndexSchema index) { ColumnSchemaCollection collection = new ColumnSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); try { //restrictions: database, schema, table, ConstraintName, column DataTable dt = conn.GetSchema (indexColumnsCollectionString, null, table.SchemaName, table.Name, index.Name); for (int r = 0; r < dt.Rows.Count; r++) { DataRow row = dt.Rows[r]; collection.Add (GetTableIndexColumn (row, table, index)); } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return collection; } protected virtual ColumnSchema GetTableIndexColumn (DataRow row, TableSchema table, IndexSchema index) { ColumnSchema schema = new ColumnSchema (this, table); return schema; } public virtual IndexSchemaCollection GetTableIndexes (TableSchema table) { IndexSchemaCollection collection = new IndexSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); try { //restrictions: database, schema, table, name DataTable dt = conn.GetSchema (indexesCollectionString, null, table.SchemaName, table.Name); for (int r = 0; r < dt.Rows.Count; r++) { DataRow row = dt.Rows[r]; collection.Add (GetTableIndex (row, table)); } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return collection; } protected virtual IndexSchema GetTableIndex (DataRow row, TableSchema table) { IndexSchema schema = new IndexSchema (this); return schema; } public virtual ConstraintSchemaCollection GetColumnConstraints (TableSchema table, ColumnSchema column) { throw new NotImplementedException (); } public virtual UserSchemaCollection GetUsers () { UserSchemaCollection collection = new UserSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); try { //restrictions: name DataTable dt = conn.GetSchema (usersCollectionString); for (int r = 0; r < dt.Rows.Count; r++) { DataRow row = dt.Rows[r]; collection.Add (GetUser (row)); } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return collection; } protected virtual UserSchema GetUser (DataRow row) { UserSchema schema = new UserSchema (this); schema.Name = GetRowString (row, userItemStrings[0]); return schema; } public virtual DataTypeSchemaCollection GetDataTypes () { DataTypeSchemaCollection collection = new DataTypeSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); try { //restrictions: name DataTable dt = conn.GetSchema (dataTypesCollectionString); for (int r = 0; r < dt.Rows.Count; r++) { DataRow row = dt.Rows[r]; collection.Add (GetDataType (row)); } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return collection; } protected virtual DataTypeSchema GetDataType (DataRow row) { DataTypeSchema schema = new DataTypeSchema (this); schema.Name = GetRowString (row, dataTypeItemStrings[0]); schema.LengthRange = new Range (GetRowInt (row, dataTypeItemStrings[1])); schema.CreateFormat = GetRowString (row, dataTypeItemStrings[2]); schema.CreateParameters = GetRowString (row, dataTypeItemStrings[3]); schema.DotNetType = Type.GetType (GetRowString (row, dataTypeItemStrings[4]), false, false); schema.IsAutoincrementable = GetRowBool (row, dataTypeItemStrings[5]); schema.IsFixedLength = GetRowBool (row, dataTypeItemStrings[6]); schema.IsNullable = GetRowBool (row, dataTypeItemStrings[7]); schema.ScaleRange = new Range (GetRowInt (row, dataTypeItemStrings[9]), GetRowInt (row, dataTypeItemStrings[8])); schema.PrecisionRange = new Range (0); ProvideDataTypeInformation (schema); return schema; } protected virtual void ProvideDataTypeInformation (DataTypeSchema schema) { } public virtual DataTypeSchema GetDataType (string name) { if (name == null) throw new ArgumentNullException ("name"); DataTypeSchema schema = null; IPooledDbConnection conn = connectionPool.Request (); try { //restrictions: name DataTable dt = conn.GetSchema (dataTypesCollectionString, name); if (dt.Rows.Count > 0) schema = GetDataType (dt.Rows[0]); } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return schema; } public virtual TriggerSchemaCollection GetTableTriggers (TableSchema table) { TriggerSchemaCollection collection = new TriggerSchemaCollection (); IPooledDbConnection conn = connectionPool.Request (); try { //restrictions: database, schema, name, EventObjectTable DataTable dt = conn.GetSchema (triggersCollectionString, null, table.SchemaName, null, table.Name); for (int r = 0; r < dt.Rows.Count; r++) { DataRow row = dt.Rows[r]; collection.Add (GetTableTrigger (row, table)); } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return collection; } protected virtual TriggerSchema GetTableTrigger (DataRow row, TableSchema table) { TriggerSchema schema = new TriggerSchema (this); schema.TableName = table.Name; return schema; } public virtual string GetTableCreateStatement (TableSchema table) { throw new NotImplementedException (); } public virtual bool IsValidName (string name) { return true; } public virtual AggregateSchema CreateAggregateSchema (string name) { AggregateSchema schema = new AggregateSchema (this); schema.Name = name; return schema; } public virtual CheckConstraintSchema CreateCheckConstraintSchema (string name) { CheckConstraintSchema schema = new CheckConstraintSchema (this); schema.Name = name; return schema; } public virtual ColumnSchema CreateColumnSchema (ISchema parent, string name) { ColumnSchema schema = new ColumnSchema (this, parent); schema.Name = name; return schema; } public virtual DatabaseSchema CreateDatabaseSchema (string name) { DatabaseSchema schema = new DatabaseSchema (this); schema.Name = name; return schema; } public virtual ForeignKeyConstraintSchema CreateForeignKeyConstraintSchema (string name) { ForeignKeyConstraintSchema schema = new ForeignKeyConstraintSchema (this); schema.Name = name; return schema; } public virtual GroupSchema CreateGroupSchema (string name) { GroupSchema schema = new GroupSchema (this); schema.Name = name; return schema; } public virtual IndexSchema CreateIndexSchema (string name) { IndexSchema schema = new IndexSchema (this); schema.Name = name; return schema; } public virtual LanguageSchema CreateLanguageSchema (string name) { LanguageSchema schema = new LanguageSchema (this); schema.Name = name; return schema; } public virtual OperatorSchema CreateOperatorSchema (string name) { OperatorSchema schema = new OperatorSchema (this); schema.Name = name; return schema; } public virtual ParameterSchema CreateParameterSchema (string name) { ParameterSchema schema = new ParameterSchema (this); schema.Name = name; return schema; } public virtual PrimaryKeyConstraintSchema CreatePrimaryKeyConstraintSchema (string name) { PrimaryKeyConstraintSchema schema = new PrimaryKeyConstraintSchema (this); schema.Name = name; return schema; } public virtual PrivilegeSchema CreatePrivilegeSchema (string name) { PrivilegeSchema schema = new PrivilegeSchema (this); schema.Name = name; return schema; } public virtual ProcedureSchema CreateProcedureSchema (string name) { ProcedureSchema schema = new ProcedureSchema (this); schema.Name = name; return schema; } public virtual RoleSchema CreateRoleSchema (string name) { RoleSchema schema = new RoleSchema (this); schema.Name = name; return schema; } public virtual RuleSchema CreateRuleSchema (string name) { RuleSchema schema = new RuleSchema (this); schema.Name = name; return schema; } public virtual SchemaSchema CreateSchemaSchema (string name) { SchemaSchema schema = new SchemaSchema (this); schema.Name = name; return schema; } public virtual SequenceSchema CreateSequenceSchema (string name) { SequenceSchema schema = new SequenceSchema (this); schema.Name = name; return schema; } public virtual TableSchema CreateTableSchema (string name) { TableSchema schema = new TableSchema (this); schema.Name = name; return schema; } public virtual TriggerSchema CreateTriggerSchema (string name) { TriggerSchema schema = new TriggerSchema (this); schema.Name = name; return schema; } public virtual UniqueConstraintSchema CreateUniqueConstraintSchema (string name) { UniqueConstraintSchema schema = new UniqueConstraintSchema (this); schema.Name = name; return schema; } public virtual UserSchema CreateUserSchema (string name) { UserSchema schema = new UserSchema (this); schema.Name = name; return schema; } public virtual ViewSchema CreateViewSchema (string name) { ViewSchema schema = new ViewSchema (this); schema.Name = name; return schema; } public virtual bool IsSchemaActionSupported (SchemaType type, SchemaActions action) { SchemaActions supported; if (supportedActions.TryGetValue (type, out supported)) return (supported & action) == action; return false; } protected virtual void AddSupportedSchemaActions (SchemaType type, SchemaActions actions) { if (supportedActions.ContainsKey (type)) supportedActions[type] = supportedActions[type] | actions; else supportedActions.Add (type, actions); } protected int GetCheckedInt32 (IDataReader reader, int field) { if (reader.IsDBNull (field)) return 0; object o = reader.GetValue (field); int res = 0; if (int.TryParse (o.ToString (), out res)) return res; return 0; } protected string GetCheckedString (IDataReader reader, int field) { if (reader.IsDBNull (field)) return null; return reader.GetValue (field).ToString (); } protected virtual object GetRowObject (DataRow row, string name) { try { return row[name]; } catch { return null; } } protected virtual string GetRowString (DataRow row, string name) { try { return row[name].ToString (); } catch { return null; } } protected virtual int GetRowInt (DataRow row, string name) { try { return (int)row[name]; } catch { return 0; } } protected virtual bool GetRowBool (DataRow row, string name) { try { return (bool)row[name]; } catch { return false; } } protected virtual string GetColumnsString (ColumnSchemaCollection columns, bool includeParens) { StringBuilder sb = new StringBuilder (); bool first = true; if (includeParens) sb.Append ("("); foreach (ColumnSchema column in columns) { if (first) first = false; else sb.Append (","); sb.Append (column.Name); } if (includeParens) sb.Append (")"); return sb.ToString (); } protected virtual int ExecuteNonQuery (string sql) { using (IPooledDbConnection conn = connectionPool.Request ()) { int result = conn.ExecuteNonQuery (sql); conn.Release (); return result; } } public virtual string GetMimeType () { return "text/x-sql"; } public virtual string GetSelectQuery (TableSchema table) { ISqlDialect dialect = this.ConnectionPool.DbFactory.Dialect; IdentifierExpression tableId = new IdentifierExpression (table.Name); List columns = new List(); foreach (ColumnSchema col in table.Columns) { columns.Add(new IdentifierExpression(col.Name)); } SelectStatement sel = new SelectStatement (new FromTableClause (tableId),columns); return dialect.GetSql(sel); } public virtual string GetUpdateQuery (TableSchema table) { ISqlDialect dialect = this.ConnectionPool.DbFactory.Dialect; IdentifierExpression tableId = new IdentifierExpression (table.Name); List columns = new List(); List values = new List(); foreach (ColumnSchema col in table.Columns) { columns.Add(new IdentifierExpression(col.Name)); values.Add(new IdentifierExpression(col.DataTypeName)); } UpdateStatement upd = new UpdateStatement (tableId, columns, values); return dialect.GetSql(upd); } public virtual string GetInsertQuery (TableSchema table) { StringBuilder sb = new StringBuilder ("INSERT INTO "); sb.AppendFormat ("{0} (", table.Name); bool coma = false; foreach (ColumnSchema col in table.Columns) { if (coma) sb.AppendFormat(","); coma = true; sb.Append (col.Name); } coma = false; sb.Append (")"); sb.AppendLine (); sb.AppendFormat ("{0}VALUES (", Convert.ToString (Convert.ToChar (9))); foreach (ColumnSchema col in table.Columns) { if (coma) sb.AppendFormat(","); coma = true; if (col.DataType.FullName.IndexOf ("varchar", StringComparison.OrdinalIgnoreCase) > -1 || col.DataType.FullName.IndexOf ("char", StringComparison.OrdinalIgnoreCase) > -1 || col.DataType.FullName.IndexOf ("nvarchar", StringComparison.OrdinalIgnoreCase) > -1 || col.DataType.FullName.IndexOf ("varbinary", StringComparison.OrdinalIgnoreCase) > -1 || col.DataType.FullName.IndexOf ("nchar", StringComparison.OrdinalIgnoreCase) > -1) sb.AppendFormat ("<{0}({1})>", col.DataType.FullName, col.DataType.LengthRange.Max); else sb.AppendFormat ("<{0}>", col.DataType.FullName); } sb.Append (")"); return sb.ToString (); } public virtual string GetDeleteQuery (TableSchema table) { return string.Concat ("DELETE FROM ", table.Name, Environment.NewLine, "WHERE" ); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Providers/AbstractEditSchemaProvider.cs0000644000175000017500000001210411266446160032614 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Text; using System.Data; using System.Data.Common; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public abstract class AbstractEditSchemaProvider : AbstractSchemaProvider, IEditSchemaProvider { protected AbstractEditSchemaProvider (IConnectionPool connectionPool) : base (connectionPool) { } public virtual void CreateDatabase (DatabaseSchema database) { throw new NotImplementedException (); } public virtual void CreateTable (TableSchema table) { string sql = GetTableCreateStatement (table); ExecuteNonQuery (sql); } public virtual void CreateView (ViewSchema view) { throw new NotImplementedException (); } public virtual void CreateProcedure (ProcedureSchema procedure) { throw new NotImplementedException (); } public virtual void CreateIndex (IndexSchema index) { throw new NotImplementedException (); } public virtual void CreateTrigger (TriggerSchema trigger) { throw new NotImplementedException (); } public virtual void CreateUser (UserSchema user) { throw new NotImplementedException (); } public virtual void AlterDatabase (DatabaseAlterSchema database) { throw new NotImplementedException (); } public virtual void AlterTable (TableAlterSchema table) { throw new NotImplementedException (); } public virtual void AlterView (ViewAlterSchema view) { throw new NotImplementedException (); } public virtual void AlterProcedure (ProcedureAlterSchema procedure) { throw new NotImplementedException (); } public virtual void AlterIndex (IndexAlterSchema index) { throw new NotImplementedException (); } public virtual void AlterTrigger (TriggerAlterSchema trigger) { throw new NotImplementedException (); } public virtual void AlterUser (UserAlterSchema user) { throw new NotImplementedException (); } public virtual void DropDatabase (DatabaseSchema database) { throw new NotImplementedException (); } public virtual void DropTable (TableSchema table) { throw new NotImplementedException (); } public virtual void DropView (ViewSchema view) { throw new NotImplementedException (); } public virtual void DropProcedure (ProcedureSchema procedure) { throw new NotImplementedException (); } public virtual void DropIndex (IndexSchema index) { throw new NotImplementedException (); } public virtual void DropTrigger (TriggerSchema trigger) { throw new NotImplementedException (); } public virtual void DropUser (UserSchema user) { throw new NotImplementedException (); } public virtual void RenameDatabase (DatabaseSchema database, string name) { throw new NotImplementedException (); } public virtual void RenameTable (TableSchema table, string name) { throw new NotImplementedException (); } public virtual void RenameView (ViewSchema view, string name) { throw new NotImplementedException (); } public virtual void RenameProcedure (ProcedureSchema procedure, string name) { throw new NotImplementedException (); } public virtual void RenameIndex (IndexSchema index, string name) { throw new NotImplementedException (); } public virtual void RenameTrigger (TriggerSchema trigger, string name) { throw new NotImplementedException (); } public virtual void RenameUser (UserSchema user, string name) { throw new NotImplementedException (); } public virtual string GetTableAlterStatement (TableAlterSchema table) { throw new NotImplementedException (); } public virtual string GetViewAlterStatement (ViewSchema view) { throw new NotImplementedException (); } public virtual string GetProcedureAlterStatement (ProcedureSchema procedure) { throw new NotImplementedException (); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Providers/IGuiProvider.cs0000644000175000017500000000400111266446160027754 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public interface IGuiProvider { bool ShowCreateDatabaseDialog (IDbFactory factory); bool ShowAddConnectionDialog (IDbFactory factory); bool ShowEditConnectionDialog (IDbFactory factory, DatabaseConnectionSettings settings, out DatabaseConnectionSettings newSettings); bool ShowTableEditorDialog (IEditSchemaProvider schemaProvider, TableSchema table, bool create); bool ShowViewEditorDialog (IEditSchemaProvider schemaProvider, ViewSchema view, bool create); bool ShowProcedureEditorDialog (IEditSchemaProvider schemaProvider, ProcedureSchema procedure, bool create); bool ShowUserEditorDialog (IEditSchemaProvider schemaProvider, UserSchema user, bool create); } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Providers/AbstractConnectionProvider.cs0000644000175000017500000000542411266446160032714 0ustar directhexdirecthex// // Authors: // Christian Hergert // Daniel Morgan // Sureshkumar T // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Text.RegularExpressions; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public abstract class AbstractConnectionProvider : IConnectionProvider { public abstract IPooledDbConnection CreateConnection (IConnectionPool pool, DatabaseConnectionSettings settings, out string error); public virtual bool CheckConnection (IPooledDbConnection connection, DatabaseConnectionSettings settings) { if (connection.IsOpen) { IDbConnection conn = connection.DbConnection; if (conn.Database == settings.Database) { return true; } else { try { conn.ChangeDatabase (settings.Database); return true; } catch { return false; } } } return false; } protected virtual string SetConnectionStringParameter (string connectionString, string quoteChar, string parameter, string value) { Regex regex = new Regex (parameter + "[ \t]*=[ \t]*" + quoteChar + "([a-zA-Z0-9_.]+)" + quoteChar, RegexOptions.IgnoreCase); Match match = regex.Match (connectionString); if (match.Success) { return connectionString.Substring (0, match.Index) + value + connectionString.Substring (match.Index + match.Length); } else { connectionString.TrimEnd (); return String.Concat (connectionString, connectionString.EndsWith (";") ? "" : ";", parameter, "=", quoteChar, value, quoteChar, ";"); } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Providers/ISchemaProvider.cs0000644000175000017500000000763111266446160030444 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public interface ISchemaProvider { bool CanEdit { get; } IConnectionPool ConnectionPool { get; } DatabaseSchemaCollection GetDatabases (); TableSchemaCollection GetTables (); ColumnSchemaCollection GetTableColumns (TableSchema table); ConstraintSchemaCollection GetTableConstraints (TableSchema table); IndexSchemaCollection GetTableIndexes (TableSchema table); ColumnSchemaCollection GetTableIndexColumns (TableSchema table, IndexSchema index); TriggerSchemaCollection GetTableTriggers (TableSchema table); ConstraintSchemaCollection GetColumnConstraints (TableSchema table, ColumnSchema column); ViewSchemaCollection GetViews (); ColumnSchemaCollection GetViewColumns (ViewSchema view); ProcedureSchemaCollection GetProcedures (); ParameterSchemaCollection GetProcedureParameters (ProcedureSchema procedure); UserSchemaCollection GetUsers (); DataTypeSchemaCollection GetDataTypes (); DataTypeSchema GetDataType (string name); string GetTableCreateStatement (TableSchema table); bool IsValidName (string name); bool IsSchemaActionSupported (SchemaType type, SchemaActions action); AggregateSchema CreateAggregateSchema (string name); CheckConstraintSchema CreateCheckConstraintSchema (string name); ColumnSchema CreateColumnSchema (ISchema parent, string name); DatabaseSchema CreateDatabaseSchema (string name); ForeignKeyConstraintSchema CreateForeignKeyConstraintSchema (string name); GroupSchema CreateGroupSchema (string name); IndexSchema CreateIndexSchema (string name); LanguageSchema CreateLanguageSchema (string name); OperatorSchema CreateOperatorSchema (string name); ParameterSchema CreateParameterSchema (string name); PrimaryKeyConstraintSchema CreatePrimaryKeyConstraintSchema (string name); PrivilegeSchema CreatePrivilegeSchema (string name); ProcedureSchema CreateProcedureSchema (string name); RoleSchema CreateRoleSchema (string name); RuleSchema CreateRuleSchema (string name); SchemaSchema CreateSchemaSchema (string name); SequenceSchema CreateSequenceSchema (string name); TableSchema CreateTableSchema (string name); TriggerSchema CreateTriggerSchema (string name); UniqueConstraintSchema CreateUniqueConstraintSchema (string name); UserSchema CreateUserSchema (string name); ViewSchema CreateViewSchema (string name); string GetMimeType (); string GetSelectQuery (TableSchema table); string GetInsertQuery (TableSchema table); string GetUpdateQuery (TableSchema table); string GetDeleteQuery (TableSchema table); } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Makefile.am0000644000175000017500000001354111266446160025145 0ustar directhexdirecthexADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.Sql.dll REFS = \ $(GTK_SHARP_LIBS) \ $(MONO_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:System \ -r:System.Data \ -r:System.Xml FILES = \ AddinCatalog.cs \ AlterSchema/AbstractAlterSchema.cs \ AlterSchema/Alterations/AbstractAlteration.cs \ AlterSchema/Alterations/ColumnAlterations.cs \ AlterSchema/Alterations/ConstraintAlterations.cs \ AlterSchema/Alterations/DefaultAlterations.cs \ AlterSchema/Alterations/IAlteration.cs \ AlterSchema/Alterations/IndexAlterations.cs \ AlterSchema/Alterations/ProcedureAlterations.cs \ AlterSchema/Alterations/TableAlterations.cs \ AlterSchema/Alterations/TriggerAlterations.cs \ AlterSchema/Alterations/UserAlterations.cs \ AlterSchema/Alterations/ViewAlterations.cs \ AlterSchema/CheckConstraintAlterSchema.cs \ AlterSchema/ColumnAlterSchema.cs \ AlterSchema/DatabaseAlterSchema.cs \ AlterSchema/ForeignKeyConstraintAlterSchema.cs \ AlterSchema/IAlterSchema.cs \ AlterSchema/IndexAlterSchema.cs \ AlterSchema/PrimaryKeyConstraintAlterSchema.cs \ AlterSchema/ProcedureAlterSchema.cs \ AlterSchema/TableAlterSchema.cs \ AlterSchema/TriggerAlterSchema.cs \ AlterSchema/UniqueConstraintAlterSchema.cs \ AlterSchema/UserAlterSchema.cs \ AlterSchema/ViewAlterSchema.cs \ AssemblyInfo.cs \ Codons/DbFactoryCodon.cs \ Collections/ColumnSchemaCollection.cs \ Collections/ConstraintSchemaCollection.cs \ Collections/DatabaseSchemaCollection.cs \ Collections/DataTypeSchemaCollection.cs \ Collections/IndexSchemaCollection.cs \ Collections/IPropertyComparer.cs \ Collections/ParameterSchemaCollection.cs \ Collections/ProcedureSchemaCollection.cs \ Collections/SortedCollectionBase.cs \ Collections/SortedCollectionItemEventArgs.cs \ Collections/TableSchemaCollection.cs \ Collections/TriggerSchemaCollection.cs \ Collections/UserSchemaCollection.cs \ Collections/ViewSchemaCollection.cs \ Configuration/DatabaseConnectionContext.cs \ Configuration/DatabaseConnectionContextCollection.cs \ Configuration/DatabaseConnectionContextEventArgs.cs \ Configuration/DatabaseConnectionSettings.cs \ Configuration/DatabaseConnectionSettingsCollection.cs \ Configuration/DuplicatedConnectionContextException.cs \ ConnectionContextService.cs \ ConnectionPool/AbstractPooledDbConnection.cs \ ConnectionPool/DefaultConnectionPool.cs \ ConnectionPool/FakeConnectionPool.cs \ ConnectionPool/IConnectionPool.cs \ ConnectionPool/IPooledDbConnection.cs \ ConnectionPool/PooledCommand.cs \ ConnectionPool/PooledDataReader.cs \ DbFactoryService.cs \ Dialect/AbstractSqlDialect.cs \ Dialect/Clauses/FromClause.cs \ Dialect/Clauses/FromSelectClause.cs \ Dialect/Clauses/FromTableClause.cs \ Dialect/Clauses/GroupByClause.cs \ Dialect/Clauses/HavingClause.cs \ Dialect/Clauses/IClause.cs \ Dialect/Clauses/JoinClause.cs \ Dialect/Clauses/JoinClauseType.cs \ Dialect/Clauses/OrderByClause.cs \ Dialect/Clauses/UnionClause.cs \ Dialect/Clauses/WhereClause.cs \ Dialect/Expressions/AliasedIdentifierExpression.cs \ Dialect/Expressions/BooleanExpression.cs \ Dialect/Expressions/BooleanOperator.cs \ Dialect/Expressions/IConditionalExpression.cs \ Dialect/Expressions/IdentifierExpression.cs \ Dialect/Expressions/IExpression.cs \ Dialect/Expressions/Operator.cs \ Dialect/Expressions/OperatorExpression.cs \ Dialect/Expressions/ParameterExpression.cs \ Dialect/ISqlDialect.cs \ Dialect/Literals/BitLiteral.cs \ Dialect/Literals/BooleanLiteral.cs \ Dialect/Literals/FalseLiteral.cs \ Dialect/Literals/HexLiteral.cs \ Dialect/Literals/ILiteral.cs \ Dialect/Literals/NullLiteral.cs \ Dialect/Literals/NumericLiteral.cs \ Dialect/Literals/StringLiteral.cs \ Dialect/Literals/TrueLiteral.cs \ Dialect/Statements/DeleteStatement.cs \ Dialect/Statements/DropStatement.cs \ Dialect/Statements/DropStatementType.cs \ Dialect/Statements/InsertStatement.cs \ Dialect/Statements/IStatement.cs \ Dialect/Statements/LineStatement.cs \ Dialect/Statements/SelectStatement.cs \ Dialect/Statements/TruncateStatement.cs \ Dialect/Statements/UpdateStatement.cs \ IDbFactory.cs \ IDbLinq.cs \ Providers/AbstractConnectionProvider.cs \ Providers/AbstractEditSchemaProvider.cs \ Providers/AbstractSchemaProvider.cs \ Providers/IConnectionProvider.cs \ Providers/IEditSchemaProvider.cs \ Providers/IGuiProvider.cs \ Providers/ISchemaProvider.cs \ QueryService.cs \ Schema/AbstractSchema.cs \ Schema/AggregateSchema.cs \ Schema/CheckConstraintSchema.cs \ Schema/ColumnSchema.cs \ Schema/ConstraintSchema.cs \ Schema/ConstraintType.cs \ Schema/DatabaseSchema.cs \ Schema/DataTypeCategory.cs \ Schema/DataTypeSchema.cs \ Schema/ForeignKeyAction.cs \ Schema/ForeignKeyConstraintSchema.cs \ Schema/GroupSchema.cs \ Schema/IndexSchema.cs \ Schema/IndexSortType.cs \ Schema/IndexType.cs \ Schema/ISchema.cs \ Schema/LanguageSchema.cs \ Schema/OperatorSchema.cs \ Schema/ParameterSchema.cs \ Schema/ParameterType.cs \ Schema/PrimaryKeyConstraintSchema.cs \ Schema/PrivilegeSchema.cs \ Schema/ProcedureSchema.cs \ Schema/Range.cs \ Schema/RoleSchema.cs \ Schema/RuleSchema.cs \ Schema/SchemaActions.cs \ Schema/SchemaSchema.cs \ Schema/SchemaType.cs \ Schema/SequenceSchema.cs \ Schema/TableSchema.cs \ Schema/TriggerEvent.cs \ Schema/TriggerFireType.cs \ Schema/TriggerSchema.cs \ Schema/TriggerType.cs \ Schema/UniqueConstraintSchema.cs \ Schema/UserSchema.cs \ Schema/ViewSchema.cs \ SqlMetalExecException.cs \ SqlMetalServices.cs RES = MonoDevelop.Database.Sql.addin.xml all: $(ASSEMBLY) $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb EXTRA_DIST = $(FILES) $(RES) include $(top_srcdir)/Makefile.include monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/0000755000175000017500000000000011266446160025275 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/AbstractAlterSchema.cs0000644000175000017500000000645211266446160031507 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { //TODO: AddUnique method ?? public abstract class AbstractAlterSchema : IAlterSchema where T : ISchema { protected List alterations; protected T oldSchema; protected T newSchema; protected AbstractAlterSchema () { alterations = new List (); } protected AbstractAlterSchema (T oldSchema, T newSchema):this() { if (oldSchema == null) throw new ArgumentNullException ("oldSchema"); if (newSchema == null) throw new ArgumentNullException ("newSchema"); this.oldSchema = oldSchema; this.newSchema = newSchema; DetermineDifferences (oldSchema, newSchema); } public T OldSchema { get { return oldSchema; } protected internal set { oldSchema = value; } } public T NewSchema { get { return newSchema; } protected internal set { newSchema = value; } } public ICollection Alterations { get { return alterations; } } public T GetAlteration () where T : IAlteration { Type t = typeof (T); foreach (IAlteration alteration in alterations) if (t == alteration.GetType ()) return (T)alteration; return default(T); } public bool HasAlteration () where T : IAlteration { IAlteration alteration = GetAlteration (); return alteration != null; } protected virtual void DetermineDifferences (T oldSchema, T newSchema) { if (oldSchema.Name != newSchema.Name) alterations.Add (new NameAlteration (oldSchema.Name, newSchema.Name)); if (oldSchema.OwnerName != newSchema.OwnerName) alterations.Add (new OwnerNameAlteration (oldSchema.OwnerName, newSchema.OwnerName)); if (oldSchema.Comment != newSchema.Comment) alterations.Add (new CommentAlteration (oldSchema.Comment, newSchema.Comment)); if (oldSchema.Definition != newSchema.Definition) alterations.Add (new DefinitionAlteration (oldSchema.Name, newSchema.Name)); if (oldSchema.SchemaName != newSchema.SchemaName) alterations.Add (new SchemaAlteration (oldSchema.SchemaName, newSchema.SchemaName)); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/IndexAlterSchema.cs0000644000175000017500000000317211266446160031007 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class IndexAlterSchema : AbstractAlterSchema { public IndexAlterSchema (IndexSchema oldSchema, IndexSchema newSchema) : base (oldSchema, newSchema) { } protected override void DetermineDifferences (IndexSchema oldSchema, IndexSchema newSchema) { base.DetermineDifferences (oldSchema, newSchema); //TODO: } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/PrimaryKeyConstraintAlterSchema.cs0000644000175000017500000000334311266446160034101 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class PrimaryKeyConstraintAlterSchema : AbstractAlterSchema { public PrimaryKeyConstraintAlterSchema (PrimaryKeyConstraintSchema oldSchema, PrimaryKeyConstraintSchema newSchema) : base (oldSchema, newSchema) { } protected override void DetermineDifferences (PrimaryKeyConstraintSchema oldSchema, PrimaryKeyConstraintSchema newSchema) { base.DetermineDifferences (oldSchema, newSchema); //TODO: } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/TableAlterSchema.cs0000644000175000017500000000317211266446160030767 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class TableAlterSchema : AbstractAlterSchema { public TableAlterSchema (TableSchema oldSchema, TableSchema newSchema) : base (oldSchema, newSchema) { } protected override void DetermineDifferences (TableSchema oldSchema, TableSchema newSchema) { base.DetermineDifferences (oldSchema, newSchema); //TODO: } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/ProcedureAlterSchema.cs0000644000175000017500000000320711266446160031667 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class ProcedureAlterSchema : AbstractAlterSchema { public ProcedureAlterSchema (ProcedureSchema oldSchema, ProcedureSchema newSchema) : base (oldSchema, newSchema) { } protected override void DetermineDifferences (ProcedureSchema oldSchema, ProcedureSchema newSchema) { base.DetermineDifferences (oldSchema, newSchema); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/ViewAlterSchema.cs0000644000175000017500000000316311266446160030652 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class ViewAlterSchema : AbstractAlterSchema { public ViewAlterSchema (ViewSchema oldSchema, ViewSchema newSchema) : base (oldSchema, newSchema) { } protected override void DetermineDifferences (ViewSchema oldSchema, ViewSchema newSchema) { base.DetermineDifferences (oldSchema, newSchema); //TODO: } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/CheckConstraintAlterSchema.cs0000644000175000017500000000330011266446160033013 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class CheckConstraintAlterSchema : AbstractAlterSchema { public CheckConstraintAlterSchema (CheckConstraintSchema oldSchema, CheckConstraintSchema newSchema) : base (oldSchema, newSchema) { } protected override void DetermineDifferences (CheckConstraintSchema oldSchema, CheckConstraintSchema newSchema) { base.DetermineDifferences (oldSchema, newSchema); //TODO: } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/TriggerAlterSchema.cs0000644000175000017500000000321011266446160031334 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class TriggerAlterSchema : AbstractAlterSchema { public TriggerAlterSchema (TriggerSchema oldSchema, TriggerSchema newSchema) : base (oldSchema, newSchema) { } protected override void DetermineDifferences (TriggerSchema oldSchema, TriggerSchema newSchema) { base.DetermineDifferences (oldSchema, newSchema); //TODO: } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/Alterations/0000755000175000017500000000000011266446160027562 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/Alterations/TableAlterations.cs0000644000175000017500000000344311266446160033352 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class TableNameAlteration : AbstractAlteration { public TableNameAlteration (string oldName, string newName) : base (oldName, newName) { } } public class TableSpaceNameAlteration : AbstractAlteration { public TableSpaceNameAlteration (string oldName, string newName) : base (oldName, newName) { } } public class IsSystemTableAlteration : AbstractAlteration { public IsSystemTableAlteration (bool oldValue, bool newValue) : base (oldValue, newValue) { } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/Alterations/ProcedureAlterations.cs0000644000175000017500000000321111266446160034244 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class ProcedureLanguageAlteration : AbstractAlteration { public ProcedureLanguageAlteration (string oldValue, string newValue) : base (oldValue, newValue) { } } public class IsSystemProcedureAlteration : AbstractAlteration { public IsSystemProcedureAlteration (bool oldValue, bool newValue) : base (oldValue, newValue) { } } } ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/Alterations/ConstraintAlterations.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/Alterations/ConstraintAlterations.c0000644000175000017500000000363211266446160034264 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class IsColumnConstraintAlteration : AbstractAlteration { public IsColumnConstraintAlteration (bool oldValue, bool newValue) : base (oldValue, newValue) { } } public class ForeignKeyDeleteActionAlteration : AbstractAlteration { public ForeignKeyDeleteActionAlteration (ForeignKeyAction oldValue, ForeignKeyAction newValue) : base (oldValue, newValue) { } } public class ForeignKeyUpdateActionAlteration : AbstractAlteration { public ForeignKeyUpdateActionAlteration (ForeignKeyAction oldValue, ForeignKeyAction newValue) : base (oldValue, newValue) { } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/Alterations/TriggerAlterations.cs0000644000175000017500000000404711266446160033727 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class TriggerTypeAlteration : AbstractAlteration { public TriggerTypeAlteration (TriggerType oldValue, TriggerType newValue) : base (oldValue, newValue) { } } public class TriggerFireTypeAlteration : AbstractAlteration { public TriggerFireTypeAlteration (TriggerFireType oldValue, TriggerFireType newValue) : base (oldValue, newValue) { } } public class TriggerEventAlteration : AbstractAlteration { public TriggerEventAlteration (TriggerEvent oldValue, TriggerEvent newValue) : base (oldValue, newValue) { } } public class IsTriggerActiveAlteration : AbstractAlteration { public IsTriggerActiveAlteration (bool oldValue, bool newValue) : base (oldValue, newValue) { } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/Alterations/ViewAlterations.cs0000644000175000017500000000267611266446160033244 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class IsSystemViewAlteration : AbstractAlteration { public IsSystemViewAlteration (bool oldValue, bool newValue) : base (oldValue, newValue) { } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/Alterations/UserAlterations.cs0000644000175000017500000000242211266446160033235 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/Alterations/AbstractAlteration.cs0000644000175000017500000000350711266446160033704 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public abstract class AbstractAlteration : IAlteration { protected T oldValue; protected T newValue; protected AbstractAlteration () { } protected AbstractAlteration (T oldValue, T newValue) { this.oldValue = oldValue; this.newValue = newValue; } public T OldValue { get { return oldValue; } protected internal set { oldValue = value; } } public T NewValue { get { return newValue; } protected internal set { newValue = value; } } public bool HasNewValue { get { return newValue != null; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/Alterations/DefaultAlterations.cs0000644000175000017500000000515011266446160033704 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class NameAlteration : AbstractAlteration { public NameAlteration (string oldName, string newName) : base (oldName, newName) { } } public class StatementAlteration : AbstractAlteration { public StatementAlteration (string oldValue, string newValue) : base (oldValue, newValue) { } } public class CommentAlteration : AbstractAlteration { public CommentAlteration (string oldValue, string newValue) : base (oldValue, newValue) { } } public class DefinitionAlteration : AbstractAlteration { public DefinitionAlteration (string oldValue, string newValue) : base (oldValue, newValue) { } } public class SchemaAlteration : AbstractAlteration { public SchemaAlteration (string oldValue, string newValue) : base (oldValue, newValue) { } } public class OwnerNameAlteration : AbstractAlteration { public OwnerNameAlteration (string oldValue, string newValue) : base (oldValue, newValue) { } } public class SourceAlteration : AbstractAlteration { public SourceAlteration (string oldValue, string newValue) : base (oldValue, newValue) { } } public class PositionAlteration : AbstractAlteration { public PositionAlteration (int oldValue, int newValue) : base (oldValue, newValue) { } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/Alterations/IndexAlterations.cs0000644000175000017500000000242211266446160033366 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/Alterations/ColumnAlterations.cs0000644000175000017500000000252511266446160033560 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { //add/remove/insert column alteration (with ColumnSchema as param) } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/Alterations/IAlteration.cs0000644000175000017500000000246711266446160032335 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public interface IAlteration { } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/UserAlterSchema.cs0000644000175000017500000000316311266446160030656 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class UserAlterSchema : AbstractAlterSchema { public UserAlterSchema (UserSchema oldSchema, UserSchema newSchema) : base (oldSchema, newSchema) { } protected override void DetermineDifferences (UserSchema oldSchema, UserSchema newSchema) { base.DetermineDifferences (oldSchema, newSchema); //TODO: } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/ForeignKeyConstraintAlterSchema.cs0000644000175000017500000000334311266446160034047 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class ForeignKeyConstraintAlterSchema : AbstractAlterSchema { public ForeignKeyConstraintAlterSchema (ForeignKeyConstraintSchema oldSchema, ForeignKeyConstraintSchema newSchema) : base (oldSchema, newSchema) { } protected override void DetermineDifferences (ForeignKeyConstraintSchema oldSchema, ForeignKeyConstraintSchema newSchema) { base.DetermineDifferences (oldSchema, newSchema); //TODO: } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/ColumnAlterSchema.cs0000644000175000017500000000320111266446160031166 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class ColumnAlterSchema : AbstractAlterSchema { public ColumnAlterSchema (ColumnSchema oldSchema, ColumnSchema newSchema) : base (oldSchema, newSchema) { } protected override void DetermineDifferences (ColumnSchema oldSchema, ColumnSchema newSchema) { base.DetermineDifferences (oldSchema, newSchema); //TODO: } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/IAlterSchema.cs0000644000175000017500000000271511266446160030132 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public interface IAlterSchema { ICollection Alterations { get; } T GetAlteration () where T : IAlteration; bool HasAlteration () where T : IAlteration; } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/UniqueConstraintAlterSchema.cs0000644000175000017500000000330711266446160033253 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class UniqueConstraintAlterSchema : AbstractAlterSchema { public UniqueConstraintAlterSchema (UniqueConstraintSchema oldSchema, UniqueConstraintSchema newSchema) : base (oldSchema, newSchema) { } protected override void DetermineDifferences (UniqueConstraintSchema oldSchema, UniqueConstraintSchema newSchema) { base.DetermineDifferences (oldSchema, newSchema); //TODO: } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AlterSchema/DatabaseAlterSchema.cs0000644000175000017500000000321711266446160031444 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class DatabaseAlterSchema : AbstractAlterSchema { public DatabaseAlterSchema (DatabaseSchema oldSchema, DatabaseSchema newSchema) : base (oldSchema, newSchema) { } protected override void DetermineDifferences (DatabaseSchema oldSchema, DatabaseSchema newSchema) { base.DetermineDifferences (oldSchema, newSchema); //TODO: } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/ChangeLog0000644000175000017500000011773411266446160024674 0ustar directhexdirecthex2010-03-22 Lluis Sanchez Gual * MonoDevelop.Database.Sql.addin.xml: Bumped MD version. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.Sql.csproj: Flush. 2010-03-17 Lluis Sanchez Gual * QueryService.cs: * MonoDevelop.Database.Sql.csproj: Merged MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui and MD.Components into MD.Ide. 2010-02-15 Luciano N. Callero * IDbLinq.cs: * Makefile.am: * SqlMetalServices.cs: * SqlMetalExecException.cs: * MonoDevelop.Database.Sql.csproj: Implement SqlMetal Services 2010-02-12 Lluis Sanchez Gual * MonoDevelop.Database.Sql.csproj: Flush. 2009-11-11 Luciano N. Callero * MonoDevelop.Database.Sql.csproj: Target runtime from 2.0 to 3.5. * Providers/ISchemaProvider.cs: * Providers/AbstractSchemaProvider.cs: Implement Query: Select, Update, Insert, Delete. 2009-10-30 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.addin.xml: Bump MD version. 2009-10-22 Luciano N. Callero * Configuration/DatabaseConnectionSettings.cs: Implement Use Default port (to use the default port without specifing it). Implement Integrated Security Connection. * Providers/IGuiProvider.cs: * Fixed Edit Database bugs. 2009-10-21 Luciano N. Callero * MonoDevelop.Database.Sql.csproj: * ConnectionContextService.cs: Added a new way to detect duplicated connection. * Schema/DatabaseSchema.cs: Added new property to set additional creation data. * Dialect/Statements/LineStatement.cs: Line Statement. * Configuration/DuplicatedConnectionContextException.cs: Duplicated connection exception. * Makefile.am: * ConnectionPool/AbstractPooledDbConnection.cs: * Providers/AbstractSchemaProvider.cs: Raise exception when executing query. 2009-10-18 Michael Hutchinson * MonoDevelop.Database.Sql.csproj: Fix the build & flush format changes. 2009-10-14 Luciano N. Callero * ConnectionPool/DefaultConnectionPool.cs: Fix pool Release bug. 2009-10-07 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.addin.xml: Bump MD version. 2009-07-31 Lluis Sanchez Gual * MonoDevelop.Database.Sql.csproj: Disabled 'require specific version' flags. 2009-05-20 Luciano N. Callero * AlterSchema/AbstractAlterSchema.cs: Fix NullReferenceException. * AlterSchema/ProcedureAlterSchema.cs: Remove unneeded todo. * MonoDevelop.Database.Sql.csproj: Add ChangeLog into the project. 2009-04-21 Luciano N. Callero * Schema/DataTypeCategory.cs: New Date Interval Type. * Providers/AbstractSchemaProvider.cs: Method to Get Constraint Action as string. Don't rise some unneeded exceptions. 2009-04-15 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.addin.xml: Bump MD version. 2009-02-20 Lluis Sanchez Gual * MonoDevelop.Database.Sql.csproj: Updated references. 2009/02/06 Lluis Sanchez Gual * MonoDevelop.Database.Sql.mdp: * MonoDevelop.Database.Sql.csproj: Migrated to MSBuild file format. 2009/02/03 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.addin.xml: Bump MD version. 2009-01-26 Michael Hutchinson * MonoDevelop.Database.Sql.mdp: Flush project format changes. 2008-12-09 Lluis Sanchez Gual * MonoDevelop.Database.Sql.mdp: Don't require a specific version of Mono.Addins. 2008-12-02 Michael Hutchinson * Makefile.am: * AssemblyInfo.cs: * MonoDevelop.Database.Sql.mdp: Add AssemblyInfo.cs files that are autogenerated from the addin manifests. 2008-11-06 Michael Hutchinson * Makefile.am: Fix build dependencies. 2008-11-05 Lluis Sanchez Gual * MonoDevelop.Database.Sql.addin.xml: Bump MD version. 2008-08-18 Lluis Sanchez Gual * MonoDevelop.Database.Sql.mdp: Fix reference to Mono.TextEditor. The incorrect add-in version number causes problems in the makefile synchronization. 2008-06-04 Lluis Sanchez Gual * MonoDevelop.Database.Sql.addin.xml: Bump MD version. 2008-05-21 Lluis Sanchez Gual * MonoDevelop.Database.Sql.mdp: Fix projects. 2008-03-10 Lluis Sanchez Gual * QueryService.cs: Track changes in the MessageService class. 2008-01-31 Ben Motmans * AlterSchema/AbstractAlterSchema.cs, AlterSchema/TriggerAlterSchema.cs, AlterSchema/DatabaseAlterSchema.cs, AlterSchema/ForeignKeyConstraintAlterSchema.cs, AlterSchema/IndexAlterSchema.cs, AlterSchema/Alterations/TableAlterations.cs, AlterSchema/Alterations/IndexAlterations.cs, AlterSchema/Alterations/DataTypeAlteration.cs, AlterSchema/Alterations/ProcedureAlterations.cs, AlterSchema/Alterations/ViewAlterations.cs, AlterSchema/Alterations/NameAlteration.cs, AlterSchema/Alterations/ColumnAlterations.cs, AlterSchema/Alterations/UserAlterations.cs, AlterSchema/Alterations/AbstractAlteration.cs, AlterSchema/Alterations/StatementAlteration.cs, AlterSchema/Alterations/TriggerAlterations.cs, AlterSchema/Alterations/DefaultAlterations.cs, AlterSchema/Alterations/ConstraintAlterations.cs, AlterSchema/ViewAlterSchema.cs, AlterSchema/UniqueConstraintAlterSchema.cs, AlterSchema/UserAlterSchema.cs, AlterSchema/CheckConstraintAlterSchema.cs, AlterSchema/TableAlterSchema.cs, AlterSchema/ProcedureAlterSchema.cs, AlterSchema/ColumnAlterSchema.cs, AlterSchema/PrimaryKeyConstraintAlterSchema.cs: initial support for schema alterations (far from finished) 2008-01-30 Ben Motmans * Providers/IGuiProvider.cs: API changes 2008-01-29 Ben Motmans * Schema/DataTypeSchema.cs, Providers/AbstractSchemaProvider.cs: renamed the "DataType" property to "DotNetType" 2008-01-29 Ben Motmans * ConnectionPool/FakeConnectionPool.cs: throw NotSupportedExceptions instead of NotImplementedExceptions * MonoDevelop.Database.Sql.addin.xml: changed the name of the addin 2008-01-28 Ben Motmans * Codons/CapabilitiesCodon.cs, Codons/ActionCodon.cs, Codons/CapabilityFlagsCodon.cs, Capabilities/UniqueConstraint.cs, Capabilities/CapabilitiesUtility.cs, Capabilities/User.cs, Capabilities/Parameter.cs, Capabilities/ConnectionSettings.cs, Capabilities/SchemaActions.cs, Capabilities/CheckConstraint.cs, Capabilities/Table.cs, Capabilities/Procedure.cs, Capabilities/Column.cs, Capabilities/PrimaryKeyConstraint.cs, Capabilities/Trigger.cs, Capabilities/Index.cs, Capabilities/ForeignKeyConstraint.cs, Capabilities/View.cs, MonoDevelop.Database.Sql.addin.xml: capabilities system is now obsolete * Codons/DbFactoryCodon.cs: removed leftovers from the capabilities system * AlterSchema, AlterSchema/TriggerAlterSchema.cs, AlterSchema/AbstractAlterSchema.cs, AlterSchema/DatabaseAlterSchema.cs, AlterSchema/IndexAlterSchema.cs, AlterSchema/ForeignKeyConstraintAlterSchema.cs, AlterSchema/Alterations, AlterSchema/Alterations/IAlteration.cs, AlterSchema/Alterations/DataTypeAlteration.cs, AlterSchema/Alterations/NameAlteration.cs, AlterSchema/Alterations/StatementAlteration.cs, AlterSchema/ViewAlterSchema.cs, AlterSchema/UniqueConstraintAlterSchema.cs, AlterSchema/UserAlterSchema.cs, AlterSchema/CheckConstraintAlterSchema.cs, AlterSchema/TableAlterSchema.cs, AlterSchema/IAlterSchema.cs, AlterSchema/ProcedureAlterSchema.cs, AlterSchema/ColumnAlterSchema.cs, AlterSchema/PrimaryKeyConstraintAlterSchema.cs: initial support for schema alterations (far from finished) * ConnectionPool/AbstractPooledDbConnection.cs, ConnectionPool/DefaultConnectionPool.cs, ConnectionPool/FakeConnectionPool.cs, ConnectionPool/IPooledDbConnection.cs, ConnectionPool/IConnectionPool.cs: added support to retrieve the database version * QueryService.cs: temporary changes * IDbFactory.cs: removed the old capabilities system * Schema/DataTypeSchema.cs: added GetDotNetDataType method * Schema/SchemaType.cs: added a list of all Schema types * Schema/DataTypeCategory.cs: added category 'UserDefined' * AbstractDbFactory.cs: no longer needed * Providers/AbstractSchemaProvider.cs, Providers/ISchemaProvider.cs, Providers/AbstractEditSchemaProvider.cs, Providers/IEditSchemaProvider.cs: splitted the schema provider in a query only and edit part * Providers/IGuiProvider.cs: API changes * AddinCatalog.cs: added support for plural strings 2008-01-25 Lluis Sanchez Gual * MonoDevelop.Database.Sql.addin.xml: Update MD version. 2008-01-22 Lluis Sanchez Gual * MonoDevelop.Database.Sql.addin.xml: Updated add-in category and description. 2007-12-14 Lluis Sanchez Gual * MonoDevelop.Database.Sql.mdp: Updated project file. The order of extended properties won't change anymore. 2007-12-12 Lluis Sanchez Gual * MonoDevelop.Database.Sql.addin.xml: Bump add-in versions. 2007-12-04 Lluis Sanchez Gual * MonoDevelop.Database.Sql.mdp: Updated project files. 2007-12-04 Lluis Sanchez Gual * AddinCatalog.cs: Add missing file. 2007-12-04 Lluis Sanchez Gual * ConnectionContextService.cs, QueryService.cs, MonoDevelop.Database.Sql.addin.xml, MonoDevelop.Database.Sql.mdp, Makefile.am: Directory reorganization. 2007-11-09 Michael Hutchinson * Codons/DbFactoryCodon.cs, ConnectionContextService.cs, Capabilities/CapabilitiesUtility.cs, ConnectionPool/AbstractPooledDbConnection.cs, QueryService.cs, DbFactoryService.cs: Track LoggingService API. Replace some "LogError" calls with "LogDebug" calls. 2007-10-29 Lluis Sanchez Gual * MonoDevelop.Database.Sql.addin.xml: Bump MD version. 2007-10-23 Lluis Sanchez Gual * MonoDevelop.Database.Sql.mdp: Project file names updated by change in MD path functions. 2007-10-02 Ben Motmans * QueryService.cs: Allow empty passwords 2007-09-26 Michael Hutchinson * MonoDevelop.Database.Sql.mdp: Don't unnecessarily local-copy project references. Don't sync EXTRA_DIST with deploy files. Add Makefile.am to file list. * Makefile.am: Don't deploy .addin.xml file. 2007-09-21 Lluis Sanchez Gual * MonoDevelop.Database.Sql.addin.xml: Bump MD version. 2007-09-19 Ben Motmans * ConnectionPool/DefaultConnectionPool.cs: improved detection of connection errors * QueryService.cs: removed the obsolete attempt parameter 2007-09-19 Ben Motmans * Capabilities/UniqueConstraint.cs, Capabilities/User.cs, Capabilities/Parameter.cs, Capabilities/ConnectionSettings.cs, Capabilities/SchemaActions.cs, Capabilities/CheckConstraint.cs, Capabilities/Table.cs, Capabilities/Procedure.cs, Capabilities/Column.cs, Capabilities/PrimaryKeyConstraint.cs, Capabilities/Trigger.cs, Capabilities/ForeignKeyConstraint.cs, Capabilities/Index.cs, Capabilities/View.cs: added values to the enum 2007-09-17 Ben Motmans 2007-09-16 Ben Motmans * Codons/DbFactoryCodon.cs: log errors * Codons/CapabilityFlagsCodon.cs: Read overload is no longer needed, this is done in the CapabilitiesUtility * Capabilities/CapabilitiesUtility.cs: register capability flags on load and correctly parse the flags * AbstractDbFactory.cs: small bugfix in SetCapabilities method * MonoDevelop.Database.Sql.addin.xml: small changes in the extension points * Makefile.am: link to the correct Mono.Addins dll 2007-09-07 Ben Motmans * MetaData, MetaData/ViewMetaData.cs, MetaData/DataTypeMetaData.cs, MetaData/UniqueConstraintMetaData.cs, MetaData/UserMetaData.cs, MetaData/ConnectionSettingsMetaData.cs, MetaData/ParameterMetaData.cs, MetaData/CheckConstraintMetaData.cs, MetaData/TableMetaData.cs, MetaData/ProcedureMetaData.cs, MetaData/ColumnMetaData.cs, MetaData/MetaDataService.cs, MetaData/PrimaryKeyConstraintMetaData.cs, MetaData/TriggerMetaData.cs, MetaData/DatabaseMetaData.cs, MetaData/ForeignKeyConstraintMetaData.cs, MetaData/IndexMetaData.cs, Codons/CapabilitiesCodon.cs, Codons/DbFactoryCodon.cs, Codons/ActionCodon.cs, Codons/CapabilityFlagsCodon.cs, Capabilities, Capabilities/UniqueConstraint.cs, Capabilities/CapabilitiesUtility.cs, Capabilities/User.cs, Capabilities/Parameter.cs, Capabilities/ConnectionSettings.cs, Capabilities/SchemaActions.cs, Capabilities/CheckConstraint.cs, Capabilities/Table.cs, Capabilities/Procedure.cs, Capabilities/Column.cs, Capabilities/PrimaryKeyConstraint.cs, Capabilities/Trigger.cs, Capabilities/ForeignKeyConstraint.cs, Capabilities/Index.cs, Capabilities/View.cs, ConnectionContextService.cs, IDbFactory.cs, QueryService.cs, AbstractDbFactory.cs, MonoDevelop.Database.Sql.addin.xml, MonoDevelop.Database.Sql.mdp: improved capabilities system 2007-08-28 Ben Motmans * MonoDevelop.Database.Sql.mdp, Makefile.am: use project references instead of assembly references 2007-08-28 Ben Motmans * MetaData/MetaDataService.cs: support for IndexMetaDataAttribute * MetaData/ForeignKeyConstraintMetaData.cs, Schema/ForeignKeyConstraintSchema.cs: added reference columns property to foreign keys * MetaData/IndexMetaData.cs: Index metadata attribute * Schema/ForeignKeyAction.cs: available foreign key actions * Schema/IndexType.cs: available index types * Schema/IndexSchema.cs: added IndexType property * Makefile.am: updated makefile 2007-08-03 Ben Motmans * ConnectionContextService.cs: initialize the correct configFile field * Providers/IConnectionProvider.cs, Providers/AbstractConnectionProvider.cs: included an out parameter to pass connection errors * ConnectionPool/IConnectionPool.cs, ConnectionPool/DefaultConnectionPool.cs, ConnectionPool/FakeConnectionPool.cs: added support to store errors that occured while creating new connections 2007-08-02 Ben Motmans * MetaData/ConnectionSettingsMetaData.cs: fixed incorrect field initializer in ctor * Collections/ConstraintSchemaCollection.cs: added GetConstraints method to get all constraints of a specified type * Schema/TriggerSchema.cs, Schema/TriggerFireType.cs: added a property to distinguish for each row and for each statement triggers 2007-08-01 Ben Motmans * Providers/AbstractSchemaProvider.cs, Providers/ISchemaProvider.cs: IsValidName method * Configuration/DatabaseConnectionContextCollection.cs: Contains method that can look for a specific name * Configuration/DatabaseConnectionContext.cs: Refresh event * Schema/ViewSchema.cs, Schema/TableSchema.cs: update column parent after clone * Schema/ColumnSchema.cs, Schema/DataTypeSchema.cs: store length, scale and precision information in the datatype and not in the column * Providers/AbstractSchemaProvider.cs, Providers/ISchemaProvider.cs: added methods to get the create or alter statements from some schema objects * Dialect/AbstractSqlDialect.cs: fixed incorrectly generated sql statements * ConnectionPool/IPooledDbConnection.cs, ConnectionPool/AbstractPooledDbConnection.cs: Added helper methods to quickly execute sql statements * ConnectionContextService.cs: automatically initialize 2007-07-31 Ben Motmans * QueryService.cs: Added a global method to raise database exceptions * Providers/IGuiProvider.cs, IDbFactory.cs: Moved all Gui operations in a separate Gui provider * Providers/ISchemaProvider.cs, Providers/AbstractSchemaProvider.cs: Methods to create new schema objects * MetaData/*.cs: Added more metadata flags * Collections/*.cs: Added a copy constructor * Schema/*.cs: Added a copy constructor and implemented IClonable 2007-07-25 Ben Motmans * Schema/TableSchema.cs: added additional constructor that initializes all properties * Schema/ParameterSchema.cs, Schema/ParameterType.cs: Added a property to define the parameter direction (in, out, inout) * Schema/IndexSortType.cs, Schema/IndexSchema.cs: Indices no longer subclass constraints but are a type on its own * Schema/DataTypeSchema.cs: added properties for the create format, auto inc, isNullable and isFixedLength * Schema/ConstraintType.cs: enum containing the different types of constraints * Schema/ConstraintSchema.cs: property to distinguish the difference between table and column constraints * Providers/ISchemaProvider.cs, Providers/AbstractSchemaProvider.cs: Seperate methods to get indices and constraints * MetaData/*.cs: attributes and enumerations to store information about database capabilities and features * ConnectionPool/AbstractPooledDbConnection.cs, ConnectionPool/IPooledDbConnection.cs: Expose the GetSchema method of the internal IDbConnection * Configuration/DatabaseConnectionContext.cs: added support for temp contexts to be used in the create database dialog * Configuration/DatabaseConnectionSettings.cs: added a copy constructor * Collections/ConstraintSchemaCollection.cs, Collections/DataTypeSchemaCollection.cs, Collections/IndexSchemaCollection.cs: strong typed schema collections * Collections/SortedCollectionItemEventArgs.cs: EventArgs to be used in Add and Remove events 2007-07-18 Ben Motmans * Providers/ISchemaProvider.cs, Providers/AbstractSchemaProvider.cs: Create, Alter, Drop and Rename methods for schema objects * Providers/SchemaOperation.cs, Schema/SqlSchemaType.cs, Dialect/Statements/SqlStatementType.cs: Improved method to determine if a schema operation is supported, no longer requires type checking * Schema/CheckConstraintSchema.cs: Source property * Schema/IndexConstraintSchema.cs, Schema/IndexConstraintSortType.cs: TableName and SortType properties * Schema/TriggerSchema.cs, Schema/TriggerEvent.cs, Schema/TriggerType.cs: Extended the TriggerSchema object to include the event, type and position of the trigger * Collections/SortedCollectionBase.cs: Generic collection implementation with support for sorted ISchema objects and a binary searche based on the ISchema name * Collections/*SchemaCollection.cs: strong typed schema collections * QueryService.cs: no longer shows the edit dialog after a failed attempt 2007-07-17 Ben Motmans * Makefile.am: initial makefile * Configuration/*.cs: moved ConnectionSettings class and splitted into DatabaseConnectionSettings and DatabaseConnectionContext * QueryService.cs: service to easily ensure the connection state * IDbFactory.cs: additional methods required for the connection settings dialog * ConnectionPool/FakeConnectionPool.cs: fake connection pool for use with temporary connections 2007-07-15 Ben Motmans * Dialect/ISqlDialect.cs, Dialect/AbstractSqlDialect.cs: replaced QuoteChar and ParameterChar properties with methods to allow more complex behavior * Dialect/Sql99Dialect.cs: removed, all providers should implement their own unique dialect * Dialect/AbstractSqlDialect.cs: support FromSelectClause and FromTableClause in GetSql method * DbFactoryService.cs, Codons/DbFactoryCodon.cs: added some error handling 2007-07-14 Ben Motmans * ConnectionPool/*.cs: connection pool implementation, this replaces the default ADO.net Pooling=true parameter and allows more control over pooled connections * Providers/IConnectionProvider.cs: splitted in IConnectionProvider and IPooledDbConnection * IDbFactory.cs: updated to reflect the new API 2007-07-10 Ben Motmans * Providers/IConnectionProvider.cs, Providers/AbstractConnectionProvider.cs: added IsConnectionError property + Async query methods now have a state parameter * Providers/ConnectionContext.cs, Providers/ConnectionSettings.cs: merged the ConnectionContext properties inside the ConnectionSettings class * ConnectionSettingsService.cs: Service to store all ConnectionSettings data * DbFactoryService.cs: small fix, use the factory identifier instead of the codon identifier * Dialect/Clauses/FromTableClause.cs: IdentifierExpression can be Aliased but doesn't have to 2007-07-09 Ben Motmans * Schema/ViewSchema.cs: Added Columns property 2007-07-05 Ben Motmans * Dialect/*: Object model for all Sql statements, clauses, expressions and literals * IDbFactory.cs: SqlDialect property to specify the dialect used by the database provider * DbFactoryService.cs: static class design instead of monodevelop service * Providers/ConnectionContext.cs: container class for ConnectionSettings with corresponding providers * Providers/IConnectionProvider.cs, Providers/AbstractConnectionProvider.cs,: added and implemented ExecuteQuery* and ExecuteQuery*Async methods 2007-07-02 Ben Motmans * Providers/ISchemaProvider.cs: * Providers/AbstractSchemaProvider.cs: removed table,view and procedure Get*Definition methods and integrated them in GetTable, GetView and GetProcedure * Providers/IDbFactory.cs: Added Identifier property Added GetDefaultConnectionSettings property * Schema/*: fixed small compilation issues 2007-07-01 Ben Motmans * Providers/IDbFactory.cs: Factory class to be implemented by each database provider * Codons/DbFactoryCodon.cs: Codon for IDbFactory extensions * Providers/DbFactoryService.cs: Service point for DbFactory codons * Schema/*: added TODO items 2007-06-27 Ben Motmans * Schema/*.cs: constructor with SchemaProvider parameter * Schema/*.cs: use of generic collections instead of arrays * Providers/ConnectionSettings.cs: database property 2007-06-27 Ben Motmans * Providers/AbstractConnectionProvider.cs: abstract connection provider 2007-06-26 Ben Motmans * Schema/DataTypeCategory.cs, Schema/DataTypeSchema.cs: added an enumeration to specify the category of the data type, this can be used in the future for data migration 2007-06-25 Ben Motmans * Schema/TableSchema.cs, Schema/ViewSchema.cs, Schema/ProcedureSchema.cs, Schema/ColumnsSchema.cs, Schema/ConstraintSchema.cs: lazy loaded columns, parameters, definition, ... parameters * Schema/Range.cs, Schema/DataTypeSchema.cs: length, precision and scale range properties 2007-06-24 Ben Motmans * Creation of designer, visualisation and query sub-projects * Providers/ConnectionSettings.cs: class to seperate connection settings from the connection provider 2007-06-23 Ben Motmans * Providers/IDbProvider.cs: splitted into Providers/ISchemaProvider.cs and Providers/IConnectionProvider.cs * Providers/ISchemaProvider.cs: Use of generics where possible and logic * Providers/ISchemaProvider.cs: Added GetDatabases method 2007-06-22 Ben Motmans * Imported code from MonoQuery 2007-06-01 Jeffrey Stedfast * Mono.Data.Sql/Makefile.am: Only build the supported database providers (based on configure results). 2007-05-11 Lluis Sanchez Gual * MonoQuery/MonoQuery.mdp: Copy the .addins.xml file to the output dir. 2007-05-11 Lluis Sanchez Gual * Mono.Data.Sql/Makefile.am, Mono.Data.Sql/Mono.Data.Sql.mdp, MonoQuery/Makefile.am, MonoQuery/MonoQuery.mdp: Fixed. 2007-05-10 Lluis Sanchez Gual * Mono.Data.Sql/Makefile.am, Mono.Data.Sql/Mono.Data.Sql.mdp, MonoQuery/Makefile.am, MonoQuery/MonoQuery.mdp: Fix build. 2007-05-09 Lluis Sanchez Gual * Mono.Data.Sql/Makefile.am, Mono.Data.Sql/Mono.Data.Sql.mdp: Reference shared assemblies from the correct location. Added missing assembly reference. * MonoQuery/Makefile.am, MonoQuery/MonoQuery.mdp: Reference shared assemblies from the correct location. 2007-05-04 Lluis Sanchez Gual * MonoQuery/Makefile.am, MonoQuery/MonoQuery.addin.xml, MonoQuery/MonoQuery.mdp: Migration to Mono.Addins. 2007-04-19 Lluis Sanchez Gual * tests/Mono.Data.Sql.Tests.mdp, Mono.Data.Sql/Mono.Data.Sql.mdp, MonoQuery/MonoQuery.mdp: Don't copy referenced assemblies. 2007-02-22 Atsushi Enomoto * Mono.Data.Sql/Providers/NpgsqlDbProvider.cs : pgsql somehow returns user ID as int64 while it should be int32, so using GetValue() here. 2007-02-20 Ankit Jain * MonoQuery/Commands/Commands.cs (Run): Handle empty connection string. Destroy the dialog even if an exception is thrown. 2007-02-16 Lluis Sanchez Gual * MonoQuery/MonoQuery.addin.xml: Change add-in versions to 0.13. 2007-02-15 Lluis Sanchez Gual * Mono.Data.Sql.mds, tests/Mono.Data.Sql.Tests.mdp, Mono.Data.Sql/Makefile.am, Mono.Data.Sql/Mono.Data.Sql.mdp, MonoQuery/Makefile.am, MonoQuery/MonoQuery.mdp: Synchronized the MD project and the Makefile 2007-02-06 David Makovský (Yakeen) * MonoQuery/MonoQuery.addin.xml: added translatable string for SQL definition pad 2006-12-17 Lluis Sanchez Gual * MonoQuery/MonoQueryService.cs: Use the FileService for copying and deleting files. 2006-09-18 Jacob Ilsø Christensen * Mono.Data.Sql.mds: * tests/Mono.Data.Sql.Tests.mdp: * Mono.Data.Sql/Mono.Data.Sql.mdp: * MonoQuery/MonoQuery.mdp: Updated. 2006-09-15 Jimmy * Mono.Data.Sql/Providers/SqliteDbProvider.cs: Fix to not show indices in table view. 2006-08-31 Levi Bard * MonoQuery/MonoQueryService.cs: File existence check on unload. 2006-08-08 Jacob Ilsø Christensen * Mono.Data.Sql/Makefile.am: * MonoQuery/Makefile.am: Added support for enabling/disabling MonoQuery. 2006-07-03 Lluis Sanchez Gual * MonoQuery/MonoQuery.addin.xml: Updated references. 2006-05-04 Lluis Sanchez Gual * Mono.Data.Sql.mds: Updated. * tests/Mono.Data.Sql.Tests.mdp: Updated. * Mono.Data.Sql/Mono.Data.Sql.mdp: Updated. * MonoQuery/MonoQuery.mdp: Updated. 2006-03-30 Lluis Sanchez Gual * MonoQuery/MonoQuery.addin.xml: Updated references. 2006-03-24 Lluis Sanchez Gual * Mono.Data.Sql/Mono.Data.Sql.mdp: * MonoQuery/MonoQuery.mdp: * MonoQuery/Makefile.am: * Mono.Data.Sql/Makefile.am: Use an unified format. Patch by Matze Braun. * MonoQuery/MonoQuery.addin.xml: Updated add-in versions. 2006-02-24 Lluis Sanchez Gual * MonoQuery/MonoQuery/MonoQuery.mdp: Updated references. 2006-02-23 Daniel Morgan * TODO: add ToDo file for MonoQuery and Mono.Data.Sql 2006-02-22 Daniel Morgan * Mono.Data.Sql/Makefile.Win32: added file to build Mono.Data.Sql on Win32 without autotools 2006-01-14 Andrés G. Aragoneses * MonoQuery/Gui/SqlQueryView.cs: Fixed a typo. 2005-11-04 Lluis Sanchez Gual * MonoQuery/Gui/SqlDefinitionPad.cs: Fix gtksourceview warning. 2005-10-11 Lluis Sanchez Gual * MonoQuery/MonoQuery.addin.xml: Fixed addin header information. Use "id" attribuet instead of "name" to identify addins. 2005-10-04 Lluis Sanchez Gual * MonoQuery/MonoQuery.addin.xml: Added addin dependencies. 2005-09-27 Christian Hergert * Mono.Data.Sql/Providers/SqliteDbProvider.cs: Add ankit's sqlite updates. 2005-09-23 Christian Hergert * Update svn:ignore 2005-09-22 Christian Hergert * Mono.Data.Sql/Providers/NpgsqlDbProvider.cs: Encapsulate GetDateTime method in a try catch. 2005-09-05 Sureshkumar T * Mono.Data.Sql/Providers/SqlDbProvider.cs: implemented procedure and their parameters listing. 2005-08-25 Daniel Morgan * Extras/MonoQuery/MonoQuery/Gui/SqlQueryView.cs: implement execution of SQL statements in different modes: if text selected then execute as-is, execute one statement starting at cursor, and execute multiple statements one-at-a-time starting at cursor * Mono.Data.Sql/Providers/OracleDbProvider.cs: only show what can be browsed * Extras/MonoQuery/Mono.Data.Sql/Providers/SqlDbProvider.cs: add ColumnSchema and remove others not used. Remove constraints since they are not working * Extras/MonoQuery/Mono.Data.Sql/Providers/SybaseDbProvider.cs: add ColumnSchema and remove others not used. 2005-08-22 Daniel Morgan * Mono.Data.Sql/Providers/OracleDbProvider.cs: fix ExecuteSQL 2005-08-21 Christian Hergert * MonoQuery/Commands/Commands.cs: Add some new commands to the enum * MonoQuery/Gui/NodeBuilders/DatabaseNodeBuilder.cs: Use new icons * MonoQuery/Gui/NodeBuilders/ProviderCollectionNodeBuilder.cs: Use new icon. * MonoQuery/Gui/NodeBuilders/TablesNodeBuilder.cs: Add new commands for refresh and show query tool. * MonoQuery/Gui/NodeBuilders/TableNodeBuilder.cs: Add new commands for empty, drop, refresh, and show query tool. * MonoQuery/Gui/NodeBuilders/ColumnNodeBuilder.cs: Build icons reflective of the columns datatype. * MonoQuery/Gui/FakeNodes.cs: add refresh to the fake tables node. This way the builder can subscribe and rebuild the tree. Probably can be done in a better way. * MonoQuery/Gui/SqlQueryView.cs: new query tool * MonoQuery/Makefile.am: updated * MonoQuery/icons/MonoQuery.Stop: New icon for query tool * MonoQuery/icons/MonoQuery.RunFromCursor: New icon for query tool * MonoQuery/icons/MonoQuery.Explain: New icon for query tool * MonoQuery/icons/MonoQuery.Param: New icon for procedure parameters. * MonoQuery/icons/MonoQuery.Numeric: new icon for numeric data type. * MonoQuery/icons/MonoQuery.Execute: New icon for query tool * MonoQuery/icons/MonoQuery.Database.Connected: Database connected icon * MonoQuery/icons/MonoQuery.Database.Disconnected: Database error on connection icon. * MonoQuery/icons/MonoQuery.String: String data type icon * MonoQuery/icons/MonoQuery.Providers: New providers icon * MonoQuery/icons/MonoQuery.Blob: Blob|byte[] data type icon * MonoQuery/icons/MonoQuery.SqlQueryView: Query view icon * MonoQuery/MonoQuery.addin.xml: Updated with new context menus and icons. * MonoQuery/MonoQuery.mdp: Updated * Mono.Data.Sql/Providers/DbProviderBase.cs: Add explain support. * Mono.Data.Sql/Providers/SqlDbProvider.cs: Catch errors for async mode and return null. * Mono.Data.Sql/Providers/NpgsqlDbProvider.cs: * Mono.Data.Sql/Providers/OracleDbProvider.cs: * Mono.Data.Sql/Providers/MySqlDbProvider.cs: * Mono.Data.Sql/Providers/FirebirdDbProvider.cs: * Mono.Data.Sql/Providers/SybaseDbProvider.cs: * Mono.Data.Sql/Providers/OdbcDbProvider.cs: 2005-08-20 Christian Hergert * tests/test-oracle-1.cs: Test. Will be converted to nunit later. * tests/test-firebird-1.cs: * tests/test-sybase-1.cs: * MonoQuery/Gui/NodeBuilders/TableNodeBuilder.cs: Do not append the sql statement with `;' as this breaks oracle. * MonoQuery/monoquery.glade: Make password hidden by default. Passwords can be still seen in advanced textview. this is ok and done on purpose. * MonoQuery/MonoQuery.mdp: Updated * Mono.Data.Sql/Makefile.am: * Mono.Data.Sql/Providers/FirebirdDbProvider.cs: New firebird provider. * Mono.Data.Sql/Providers/SybaseDbProvider.cs: New sybase provider * Mono.Data.Sql/Providers/OdbcDbProvider.cs: New generic odbc connector. * Mono.Data.Sql/Mono.Data.Sql.mdp: Updated 2005-08-12 Lluis Sanchez Gual * MonoQuery/Makefile.am: embed icons as resources. * MonoQuery/MonoQuery.addin.xml: Register new stock icons. 2005-08-06 Christian Hergert * Mono.Data.Sql/AssemblyInfo.cs: Fix versioning stuff * Mono.Data.Sql/Providers/NpgsqlDbProvider.cs: Update supported types. properly close data readers. * Mono.Data.Sql/Providers/MySqlDbProvider.cs: Add basic support for tables, their columns, and users. This should be somewhat useful now. Need to still determine which versions of mysql ByteFX driver works with. * MonoQuery/AssemblyInfo.cs: Fix versioning stuff * MonoQuery/Gui/NodeBuilders/TableNodeBuilder.cs: Update to check that the type is supported before showing a dummy node. * MonoQuery/Gui/ConnectionDialog.cs: Change Secret to Password. 2005-08-06 Christian Hergert * Mono.Data.Sql.mds: Updated * Mono.Data.Sql/Schema/ForeignKeyConstraintSchema.cs: Add setter for reference table name. * Mono.Data.Sql/Schema/UniqueConstraintSchema.cs: Add default Constructor. * Mono.Data.Sql/Makefile.am: Updated to build when files change. * Mono.Data.Sql/Providers/NpgsqlDbProvider.cs: Add some more guts to the Constraint builders for tables. * MonoQuery/Gui/NodeBuilders/ConstraintNodeBuilder.cs: Add a handler * MonoQuery/MonoQuery.addin.xml: Load mono.data.sql. 2005-08-06 Christian Hergert * tests/Mono.Data.Sql.Tests.mdp: Updated * Mono.Data.Sql/Schema/AbstractSchema.cs: Add Options hashtable for generic extra options above and beyond the hardcoded properties. * Mono.Data.Sql/Schema/UserSchema.cs: Add a few new descriptor objects. * Mono.Data.Sql/Providers/NpgsqlDbProvider.cs: Add GetUser () : UserSchema[] support. * Mono.Data.Sql/Mono.Data.Sql.mdp: Updated * MonoQuery/Gui/NodeBuilders/UsersNodeBuilder.cs: Build the underlying users. * MonoQuery/Gui/NodeBuilders/UserNodeBuilder.cs: New builder to build a user object in the tree. * MonoQuery/Gui/DbProviderCollection.cs: Add some more xml includes for the database persistence file. * MonoQuery/Makefile.am: Updated * MonoQuery/MonoQuery.addin.xml: Updated * MonoQuery/MonoQuery.mdp: Updated 2005-08-08 John Luke * MonoQuery/Makefile.am: add glade file to EXTRA_DIST to fix distcheck 2005-08-06 Christian Hergert * MonoQuery/Makefile.in: should not have been imported. * MonoQuery/Makefile: should not have been imported. 2005-08-03 Lluis Sanchez Gual * MonoQuery/Commands/Commands.cs: * MonoQuery/Gui/NodeBuilders/DatabaseNodeBuilder.cs: * MonoQuery/Gui/DatabasePad.cs: Moved command handlers to node builders. 2005-08-02 Christian Hergert * MonoQuery.prjx: deleted * MonoQuery.addin.xml.in: removed * Exceptions: removed * Services: removed * Gui: removed * Codons: removed * SchemaClass: removed * MonoQuery.cmbx: removed * Collection: removed * MonoQueryView.cs: removed * MonoQuery/AssemblyInfo.cs: part of monoquery2 * MonoQuery/MonoQuery.mds: * MonoQuery/Commands: * MonoQuery/Commands/Commands.cs: * MonoQuery/Makefile.in: * MonoQuery/MonoQueryService.cs: * MonoQuery/Gui/NodeBuilders/UsersNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/ParametersNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/DatabaseNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/TypesNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/LanguagesNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/ProviderCollectionNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/ConstraintsNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/AggregatesNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/TablesNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/ViewNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/ProceduresNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/OperatorsNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/GroupsNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/ColumnsNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/RolesNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/ConstraintNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/TriggersNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/TableNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/ProcedureNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/RulesNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/SequencesNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/ColumnNodeBuilder.cs: * MonoQuery/Gui/NodeBuilders/ViewsNodeBuilder.cs: * MonoQuery/Gui/DbProviderCollection.cs: * MonoQuery/Gui/SqlDefinitionPad.cs: * MonoQuery/Gui/ConnectionDialog.cs: * MonoQuery/Gui/FakeNodes.cs: * MonoQuery/Gui/DatabasePad.cs: * MonoQuery/Gui/DataGridView.cs: * MonoQuery/monoquery.glade: * MonoQuery/Makefile.am: * MonoQuery/MonoQuery.addin.xml: * MonoQuery/Makefile: * MonoQuery/MonoQuery.mdp: * AssemblyInfo.cs: removed * Mono.Data.Sql.mds: removed * Commands: removed * tests/NpgsqlTablesTest.cs: start of tests for monoquery2. these dont really do anything at the moment * tests/pgsql.sql * tests/CreateProviderTests.cs * tests/Mono.Data.Sql.Tests.mdp * MonoQuery.mdsx: removed * Makefile.am: updated * Mono.Data.Sql/AssemblyInfo.cs: core to monoquery2 * Mono.Data.Sql/Schema: * Mono.Data.Sql/Schema/OperatorSchema.cs: * Mono.Data.Sql/Schema/GroupSchema.cs: * Mono.Data.Sql/Schema/ColumnSchema.cs: * Mono.Data.Sql/Schema/SchemaSchema.cs: * Mono.Data.Sql/Schema/RoleSchema.cs: * Mono.Data.Sql/Schema/PrimaryKeyConstraintSchema.cs: * Mono.Data.Sql/Schema/AbstractSchema.cs: * Mono.Data.Sql/Schema/TriggerSchema.cs: * Mono.Data.Sql/Schema/RuleSchema.cs: * Mono.Data.Sql/Schema/ForeignKeyConstraintSchema.cs: * Mono.Data.Sql/Schema/SequenceSchema.cs: * Mono.Data.Sql/Schema/ViewSchema.cs: * Mono.Data.Sql/Schema/UniqueConstraintSchema.cs: * Mono.Data.Sql/Schema/DataTypeSchema.cs: * Mono.Data.Sql/Schema/IndexConstraintSchema.cs: * Mono.Data.Sql/Schema/UserSchema.cs: * Mono.Data.Sql/Schema/ParameterSchema.cs: * Mono.Data.Sql/Schema/CheckConstraintSchema.cs: * Mono.Data.Sql/Schema/LanguageSchema.cs: * Mono.Data.Sql/Schema/ConstraintSchema.cs: * Mono.Data.Sql/Schema/PrivilegeSchema.cs: * Mono.Data.Sql/Schema/AggregateSchema.cs: * Mono.Data.Sql/Schema/TableSchema.cs: * Mono.Data.Sql/Schema/ISchema.cs: * Mono.Data.Sql/Schema/ProcedureSchema.cs: * Mono.Data.Sql/Makefile.am: * Mono.Data.Sql/Providers: * Mono.Data.Sql/Providers/DbProviderBase.cs: * Mono.Data.Sql/Providers/SqlDbProvider.cs: * Mono.Data.Sql/Providers/SqliteDbProvider.cs: * Mono.Data.Sql/Providers/NpgsqlDbProvider.cs: * Mono.Data.Sql/Providers/MySqlDbProvider.cs: * Mono.Data.Sql/Providers/OracleDbProvider.cs: * Mono.Data.Sql/Mono.Data.Sql.mdp: 2005-07-13 Lluis Sanchez Gual * MonoQueryView.cs: * Gui/DataView/MonoQueryDataView.cs: Pads are now responsible of showing its own widgets. 2005-03-31 Christian Hergert * MonoQueryView.cs: Fix the momento icon. 2005-03-14 Lluis Sanchez Gual * MonoQuery.addin.xml.in: Define the MonoQuery pad. 2005-03-06 Christian Hergert * MonoQuery/Makefile.am: EXTRA_DIST doesnt support conditional variables. 2005-02-02 Christian Hergert * MonoQuery/MonoQuery.addin.xml: Moved to .in to be autogenerated by automake. 2005-02-02 Christian Hergert * Extras/MonoQuery/Gui/SqlQueryView/SqlQueryView.cs: flush 2005-01-31 Christian Hergert * Extras/MonoQuery/Gui/SqlQueryView/SqlQueryView.cs: Updated to new ToolItem to fix compiler warning. 2005-01-26 Christian Hergert * Extras/MonoQuery/Gui/Abstract/AbstractMonoQueryNode.cs: * Extras/MonoQuery/Commands/MonoQueryCommands.cs: Fixed to use new ShowView 2005-01-08 Christian Hergert * Fixed druid to expand the connection after building 2005-01-08 Christian Hergert * Following Makefile.am fixes * Copy .addin.xml if it changes * Fix setup to work if layout changes in the future * If .addin.xml changes, only copy addin and not rebuild the dll * Get package references from configure rather than statically * Added files with GetString to the PO .in file * Fixed a few warnings from build stage 2005-01-06 Christian Hergert * Initial creation of MonoQuery AddIn monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Collections/0000755000175000017500000000000011266446160025363 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Collections/ConstraintSchemaCollection.cs0000644000175000017500000000427511266446160033203 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public sealed class ConstraintSchemaCollection : SortedCollectionBase { public ConstraintSchemaCollection () : base (true) { } public ConstraintSchemaCollection (ConstraintSchemaCollection collection) : base (collection, true) { } public ConstraintSchema GetConstraint (ConstraintType type) { foreach (ConstraintSchema item in List) { if (item.ConstraintType == type) return item; } return null; } public IEnumerable GetConstraints (ConstraintType type) { foreach (ConstraintSchema item in List) { if (item.ConstraintType == type) yield return item; } } public ConstraintSchema GetConstraintWithColumn (string columnName) { foreach (ConstraintSchema item in List) { foreach (ColumnSchema column in item.Columns) { if (column.Name == columnName) return item; } } return null; } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Collections/ViewSchemaCollection.cs0000644000175000017500000000302311266446160031757 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public sealed class ViewSchemaCollection : SortedCollectionBase { public ViewSchemaCollection () : base (true) { } public ViewSchemaCollection (ViewSchemaCollection collection) : base (collection, true) { } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Collections/UserSchemaCollection.cs0000644000175000017500000000302311266446160031763 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public sealed class UserSchemaCollection : SortedCollectionBase { public UserSchemaCollection () : base (true) { } public UserSchemaCollection (UserSchemaCollection collection) : base (collection, true) { } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Collections/TableSchemaCollection.cs0000644000175000017500000000303011266446160032072 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public sealed class TableSchemaCollection : SortedCollectionBase { public TableSchemaCollection () : base (true) { } public TableSchemaCollection (TableSchemaCollection collection) : base (collection, true) { } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Collections/SortedCollectionItemEventArgs.cs0000644000175000017500000000314611266446160033630 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public delegate void SortedCollectionItemEventHandler (object sender, SortedCollectionItemEventArgs args); public class SortedCollectionItemEventArgs : EventArgs { private T item; public SortedCollectionItemEventArgs (T item) { this.item = item; } public T Item { get { return item; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Collections/IPropertyComparer.cs0000644000175000017500000000255011266446160031342 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public interface IPropertyComparer { int Compare (T x, U y); } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Collections/ParameterSchemaCollection.cs0000644000175000017500000000313111266446160032765 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public sealed class ParameterSchemaCollection : SortedCollectionBase { public ParameterSchemaCollection () : base (false) //not sorted, parameter order is important { } public ParameterSchemaCollection (ParameterSchemaCollection collection) : base (collection, false) { } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Collections/SortedCollectionBase.cs0000644000175000017500000001534111266446160031765 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public abstract class SortedCollectionBase : CollectionBase, IEnumerable, IPropertyComparer where T : ISchema { public SortedCollectionItemEventHandler ItemAdded; public SortedCollectionItemEventHandler ItemRemoved; protected bool sort = false; protected SortedCollectionBase (bool sort) { this.sort = sort; } protected SortedCollectionBase (SortedCollectionBase collection, bool sort) : this (sort) { if (collection == null) return; foreach (T item in collection) Add ((T)item.Clone ()); } public T this [int index] { get { return (T)List[index]; } set { List[index] = value; } } public bool IsSorted { get { return sort; } set { if (sort != value) { sort = value; if (value) Sort (); } } } public int Add (T item) { if (item == null) throw new ArgumentNullException ("item"); //TODO: add sorted based on the complement of the binary search int index = -1; if (sort) index = SortedInsert (item); else index = List.Add (item); if (ItemAdded != null) ItemAdded (this, new SortedCollectionItemEventArgs (item)); return index; } public int IndexOf (T item) { if (item == null) throw new ArgumentNullException ("item"); return List.IndexOf (item); } public void Insert (int index, T item) { if (item == null) throw new ArgumentNullException ("item"); if (sort) throw new InvalidOperationException ("Insert can only be used in an unsorted collection."); List.Insert (index, item); if (ItemAdded != null) ItemAdded (this, new SortedCollectionItemEventArgs (item)); } public void Remove (T item) { if (item == null) throw new ArgumentNullException ("item"); List.Remove (item); if (ItemRemoved != null) ItemRemoved (this, new SortedCollectionItemEventArgs (item)); } public bool Contains (T item) { if (item == null) throw new ArgumentNullException ("item"); return List.Contains (item); } public bool Contains (string name) { if (name == null) throw new ArgumentNullException ("name"); if (sort) return BinarySearchIndex (this, name) >= 0; else return SearchIndex (this, name) >= 0; } public T Search (string name) { if (name == null) throw new ArgumentNullException ("name"); int index = -1; if (sort) index = BinarySearchIndex (this, name); else index = SearchIndex (this, name); if (index >= 0) return this[index]; return default (T); } public int SearchIndex (string name) { if (name == null) throw new ArgumentNullException ("name"); if (sort) return BinarySearchIndex (this, name); else return SearchIndex (this, name); } public virtual void Sort () { if (List.Count <= 1) return; //quicksort Sort (0, List.Count - 1); } public virtual void Swap (T x, T y) { if (x == null) throw new ArgumentNullException ("x"); if (y == null) throw new ArgumentNullException ("y"); int indexX = IndexOf (x); int indexY = IndexOf (y); if (indexX < 0 || indexY < 0) throw new ArgumentException ("Both items must be present in the collection."); Swap (indexX, indexY); } public virtual void Swap (int left, int right) { object swap = List[left]; List[left] = List[right]; List[right] = swap; } IEnumerator IEnumerable.GetEnumerator () { foreach (T item in List) yield return item; } protected virtual int SortedInsert (T item) { if (List.Count == 0) { List.Add (item); return 0; } else { int position = 0; foreach (T t in List) { if (Compare (item, t) < 0) break; position++; } if (position == List.Count) { List.Add (item); return List.Count - 1; } else { List.Insert (position, item); return position; } } } protected virtual void Sort (int lower, int upper) { if (lower < upper) { int split = Pivot (lower, upper); Sort (lower, split - 1); Sort (split + 1, upper); } } protected virtual int Pivot (int lower, int upper) { int left = lower + 1; T pivot = this[lower]; int right = upper; while (left <= right) { while ((left <= right) && (Compare (this[left], pivot) <= 0)) ++left; while ((left <= right) && (Compare (this[right], pivot) > 0)) --right; if (left < right) { Swap (left, right); ++left; --right; } } Swap (lower, right); return right; } protected virtual int BinarySearchIndex (IPropertyComparer comparer, U value) { int min = 0; int max = List.Count - 1; int cmp = 0; while (min <= max) { int mid = (min + max) / 2; cmp = comparer.Compare (this[mid], value); if (cmp == 0) return mid; else if (cmp > 0) max = mid - 1; else min = mid + 1; // compensate for the rounding down } return ~min; } protected virtual int SearchIndex (IPropertyComparer comparer, U value) { int max = List.Count - 1; for (int i=0; i.Compare (T x, string y) { ISchema schema = (ISchema)x; return schema.Name.CompareTo (y); } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Collections/TriggerSchemaCollection.cs0000644000175000017500000000304211266446160032451 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public sealed class TriggerSchemaCollection : SortedCollectionBase { public TriggerSchemaCollection () : base (true) { } public TriggerSchemaCollection (TriggerSchemaCollection collection) : base (collection, true) { } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Collections/ColumnSchemaCollection.cs0000644000175000017500000000310711266446160032305 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public sealed class ColumnSchemaCollection : SortedCollectionBase { public ColumnSchemaCollection () : base (false) //not sorted, column order is important { } public ColumnSchemaCollection (ColumnSchemaCollection collection) : base (collection, false) { } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Collections/DataTypeSchemaCollection.cs0000644000175000017500000000304711266446160032566 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public sealed class DataTypeSchemaCollection : SortedCollectionBase { public DataTypeSchemaCollection () : base (true) { } public DataTypeSchemaCollection (DataTypeSchemaCollection collection) : base (collection, true) { } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Collections/ProcedureSchemaCollection.cs0000644000175000017500000000305411266446160033001 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public sealed class ProcedureSchemaCollection : SortedCollectionBase { public ProcedureSchemaCollection () : base (true) { } public ProcedureSchemaCollection (ProcedureSchemaCollection collection) : base (collection, true) { } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Collections/DatabaseSchemaCollection.cs0000644000175000017500000000304711266446160032557 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public sealed class DatabaseSchemaCollection : SortedCollectionBase { public DatabaseSchemaCollection () : base (true) { } public DatabaseSchemaCollection (DatabaseSchemaCollection collection) : base (collection, true) { } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Collections/IndexSchemaCollection.cs0000644000175000017500000000303011266446160032112 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public sealed class IndexSchemaCollection : SortedCollectionBase { public IndexSchemaCollection () : base (true) { } public IndexSchemaCollection (IndexSchemaCollection collection) : base (collection, true) { } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/IDbFactory.cs0000644000175000017500000000325711266446160025431 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public interface IDbFactory { string Identifier { get; } string Name { get; } ISqlDialect Dialect { get; } IConnectionProvider ConnectionProvider { get; } IGuiProvider GuiProvider { get; } DatabaseConnectionSettings GetDefaultConnectionSettings (); IConnectionPool CreateConnectionPool (DatabaseConnectionContext context); ISchemaProvider CreateSchemaProvider (IConnectionPool connectionPool); } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AddinCatalog.cs0000644000175000017500000000424711266446160025755 0ustar directhexdirecthex// Gettext.cs // // Author: // Lluis Sanchez Gual // Ben Motmans // // Copyright (c) 2007 Novell, Inc (http://www.novell.com) // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // // using System; using Mono.Addins; namespace MonoDevelop.Database { public static class AddinCatalog { static AddinLocalizer localizer; public static string GetString (string str) { if (localizer == null) localizer = AddinManager.CurrentLocalizer; return localizer.GetString (str); } public static string GetString (string str, params object[] pars) { return string.Format (GetString (str), pars); } public static string GetPluralString (string msgid, string defaultPlural, int n) { if (localizer == null) localizer = AddinManager.CurrentLocalizer; return localizer.GetPluralString (msgid, defaultPlural, n); } public static string GetPluralString (string msgid, string defaultPlural, int n, params string[] args) { if (localizer == null) localizer = AddinManager.CurrentLocalizer; return localizer.GetPluralString (msgid, defaultPlural, n, args); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/0000755000175000017500000000000011266446160024452 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Clauses/0000755000175000017500000000000011266446160026051 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Clauses/FromSelectClause.cs0000644000175000017500000000312411266446160031600 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class FromSelectClause : FromClause { protected SelectStatement source; public FromSelectClause (SelectStatement source) { Source = source; } public SelectStatement Source { get { return source; } set { if (value == null) throw new ArgumentNullException ("source"); source = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Clauses/HavingClause.cs0000644000175000017500000000246311266446160030756 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class HavingClause : IClause { //TODO } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Clauses/JoinClause.cs0000644000175000017500000000246111266446160030437 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class JoinClause : IClause { //TODO } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Clauses/FromClause.cs0000644000175000017500000000246411266446160030446 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public abstract class FromClause : IClause { } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Clauses/JoinClauseType.cs0000644000175000017500000000253611266446160031304 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public enum JoinClauseType { Inner, OuterLeft, OuterRight, OuterFull, Cross } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Clauses/FromTableClause.cs0000644000175000017500000000314111266446160031407 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class FromTableClause : FromClause { protected IdentifierExpression source; public FromTableClause (IdentifierExpression source) { Source = source; } public IdentifierExpression Source { get { return source; } set { if (value == null) throw new ArgumentNullException ("source"); source = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Clauses/OrderByClause.cs0000644000175000017500000000246411266446160031111 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class OrderByClause : IClause { //TODO } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Clauses/WhereClause.cs0000644000175000017500000000316211266446160030611 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class WhereClause : IClause { protected IConditionalExpression condition; public WhereClause (IConditionalExpression condition) { Condition = condition; } public IConditionalExpression Condition { get { return condition; } set { if (value == null) throw new ArgumentNullException ("condition"); condition = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Clauses/IClause.cs0000644000175000017500000000243711266446160027733 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public interface IClause { } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Clauses/UnionClause.cs0000644000175000017500000000307711266446160030634 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class UnionClause : IClause { protected SelectStatement union; public UnionClause (SelectStatement union) { Union = union; } public SelectStatement Union { get { return union; } set { if (value == null) throw new ArgumentNullException ("union"); union = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Clauses/GroupByClause.cs0000644000175000017500000000246411266446160031132 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class GroupByClause : IClause { //TODO } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/AbstractSqlDialect.cs0000644000175000017500000003271711266446160030524 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Text; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public abstract class AbstractSqlDialect : ISqlDialect { public abstract string QuoteIdentifier (string identifier); public abstract string MarkAsParameter (string identifier); public virtual string GetSql (IStatement statement) { if (statement == null) throw new ArgumentNullException ("statement"); Type type = statement.GetType (); if (type == typeof (SelectStatement)) return GetStatementSql (statement as SelectStatement); else if (type == typeof (InsertStatement)) return GetStatementSql (statement as InsertStatement); else if (type == typeof (UpdateStatement)) return GetStatementSql (statement as UpdateStatement); else if (type == typeof (DeleteStatement)) return GetStatementSql (statement as DeleteStatement); else if (type == typeof (DropStatement)) return GetStatementSql (statement as DropStatement); else if (type == typeof (TruncateStatement)) return GetStatementSql (statement as TruncateStatement); else throw new NotImplementedException (type.FullName); } public virtual string GetSql (IClause clause) { if (clause == null) throw new ArgumentNullException ("clause"); Type type = clause.GetType (); if (type == typeof (FromSelectClause)) return GetClauseSql (clause as FromSelectClause); else if (type == typeof (FromTableClause)) return GetClauseSql (clause as FromTableClause); else if (type == typeof (WhereClause)) return GetClauseSql (clause as WhereClause); else if (type == typeof (HavingClause)) return GetClauseSql (clause as HavingClause); else if (type == typeof (JoinClause)) return GetClauseSql (clause as JoinClause); else if (type == typeof (OrderByClause)) return GetClauseSql (clause as OrderByClause); else if (type == typeof (GroupByClause)) return GetClauseSql (clause as GroupByClause); else if (type == typeof (UnionClause)) return GetClauseSql (clause as UnionClause); else throw new NotImplementedException (type.FullName); } public virtual string GetSql (IExpression expr) { if (expr == null) throw new ArgumentNullException ("expr"); Type type = expr.GetType (); if (type == typeof (AliasedIdentifierExpression)) return GetExpressionSql (expr as AliasedIdentifierExpression); else if (type == typeof (IdentifierExpression)) return GetExpressionSql (expr as IdentifierExpression); else if (type == typeof (BooleanExpression)) return GetExpressionSql (expr as BooleanExpression); else if (type == typeof (OperatorExpression)) return GetExpressionSql (expr as OperatorExpression); else if (type == typeof (ParameterExpression)) return GetExpressionSql (expr as ParameterExpression); else throw new NotImplementedException (type.FullName); } public virtual string GetSql (ILiteral literal) { if (literal == null) throw new ArgumentNullException ("literal"); Type type = literal.GetType (); if (type == typeof (StringLiteral)) return GetLiteralSql (literal as StringLiteral); else if (type == typeof (NumericLiteral)) return GetLiteralSql (literal as NumericLiteral); else if (type == typeof (BooleanLiteral)) return GetLiteralSql (literal as BooleanLiteral); else if (type == typeof (NullLiteral)) return GetLiteralSql (literal as NullLiteral); else if (type == typeof (TrueLiteral)) return GetLiteralSql (literal as TrueLiteral); else if (type == typeof (FalseLiteral)) return GetLiteralSql (literal as FalseLiteral); else if (type == typeof (HexLiteral)) return GetLiteralSql (literal as HexLiteral); else if (type == typeof (BitLiteral)) return GetLiteralSql (literal as BitLiteral); else throw new NotImplementedException (type.FullName); } protected virtual string GetStatementSql (SelectStatement statement) { StringBuilder sb = new StringBuilder (); sb.Append ("SELECT "); bool first = true; foreach (IdentifierExpression expr in statement.Columns) { if (first) first = false; else sb.Append (','); sb.Append (GetSql (expr)); } sb.Append (' '); sb.Append (Environment.NewLine); sb.Append (GetSql (statement.From)); if (statement.Where != null) { sb.Append (GetSql (statement.Where)); sb.Append (' '); sb.Append (Environment.NewLine); } if (statement.OrderBy != null) { sb.Append (GetSql (statement.OrderBy)); sb.Append (' '); sb.Append (Environment.NewLine); } if (statement.GroupBy != null) { sb.Append (GetSql (statement.GroupBy)); sb.Append (' '); sb.Append (Environment.NewLine); } if (statement.Having != null) { sb.Append (GetSql (statement.Having)); sb.Append (' '); sb.Append (Environment.NewLine); } if (statement.Union != null) { sb.Append (GetSql (statement.Union)); sb.Append (' '); sb.Append (Environment.NewLine); } if (statement.Join != null) { sb.Append (GetSql (statement.Join)); sb.Append (' '); sb.Append (Environment.NewLine); } sb.Append (';'); return sb.ToString (); } protected virtual string GetStatementSql (InsertStatement statement) { StringBuilder sb = new StringBuilder (); sb.Append ("INSERT INTO "); sb.Append (GetSql (statement.Identifier)); if (statement.Columns.Count > 0) { sb.Append (Environment.NewLine); sb.Append (" ("); int columnCount = statement.Columns.Count; for (int i=0; i expr = statement.Values[j]; int columnCount = expr.Count; for (int i=0; i="; case Operator.GreaterThan: return ">"; case Operator.LessThanOrEqual: return "<="; case Operator.LessThan: return "<"; case Operator.Plus: return "+"; case Operator.Minus: return "-"; case Operator.Divide: return "/"; case Operator.Multiply: return "*"; case Operator.Modus: return "%"; case Operator.Is: return "IS"; case Operator.IsNot: return "IS NOT"; case Operator.In: return "IN"; case Operator.Like: return "LIKE"; default: throw new NotImplementedException (); } } protected virtual string GetOperatorSql (BooleanOperator op) { bool not = ((op & BooleanOperator.Not) == BooleanOperator.Not); bool and = ((op & BooleanOperator.And) == BooleanOperator.And); bool or = ((op & BooleanOperator.Or) == BooleanOperator.Or); if (and) if (not) return "AND NOT"; else return "AND"; else if (or) if (not) return "OR NOT"; else return "OR"; else return "NOT"; } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Statements/0000755000175000017500000000000011266446160026601 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Statements/DropStatement.cs0000644000175000017500000000347711266446160031734 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class DropStatement : IStatement { protected IdentifierExpression identifier; protected DropStatementType dropType; public DropStatement (IdentifierExpression identifier, DropStatementType dropType) { Identifier = identifier; DropType = dropType; } public IdentifierExpression Identifier { get { return identifier; } set { if (value == null) throw new ArgumentNullException ("identifier"); identifier = value; } } public DropStatementType DropType { get { return dropType; } set { dropType = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Statements/InsertStatement.cs0000644000175000017500000000441211266446160032262 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class InsertStatement : IStatement { protected IdentifierExpression identifier; protected List columns; protected List> values; public InsertStatement (IdentifierExpression identifier, IEnumerable columns, IEnumerable> values) { Identifier = identifier; this.columns = new List (); this.values = new List> (); this.columns.AddRange (columns); foreach (IEnumerable row in values) { List expr = new List (); expr.AddRange (row); this.Values.Add (expr); } } public IdentifierExpression Identifier { get { return identifier; } set { if (value == null) throw new ArgumentNullException ("identifier"); identifier = value; } } public List Columns { get { return columns; } } public List> Values { get { return values; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Statements/IStatement.cs0000644000175000017500000000244211266446160031207 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public interface IStatement { } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Statements/DeleteStatement.cs0000644000175000017500000000325611266446160032225 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class DeleteStatement : IStatement { protected FromClause from; protected WhereClause where; public DeleteStatement (FromClause from) { From = from; } public FromClause From { get { return from; } set { if (value == null) throw new ArgumentNullException ("from"); this.from = value; } } public WhereClause Where { get { return where; } set { where = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Statements/UpdateStatement.cs0000644000175000017500000000433411266446160032243 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class UpdateStatement : IStatement { protected IdentifierExpression identifier; protected List columns; protected List values; protected WhereClause where; public UpdateStatement (IdentifierExpression identifier, IEnumerable columns, IEnumerable values) { Identifier = identifier; this.columns = new List (); this.values = new List (); this.columns.AddRange (columns); this.values.AddRange (values); } public IdentifierExpression Identifier { get { return identifier; } set { if (value == null) throw new ArgumentNullException ("identifier"); identifier = value; } } public List Columns { get { return columns; } } public List Values { get { return values; } } public WhereClause Where { get { return where; } set { where = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Statements/TruncateStatement.cs0000644000175000017500000000320511266446160032602 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class TruncateStatement : IStatement { protected IdentifierExpression identifier; public TruncateStatement (IdentifierExpression identifier) { Identifier = identifier; } public IdentifierExpression Identifier { get { return identifier; } set { if (value == null) throw new ArgumentNullException ("identifier"); identifier = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Statements/DropStatementType.cs0000644000175000017500000000252611266446160032570 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public enum DropStatementType { Database, Table, Index, View, Procedure } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Statements/LineStatement.cs0000644000175000017500000000373311266446160031712 0ustar directhexdirecthex// // ILineStatement.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class LineStatement:IStatement { ISchemaProvider provider; string comment; string statement; public LineStatement (ISchemaProvider provider) { this.provider = provider; } public string Comment { get {return comment;} set {comment = value;} } public string Statement { get {return statement;} set {statement = value;} } public string GetStatement () { System.Text.StringBuilder st = new System.Text.StringBuilder (); if (((AbstractSchemaProvider)provider).CanComment && comment != string.Empty) st.AppendFormat ("{0} {1}", ((AbstractSchemaProvider)provider).GetComentSeparator (), comment); st.Append (statement); return st.ToString (); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Statements/SelectStatement.cs0000644000175000017500000000562511266446160032244 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class SelectStatement : IStatement { protected List columns; protected FromClause from; protected WhereClause where; protected OrderByClause orderBy; protected GroupByClause groupBy; protected HavingClause having; protected UnionClause union; protected JoinClause join; public SelectStatement (FromClause from) { if (from == null) throw new ArgumentNullException ("from"); From = from; this.columns = new List (); this.columns.Add (new IdentifierExpression ()); } public SelectStatement (FromClause from, IEnumerable columns) { if (from == null) throw new ArgumentNullException ("from"); if (columns == null) throw new ArgumentNullException ("columns"); From = from; this.columns = new List (); this.columns.AddRange (columns); } public List Columns { get { return columns; } } public FromClause From { get { return from; } set { if (value == null) throw new ArgumentNullException ("from"); this.from = value; } } public WhereClause Where { get { return where; } set { where = value; } } public OrderByClause OrderBy { get { return orderBy; } set { orderBy = value; } } public GroupByClause GroupBy { get { return groupBy; } set { groupBy = value; } } public HavingClause Having { get { return having; } set { having = value; } } public UnionClause Union { get { return union; } set { union = value; } } public JoinClause Join { get { return join; } set { join = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Expressions/0000755000175000017500000000000011266446160026774 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Expressions/BooleanOperator.cs0000644000175000017500000000247611266446160032427 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { [Flags] public enum BooleanOperator { And, Or, Not } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Expressions/ParameterExpression.cs0000644000175000017500000000260211266446160033323 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class ParameterExpression : IdentifierExpression { public ParameterExpression (string name) : base (name) { } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Expressions/IdentifierExpression.cs0000644000175000017500000000315611266446160033472 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class IdentifierExpression : IExpression { protected string name; public IdentifierExpression () : this ("*") { } public IdentifierExpression (string name) { Name = name; } public string Name { get { return name; } set { if (value == null) throw new ArgumentNullException ("name"); name = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Expressions/IConditionalExpression.cs0000644000175000017500000000247411266446160033766 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public interface IConditionalExpression : IExpression { } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Expressions/Operator.cs0000644000175000017500000000272211266446160031121 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public enum Operator { Equals, NotEqual, GreaterThanOrEqual, GreaterThan, LessThanOrEqual, LessThan, Plus, Minus, Divide, Multiply, Modus, Is, IsNot, In, Like } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Expressions/BooleanExpression.cs0000644000175000017500000000371311266446160032766 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class BooleanExpression : IConditionalExpression { protected IExpression left; protected IExpression right; protected BooleanOperator op; public BooleanExpression (IExpression left, BooleanOperator op, IExpression right) { Left = left; Operator = op; Right = right; } public IExpression Left { get { return left; } set { if (value == null) throw new ArgumentNullException ("left"); left = value; } } public IExpression Right { get { return right; } set { if (value == null) throw new ArgumentNullException ("right"); right = value; } } public BooleanOperator Operator { get { return op; } set { op = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Expressions/IExpression.cs0000644000175000017500000000244311266446160031576 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public interface IExpression { } }././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Expressions/AliasedIdentifierExpression.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Expressions/AliasedIdentifierExpression0000644000175000017500000000315711266446160034352 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class AliasedIdentifierExpression : IdentifierExpression { protected string alias; public AliasedIdentifierExpression (string name, string alias) : base (name) { Alias = alias; } public string Alias { get { return alias; } set { if (value == null) throw new ArgumentNullException ("alias"); alias = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Expressions/OperatorExpression.cs0000644000175000017500000000367011266446160033204 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class OperatorExpression : IConditionalExpression { protected IExpression left; protected IExpression right; protected Operator op; public OperatorExpression (IExpression left, Operator op, IExpression right) { Left = left; Operator = op; Right = right; } public IExpression Left { get { return left; } set { if (value == null) throw new ArgumentNullException ("left"); left = value; } } public IExpression Right { get { return right; } set { if (value == null) throw new ArgumentNullException ("right"); right = value; } } public Operator Operator { get { return op; } set { op = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Literals/0000755000175000017500000000000011266446160026231 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Literals/NullLiteral.cs0000644000175000017500000000245211266446160031012 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class NullLiteral : ILiteral { } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Literals/BitLiteral.cs0000644000175000017500000000255311266446160030620 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class BitLiteral : StringLiteral { public BitLiteral (string value) { Value = value; } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Literals/BooleanLiteral.cs0000644000175000017500000000271711266446160031463 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class BooleanLiteral : ILiteral { protected bool val; public BooleanLiteral (bool value) { Value = value; } public bool Value { get { return val; } set { val = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Literals/HexLiteral.cs0000644000175000017500000000520411266446160030622 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class HexLiteral : StringLiteral { public HexLiteral (string value) { if (value.Length % 2 != 0) throw new ArgumentException ("Invalid hexadecimal value, the length must be a factor of 2."); Value = value; } public HexLiteral (byte[] value) { Value = ToHexString (value); } public HexLiteral (int value) { Value = ToHexString (BitConverter.GetBytes (value)); } public HexLiteral (uint value) { Value = ToHexString (BitConverter.GetBytes (value)); } public HexLiteral (long value) { Value = ToHexString (BitConverter.GetBytes (value)); } public HexLiteral (ulong value) { Value = ToHexString (BitConverter.GetBytes (value)); } public HexLiteral (float value) { Value = ToHexString (BitConverter.GetBytes (value)); } public HexLiteral (double value) { Value = ToHexString (BitConverter.GetBytes (value)); } // see: http://www.codeproject.com/csharp/hexencoding.asp?msg=1064904#xx1064904xx internal static string ToHexString (byte[] bytes) { char[] hexDigits = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; char[] chars = new char[bytes.Length * 2]; for (int i = 0; i < bytes.Length; i++) { int b = bytes[i]; chars[i * 2] = hexDigits[b >> 4]; chars[i * 2 + 1] = hexDigits[b & 0xF]; } return new string(chars); } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Literals/TrueLiteral.cs0000644000175000017500000000245211266446160031017 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class TrueLiteral : ILiteral { } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Literals/ILiteral.cs0000644000175000017500000000245611266446160030274 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public interface ILiteral : IExpression { } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Literals/FalseLiteral.cs0000644000175000017500000000245311266446160031133 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class FalseLiteral : ILiteral { } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Literals/NumericLiteral.cs0000644000175000017500000000352711266446160031506 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class NumericLiteral : StringLiteral { public NumericLiteral (int value) { Value = value.ToString (); } public NumericLiteral (uint value) { Value = value.ToString (); } public NumericLiteral (long value) { Value = value.ToString (); } public NumericLiteral (ulong value) { Value = value.ToString (); } public NumericLiteral (float value) { Value = value.ToString (); } public NumericLiteral (double value) { Value = value.ToString (); } public NumericLiteral (decimal value) { Value = value.ToString (); } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/Literals/StringLiteral.cs0000644000175000017500000000311311266446160031341 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class StringLiteral : ILiteral { protected string val; protected StringLiteral () { } public StringLiteral (string value) { Value = value; } public string Value { get { return val; } set { if (value == null) throw new ArgumentNullException ("value"); val = value; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Dialect/ISqlDialect.cs0000644000175000017500000000315511266446160027143 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public interface ISqlDialect { //TODO: method for checking if the statement/clause/... is supported string QuoteIdentifier (string identifier); string MarkAsParameter (string identifier); string GetSql (IStatement statement); string GetSql (IClause clause); string GetSql (IExpression expression); string GetSql (ILiteral literal); } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/SqlMetalServices.cs0000644000175000017500000001375711266446160026677 0ustar directhexdirecthex// // SqlMetalServices.cs // // Author: // Luciano N. Callero // // Copyright (c) 2010 Lucian0 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; using System.Text; using System.IO; using System.Diagnostics; using MonoDevelop.Core; using MonoDevelop.Ide.Gui; namespace MonoDevelop.Database.Sql { public enum FileOutputType { DBML, Code, Both } public static class SqlMetalServices { static string metal; static SqlMetalServices () { metal = "sqlmetal"; } public static bool Generate (string provider, DatabaseConnectionSettings connection, string outputType, string outputFile, string language, string outputStyle, string defaultNamespace, string entityBase, string entityAttr, string membersAttr, string generateTypes, string culture, bool generateSchema, bool generateTimestamp, bool overrideEqualAndHash, bool extractProcedures, bool pluralize) { StringBuilder parameters = new StringBuilder (); if (provider.Equals ("sqlite", StringComparison.InvariantCultureIgnoreCase)) { parameters.AppendFormat ("/provider:{0} ", provider); parameters.AppendFormat ("/conn:Uri=file:{0} ", connection.Database); } else { parameters.AppendFormat ("/server:{0} ", connection.Server); parameters.AppendFormat ("/provider:{0} ", provider); parameters.AppendFormat ("/user:{0} ", connection.Username); parameters.AppendFormat ("/password:{0} ", connection.Password); parameters.AppendFormat ("/database:{0} ", connection.Database); } if (outputType.Equals (AddinCatalog.GetString ("code"), StringComparison.InvariantCultureIgnoreCase) || outputType.Equals (AddinCatalog.GetString ("Code & DBML"), StringComparison.InvariantCultureIgnoreCase)) { parameters.AppendFormat ("/code:{0} ", outputFile); parameters.AppendFormat ("/case:{0} ", outputStyle); parameters.AppendFormat ("/language:{0} ", language.Replace ("#", @"\#")); } if (outputType.Equals (AddinCatalog.GetString ("DBML"), StringComparison.InvariantCultureIgnoreCase) || outputType.Equals (AddinCatalog.GetString ("Code & DBML"), StringComparison.InvariantCultureIgnoreCase)) { string dbmlFile = string.Concat (Path.GetFileNameWithoutExtension (outputFile), ".dbml"); parameters.AppendFormat ("/dbml:{0} ", dbmlFile); } if (!string.IsNullOrEmpty (defaultNamespace)) parameters.AppendFormat ("/namespace:{0} ", defaultNamespace); if (!string.IsNullOrEmpty (entityBase)) parameters.AppendFormat ("/entityBase:{0} ", entityBase); if (!string.IsNullOrEmpty (entityAttr)) parameters.AppendFormat ("/entityAttributes:{0} ", entityAttr); if (!string.IsNullOrEmpty (membersAttr)) parameters.AppendFormat ("/memberAttributes:{0} ", membersAttr); if (!string.IsNullOrEmpty (generateTypes)) parameters.AppendFormat ("/generate-type:{0} ", generateTimestamp); if (!string.IsNullOrEmpty (culture)) parameters.AppendFormat ("/culture:{0} ", culture); if (!generateSchema) parameters.Append ("/schema:false"); if (!generateTimestamp) parameters.Append ("/generate-timestamps:false"); if (overrideEqualAndHash) parameters.Append ("/generateEqualsAndHash"); if (extractProcedures) parameters.Append ("/sprocs"); if (pluralize) parameters.Append ("/pluralize"); Console.WriteLine (parameters); ProcessStartInfo info = new ProcessStartInfo (metal, parameters.ToString ()); info.UseShellExecute = false; info.RedirectStandardError = true; info.RedirectStandardOutput = true; StringWriter outWriter = new StringWriter (); StringWriter errorWriter = new StringWriter (); MonoDevelop.Core.Execution.ProcessWrapper p = Runtime.ProcessService.StartProcess (info, outWriter, errorWriter, null); p.WaitForExit (); if (errorWriter.ToString () != "") { QueryService.RaiseException ("Cannot create Linq Class", new SqlMetalExecException (errorWriter.ToString ())); return false; } // Process.Start (metal, parameters.ToString ()); return true; } public static bool Generate (string provider, DatabaseConnectionSettings connection, string outputType, string outputFile, string defaultNamespace, string entityBase, string entityAttr, string membersAttr, string generateTypes, string culture, bool generateSchema, bool generateTimestamp, bool overrideEqualAndHash, bool extractProcedures, bool pluralize) { return Generate (provider, connection, outputType, outputFile, "", "", defaultNamespace, entityBase, entityAttr, membersAttr, generateTypes, culture, generateSchema, generateTimestamp, overrideEqualAndHash, extractProcedures, pluralize); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/IDbLinq.cs0000644000175000017500000000476511266446160024732 0ustar directhexdirecthex// // IDbLinq.cs // // Author: // Luciano N. Callero // // Copyright (c) 2010 Lucian0 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; namespace MonoDevelop.Database.Sql { public interface IDbLinq { string Provider { get; } bool HasProcedures { get; } bool Generate (DatabaseConnectionSettings connection, string outputType, string outputFile, string language, string style, string defaultNamespace, string entityBase, string entityAttr, string membersAttr, string generateTypes, string culture, bool generateSchema, bool generateTimestamp, bool overrideEqualAndHash, bool extractProcedures, bool pluralize ); bool Generate (DatabaseConnectionSettings connection, string outputType, string outputFile, string defaultNamespace, string entityBase, string entityAttr, string membersAttr, string generateTypes, string culture, bool generateSchema, bool generateTimestamp, bool overrideEqualAndHash, bool extractProcedures, bool pluralize ); } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/MonoDevelop.Database.Sql.addin.xml0000644000175000017500000000165411266446160031403 0ustar directhexdirecthex MonoDevelop database factory addins. monodevelop-database-4.0.12/MonoDevelop.Database.Sql/QueryService.cs0000644000175000017500000001072411266446160026066 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Christian Hergert // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Threading; using System.Collections.Generic; using Mono.Addins; using MonoDevelop.Database.Sql; using MonoDevelop.Core; using MonoDevelop.Ide; namespace MonoDevelop.Database.Sql { public delegate void DatabaseConnectionContextCallback (DatabaseConnectionContext context, bool connected, object state); public static class QueryService { public static void RaiseException (Exception exception) { MessageService.ShowException (exception); LoggingService.LogError ("Database Exception", exception); } public static void RaiseException (string message, Exception exception) { MessageService.ShowException (exception, message); LoggingService.LogError ("Database Exception", exception); } //TODO: show errors public static void EnsureConnection (DatabaseConnectionContext context, DatabaseConnectionContextCallback callback, object state) { if (context == null) throw new ArgumentNullException ("context"); if (callback == null) throw new ArgumentNullException ("callback"); IConnectionPool pool = context.ConnectionPool; if (pool.IsInitialized) { callback (context, true, state); return; } IDbFactory fac = DbFactoryService.GetDbFactory (context.ConnectionSettings); //FIXME: connection settings dialog //bool requiresPassword = fac.GetCapabilities ("ConnectionSettings", SchemaActions.Schema) == (int)ConnectionSettingsCapabilities.Password; bool requiresPassword = true; if (!context.ConnectionSettings.SavePassword && String.IsNullOrEmpty (context.ConnectionSettings.Password) && requiresPassword) { string password = MessageService.GetPassword ( AddinCatalog.GetString ("Please enter the password for connection '{0}'", context.ConnectionSettings.Name), AddinCatalog.GetString ("Enter Password") ); if (password == null) { callback (context, false, state); return; } else { context.ConnectionSettings.Password = password; } } EnsureConnectionState internalState = new EnsureConnectionState (context, callback, state); ThreadPool.QueueUserWorkItem (new WaitCallback (EnsureConnectionThreaded), internalState); } private static void EnsureConnectionThreaded (object obj) { EnsureConnectionState internalState = obj as EnsureConnectionState; IConnectionPool pool = internalState.ConnectionContext.ConnectionPool; try { bool connected = pool.Initialize (); DispatchService.GuiDispatch (delegate () { internalState.Callback (internalState.ConnectionContext, connected, internalState.State); }); } catch (Exception e) { LoggingService.LogDebug (e.ToString ()); DispatchService.GuiDispatch (delegate () { internalState.Callback (internalState.ConnectionContext, false, internalState.State); }); } } } internal class EnsureConnectionState { public object State; public DatabaseConnectionContext ConnectionContext; public DatabaseConnectionContextCallback Callback; public EnsureConnectionState (DatabaseConnectionContext context, DatabaseConnectionContextCallback callback, object state) { ConnectionContext = context; Callback = callback; State = state; } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/0000755000175000017500000000000011266446160024305 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/UserSchema.cs0000644000175000017500000000475111266446160026702 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class UserSchema : AbstractSchema { protected string userId; protected string password; protected DateTime expires = DateTime.MinValue; //TODO: list of allowed hosts? public UserSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public UserSchema (UserSchema user) : base (user) { this.userId = user.userId; this.password = user.password; this.expires = user.expires; } public virtual ICollection Roles { get { throw new NotImplementedException(); } } public virtual string UserId { get { return userId; } set { if (userId != value) { userId = value; OnChanged (); } } } public virtual string Password { get { return password; } set { if (password != value) { password = value; OnChanged (); } } } public virtual DateTime Expires { get { return expires; } set { if (expires != value) { expires = value; OnChanged (); } } } public override object Clone () { return new UserSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/TriggerType.cs0000644000175000017500000000246011266446160027103 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public enum TriggerType { Before, After } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/TriggerEvent.cs0000644000175000017500000000250511266446160027243 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { [Flags] public enum TriggerEvent { Insert, Update, Delete } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/UniqueConstraintSchema.cs0000644000175000017500000000325011266446160031270 0ustar directhexdirecthex// // Schema/UniqueConstraintSchema.cs // // Authors: // Christian Hergert // // Copyright (C) 2005 Mosaix Communications, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public class UniqueConstraintSchema : ConstraintSchema { public UniqueConstraintSchema (ISchemaProvider schemaProvider) : base (schemaProvider, ConstraintType.Unique) { } public UniqueConstraintSchema (UniqueConstraintSchema constraint) : base (constraint) { } public override object Clone () { return new UniqueConstraintSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/PrimaryKeyConstraintSchema.cs0000644000175000017500000000330411266446160032116 0ustar directhexdirecthex// // Schema/PrimaryKeyConstraintSchema.cs // // Authors: // Christian Hergert // // Copyright (C) 2005 Mosaix Communications, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public class PrimaryKeyConstraintSchema : ConstraintSchema { public PrimaryKeyConstraintSchema (ISchemaProvider schemaProvider) : base (schemaProvider, ConstraintType.PrimaryKey) { } public PrimaryKeyConstraintSchema (PrimaryKeyConstraintSchema constraint) : base (constraint) { } public override object Clone () { return new PrimaryKeyConstraintSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/LanguageSchema.cs0000644000175000017500000000353411266446160027505 0ustar directhexdirecthex// // Schema/PrimaryKeyConstraintSchema.cs // // Authors: // Christian Hergert // // Copyright (C) 2005 Mosaix Communications, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public class LanguageSchema : AbstractSchema { protected string handler = null; public LanguageSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public LanguageSchema (LanguageSchema lang) : base (lang) { this.handler = lang.handler; } public ProcedureSchema Handler { get { // TODO: Get procedure throw new NotImplementedException(); } set { handler = value.FullName; } } public override object Clone () { return new LanguageSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/TriggerFireType.cs0000644000175000017500000000250311266446160027707 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public enum TriggerFireType { ForEachRow, ForEachStatement } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/DatabaseSchema.cs0000644000175000017500000000346211266446160027466 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections; namespace MonoDevelop.Database.Sql { /// /// SQL schema object representing a database /// public class DatabaseSchema : AbstractSchema { public System.Collections.Generic.List AfterCreationStatements = new System.Collections.Generic.List(); public DatabaseSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public DatabaseSchema (DatabaseSchema schema) : base (schema) { } public override object Clone () { return new DatabaseSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/TriggerSchema.cs0000644000175000017500000000642711266446160027371 0ustar directhexdirecthex// // Schema/TriggerSchema.cs // // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public class TriggerSchema : AbstractSchema { protected string tableName; protected TriggerType triggerType; protected TriggerFireType triggerFireType; protected TriggerEvent triggerEvent; protected int position; protected bool isActive; protected string source; public TriggerSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public TriggerSchema (TriggerSchema trigger) : base (trigger) { tableName = trigger.tableName; triggerType = trigger.triggerType; triggerFireType = trigger.triggerFireType; triggerEvent = trigger.triggerEvent; position = trigger.position; isActive = trigger.isActive; source = trigger.source; } public string TableName { get { return tableName; } set { if (tableName != value) { tableName = value; OnChanged (); } } } public TriggerType TriggerType { get { return triggerType; } set { if (triggerType != value) { triggerType = value; OnChanged (); } } } public TriggerFireType TriggerFireType { get { return triggerFireType; } set { if (triggerFireType != value) { triggerFireType = value; OnChanged (); } } } public TriggerEvent TriggerEvent { get { return triggerEvent; } set { if (triggerEvent != value) { triggerEvent = value; OnChanged (); } } } public int Position { get { return position; } set { if (position != value) { position = value; OnChanged (); } } } public bool IsActive { get { return isActive; } set { if (isActive != value) { isActive = value; OnChanged (); } } } public string Source { get { return source; } set { if (source != value) { source = value; OnChanged (); } } } public override object Clone () { return new TriggerSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/RoleSchema.cs0000644000175000017500000000333211266446160026657 0ustar directhexdirecthex// // Schema/RoleSchema.cs // // Authors: // Christian Hergert // // Copyright (C) 2005 Mosaix Communications, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public class RoleSchema : AbstractSchema { // TODO: Should include a list of Privileges to object mappings. Also // needs to include what Identity this Role is connected to. IE: Group // or user. public RoleSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public RoleSchema (RoleSchema role) : base (role) { } public override object Clone () { return new RoleSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/ForeignKeyAction.cs0000644000175000017500000000254611266446160030043 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public enum ForeignKeyAction { None, Cascade, Restrict, NoAction, SetDefault, SetNull } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/CheckConstraintSchema.cs0000644000175000017500000000346311266446160031045 0ustar directhexdirecthex// // Schema/CheckConstraintSchema.cs // // Authors: // Christian Hergert // // Copyright (C) 2005 Mosaix Communications, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public class CheckConstraintSchema : ConstraintSchema { protected string source; public CheckConstraintSchema (ISchemaProvider schemaProvider) : base (schemaProvider, ConstraintType.Check) { } public CheckConstraintSchema (CheckConstraintSchema constraint) : base (constraint) { source = constraint.source; } public string Source { get { return source; } set { source = value; } } public override object Clone () { return new CheckConstraintSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/SchemaSchema.cs0000644000175000017500000000327411266446160027163 0ustar directhexdirecthex// // Schema/SchemaSchema.cs // // Authors: // Christian Hergert // // Copyright (C) 2005 Mosaix Communications, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public class SchemaSchema : AbstractSchema { //TODO: public SchemaSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public SchemaSchema (SchemaSchema schema) : base (schema) { } public override SchemaSchema Schema { get { return null; } set { } } public override object Clone () { return new SchemaSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/IndexSortType.cs0000644000175000017500000000247211266446160027422 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public enum IndexSortType { Ascending, Descending } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/ViewSchema.cs0000644000175000017500000000541511266446160026674 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class ViewSchema : AbstractSchema { protected bool isSystemView = false; protected string statement; protected ColumnSchemaCollection columns; public ViewSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public ViewSchema (ViewSchema view) : base (view) { this.isSystemView = view.isSystemView; this.statement = view.statement; this.columns = new ColumnSchemaCollection (view.columns); } public bool IsSystemView { get { return isSystemView; } set { if (isSystemView != value) { isSystemView = value; OnChanged(); } } } public string Statement { get { return statement; } set { if (statement != value) { statement = value; OnChanged(); } } } /// /// Collection of columns associated with this view. /// public ColumnSchemaCollection Columns { get { if (columns == null) columns = provider.GetViewColumns(this); return columns; } } /// /// Refresh the information associated with this view. /// public override void Refresh() { definition = null; } public override object Clone () { ViewSchema clone = new ViewSchema (this); if (clone.columns != null) { foreach (ColumnSchema column in clone.columns) column.Parent = clone; } return clone; } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/TableSchema.cs0000644000175000017500000001031311266446160027002 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { /// /// SQL schema object representing a table /// public class TableSchema : AbstractSchema { //TODO: support for inherited table schemas protected bool isSystemTable = false; protected string tableSpaceName; protected ColumnSchemaCollection columns; protected ConstraintSchemaCollection constraints; protected TriggerSchemaCollection triggers; public TableSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public TableSchema (ISchemaProvider schemaProvider, string name) : base (schemaProvider) { Name = name; columns = new ColumnSchemaCollection (); constraints = new ConstraintSchemaCollection (); triggers = new TriggerSchemaCollection (); } public TableSchema (TableSchema table) : base (table) { isSystemTable = table.isSystemTable; tableSpaceName = table.tableSpaceName; columns = new ColumnSchemaCollection (table.columns); constraints = new ConstraintSchemaCollection (table.constraints); triggers = new TriggerSchemaCollection (table.triggers); } /// /// Is this table part of the database core /// public bool IsSystemTable { get { return isSystemTable; } set { isSystemTable = value; OnChanged (); } } public string TableSpaceName { get { return tableSpaceName; } set { tableSpaceName = value; OnChanged (); } } /// /// Override ToString() to show the tables FullName /// /// Returns 'schema.tablename' /// /// public override string ToString () { return FullName; } /// /// Collection of columns associated with this table. /// public ColumnSchemaCollection Columns { get { if (columns == null) columns = provider.GetTableColumns(this); return columns; } } /// /// Collection of constraints associated with this table. /// public ConstraintSchemaCollection Constraints { get { if (constraints == null) constraints = provider.GetTableConstraints(this); return constraints; } } public TriggerSchemaCollection Triggers { get { if (triggers == null) triggers = provider.GetTableTriggers(this); return triggers; } } /// /// Refresh the information associated with this table. /// public override void Refresh() { // TODO: Update Name, etc. columns = null; constraints = null; triggers = null; definition = null; } public override object Clone () { TableSchema clone = new TableSchema (this); if (clone.columns != null) { foreach (ColumnSchema column in clone.columns) column.Parent = clone; } return clone; } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/ISchema.cs0000644000175000017500000000554311266446160026154 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public interface ISchema : ICloneable { /// /// Event fired when the object is changed. /// event EventHandler Changed; /// /// SQL object name. /// string Name { get; set; } /// /// Full name of the object. This is typically `schema.objectname'. /// string FullName { get; } /// /// SQL Comment associated with this object. /// string Comment { get; set; } /// /// SQL Syntax Definition of this object. /// string Definition { get; set; } /// /// Name of schema /// string SchemaName { get; set; } /// /// Schema object representing the schema this object is part of. /// SchemaSchema Schema { get; set; } /// /// Set the owners name in the database by the literal string name /// of the user. /// string OwnerName { get; set; } /// /// Owner of this sql object. /// UserSchema Owner { get; } /// /// Privileges (sometimes known as ACL's) associated with this object. /// ICollection Privileges { get; } /// /// The connection provider associated with this SQL object. /// ISchemaProvider SchemaProvider { get; } /// /// Refresh the object from the database. /// void Refresh(); } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/SchemaActions.cs0000644000175000017500000000265311266446160027363 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { [Flags] public enum SchemaActions { None = 0x00, Schema = 0x01, Create = 0x02, Alter = 0x04, Drop = 0x08, Rename = 0x10, All = Schema | Create | Alter | Drop | Rename } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/SchemaType.cs0000644000175000017500000000344111266446160026700 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { //TODO: TableColumnConstraint value //TODO: cannot use IsSchemaActionSupported on .Constraint --> need OR instead of AND public enum SchemaType { Schema, Table, TableColumn, View, ViewColumn, Procedure, ProcedureParameter, Trigger, PrimaryKeyConstraint, ForeignKeyConstraint, CheckConstraint, UniqueConstraint, Constraint = PrimaryKeyConstraint | ForeignKeyConstraint | CheckConstraint | UniqueConstraint, Aggregate, Database, Group, Index, Language, Operator, Privilege, Role, Rule, Sequence, User, Other } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/IndexSchema.cs0000644000175000017500000000441611266446160027031 0ustar directhexdirecthex// // Schema/IndexConstraintSchema.cs // // Authors: // Christian Hergert // // Copyright (C) 2005 Mosaix Communications, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public class IndexSchema : AbstractSchema { protected string tableName; protected IndexType type; protected ColumnSchemaCollection columns; //TODO: create col subclass, to include sort order and length public IndexSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { columns = new ColumnSchemaCollection (); } public IndexSchema (IndexSchema index) : base (index) { this.tableName = index.tableName; this.type = index.type; this.columns = index.columns; } public string TableName { get { return tableName; } set { if (tableName != value) { tableName = value; OnChanged (); } } } public IndexType IndexType { get { return type; } set { if (type != value) { type = value; OnChanged (); } } } public ColumnSchemaCollection Columns { get { return columns; } } public override object Clone () { return new IndexSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/PrivilegeSchema.cs0000644000175000017500000000354611266446160027713 0ustar directhexdirecthex// // Schema/PrivilegeSchema.cs // // Authors: // Christian Hergert // // Copyright (C) 2005 Mosaix Communications, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public class PrivilegeSchema : AbstractSchema { //TODO: grantee? + which role?? protected bool canGrant = false; public PrivilegeSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public PrivilegeSchema (PrivilegeSchema priv) : base (priv) { this.canGrant = priv.canGrant; } public bool CanGrant { get { return canGrant; } set { if (canGrant != value) { canGrant = value; OnChanged(); } } } public override object Clone () { return new PrivilegeSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/GroupSchema.cs0000644000175000017500000000354711266446160027062 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class GroupSchema : AbstractSchema { public GroupSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public GroupSchema (GroupSchema schema) : base (schema) { } public UserSchema Users { get { throw new NotImplementedException (); } } public ICollection Roles { get { throw new NotImplementedException (); } } public override object Clone () { return new GroupSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/ConstraintSchema.cs0000644000175000017500000000441211266446160030102 0ustar directhexdirecthex// // Schema/ConstraintSchema.cs // // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public abstract class ConstraintSchema : AbstractSchema { protected ColumnSchemaCollection columns; protected bool isColumnConstraint; protected ConstraintType constraintType; protected ConstraintSchema (ISchemaProvider schemaProvider, ConstraintType constraintType) : base (schemaProvider) { columns = new ColumnSchemaCollection (); this.constraintType = constraintType; } protected ConstraintSchema (ConstraintSchema constraint) : base (constraint) { isColumnConstraint = constraint.isColumnConstraint; constraintType = constraint.constraintType; } public ColumnSchemaCollection Columns { get { return columns; } } public bool IsColumnConstraint { get { return isColumnConstraint; } set { isColumnConstraint = value; } } public ConstraintType ConstraintType { get { return constraintType; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/ColumnSchema.cs0000644000175000017500000000752611266446160027224 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public class ColumnSchema : AbstractSchema { protected ISchema parent; protected string dataType = String.Empty; protected bool hasDefaultValue; protected string defaultValue; protected bool nullable; protected int position = 0; protected ConstraintSchemaCollection constraints; public ColumnSchema (ISchemaProvider schemaProvider, ISchema parent) : base (schemaProvider) { this.parent = parent; } public ColumnSchema (ISchemaProvider schemaProvider, ISchema parent, string name) : base (schemaProvider) { this.constraints = new ConstraintSchemaCollection (); this.parent = parent; this.name = name; } public ColumnSchema (ColumnSchema column) : base (column) { parent = column.parent; //do not clone, this would create an infinite loop dataType = column.dataType; hasDefaultValue = column.hasDefaultValue; defaultValue = column.defaultValue; nullable = column.nullable; position = column.position; constraints = new ConstraintSchemaCollection (column.constraints); } public ISchema Parent { get { return parent; } set { if (parent != value) { parent = value; OnChanged (); } } } public DataTypeSchema DataType { get { return SchemaProvider.GetDataType (dataType); } } public string DataTypeName { get { return dataType; } set { if (dataType != value) { dataType = value; OnChanged (); } } } public virtual string DefaultValue { get { return defaultValue; } set { if (defaultValue != value) { defaultValue = value; OnChanged(); } } } public virtual bool HasDefaultValue { get { return hasDefaultValue; } set { if (hasDefaultValue != value) { hasDefaultValue = value; OnChanged(); } } } public virtual bool IsNullable { get { return nullable; } set { if (nullable != value) { nullable = value; OnChanged(); } } } public virtual int Position { get { return position; } set { if (position != value) { position = value; OnChanged(); } } } public ConstraintSchemaCollection Constraints { get { if (constraints == null) constraints = provider.GetColumnConstraints (parent as TableSchema, this); return constraints; } } public override void Refresh() { constraints = null; } public override object Clone () { return new ColumnSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/ProcedureSchema.cs0000644000175000017500000000555111266446160027713 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class ProcedureSchema : AbstractSchema { protected ParameterSchemaCollection parameters; protected string language; protected bool isSystemProcedure = false; protected bool isFunction = false; public ProcedureSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public ProcedureSchema (ProcedureSchema proc) : base (proc) { this.parameters = new ParameterSchemaCollection (parameters); this.language = proc.language; this.isSystemProcedure = proc.isSystemProcedure; } public ParameterSchemaCollection Parameters { get { if (parameters == null) parameters = provider.GetProcedureParameters (this); return parameters; } } public LanguageSchema Language { get { throw new NotImplementedException(); } set { language = value.FullName; } } public string LanguageName { get { return language; } set { if (language != value) { language = value; OnChanged (); } } } public bool IsSystemProcedure { get { return isSystemProcedure; } set { if (isSystemProcedure != value) { isSystemProcedure = value; OnChanged (); } } } public bool IsFunction { get { return isFunction; } set { if (isFunction != value) { isFunction = value; OnChanged (); } } } public override object Clone () { return new ProcedureSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/ConstraintType.cs0000644000175000017500000000274311266446160027630 0ustar directhexdirecthex// // Schema/ConstraintSchema.cs // // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public enum ConstraintType { Unique, Check, PrimaryKey, ForeignKey } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/DataTypeSchema.cs0000644000175000017500000001360411266446160027474 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class DataTypeSchema : AbstractSchema { protected bool isComplex; protected bool isNullable; protected bool isAutoincrementable; protected bool isFixedLength; protected DataTypeCategory category; protected Type dotNetType; protected string createFormat; protected string createParameters; protected Range lengthRange; protected Range precisionRange; protected Range scaleRange; public DataTypeSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { lengthRange = new Range (0); precisionRange = new Range (0); scaleRange = new Range (0); } public DataTypeSchema (DataTypeSchema dt) : base (dt) { this.isComplex = dt.isComplex; this.isNullable = dt.isNullable; this.isAutoincrementable = dt.isAutoincrementable; this.isFixedLength = dt.isFixedLength; this.category = dt.category; this.dotNetType = dt.dotNetType; this.createFormat = dt.createFormat; this.createParameters = dt.createParameters; this.lengthRange = new Range (dt.lengthRange); this.precisionRange = new Range (dt.precisionRange); this.scaleRange = new Range (dt.scaleRange); } public DataTypeCategory DataTypeCategory { get { return category; } set { if (category != value) { category = value; OnChanged (); } } } public bool HasRange { get { return precisionRange != null; } } public bool HasScale { get { return scaleRange != null; } } public Range LengthRange { get { return lengthRange; } set { if (lengthRange != value) { lengthRange = value; OnChanged (); } } } public Range PrecisionRange { get { return precisionRange; } set { if (precisionRange != value) { precisionRange = value; OnChanged (); } } } public Range ScaleRange { get { return scaleRange; } set { if (scaleRange != value) { scaleRange = value; OnChanged (); } } } public bool IsComplex { get { return isComplex; } set { if (isComplex != value) { isComplex = value; OnChanged(); } } } public bool IsNullable { get { return isNullable; } set { if (isNullable != value) { isNullable = value; OnChanged(); } } } public bool IsAutoincrementable { get { return isAutoincrementable; } set { if (isAutoincrementable != value) { isAutoincrementable = value; OnChanged(); } } } public bool IsFixedLength { get { return isFixedLength; } set { if (isFixedLength != value) { isFixedLength = value; OnChanged(); } } } public Type DotNetType { get { return dotNetType; } set { if (dotNetType != value) { dotNetType = value; OnChanged(); } } } public string CreateFormat { get { return createFormat; } set { if (createFormat != value) { createFormat = value; OnChanged(); } } } public string CreateParameters { get { return createParameters; } set { if (createParameters != value) { createParameters = value; OnChanged(); } } } public ColumnSchemaCollection Columns { get { if (isComplex == false) { return new ColumnSchemaCollection (); } else { // TODO: Get complex columns from the provider throw new NotImplementedException(); } } } public virtual string GetCreateString (ColumnSchema column) { if (createFormat == null) { return name; } else { if (createParameters != null) { string[] parameters = createParameters.Split (','); string[] chunks = new string[parameters.Length]; int index=0; foreach (string param in parameters) { string chunk = param.ToLower ().Trim (); if (chunk.Contains ("length") || chunk.Contains ("size")) { chunks[index] = column.DataType.LengthRange.Default.ToString (); } else if (chunk.Contains ("scale")) { chunks[index] = column.DataType.ScaleRange.Default.ToString (); } else if (chunk.Contains ("precision")) { chunks[index] = column.DataType.PrecisionRange.Default.ToString (); } else { chunks[index] = String.Empty; } index++; } return String.Format (System.Globalization.CultureInfo.InvariantCulture, createFormat, chunks); } return createFormat; } } public override object Clone () { return new DataTypeSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/SequenceSchema.cs0000644000175000017500000000476711266446160027543 0ustar directhexdirecthex// // Schema/SequenceSchema.cs // // Authors: // Christian Hergert // // Copyright (C) 2005 Mosaix Communications, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public class SequenceSchema : AbstractSchema { protected string minValue; protected string maxValue; protected string currentValue; protected string increment; public SequenceSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public SequenceSchema (SequenceSchema seq) : base (seq) { this.minValue = seq.minValue; this.maxValue = seq.maxValue; this.currentValue = seq.currentValue; this.increment = seq.increment; } public string MinValue { get { return minValue; } set { if (minValue != value) { minValue = value; OnChanged(); } } } public string MaxValue { get { return maxValue; } set { if (maxValue != value) { maxValue = value; OnChanged(); } } } public string CurrentValue { get { return currentValue; } set { if (currentValue != value) { currentValue = value; OnChanged(); } } } public string Increment { get { return increment; } set { if (increment != value) { increment = value; OnChanged(); } } } public override object Clone () { return new SequenceSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/ForeignKeyConstraintSchema.cs0000644000175000017500000000573011266446160032071 0ustar directhexdirecthex// // Schema/ForeignKeyConstraintSchema.cs // // Authors: // Christian Hergert // // Copyright (C) 2005 Mosaix Communications, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class ForeignKeyConstraintSchema : ConstraintSchema { protected string referenceTable; protected ColumnSchemaCollection referenceColumns; protected ForeignKeyAction deleteAction; protected ForeignKeyAction updateAction; public ForeignKeyConstraintSchema (ISchemaProvider schemaProvider) : base (schemaProvider, ConstraintType.ForeignKey) { referenceColumns = new ColumnSchemaCollection (); } public ForeignKeyConstraintSchema (ForeignKeyConstraintSchema constraint) : base (constraint) { referenceTable = constraint.referenceTable; referenceColumns = new ColumnSchemaCollection (constraint.referenceColumns); deleteAction = constraint.deleteAction; updateAction = constraint.updateAction; } public string ReferenceTableName { get { return referenceTable; } set { if (referenceTable != value) { referenceTable = value; OnChanged(); } } } public TableSchema ReferenceTable { get { throw new NotImplementedException(); } set { referenceTable = value.FullName; OnChanged(); } } public ForeignKeyAction DeleteAction { get { return deleteAction; } set { if (deleteAction != value) { deleteAction = value; OnChanged(); } } } public ForeignKeyAction UpdateAction { get { return updateAction; } set { if (updateAction != value) { updateAction = value; OnChanged(); } } } public ColumnSchemaCollection ReferenceColumns { get { return referenceColumns; } } public override object Clone () { return new ForeignKeyConstraintSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/ParameterSchema.cs0000644000175000017500000000465511266446160027707 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public class ParameterSchema : AbstractSchema { protected string dataType; protected ParameterType paramType; protected int position; public ParameterSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public ParameterSchema (ParameterSchema param) : base (param) { this.dataType = param.dataType; this.paramType = param.paramType; this.position = param.position; } public DataTypeSchema DataType { get { return provider.GetDataType (dataType); } } public string DataTypeName { get { return dataType; } set { if (dataType != value) { dataType = value; OnChanged (); } } } public ParameterType ParameterType { get { return paramType; } set { if (paramType != value) { paramType = value; OnChanged(); } } } public virtual int Position { get { return position; } set { if (position != value) { position = value; OnChanged(); } } } public override object Clone () { return new ParameterSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/AggregateSchema.cs0000644000175000017500000000325311266446160027646 0ustar directhexdirecthex// // Schema/AggregateSchema.cs // // Authors: // Christian Hergert // // Copyright (C) 2005 Mosaix Communications, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public class AggregateSchema : AbstractSchema { public AggregateSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public AggregateSchema (AggregateSchema schema) : base (schema) { } public override string ToString() { return Name + "()"; } public override object Clone () { return new AggregateSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/ParameterType.cs0000644000175000017500000000246511266446160027425 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public enum ParameterType { In, Out, InOut } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/AbstractSchema.cs0000644000175000017500000000766411266446160027535 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public abstract class AbstractSchema : ISchema { public event EventHandler Changed; protected string name; protected string ownerName; protected string comment; protected string definition; protected string schema; protected ISchemaProvider provider; protected AbstractSchema (ISchemaProvider schemaProvider) { if (schemaProvider == null) throw new ArgumentNullException ("schemaProvider"); this.provider = schemaProvider; } protected AbstractSchema (AbstractSchema schema) { if (schema == null) throw new ArgumentNullException ("schema"); this.provider = schema.provider; this.name = schema.name; this.ownerName = schema.ownerName; this.comment = schema.comment; this.definition = schema.definition; this.schema = schema.schema; } public virtual string Name { get { return name; } set { if (name != value) { name = value; OnChanged (); } } } public virtual string FullName { get { if (!String.IsNullOrEmpty (schema)) return schema + "." + name; else return name; } } public virtual string SchemaName { get { return schema; } set { if (schema != value) { schema = value; OnChanged(); } } } public virtual SchemaSchema Schema { get { throw new NotImplementedException(); } set { if (value != null) schema = value.Name; else schema = null; } } public virtual string Comment { get { return comment; } set { if (comment != value) { comment = value; OnChanged (); } } } public virtual string Definition { get { return definition; } set { if (definition != value) { definition = value; OnChanged (); } } } public ISchemaProvider SchemaProvider { get { return provider; } } public virtual string OwnerName { get { return ownerName; } set { if (ownerName != value) { ownerName = value; OnChanged (); } } } public virtual UserSchema Owner { get { throw new NotImplementedException(); } } public virtual ICollection Privileges { get { throw new NotImplementedException(); } } public virtual void OnChanged() { if (Changed != null) Changed (this, EventArgs.Empty); } public virtual void Refresh() { } public abstract object Clone (); } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/OperatorSchema.cs0000644000175000017500000000374711266446160027563 0ustar directhexdirecthex// // Schema/OperatorSchema.cs // // Authors: // Christian Hergert // // Copyright (C) 2005 Mosaix Communications, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public class OperatorSchema : AbstractSchema { protected string leftDataType = null; protected string rightDataType = null; public OperatorSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public OperatorSchema (OperatorSchema op) : base (op) { this.leftDataType = op.leftDataType; this.rightDataType = op.rightDataType; } //TODO: public DataTypeSchema LeftDataType { get { throw new NotImplementedException(); } set { if (value != null) leftDataType = value.Name; else leftDataType = String.Empty; } } public override object Clone () { return new OperatorSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/RuleSchema.cs0000644000175000017500000000307611266446160026672 0ustar directhexdirecthex// // Schema/RuleSchema.cs // // Authors: // Christian Hergert // // Copyright (C) 2005 Mosaix Communications, Inc. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public class RuleSchema : AbstractSchema { public RuleSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public RuleSchema (RuleSchema rule) : base (rule) { } public override object Clone () { return new RuleSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/Range.cs0000644000175000017500000000427711266446160025702 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public class Range { private int min; private int max; private int defaultValue; public Range (int min, int max) { Max = max; Min = min; } public Range (int constRange) : this (constRange, constRange, constRange) { } public Range (int min, int max, int defaultValue) : this (min, max) { this.defaultValue = defaultValue; } public Range (Range range) : this (range.Min, range.Max, range.Default) { } public int Min { get { return min; } set { min = value; if (min > max) max = min; } } public int Max { get { return max; } set { max = value; if (max < min) min = max; } } public int Default { get { return defaultValue; } set { defaultValue = value; } } public bool IsInRange (int value) { return value >= min && value <= max; } public bool IsFixed { get { return min == max; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/DataTypeCategory.cs0000644000175000017500000000657011266446160030055 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; namespace MonoDevelop.Database.Sql { public enum DataTypeCategory { /// /// Used to define a column with a start value and a seed /// AutoNumber, /// /// Data type allowing only 2 possibilities, like: true/false, 1/0, ... /// Boolean, /// /// Data type allowing to store individual bits, length will be shown in bits instead of bytes /// Bit, /// /// Used for all numerical values without a comma (int, long, ...) /// Integer, /// /// Used for all floating point values (float, double, ...) /// Float, /// /// Single-byte fixed length text, padding is used when the inserted text is smaller then the stored text /// Char, /// /// Single-byte text, the length is not defined and can be variable /// VarChar, /// /// Multi-byte (unicode) fixed length text, padding is used when the inserted text is smaller then the stored text /// NChar, /// /// Multi-byte (unicode text, the length is not defined and can be variable /// NVarChar, /// /// Binary objects, like blob, clob, image, ... with a fixed length /// Binary, /// /// Binary objects, like blob, clob, image, ... with variable length /// VarBinary, /// /// Globally unique identifier, can be similar like the .NET System.Guid type /// Uid, /// /// Date field /// Date, /// /// Time field /// Time, /// /// TimeStamp field /// TimeStamp, /// /// Field containing both a date and a time /// DateTime, /// /// Special text containing XML chunks /// Xml, /// /// Undefined data type /// Other, /// /// A data type defined by the user /// UserDefined, /// ///A data type containing date intervals /// Interval } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/Schema/IndexType.cs0000644000175000017500000000245411266446160026552 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public enum IndexType { Btree, Hash } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/AssemblyInfo.cs0000644000175000017500000000047111266446160026031 0ustar directhexdirecthex// Autogenerated from MonoDevelop.Database.Sql.addin.xml using System.Reflection; [assembly: AssemblyProduct ("MonoDevelop")] [assembly: AssemblyTitle ("MonoDevelop Database Sql")] [assembly: AssemblyDescription ("Database Module")] [assembly: AssemblyVersion ("2.2")] [assembly: AssemblyCopyright ("MIT X11")] monodevelop-database-4.0.12/MonoDevelop.Database.Sql/SqlMetalExecException.cs0000644000175000017500000000263211266446160027645 0ustar directhexdirecthex// // SqlMetalExecException.cs // // Author: // Luciano N. Callero // // Copyright (c) 2010 Lucian0 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; namespace MonoDevelop.Database.Sql { public class SqlMetalExecException:Exception { public SqlMetalExecException () { } public SqlMetalExecException (string message):base (message) { } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/ConnectionPool/0000755000175000017500000000000011266446160026036 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql/ConnectionPool/PooledCommand.cs0000644000175000017500000000624311266446160031113 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public sealed class PooledCommand : IDbCommand { private IPooledDbConnection connection; private IDbCommand command; public PooledCommand (IPooledDbConnection connection, IDbCommand command) { if (connection == null) throw new ArgumentNullException ("connection"); if (command == null) throw new ArgumentNullException ("command"); this.connection = connection; this.command = command; } public string CommandText { get { return command.CommandText; } set { command.CommandText = value; } } public int CommandTimeout { get { return command.CommandTimeout; } set { command.CommandTimeout = value; } } public CommandType CommandType { get { return command.CommandType; } set { command.CommandType = value; } } public IDbConnection Connection { get { return command.Connection; } set { command.Connection = value; } } public IDataParameterCollection Parameters { get { return command.Parameters; } } public IDbTransaction Transaction { get { return command.Transaction; } set { command.Transaction = value; } } public UpdateRowSource UpdatedRowSource { get { return command.UpdatedRowSource; } set { command.UpdatedRowSource = value; } } public void Dispose () { command.Dispose (); connection.Release (); } public void Cancel () { command.Cancel (); } public IDbDataParameter CreateParameter () { return command.CreateParameter (); } public int ExecuteNonQuery () { return command.ExecuteNonQuery (); } public IDataReader ExecuteReader () { return command.ExecuteReader (); } public IDataReader ExecuteReader (CommandBehavior behavior) { return command.ExecuteReader (behavior); } public object ExecuteScalar () { return command.ExecuteScalar (); } public void Prepare () { command.Prepare (); } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/ConnectionPool/IConnectionPool.cs0000644000175000017500000000363611266446160031437 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public interface IConnectionPool { IDbFactory DbFactory { get; } DatabaseConnectionContext ConnectionContext { get; } bool HasVersion { get; } Version DatabaseVersion { get; } bool IsInitialized { get; } bool HasErrors { get; } string Error { get; } int MinSize { get; set; } int MaxSize { get; set; } int GrowSize { get; set; } int ShrinkSize { get; set; } int ConnectionCount { get; } int FreeConnectionCount { get; } bool HasFreeConnection { get; } IPooledDbConnection Request (); void Release (IPooledDbConnection connection); bool Initialize (); void Close (); } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/ConnectionPool/PooledDataReader.cs0000644000175000017500000001115411266446160031526 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public sealed class PooledDataReader : IDataReader { private IPooledDbConnection connection; private IDataReader reader; public PooledDataReader (IPooledDbConnection connection, IDataReader reader) { if (connection == null) throw new ArgumentNullException ("connection"); if (reader == null) throw new ArgumentNullException ("reader"); this.connection = connection; this.reader = reader; } public IPooledDbConnection Connection { get { return connection; } } public IDataReader DataReader { get { return reader; } } public void Dispose () { reader.Dispose (); connection.Release (); } public void Close () { connection.Release (); reader.Close (); } public int Depth { get { return reader.Depth; } } public DataTable GetSchemaTable () { return reader.GetSchemaTable (); } public bool IsClosed { get { return reader.IsClosed; } } public bool NextResult () { return reader.NextResult (); } public bool Read () { return reader.Read (); } public int RecordsAffected { get { return reader.RecordsAffected; } } public int FieldCount { get { return reader.FieldCount; } } public bool GetBoolean (int i) { return reader.GetBoolean (i); } public byte GetByte (int i) { return reader.GetByte (i); } public long GetBytes (int i, long fieldOffset, byte[] buffer, int bufferoffset, int length) { return reader.GetBytes (i, fieldOffset, buffer, bufferoffset, length); } public char GetChar (int i) { return reader.GetChar (i); } public long GetChars (int i, long fieldoffset, char[] buffer, int bufferoffset, int length) { return reader.GetChars (i, fieldoffset, buffer, bufferoffset, length); } public IDataReader GetData (int i) { return reader.GetData (i); } public string GetDataTypeName (int i) { return reader.GetDataTypeName (i); } public DateTime GetDateTime (int i) { return reader.GetDateTime (i); } public decimal GetDecimal (int i) { return reader.GetDecimal (i); } public double GetDouble (int i) { return reader.GetDouble (i); } public Type GetFieldType (int i) { return reader.GetFieldType (i); } public float GetFloat (int i) { return reader.GetFloat (i); } public Guid GetGuid (int i) { return reader.GetGuid (i); } public short GetInt16 (int i) { return reader.GetInt16 (i); } public int GetInt32 (int i) { return reader.GetInt32 (i); } public long GetInt64 (int i) { return reader.GetInt64 (i); } public string GetName (int i) { return reader.GetName (i); } public int GetOrdinal (string name) { return reader.GetOrdinal (name); } public string GetString (int i) { return reader.GetString (i); } public object GetValue (int i) { return reader.GetValue (i); } public int GetValues (object[] values) { return reader.GetValues (values); } public bool IsDBNull (int i) { return reader.IsDBNull (i); } public object this[string name] { get { return reader[name]; } } public object this[int i] { get { return reader[i]; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql/ConnectionPool/AbstractPooledDbConnection.cs0000644000175000017500000002367311266446160033574 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Threading; using System.Collections.Generic; using MonoDevelop.Core; namespace MonoDevelop.Database.Sql { public abstract class AbstractPooledDbConnection : IPooledDbConnection { protected IConnectionPool connectionPool; protected IDbConnection connection; protected bool disposed = false; protected AbstractPooledDbConnection (IConnectionPool connectionPool, IDbConnection connection) { this.connectionPool = connectionPool; this.connection = connection; } public virtual IConnectionPool ConnectionPool { get { return connectionPool; } } public virtual IDbConnection DbConnection { get { return connection; } } public virtual bool IsOpen { get { return connection.State == ConnectionState.Open; } } public abstract Version DatabaseVersion { get; } public virtual void Release () { connectionPool.Release (this); } public virtual void Destroy () { connection.Close (); connection.Dispose (); connection = null; } public void Dispose () { Dispose (true); GC.SuppressFinalize (this); } protected virtual void Dispose (bool disposing) { if (!this.disposed) { if (disposing) Destroy (); disposed = true; } } public virtual IDbCommand CreateCommand (IStatement statement) { if (statement == null) throw new ArgumentNullException ("statement"); string sql = connectionPool.DbFactory.Dialect.GetSql (statement); LoggingService.LogDebug ("Statement = {0}", sql); IDbCommand command = connection.CreateCommand (); command.CommandType = CommandType.Text; command.CommandText = sql; return command; } public virtual IDbCommand CreateCommand (string sql) { if (sql == null) throw new ArgumentNullException ("sql"); IDbCommand command = connection.CreateCommand (); command.CommandType = CommandType.Text; command.CommandText = sql; return command; } public virtual IDbCommand CreateStoredProcedure (string procedure) { if (procedure == null) throw new ArgumentNullException ("procedure"); IDbCommand command = connection.CreateCommand (); command.CommandType = CommandType.StoredProcedure; command.CommandText = procedure; return command; } public virtual int ExecuteNonQuery (string sql) { if (String.IsNullOrEmpty (sql)) throw new ArgumentNullException ("sql"); int result = -1; using (IDbCommand command = CreateCommand (sql)) result = ExecuteNonQuery (command); return result; } public virtual object ExecuteScalar (string sql) { if (String.IsNullOrEmpty (sql)) throw new ArgumentNullException ("sql"); object result = null; using (IDbCommand command = CreateCommand (sql)) result = ExecuteScalar (command); return result; } public virtual IDataReader ExecuteReader (string sql) { if (String.IsNullOrEmpty (sql)) throw new ArgumentNullException ("sql"); IDataReader result = null; using (IDbCommand command = CreateCommand (sql)) result = ExecuteReader (command); return result; } public virtual DataSet ExecuteSet (string sql) { if (String.IsNullOrEmpty (sql)) throw new ArgumentNullException ("sql"); DataSet result = null; using (IDbCommand command = CreateCommand (sql)) result = ExecuteSet (command); return result; } public virtual DataTable ExecuteTable (string sql) { if (String.IsNullOrEmpty (sql)) throw new ArgumentNullException ("sql"); DataTable result = null; using (IDbCommand command = CreateCommand (sql)) result = ExecuteTable (command); return result; } public virtual int ExecuteNonQuery (IDbCommand command) { if (command == null) throw new ArgumentNullException ("command"); return command.ExecuteNonQuery (); } public virtual object ExecuteScalar (IDbCommand command) { if (command == null) throw new ArgumentNullException ("command"); try { return command.ExecuteScalar (); } catch (Exception e) { QueryService.RaiseException (e); return null; } } public virtual IDataReader ExecuteReader (IDbCommand command) { if (command == null) throw new ArgumentNullException ("command"); try { return command.ExecuteReader (); } catch (Exception e) { QueryService.RaiseException (e); return null; } } public abstract DataSet ExecuteSet (IDbCommand command); public abstract DataTable ExecuteTable (IDbCommand command); public virtual void ExecuteNonQueryAsync (IDbCommand command, ExecuteCallback callback, object state) { if (command == null) throw new ArgumentNullException ("command"); if (callback == null) throw new ArgumentNullException ("callback"); AsyncExecuteState internalState = new AsyncExecuteState (command, callback, state); ThreadPool.QueueUserWorkItem (new WaitCallback (ExecuteNonQueryThreaded), internalState); } public virtual void ExecuteScalarAsync (IDbCommand command, ExecuteCallback callback, object state) { if (command == null) throw new ArgumentNullException ("command"); if (callback == null) throw new ArgumentNullException ("callback"); AsyncExecuteState internalState = new AsyncExecuteState (command, callback, state); ThreadPool.QueueUserWorkItem (new WaitCallback (ExecuteScalarThreaded), internalState); } public virtual void ExecuteReaderAsync (IDbCommand command, ExecuteCallback callback, object state) { if (command == null) throw new ArgumentNullException ("command"); if (callback == null) throw new ArgumentNullException ("callback"); AsyncExecuteState internalState = new AsyncExecuteState (command, callback, state); ThreadPool.QueueUserWorkItem (new WaitCallback (ExecuteReaderThreaded), internalState); } public virtual void ExecuteSetAsync (IDbCommand command, ExecuteCallback callback, object state) { if (command == null) throw new ArgumentNullException ("command"); if (callback == null) throw new ArgumentNullException ("callback"); AsyncExecuteState internalState = new AsyncExecuteState (command, callback, state); ThreadPool.QueueUserWorkItem (new WaitCallback (ExecuteSetThreaded), internalState); } public virtual void ExecuteTableAsync (IDbCommand command, ExecuteCallback callback, object state) { if (command == null) throw new ArgumentNullException ("command"); if (callback == null) throw new ArgumentNullException ("callback"); AsyncExecuteState internalState = new AsyncExecuteState (command, callback, state); ThreadPool.QueueUserWorkItem (new WaitCallback (ExecuteTableThreaded), internalState); } public abstract DataTable GetSchema (string collectionName, params string[] restrictionValues); private void ExecuteNonQueryThreaded (object state) { AsyncExecuteState internalState = state as AsyncExecuteState; int result = ExecuteNonQuery (internalState.Command); internalState.Callback (this, result, internalState.State); } private void ExecuteScalarThreaded (object state) { AsyncExecuteState internalState = state as AsyncExecuteState; object result = ExecuteScalar (internalState.Command); internalState.Callback (this, result, internalState.State); } private void ExecuteReaderThreaded (object state) { AsyncExecuteState internalState = state as AsyncExecuteState; IDataReader result = ExecuteReader (internalState.Command); internalState.Callback (this, result, internalState.State); } private void ExecuteSetThreaded (object state) { AsyncExecuteState internalState = state as AsyncExecuteState; DataSet result = ExecuteSet (internalState.Command); internalState.Callback (this, result, internalState.State); } private void ExecuteTableThreaded (object state) { AsyncExecuteState internalState = state as AsyncExecuteState; DataTable result = ExecuteTable (internalState.Command); internalState.Callback (this, result, internalState.State); } } internal class AsyncExecuteState { public AsyncExecuteState (IDbCommand command, ExecuteCallback callback, object state) { Command = command; Callback = callback; State = state; } public IDbCommand Command; public ExecuteCallback Callback; public object State; } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/ConnectionPool/IPooledDbConnection.cs0000644000175000017500000000536511266446160032217 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public delegate void ExecuteCallback (IPooledDbConnection connection, T result, object state); public interface IPooledDbConnection : IDisposable { IConnectionPool ConnectionPool { get; } IDbConnection DbConnection { get; } bool IsOpen { get; } Version DatabaseVersion { get; } void Release (); void Destroy (); IDbCommand CreateCommand (IStatement statement); IDbCommand CreateCommand (string sql); IDbCommand CreateStoredProcedure (string sql); int ExecuteNonQuery (string sql); object ExecuteScalar (string sql); IDataReader ExecuteReader (string sql); DataSet ExecuteSet (string sql); DataTable ExecuteTable (string sql); int ExecuteNonQuery (IDbCommand command); object ExecuteScalar (IDbCommand command); IDataReader ExecuteReader (IDbCommand command); DataSet ExecuteSet (IDbCommand command); DataTable ExecuteTable (IDbCommand command); void ExecuteNonQueryAsync (IDbCommand command, ExecuteCallback callback, object state); void ExecuteScalarAsync (IDbCommand command, ExecuteCallback callback, object state); void ExecuteReaderAsync (IDbCommand command, ExecuteCallback callback, object state); void ExecuteSetAsync (IDbCommand command, ExecuteCallback callback, object state); void ExecuteTableAsync (IDbCommand command, ExecuteCallback callback, object state); DataTable GetSchema (string collectionName, params string[] restrictionValues); } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql/ConnectionPool/DefaultConnectionPool.cs0000644000175000017500000001524711266446160032634 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class DefaultConnectionPool : IConnectionPool { protected int minSize = 1; protected int maxSize = 20; protected int growSize = 3; protected int shrinkSize = 5; protected bool hasErrors; protected string error; protected IDbFactory factory; protected DatabaseConnectionContext context; protected IConnectionProvider connectionProvider; protected bool hasVersion; protected Version databaseVersion; protected bool isInitialized; protected List connections; protected Queue freeConnections; protected object sync = new object (); public DefaultConnectionPool (IDbFactory factory, IConnectionProvider connectionProvider, DatabaseConnectionContext context) { if (factory == null) throw new ArgumentNullException ("factory"); if (connectionProvider == null) throw new ArgumentNullException ("connectionProvider"); if (context == null) throw new ArgumentNullException ("context"); this.factory = factory; this.connectionProvider = connectionProvider; this.context = context; connections = new List (); freeConnections = new Queue (); } public virtual IDbFactory DbFactory { get { return factory; } } public virtual DatabaseConnectionContext ConnectionContext { get { return context; } } public virtual IConnectionProvider ConnectionProvider { get { return connectionProvider; } } public virtual bool IsInitialized { get { return isInitialized; } } public virtual bool HasErrors { get { return hasErrors; } } public virtual string Error { get { return error; } } public virtual bool HasVersion { get { return hasVersion; } } public virtual Version DatabaseVersion { get { return databaseVersion; } } public virtual int MinSize { get { return minSize; } set { if (value < 1 || value > maxSize) throw new IndexOutOfRangeException ("MinSize"); minSize = value; } } public virtual int MaxSize { get { return maxSize; } set { if (value < minSize) throw new IndexOutOfRangeException ("MaxSize"); maxSize = value; } } public virtual int GrowSize { get { return growSize; } set { if (value < 1 || value > 10) throw new IndexOutOfRangeException ("GrowSize"); growSize = value; } } public virtual int ShrinkSize { get { return shrinkSize; } set { if (value < 1 || value > 10) throw new IndexOutOfRangeException ("GrowSize"); shrinkSize = value; } } public virtual int ConnectionCount { get { lock (sync) return connections.Count + freeConnections.Count; } } public virtual int FreeConnectionCount { get { lock (sync) return freeConnections.Count; } } public virtual bool HasFreeConnection { get { lock (sync) return freeConnections.Count > 0; } } public virtual IPooledDbConnection Request () { IPooledDbConnection conn = null; if (HasFreeConnection) { lock (sync) { conn = freeConnections.Dequeue (); connections.Add (conn); } } else { if (Grow ()) conn = Request (); else conn = null; } return conn; } public virtual void Release (IPooledDbConnection connection) { if (connection == null) return; lock (sync) { if (!freeConnections.Contains (connection)) return; if (connectionProvider.CheckConnection (connection, context.ConnectionSettings)) freeConnections.Enqueue (connection); connections.Remove (connection); } Shrink (); } public virtual bool Initialize () { if (isInitialized) return true; isInitialized = CreateNewConnections (minSize); if (!isInitialized) Cleanup (); return isInitialized; } protected virtual bool CreateNewConnections (int count) { for (int i=0; i // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql { public class FakeConnectionPool : IConnectionPool { protected IDbFactory factory; protected DatabaseConnectionContext context; protected IConnectionProvider connectionProvider; protected IPooledDbConnection connection; protected bool inUse = false; protected bool hasVersion; protected Version databaseVersion; protected bool hasErrors; protected string error; protected bool isInitialized; public FakeConnectionPool (IDbFactory factory, IConnectionProvider connectionProvider, DatabaseConnectionContext context) { if (factory == null) throw new ArgumentNullException ("factory"); if (connectionProvider == null) throw new ArgumentNullException ("connectionProvider"); if (context == null) throw new ArgumentNullException ("context"); this.factory = factory; this.connectionProvider = connectionProvider; this.context = context; } public virtual IDbFactory DbFactory { get { return factory; } } public virtual DatabaseConnectionContext ConnectionContext { get { return context; } } public virtual IConnectionProvider ConnectionProvider { get { return connectionProvider; } } public virtual bool IsInitialized { get { return isInitialized; } } public virtual bool HasErrors { get { return hasErrors; } } public virtual string Error { get { return error; } } public virtual bool HasVersion { get { return hasVersion; } } public virtual Version DatabaseVersion { get { return databaseVersion; } } public virtual int MinSize { get { return 1; } set { throw new NotSupportedException (); } } public virtual int MaxSize { get { return 1; } set { throw new NotSupportedException (); } } public virtual int GrowSize { get { throw new NotSupportedException (); } set { throw new NotSupportedException (); } } public virtual int ShrinkSize { get { throw new NotSupportedException (); } set { throw new NotSupportedException (); } } public virtual int ConnectionCount { get { return 1; } } public virtual int FreeConnectionCount { get { return (connection == null || (connection.IsOpen && !inUse)) ? 1 : 0; } } public virtual bool HasFreeConnection { get { return FreeConnectionCount == 1; } } public virtual IPooledDbConnection Request () { Initialize (); //this does nothing when already initialized, so it's safe to call every time if (HasFreeConnection) { inUse = true; return connection; } else { throw new InvalidOperationException ("No connection available."); } } public virtual void Release (IPooledDbConnection connection) { if (this.connection == connection && connection != null) inUse = false; } public virtual bool Initialize () { if (isInitialized) return true; connection = connectionProvider.CreateConnection (this, context.ConnectionSettings, out error); if (connection == null) { hasErrors = true; return false; } if (!hasVersion) { databaseVersion = connection.DatabaseVersion; hasVersion = true; } hasErrors = false; isInitialized = true; return true; } public virtual void Close () { if (connection != null) connection.Dispose (); hasVersion = false; hasErrors = false; error = null; isInitialized = false; } } }monodevelop-database-4.0.12/monodevelop-database.pc.in0000644000175000017500000000124211266446160023436 0ustar directhexdirecthexName: monodevelop-database Description: MonoDevelop.Database Add-in Version: 0.1 libdir=@prefix@/lib/monodevelop Requires: Libs: -r:${libdir}/AddIns/MonoDevelop.Database/MonoDevelop.Database.ConnectionManager.dll -r:${libdir}/AddIns/MonoDevelop.Database/MonoDevelop.Database.Components.dll -r:${libdir}/AddIns/MonoDevelop.Database/MonoDevelop.Database.ConnectionManager.dll -r:${libdir}/AddIns/MonoDevelop.Database/MonoDevelop.Database.Designer.dll -r:${libdir}/AddIns/MonoDevelop.Database/MonoDevelop.Database.Query.dll -r:${libdir}/AddIns/MonoDevelop.Database/MonoDevelop.Database.CodeGenerator.dll -r:${libdir}/AddIns/MonoDevelop.Database/MonoDevelop.Database.Sql.dll monodevelop-database-4.0.12/aclocal.m40000644000175000017500000010014611266446160020257 0ustar directhexdirecthex# generated automatically by aclocal 1.12.1 -*- Autoconf -*- # Copyright (C) 1996-2012 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) # only at the first occurence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have to call PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])# PKG_CHECK_MODULES # PKG_INSTALLDIR(DIRECTORY) # ------------------------- # Substitutes the variable pkgconfigdir as the location where a module # should install pkg-config .pc files. By default the directory is # $libdir/pkgconfig, but the default can be changed by passing # DIRECTORY. The user can override through the --with-pkgconfigdir # parameter. AC_DEFUN([PKG_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([pkgconfigdir], [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, [with_pkgconfigdir=]pkg_default) AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ]) dnl PKG_INSTALLDIR # PKG_NOARCH_INSTALLDIR(DIRECTORY) # ------------------------- # Substitutes the variable noarch_pkgconfigdir as the location where a # module should install arch-independent pkg-config .pc files. By # default the directory is $datadir/pkgconfig, but the default can be # changed by passing DIRECTORY. The user can override through the # --with-noarch-pkgconfigdir parameter. AC_DEFUN([PKG_NOARCH_INSTALLDIR], [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) m4_pushdef([pkg_description], [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) AC_ARG_WITH([noarch-pkgconfigdir], [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, [with_noarch_pkgconfigdir=]pkg_default) AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) m4_popdef([pkg_default]) m4_popdef([pkg_description]) ]) dnl PKG_NOARCH_INSTALLDIR # Copyright (C) 2002-2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.12' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.12.1], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.12.1])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 10 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 19 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated. For more info, see: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl dnl Support for Objective C++ was only introduced in Autoconf 2.65, dnl but we still cater to Autoconf 2.62. m4_ifdef([AC_PROG_OBJCXX], [AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering # Copyright (C) 1996-2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 7 # AM_MAINTAINER_MODE([DEFAULT-MODE]) # ---------------------------------- # Control maintainer-specific portions of Makefiles. # Default is to disable them, unless 'enable' is passed literally. # For symmetry, 'disable' may be passed as well. Anyway, the user # can override the default with the --enable/--disable switch. AC_DEFUN([AM_MAINTAINER_MODE], [m4_case(m4_default([$1], [disable]), [enable], [m4_define([am_maintainer_other], [disable])], [disable], [m4_define([am_maintainer_other], [enable])], [m4_define([am_maintainer_other], [enable]) m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode's default is 'disable' unless 'enable' is passed AC_ARG_ENABLE([maintainer-mode], [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], am_maintainer_other[ make rules and dependencies not useful (and sometimes confusing) to the casual installer])], [USE_MAINTAINER_MODE=$enableval], [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST([MAINT])dnl ] ) AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 7 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 6 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Copyright (C) 2001-2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 1 # AM_RUN_LOG(COMMAND) # ------------------- # Run COMMAND, save the exit status in ac_status, and log it. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) AC_DEFUN([AM_RUN_LOG], [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD (exit $ac_status); }]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2001-2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of '-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR monodevelop-database-4.0.12/AUTHORS0000644000175000017500000000004411266446160017463 0ustar directhexdirecthexBen Motmans monodevelop-database-4.0.12/contrib/0000755000175000017500000000000011266446160020055 5ustar directhexdirecthexmonodevelop-database-4.0.12/contrib/MySql/0000755000175000017500000000000011266446160021122 5ustar directhexdirecthexmonodevelop-database-4.0.12/configure.in0000644000175000017500000001176011266446160020733 0ustar directhexdirecthexAC_INIT([monodevelop-database], 4.0.12, [monodevelop-list@lists.ximian.com]) AC_PREREQ(2.53) AM_INIT_AUTOMAKE([1.9 tar-ustar]) AM_MAINTAINER_MODE ASSEMBLY_VERSION=4.0.12.0 AC_PATH_PROG(MONO, mono) AC_PATH_PROG(MCS, dmcs) if test "x$MONO" = "x" ; then AC_MSG_ERROR([Can't find "mono" in your PATH]) fi if test "x$MCS" = "x" ; then AC_MSG_ERROR([Can't find "dmcs" in your PATH]) fi AC_SUBST(PATH) AC_SUBST(LD_LIBRARY_PATH) MONO_REQUIRED_VERSION=2.6.1 PKG_CHECK_MODULES(UNMANAGED_DEPENDENCIES_MONO,mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false) if test "x$has_mono" = "xfalse"; then AC_MSG_ERROR([Please install mono version $MONO_REQUIRED_VERSION or later to install MonoDevelop. Please see http://www.mono-project.org/ to download latest mono sources or packages]) fi if test "x$has_mono" = "xtrue"; then if test `uname -s` = "Darwin"; then AC_PATH_PROG(RUNTIME, mono, no) AC_PATH_PROG(CSC, dmcs, no) LIB_PREFIX= LIB_SUFFIX=.dylib else AC_PATH_PROG(RUNTIME, mono, no) AC_PATH_PROG(CSC, dmcs, no) LIB_PREFIX=.so LIB_SUFFIX= fi fi # Find msgfmt and msgmerge for translations AC_PATH_PROG(MSGFMT, msgfmt, no) if test "x$MSGFMT" = "xno"; then AC_MSG_ERROR([You need to install msgfmt from intltool]) fi AC_PATH_PROG(MSGMERGE, msgmerge, no) if test "x$MSGMERGE" = "xno"; then AC_MSG_ERROR([You need to install msgmerge from intltool]) fi dnl hard dependencies MONOADDINS_REQUIRED_VERSION=0.4 MONODEVELOP_REQUIRED_VERSION=4.0.12 GTKSHARP_REQUIRED_VERSION=2.12.8 PKG_CHECK_MODULES(MONO_ADDINS, mono-addins >= $MONOADDINS_REQUIRED_VERSION) AC_SUBST(MONO_ADDINS_LIBS) PKG_CHECK_MODULES(MONO_ADDINS_SETUP, mono-addins-setup >= $MONOADDINS_REQUIRED_VERSION) AC_SUBST(MONO_ADDINS_SETUP_LIBS) PKG_CHECK_MODULES(MONO_ADDINS_GUI, mono-addins-gui >= $MONOADDINS_REQUIRED_VERSION) AC_SUBST(MONO_ADDINS_GUI_LIBS) PKG_CHECK_MODULES(GLIB_SHARP, glib-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION) AC_SUBST(GLIB_SHARP_LIBS) PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION) AC_SUBST(GTK_SHARP_LIBS) PKG_CHECK_MODULES(MONODEVELOP, monodevelop >= $MONODEVELOP_REQUIRED_VERSION) AC_SUBST(MONODEVELOP_LIBS) PKG_CHECK_MODULES(MONODEVELOP_CORE_ADDINS, monodevelop-core-addins >= $MONODEVELOP_REQUIRED_VERSION) AC_SUBST(MONODEVELOP_CORE_ADDINS_LIBS) gtksharp_prefix="`$PKG_CONFIG --variable=prefix gtk-sharp-2.0`" AC_SUBST(gtksharp_prefix) dnl ************************************************************* dnl *** The following hunk of script-fu is to detect the *** dnl *** available MonoDevelop.Database database providers... *** dnl ************************************************************* test_sqlite=$(gacutil -l | grep "Mono.Data.Sqlite, Version=2") test_sqlserver=$(gacutil -l | grep "System.Data, Version=2") test_postgres=$(gacutil -l | grep "Npgsql, Version=2") test_mysql=$(gacutil -l | grep "MySql.Data") if test "x$test_sqlite" != "x"; then ## mono 1.2.4 contains some bugs that prevents the sqlite addin from working properly MONO_REQUIRED_VERSION=1.2.5 PKG_CHECK_MODULES(UNMANAGED_DEPENDENCIES_MONO,mono >= $MONO_REQUIRED_VERSION, has_correct_mono=true, has_correct_mono=false) if test "x$has_correct_mono" = "xfalse"; then enable_sqlite="no (requires mono >= 1.2.5)" else enable_sqlite="yes" fi else enable_sqlite="no (missing Mono.Data.Sqlite, Version 2)" fi if test "x$test_sqlserver" != "x"; then enable_sqlserver="yes" else enable_sqlserver="no (missing System.Data, Version 2)" fi if test "x$test_postgres" != "x"; then enable_postgres="yes" else enable_postgres="no (missing Npgsql, Version 2)" fi if test "x$test_mysql" != "x"; then enable_mysql="yes" else enable_mysql="no (missing MySql.Data)" fi AM_CONDITIONAL(ENABLE_POSTGRES, [test "x$enable_postgres" = "xyes"]) AM_CONDITIONAL(ENABLE_MYSQL, [test "x$enable_mysql" = "xyes"]) AM_CONDITIONAL(ENABLE_SQLITE, [test "x$enable_sqlite" = "xyes"]) AM_CONDITIONAL(ENABLE_SQLSERVER, [test "x$enable_sqlserver" = "xyes"]) CSC_FLAGS="-debug -codepage:utf8" AC_SUBST(LIB_SUFFIX) AC_SUBST(LIB_PREFIX) AC_SUBST(ASSEMBLY_VERSION) AC_SUBST(CSC_FLAGS) MD_DIR='$(prefix)/lib/monodevelop' MD_ASSEMBLY_DIR="$MD_DIR/bin" MD_ADDIN_DIR="$MD_DIR/AddIns" AC_SUBST(MD_ASSEMBLY_DIR) AC_SUBST(MD_ADDIN_DIR) AC_SUBST(MD_DIR) AC_OUTPUT([ Makefile monodevelop-database.pc monodevelop-database.spec MonoDevelop.Database.Sql/Makefile MonoDevelop.Database.Sql.MySql/Makefile MonoDevelop.Database.Sql.Npgsql/Makefile MonoDevelop.Database.Sql.Sqlite/Makefile MonoDevelop.Database.Sql.SqlServer/Makefile MonoDevelop.Database.Components/Makefile MonoDevelop.Database.Query/Makefile MonoDevelop.Database.CodeGenerator/Makefile MonoDevelop.Database.Designer/Makefile MonoDevelop.Database.ConnectionManager/Makefile po/Makefile ]) echo "" echo "Configuration summary" echo "" echo " * Installation prefix = $prefix" echo " * C# compiler = $CSC" echo " * Providers:" echo " * PostgreSQL: $enable_postgres" echo " * MySQL: $enable_mysql" echo " * SQLite: $enable_sqlite" echo " * SQL Server: $enable_sqlserver" echo "" monodevelop-database-4.0.12/monodevelop-database.spec.in0000644000175000017500000000511011266446160023764 0ustar directhexdirecthex# # spec file for package monodevelop-database # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild %define db_packages mono-data-postgresql mono-data-sqlite Name: monodevelop-database Version: @VERSION@ Release: 1 License: GPLv2+ BuildRoot: %{_tmppath}/%{name}-%{version}-build AutoReqProv: on BuildArch: noarch Url: http://www.monodevelop.com Source0: %{name}-%{version}.tar.bz2 BuildRequires: %db_packages mono-devel monodevelop >= %{version} Requires: %db_packages BuildRequires: gtksourceview-sharp2 monodoc-core Summary: Monodevelop Database Addin Group: Development/Languages/Mono %if 0%{?fedora_version} %define env_options export MONO_SHARED_DIR=/tmp %endif %description Addin for MonoDevelop for an integrated database explorer and editor. %files -f %{name}.lang %defattr(-, root, root) %_prefix/share/pkgconfig/monodevelop-database.pc %_prefix/lib/monodevelop/AddIns/MonoDevelop.Database %prep %setup -q %build %{?env_options} ./configure --prefix=%_prefix make %install %{?env_options} make install DESTDIR=${RPM_BUILD_ROOT} mkdir -p $RPM_BUILD_ROOT%_prefix/share/pkgconfig mv $RPM_BUILD_ROOT%_prefix/lib/pkgconfig/*.pc $RPM_BUILD_ROOT%_prefix/share/pkgconfig %find_lang %{name} %clean rm -rf "$RPM_BUILD_ROOT" %if 0%{?fedora_version} || 0%{?rhel_version} # Allows overrides of __find_provides in fedora distros... (already set to zero on newer suse distros) %define _use_internal_dependency_generator 0 %endif %define __find_provides env sh -c 'filelist=($(grep -v "Mono.Data.Sqlite\\|MySql.Data")) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-provides && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-provides ; } | sort | uniq' %define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-requires && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-requires ; } | sort | uniq' %changelog monodevelop-database-4.0.12/Makefile.am0000644000175000017500000000220511266446160020450 0ustar directhexdirecthexSUBDIRS = \ MonoDevelop.Database.Sql \ MonoDevelop.Database.Components \ MonoDevelop.Database.Designer \ MonoDevelop.Database.Sql.MySql \ MonoDevelop.Database.Sql.Npgsql \ MonoDevelop.Database.Sql.Sqlite \ MonoDevelop.Database.Sql.SqlServer \ MonoDevelop.Database.Query \ MonoDevelop.Database.CodeGenerator \ MonoDevelop.Database.ConnectionManager \ po all: pkgconfig_in_files = monodevelop-database.pc.in pkgconfigdir= $(prefix)/lib/pkgconfig pkgconfig_DATA = $(pkgconfig_in_files:.pc.in=.pc) PACKAGES = mpacks: $(PACKAGES) test -z "packages" || mkdir -p packages mdtool setup p $(PACKAGES:%=%) -d:packages mdtool setup rb packages ### SYNCH BLOCK: any changes to this line should be kept in sync with the corresponding block in Makefile.am MD_PKG_CONFIG_PATH=$(gtksharp_prefix)/lib/pkgconfig/:/usr/lib/pkgconfig/:/usr/local/lib/pkgconfig/:/usr/share/pkgconfig/:/usr/local/share/pkgconfig/$(shell if test -d /usr/lib64; then echo ":/usr/lib64/pkgconfig/:/usr/local/lib64/pkgconfig/"; fi) ### END BLOCK # we can't use the variables that are conditionally defined EXTRA_DIST = $(pkgconfig_in_files) DISTCLEANFILES = $(pkgconfig_DATA) monodevelop-database-4.0.12/Makefile.include0000644000175000017500000000030611266446160021476 0ustar directhexdirecthexbuild_sources = $(addprefix $(srcdir)/, $(FILES)) $(GENERATED_FILES) build_resources = $(addprefix $(srcdir)/, $(RES)) build_test_sources = $(addprefix $(srcdir)/, $(TESTFILES)) $(GENERATED_FILES) monodevelop-database-4.0.12/MonoDevelop.Database.Query/0000755000175000017500000000000011266446160023453 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Query/Makefile.in0000644000175000017500000003776511266446160025542 0ustar directhexdirecthex# Makefile.in generated by automake 1.12.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2012 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.include ChangeLog subdir = MonoDevelop.Database.Query ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(assemblydir)" "$(DESTDIR)$(iconsdir)" DATA = $(assembly_DATA) $(icons_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ASSEMBLY_VERSION = @ASSEMBLY_VERSION@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CSC = @CSC@ CSC_FLAGS = @CSC_FLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ GLIB_SHARP_CFLAGS = @GLIB_SHARP_CFLAGS@ GLIB_SHARP_LIBS = @GLIB_SHARP_LIBS@ GTK_SHARP_CFLAGS = @GTK_SHARP_CFLAGS@ GTK_SHARP_LIBS = @GTK_SHARP_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD_LIBRARY_PATH = @LD_LIBRARY_PATH@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_PREFIX = @LIB_PREFIX@ LIB_SUFFIX = @LIB_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MCS = @MCS@ MD_ADDIN_DIR = @MD_ADDIN_DIR@ MD_ASSEMBLY_DIR = @MD_ASSEMBLY_DIR@ MD_DIR = @MD_DIR@ MKDIR_P = @MKDIR_P@ MONO = @MONO@ MONODEVELOP_CFLAGS = @MONODEVELOP_CFLAGS@ MONODEVELOP_CORE_ADDINS_CFLAGS = @MONODEVELOP_CORE_ADDINS_CFLAGS@ MONODEVELOP_CORE_ADDINS_LIBS = @MONODEVELOP_CORE_ADDINS_LIBS@ MONODEVELOP_LIBS = @MONODEVELOP_LIBS@ MONO_ADDINS_CFLAGS = @MONO_ADDINS_CFLAGS@ MONO_ADDINS_GUI_CFLAGS = @MONO_ADDINS_GUI_CFLAGS@ MONO_ADDINS_GUI_LIBS = @MONO_ADDINS_GUI_LIBS@ MONO_ADDINS_LIBS = @MONO_ADDINS_LIBS@ MONO_ADDINS_SETUP_CFLAGS = @MONO_ADDINS_SETUP_CFLAGS@ MONO_ADDINS_SETUP_LIBS = @MONO_ADDINS_SETUP_LIBS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH = @PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RUNTIME = @RUNTIME@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ UNMANAGED_DEPENDENCIES_MONO_CFLAGS = @UNMANAGED_DEPENDENCIES_MONO_CFLAGS@ UNMANAGED_DEPENDENCIES_MONO_LIBS = @UNMANAGED_DEPENDENCIES_MONO_LIBS@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gtksharp_prefix = @gtksharp_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.Query.dll REFS = \ $(GLIB_SHARP_LIBS) \ $(GTK_SHARP_LIBS) \ $(MONO_ADDINS_LIBS) \ $(MONODEVELOP_CORE_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Components.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:Mono.Posix \ -r:System \ -r:System.Data RES = \ gtk-gui/gui.stetic \ MonoDevelop.Database.Query.addin.xml FILES = \ AssemblyInfo.cs \ Commands/ToolCommands.cs \ gtk-gui/generated.cs \ ISqlQueryEditorView.cs \ QueryResultView.cs \ SqlQueryDisplayBinding.cs \ SqlQueryTextEditorExtension.cs \ SqlQueryView.cs DATA_FILES = \ icons/Icons.16x16.Database.Column.Key.png \ icons/Icons.16x16.Database.Column.png \ icons/Icons.16x16.Database.Connection.Error.png \ icons/Icons.16x16.Database.Connection.png \ icons/Icons.16x16.Database.Connection.Remove.png \ icons/Icons.16x16.Database.Constraints.png \ icons/Icons.16x16.Database.Database.Error.png \ icons/Icons.16x16.Database.Database.Ok.png \ icons/Icons.16x16.Database.Database.png \ icons/Icons.16x16.Database.Execute.png \ icons/Icons.16x16.Database.Function.png \ icons/Icons.16x16.Database.Parameter.png \ icons/Icons.16x16.Database.Procedure.Error.png \ icons/Icons.16x16.Database.Procedure.png \ icons/Icons.16x16.Database.Procedure.Source.png \ icons/Icons.16x16.Database.Relations.png \ icons/Icons.16x16.Database.Table.Error.png \ icons/Icons.16x16.Database.Table.png \ icons/Icons.16x16.Database.Tables.png \ icons/Icons.16x16.Database.User.png \ icons/Icons.16x16.Database.Users.png \ icons/Icons.16x16.Database.View.Error.png \ icons/Icons.16x16.Database.View.png \ icons/Icons.16x16.Database.View.Source.png \ icons/Icons.16x16.Database.Views.png DATA_FILE_BUILD = $(addprefix $(ADDIN_BUILD)/, $(DATA_FILES)) assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb iconsdir = $(MD_ADDIN_DIR)/MonoDevelop.Database/icons icons_DATA = $(DATA_FILE_BUILD) CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(DATA_FILE_BUILD) EXTRA_DIST = $(FILES) $(RES) $(DATA_FILES) build_sources = $(addprefix $(srcdir)/, $(FILES)) $(GENERATED_FILES) build_resources = $(addprefix $(srcdir)/, $(RES)) build_test_sources = $(addprefix $(srcdir)/, $(TESTFILES)) $(GENERATED_FILES) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.include $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu MonoDevelop.Database.Query/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu MonoDevelop.Database.Query/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_srcdir)/Makefile.include: $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-assemblyDATA: $(assembly_DATA) @$(NORMAL_INSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(assemblydir)'"; \ $(MKDIR_P) "$(DESTDIR)$(assemblydir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(assemblydir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(assemblydir)" || exit $$?; \ done uninstall-assemblyDATA: @$(NORMAL_UNINSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(assemblydir)'; $(am__uninstall_files_from_dir) install-iconsDATA: $(icons_DATA) @$(NORMAL_INSTALL) @list='$(icons_DATA)'; test -n "$(iconsdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(iconsdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(iconsdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(iconsdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(iconsdir)" || exit $$?; \ done uninstall-iconsDATA: @$(NORMAL_UNINSTALL) @list='$(icons_DATA)'; test -n "$(iconsdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(iconsdir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: ctags: CTAGS CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(assemblydir)" "$(DESTDIR)$(iconsdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-assemblyDATA install-iconsDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-assemblyDATA uninstall-iconsDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-assemblyDATA install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-iconsDATA \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am uninstall uninstall-am uninstall-assemblyDATA \ uninstall-iconsDATA all: $(ASSEMBLY) $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library $(DATA_FILE_BUILD): $(srcdir)$(subst $(ADDIN_BUILD),, $@) mkdir -p $(dir $@) cp $(srcdir)/$(subst $(ADDIN_BUILD),,$@) $@ # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: monodevelop-database-4.0.12/MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml0000644000175000017500000001067111266446160032316 0ustar directhexdirecthex monodevelop-database-4.0.12/MonoDevelop.Database.Query/SqlQueryTextEditorExtension.cs0000644000175000017500000000265411266446160031507 0ustar directhexdirecthex// // SqlQueryTextEditorExtension.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 Luciano N. Callero // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; using MonoDevelop.Ide.Gui.Content; using MonoDevelop.Components.Commands; using MonoDevelop.Ide.Gui; namespace MonoDevelop.Database.Query { public class SqlQueryTextEditorExtension:TextEditorExtension { } } monodevelop-database-4.0.12/MonoDevelop.Database.Query/gtk-gui/0000755000175000017500000000000011266446160025022 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Query/gtk-gui/generated.cs0000644000175000017500000000106211266446160027306 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace Stetic { internal class Gui { private static bool initialized; static internal void Initialize (Gtk.Widget iconRenderer) { if ((Stetic.Gui.initialized == false)) { Stetic.Gui.initialized = true; } } } internal class ActionGroups { public static Gtk.ActionGroup GetActionGroup (System.Type type) { return Stetic.ActionGroups.GetActionGroup (type.FullName); } public static Gtk.ActionGroup GetActionGroup (string name) { return null; } } } monodevelop-database-4.0.12/MonoDevelop.Database.Query/gtk-gui/gui.stetic0000644000175000017500000000024411266446160027023 0ustar directhexdirecthex 2.12 monodevelop-database-4.0.12/MonoDevelop.Database.Query/SqlQueryDisplayBinding.cs0000644000175000017500000000371111266446160030412 0ustar directhexdirecthex// // SqlQueryDisplayBinding.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 Luciano N. Callero // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; using MonoDevelop.Ide.Gui; using MonoDevelop.Ide.Codons; using MonoDevelop.Core; using MonoDevelop.Projects; namespace MonoDevelop.Database.Query { public class SqlQueryDisplayBinding : IViewDisplayBinding { public string Name { get { return GettextCatalog.GetString ("Query Editor"); } } public bool CanHandle (FilePath fileName, string mimeType, Project ownerProject) { return fileName.IsNotNull && fileName.HasExtension (".sql"); } public IViewContent CreateContent (FilePath fileName, string mimeType, Project ownerProject) { return new SqlQueryView (); } public bool CanHandleMimeType (string mimetype) { return mimetype == "text/x-sql"; } public bool CanUseAsDefault { get { return true; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Query/ISqlQueryEditorView.cs0000644000175000017500000000260311266446160027703 0ustar directhexdirecthex// // ISqlQueryEditorView.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 Luciano N. Callero // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; namespace MonoDevelop.Database.Query { public interface ISqlQueryEditorView { void RunQuery (); void StopQuery (); void ClearQuery (); bool IsRunning { get ; } } } monodevelop-database-4.0.12/MonoDevelop.Database.Query/Makefile.am0000644000175000017500000000472111266446160025513 0ustar directhexdirecthexADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.Query.dll REFS = \ $(GLIB_SHARP_LIBS) \ $(GTK_SHARP_LIBS) \ $(MONO_ADDINS_LIBS) \ $(MONODEVELOP_CORE_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Components.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:Mono.Posix \ -r:System \ -r:System.Data RES = \ gtk-gui/gui.stetic \ MonoDevelop.Database.Query.addin.xml FILES = \ AssemblyInfo.cs \ Commands/ToolCommands.cs \ gtk-gui/generated.cs \ ISqlQueryEditorView.cs \ QueryResultView.cs \ SqlQueryDisplayBinding.cs \ SqlQueryTextEditorExtension.cs \ SqlQueryView.cs DATA_FILES = \ icons/Icons.16x16.Database.Column.Key.png \ icons/Icons.16x16.Database.Column.png \ icons/Icons.16x16.Database.Connection.Error.png \ icons/Icons.16x16.Database.Connection.png \ icons/Icons.16x16.Database.Connection.Remove.png \ icons/Icons.16x16.Database.Constraints.png \ icons/Icons.16x16.Database.Database.Error.png \ icons/Icons.16x16.Database.Database.Ok.png \ icons/Icons.16x16.Database.Database.png \ icons/Icons.16x16.Database.Execute.png \ icons/Icons.16x16.Database.Function.png \ icons/Icons.16x16.Database.Parameter.png \ icons/Icons.16x16.Database.Procedure.Error.png \ icons/Icons.16x16.Database.Procedure.png \ icons/Icons.16x16.Database.Procedure.Source.png \ icons/Icons.16x16.Database.Relations.png \ icons/Icons.16x16.Database.Table.Error.png \ icons/Icons.16x16.Database.Table.png \ icons/Icons.16x16.Database.Tables.png \ icons/Icons.16x16.Database.User.png \ icons/Icons.16x16.Database.Users.png \ icons/Icons.16x16.Database.View.Error.png \ icons/Icons.16x16.Database.View.png \ icons/Icons.16x16.Database.View.Source.png \ icons/Icons.16x16.Database.Views.png DATA_FILE_BUILD = $(addprefix $(ADDIN_BUILD)/, $(DATA_FILES)) all: $(ASSEMBLY) $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library $(DATA_FILE_BUILD): $(srcdir)$(subst $(ADDIN_BUILD),, $@) mkdir -p $(dir $@) cp $(srcdir)/$(subst $(ADDIN_BUILD),,$@) $@ assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb iconsdir = $(MD_ADDIN_DIR)/MonoDevelop.Database/icons icons_DATA = $(DATA_FILE_BUILD) CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(DATA_FILE_BUILD) EXTRA_DIST = $(FILES) $(RES) $(DATA_FILES) include $(top_srcdir)/Makefile.include monodevelop-database-4.0.12/MonoDevelop.Database.Query/ChangeLog0000644000175000017500000002364511266446160025237 0ustar directhexdirecthex2010-04-30 Lluis Sanchez Gual * Makefile.am: Added missing files to EXTRA_DIST. 2010-03-22 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Query.addin.xml: Bumped MD version. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.Query.csproj: Flush. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.Query.csproj: Remove mono.addins.targets import. 2010-03-17 Lluis Sanchez Gual * SqlQueryView.cs: * QueryResultView.cs: * Commands/ToolCommands.cs: * MonoDevelop.Database.Query.csproj: * MonoDevelop.Database.Query.addin.xml: Merged MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui and MD.Components into MD.Ide. 2010-02-18 Lluis Sanchez Gual * Makefile.am: * MonoDevelop.Database.Query.csproj: * MonoDevelop.Database.Query.addin.xml: Moved icons from resources to standalone files. 2010-02-12 Lluis Sanchez Gual * gtk-gui/generated.cs: * MonoDevelop.Database.Query.csproj: Flush. 2010-02-03 Luciano N. Callero * MonoDevelop.Database.Query.csproj: - Flush changes. 2010-01-26 Michael Hutchinson * SqlQueryDisplayBinding.cs: Track DisplayBinding API. 2009-11-11 Luciano N. Callero * SqlQueryView.cs: Implement Syntax mode by provider. * MonoDevelop.Database.Query.csproj: Target runtime from 2.0 to 3.5. 2009-11-04 Luciano N. Callero * SqlQueryView.cs: Remove handlers * SqlQueryTextEditorExtension.cs: Remove handlers. * MonoDevelop.Database.Query.addin.xml: Remove handler 2009-11-04 Luciano N. Callero * SqlQueryTextEditorExtension.cs: Fix: QueryInitializer should inherit from CommandHandler. 2009-10-30 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Query.addin.xml: Bump MD version. 2009-10-29 Luciano N. Callero * SqlQueryView.cs: Fix tooltip messages. 2009-10-29 Luciano N. Callero * SqlQueryTextEditorExtension.cs: * MonoDevelop.Database.Query.addin.xml: Support F5 for execute a query. 2009-10-28 Luciano N. Callero * SqlQueryView.cs: Set the Clear Button Tooltip. 2009-10-18 Michael Hutchinson * MonoDevelop.Database.Query.csproj: Fix the build & flush format changes. 2009-10-07 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Query.addin.xml: Bump MD version. 2009-08-26 Lluis Sanchez Gual * gtk-gui/gui.stetic: * MonoDevelop.Database.Query.csproj: We now depend on gtk# 2.12.8, Mono 2.4, and Mono.Addins 0.4. 2009-07-31 Lluis Sanchez Gual * MonoDevelop.Database.Query.csproj: Disabled 'require specific version' flags. 2009-05-27 Luciano N. Callero * icons/Icons.16x16.Database.Functions.png: New Icon for Functions. * Makefile.am: Add new image embeed as a resource. * MonoDevelop.Database.Query.addin.xml: New stock icon. * MonoDevelop.Database.Query.csproj: New png icon for the project. 2009-05-19 Lluis Sanchez Gual * MonoDevelop.Database.Query.csproj: Flush. 2009-05-18 Luciano N. Callero * SqlQueryView.cs: Implement SourceEditorView. Sql History Tab. Implemented an ISqlQueryEditorView. Execute selected text (if exists) or all the text. Fix bug that make the query read only after execute. * SqlQueryTextEditorExtension.cs: Implement a TextEditorExtension to handle Ctrl + Enter (Execute Script). * ISqlQueryEditorView.cs: Interfase implementated by a Query Editor View. * SqlQueryDisplayBinding.cs: Implement a Display Binding to open Sql files with SqlQueryView. 2009-04-17 Michael Hutchinson * Makefile.am: Fix builddir paths. 2009-04-15 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Query.addin.xml: Bump MD version. 2009-02-20 Lluis Sanchez Gual * MonoDevelop.Database.Query.csproj: Updated references. 2009/02/06 Lluis Sanchez Gual * MonoDevelop.Database.Query.mdp: * MonoDevelop.Database.Query.csproj: Migrated to MSBuild file format. 2009/02/03 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Query.addin.xml: Bump MD version. 2009/02/03 Lluis Sanchez Gual * gtk-gui/generated.cs: Flush. 2009-01-26 Michael Hutchinson * MonoDevelop.Database.Query.mdp: Flush project format changes. 2008-12-09 Lluis Sanchez Gual * MonoDevelop.Database.Query.mdp: Don't require a specific version of Mono.Addins. 2008-12-02 Michael Hutchinson * Makefile.am: * AssemblyInfo.cs: * MonoDevelop.Database.Query.mdp: Add AssemblyInfo.cs files that are autogenerated from the addin manifests. 2008-11-06 Michael Hutchinson * Makefile.am: Fix build dependencies. 2008-11-05 Lluis Sanchez Gual * MonoDevelop.Database.Query.addin.xml: Bump MD version. 2008-09-17 Lluis Sanchez Gual * MonoDevelop.Database.Query.mdp: Updated projects. 2008-08-18 Lluis Sanchez Gual * MonoDevelop.Database.Query.mdp: Fix reference to Mono.TextEditor. The incorrect add-in version number causes problems in the makefile synchronization. 2008-06-04 Lluis Sanchez Gual * MonoDevelop.Database.Query.addin.xml: Bump MD version. 2008-05-21 Lluis Sanchez Gual * Makefile.am, MonoDevelop.Database.Query.mdp: Fix projects. 2008-05-21 Lluis Sanchez Gual 2008-03-10 Lluis Sanchez Gual * SqlQueryView.cs: Track changes in the MessageService class. 2008-01-29 Ben Motmans * SqlQueryView.cs: show the duration of the query in the status output 2008-01-29 Ben Motmans * gtk-gui, gtk-gui/generated.cs, gtk-gui/gui.stetic: auto generated code * MonoDevelop.Database.Query.mdp: depend on Gtk# 2.8 instead of 2.10 2008-01-28 Ben Motmans * SqlQueryView.cs: removed reference to GettextCatalog and use AddinCatalog instead 2008-01-25 Lluis Sanchez Gual * MonoDevelop.Database.Query.addin.xml: Update MD version. 2008-01-22 Lluis Sanchez Gual * MonoDevelop.Database.Query.addin.xml: Updated add-in category and description. 2007-12-14 Lluis Sanchez Gual * MonoDevelop.Database.Query.mdp: Updated project file. The order of extended properties won't change anymore. 2007-12-12 Lluis Sanchez Gual * MonoDevelop.Database.Query.addin.xml: Bump add-in versions. 2007-12-04 Lluis Sanchez Gual * MonoDevelop.Database.Query.mdp: Updated project files. 2007-12-04 Lluis Sanchez Gual * SqlQueryView.cs, Makefile.am, MonoDevelop.Database.Query.addin.xml, MonoDevelop.Database.Query.mdp: Directory reorganization. 2007-10-29 Lluis Sanchez Gual * MonoDevelop.Database.Query.addin.xml: Bump MD version. 2007-10-25 Lluis Sanchez Gual * QueryResultView.cs, SqlQueryView.cs: Destroy the view widget when the view is disposed. 2007-10-23 Lluis Sanchez Gual * MonoDevelop.Database.Query.mdp: Project file names updated by change in MD path functions. 2007-10-16 Lluis Sanchez Gual * MonoDevelop.Database.Query.mdp: Fix required GTK# version. 2007-09-26 Michael Hutchinson * Makefile.am: Don't deploy .addin.xml file. * MonoDevelop.Database.Query.mdp: Don't unnecessarily local-copy project references. Don't sync EXTRA_DIST with deploy files. Add Makefile.am to file list. 2007-09-21 Lluis Sanchez Gual * MonoDevelop.Database.Query.addin.xml: Bump MD version. 2007-09-19 Ben Motmans * SqlQueryView.cs: small bugfixes 2007-09-16 Ben Motmans * Makefile.am: link to the correct Mono.Addins dll 2007-08-29 Ben Motmans * MonoDevelop.Database.Query.addin.xml: use updated ExtensionNodeSet 2007-08-28 Ben Motmans * Makefile.am, MonoDevelop.Database.Query.mdp: use project references instead of assembly references 2007-08-28 Ben Motmans * Makefile.am: updated makefile * MonoDevelop.Database.Query.addin.xml: updated addin paths 2007-08-03 Ben Motmans * SqlQueryView.cs: make use of the DatabaseConnectionContextComboBox in the toolbar instead of a menu toolitem 2007-08-01 Ben Motmans * SqlQueryView.cs: Use correct strings when showing results and don't allow the execute button to be clicked when no statement is entered 2007-07-25 Ben Motmans * SqlQueryView.cs: Show query results in the same view using a VPaned 2007-07-15 Ben Motmans * Commands/ToolCommands.cs, MonoDevelop.Database.Query.addin.xml: moved generator commands to GlueGenerator project 2007-07-14 Ben Motmans * SqlQueryView.cs: use MenuToolButton to display a list of stored connections + improved handling of query cancelling * QueryService.cs: small changes due to Mono.Data.Sql API updates 2007-07-10 Ben Motmans * DataGrid/*: moved DataGrid control to Components project * QueryService.cs: helper service for easy database access * SqlQueryView.cs: View to execute SQL queries 2007-07-05 Ben Motmans * DataGrid/*: new DataGrid implementation based on Gtk.TreeView, support for record navigation, data visualizers and different column types * QueryResultView.cs: View to visualize the result of a query, based on the new DataGrid monodevelop-database-4.0.12/MonoDevelop.Database.Query/SqlQueryView.cs0000644000175000017500000002750111266446160026427 0ustar directhexdirecthex// // Authors: // Christian Hergert // Daniel Morgan // Ben Motmans // // Copyright (C) 2005 Christian Hergert // Copyright (C) 2005 Daniel Morgan // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.IO; using System.Data; using System.Threading; using System.Collections.Generic; using Mono.Addins; using MonoDevelop.Database.Sql; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Components; using MonoDevelop.Ide.Gui; using MonoDevelop.Components.Commands; using MonoDevelop.Database.Components; using MonoDevelop.SourceEditor; namespace MonoDevelop.Database.Query { public class SqlQueryView : SourceEditorView, ISqlQueryEditorView { private VBox vbox; private ToolButton buttonExecute; private ToolButton buttonStop; private ToolButton buttonClear; private DatabaseConnectionContextComboBox comboConnections; private Notebook notebook; private VPaned pane; private TextView status; SqlEditorWidget history; private object currentQueryState; private List stoppedQueries; private DateTime queryStart; private DatabaseConnectionContext selectedConnection; public SqlQueryView () { stoppedQueries = new List (); MonoDevelop.SourceEditor.Extension.TemplateExtensionNodeLoader.Init (); this.UntitledName = string.Concat (AddinCatalog.GetString ("Untitled Sql Script"), ".sql"); vbox = new VBox (false, 6); vbox.BorderWidth = 6; Toolbar toolbar = new Toolbar (); toolbar.ToolbarStyle = ToolbarStyle.BothHoriz; buttonExecute = new ToolButton (ImageService.GetImage ("md-db-execute", IconSize.SmallToolbar), AddinCatalog.GetString ("_Execute")); buttonExecute.Label = AddinCatalog.GetString ("Execute"); buttonExecute.Sensitive = false; buttonExecute.TooltipMarkup = AddinCatalog.GetString ("Execute Query"); buttonExecute.IsImportant = true; buttonExecute.Clicked += new EventHandler (ExecuteClicked); buttonStop = new ToolButton ("gtk-stop"); buttonStop.TooltipText = AddinCatalog.GetString ("Stop Query Execution"); buttonStop.Sensitive = false; buttonStop.Clicked += new EventHandler (StopClicked); buttonClear = new ToolButton (ImageService.GetImage ("gtk-clear", IconSize.Button), AddinCatalog.GetString ("Clear Results")); buttonClear.TooltipText = AddinCatalog.GetString ("Clear Results"); buttonClear.Clicked += new EventHandler (ClearClicked); comboConnections = new DatabaseConnectionContextComboBox (); selectedConnection = comboConnections.DatabaseConnection; comboConnections.Changed += new EventHandler (ConnectionChanged); ToolItem comboItem = new ToolItem (); comboItem.Child = comboConnections; toolbar.Add (buttonExecute); toolbar.Add (buttonStop); toolbar.Add (buttonClear); toolbar.Add (new SeparatorToolItem ()); toolbar.Add (comboItem); pane = new VPaned (); // Sql History Window ScrolledWindow windowHistory = new ScrolledWindow (); history = new SqlEditorWidget (); history.Editable = false; windowHistory.AddWithViewport (history); // Status of the Last Query ScrolledWindow windowStatus = new ScrolledWindow (); status = new TextView (); windowStatus.Add (status); notebook = new Notebook (); notebook.AppendPage (windowStatus, new Label (AddinCatalog.GetString ("Status"))); notebook.AppendPage (windowHistory, new Label (AddinCatalog.GetString ("Query History"))); pane.Pack2 (notebook, true, true); vbox.PackStart (toolbar, false, true, 0); vbox.PackStart (pane, true, true, 0); this.Document.TextReplaced += SqlChanged; vbox.ShowAll (); Document.DocumentUpdated += delegate (object sender, EventArgs args) { // Default mime type or a provider defined. if (selectedConnection == null) Document.MimeType = "text/x-sql"; else Document.MimeType = GetMimeType (); }; notebook.Hide (); } string GetMimeType () { if (!selectedConnection.ConnectionPool.IsInitialized) selectedConnection.ConnectionPool.Initialize (); return selectedConnection.SchemaProvider.GetMimeType (); } #region ISqlQueryEditorView implementation [CommandHandler (MonoDevelop.Debugger.DebugCommands.Debug)] public void RunQuery () { ExecuteClicked (new object (), new EventArgs ()); } [CommandUpdateHandler (MonoDevelop.Debugger.DebugCommands.Debug)] protected void UpdateQueryCommand (CommandInfo info) { info.Icon = "md-db-execute"; info.Text ="Execute _Query"; } public void StopQuery () { StopClicked (new object (), new EventArgs ()); } public bool IsRunning { get { if (currentQueryState == null) return false; else return true; } } public void ClearQuery () { ClearClicked (new object (), new EventArgs ()); } #endregion public string QueryText { get { if (this.SelectedText != string.Empty) return this.SelectedText; else return this.Text; } set { this.Text = value; } } public DatabaseConnectionContext SelectedConnectionContext { get { return selectedConnection; } set { if (selectedConnection != value) { selectedConnection = value; buttonExecute.Sensitive = value != null; comboConnections.DatabaseConnection = value; } } } public override void Dispose () { Control.Destroy (); } internal void CreateQueryWidget (Widget control) { if (!(control is VBox)) return; ((VBox)control).PackEnd (vbox, true, true, 0); } public override Widget Control { get { if (vbox.Parent == null) CreateQueryWidget (base.Control); return base.Control; } } public void ExecuteQuery () { if (selectedConnection == null || QueryText.Length < 0) { SetQueryState (false, "No connection selected."); return; } QueryService.EnsureConnection (selectedConnection, new DatabaseConnectionContextCallback (ExecuteQueryCallback), null); } private void ExecuteQueryCallback (DatabaseConnectionContext context, bool connected, object state) { if (!connected) { MessageService.ShowError ( AddinCatalog.GetString ("Unable to connect to database '{0}'"), context.ConnectionSettings.Name); return; } currentQueryState = new object (); IPooledDbConnection conn = context.ConnectionPool.Request (); IDbCommand command = conn.CreateCommand (QueryText); if (history.Text.EndsWith (Environment.NewLine) || history.Text == string.Empty) history.Text = string.Concat (history.Text, QueryText); else history.Text = string.Concat (history.Text, Environment.NewLine, "------------------------", QueryText); queryStart = DateTime.Now; conn.ExecuteSetAsync (command, new ExecuteCallback (ExecuteQueryThreaded), currentQueryState); } private void ExecuteQueryThreaded (IPooledDbConnection connection, DataSet result, object state) { connection.Release (); TimeSpan duration = DateTime.Now.Subtract (queryStart); DispatchService.GuiDispatch (delegate () { notebook.ShowAll (); string msg = String.Concat ( AddinCatalog.GetPluralString ("Query executed ({0} result table)", "Query executed ({0} result tables)", result.Tables.Count), Environment.NewLine, AddinCatalog.GetString ("Query duration: {0}", duration.ToString ()) ); SetQueryState (false, String.Format (msg, result.Tables.Count)); }); if (stoppedQueries.Contains (state)) { stoppedQueries.Remove (state); return; } if (result != null) { foreach (DataTable table in result.Tables) { DispatchService.GuiDispatch (delegate () { MonoDevelop.Database.Components.DataGrid grid = new MonoDevelop.Database.Components.DataGrid (); grid.DataSource = table; grid.DataBind (); string msg = String.Concat (Environment.NewLine, AddinCatalog.GetString ("Table"), ": ",table.TableName, Environment.NewLine, "\t", AddinCatalog.GetString ("Affected Rows"), ": ", table.Rows.Count); status.Buffer.Text += msg; TabLabel label = new TabLabel (new Label (table.TableName), ImageService.GetImage ("md-db-table", IconSize.Menu)); label.CloseClicked += new EventHandler (OnResultTabClose); notebook.AppendPage (grid, label); notebook.ShowAll (); this.Document.ReadOnly = false; notebook.Page = notebook.NPages -1; }); } } if (result == null || result.Tables.Count == 0) { DispatchService.GuiDispatch (delegate () { status.Buffer.Text += AddinCatalog.GetString ("No Results"); this.Document.ReadOnly = false; }); } } private void OnResultTabClose (object sender, EventArgs args) { Widget tabLabel = (Widget)sender; foreach (Widget child in notebook.Children) { if (notebook.GetTabLabel (child) == tabLabel) { notebook.Remove (child); break; } } } private void ExecuteClicked (object sender, EventArgs e) { SetQueryState (true, AddinCatalog.GetString ("Executing query")); ExecuteQuery (); } private void ClearClicked (object sender, EventArgs e) { while (notebook.NPages > 2) notebook.RemovePage (2); status.Buffer.Text = String.Empty; } private void StopClicked (object sender, EventArgs e) { SetQueryState (false, AddinCatalog.GetString ("Query execute cancelled")); //since we can't abort a threadpool task, each task is assigned a unique state //when stop is pressed, the state is added to the list of results that need //to be discarded when they get in if (!stoppedQueries.Contains (currentQueryState)) stoppedQueries.Add (currentQueryState); } private void ConnectionChanged (object sender, EventArgs args) { selectedConnection = comboConnections.DatabaseConnection; Document.MimeType = GetMimeType (); buttonExecute.Sensitive = QueryText.Length > 0; } private void SqlChanged (object sender, Mono.TextEditor.DocumentChangeEventArgs args) { buttonExecute.Sensitive = QueryText.Length > 0; } private void SetQueryState (bool exec, string msg) { buttonExecute.Sensitive = !exec && QueryText.Length > 0; buttonStop.Sensitive = exec; buttonClear.Sensitive = !exec; this.Document.ReadOnly = !exec; notebook.Show (); status.Buffer.Text = msg + Environment.NewLine; } } internal class ConnectionContextMenuItem : RadioMenuItem { private DatabaseConnectionContext context; public ConnectionContextMenuItem (DatabaseConnectionContext context) : base (context.ConnectionSettings.Name) { this.context = context; } public DatabaseConnectionContext ConnectionContext { get { return context; } } public void Update () { (Child as Label).Text = context.ConnectionSettings.Name; } } } monodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/0000755000175000017500000000000011266446160024566 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Column.Key.png0000644000175000017500000000070711266446160032625 0ustar directhexdirecthexPNG  IHDRagAMA7tEXtSoftwareAdobe ImageReadyqe<YIDAT8ݓ=KBaAP -- 5X'&Ajj({ɏ25IJ?4R/xJ{S̓A#;R IENDB`monodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Function.png0000644000175000017500000000162511266446160032426 0ustar directhexdirecthexPNG  IHDRasRGBbKGD pHYs  tIME 0jY;IDAT8]Kh\ew朹dƙI\1ifz"MK,%M*N*(pDHA""jD V Ŵ46ImlL313dng\Bg}yB `wS%e[bKIőyX2W& ͡7؞%#eKFVMŲPu\ n^!>Cէ4 <`g$X9mpm;PyrUțT Ut8u ;@?$ESRJ'&HME  c*_w&Ό_<d,܏G(U%%[c{o*ײ^b)XJŷSTl Hzm,_ﺬp<x"EhpZw#W/}+us- QL%@8'N ( /?|>\GdOc25+(uṷ7:&֏kéZ|0m{:5~+#:nnD \)H&jXNܧ`/^`~z X_ԙH@ѧY^SĒ.ق&D:v=FWaVS NhF/T7`̯s'roi.IN: Ԓw.Nj;cqR[|E|Yw/.{˖)o_T;DCa?ѠHC5^|^ &|:d Hǹ0vce\PڍF^ p = \{zn&?IENDB`monodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.View.Error.png0000644000175000017500000000143111266446160032636 0ustar directhexdirecthexPNG  IHDRagAMA7tEXtSoftwareAdobe ImageReadyqe<IDATKe? yi 1+ZIH7 "(!* Emm#\D iэpAV&!RVV86sLɅ#K؄ _.N侘|ms{tC)14LH.{ۋ>5{/rYAib`=vVS"eնizu[{s^?y׳-g Dlb BDPA6[P ((AP"%Bi_^ݙ:Z4|^D㻏N3',_fGf}'rs(3Ǐl'(sw|i|0"6\ښ)kZeMYk5Kmdw+ROIENDB`monodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Tables.png0000644000175000017500000000114411266446160032047 0ustar directhexdirecthexPNG  IHDRagAMA7tEXtSoftwareAdobe ImageReadyqe<IDAT8˥AKQo3:K A QH _V "\ E"AAm)h03N_#9y̌)}3Ĵ_U' Ay ~^w f'maubKQxi}@ .'4e  9WwDc:{mZu7Z, YVJ' DQ .ˍ/dDQL;ۘ_6Q]w 5G7;LEUoٗG U꾁@@+Kx/tk\fr4wfZAH L!{M3);ps_:Jd3Q Tv8v6͑.j I3qY݃*kLfup蛀97v m":hFLM49 ҈by`9LeŻ@[MU&b>"m"fyPP% W?CG|IENDB`monodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Parameter.png0000644000175000017500000000060511266446160032556 0ustar directhexdirecthexPNG  IHDRagAMA7tEXtSoftwareAdobe ImageReadyqe<IDAT8c?%a`l :{{z,b0ͯ?x/~~ ${B+ܧ`!^+?HNVZED~p~S/!$'=\߁r(6e _c7@~\3Fwf-c\馗g>t 7#B?.I#I{O}t$4w\0PL"dpX][kң{+E_ 2-o)?9)I GyiԭIENDB`././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Procedure.Error.pngmonodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Procedure.Error.pn0000644000175000017500000000153511266446160033512 0ustar directhexdirecthexPNG  IHDRagAMA7tEXtSoftwareAdobe ImageReadyqe<IDAT8MMh\U9L&әIfWmm:-VD̢҅+;DŅ ;s\8XA,MERk`$=sϽ.l \yph`y'^@  ԀO'{&_=Sdw::lwY`f7P%uGB)&TBs81Z0P9f>3{( вFփ%&G3`0Mj:!t` hQt{}R>mhb`4h0 1֚!_.T)4B XցjBfl #vz7H9c(U)&Ho|aӗqq2X<'}R7tjtR _- _P~E~ElڛӲ8x F+PRUJCg3ԣ#~ޫff Of)Ysl+êNvoq= d/}00N{^{gĭ j8!GNLao$SǓ_.pQto\xj7M\0_ɩs,ވ.x{3S>79WkE,wXoig^F8@e =0J!#=ټmIU.\)3DZ(xwhqVyEd?P1mFLs뙛Mk ޙI(?|qW 1"5ΒLE|W>IDPyi} %"P@*} ,l7MnDG O:uK/ $ n&XxsrjWD„h:qU^\]͜kIq Ek5GHZ~̌N?kBP~eCXq͊k s@qÆm)7V1Äi s}K "BwߕUW-LrVOB*0xڤW#n~@Ȱv7W(]_/$~}zy羳ÆXe&N⺤ +Y-5/OM٣x/&;vPɕR׊L |4޼5+=jBJdt%IENDB`././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Procedure.Source.pngmonodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Procedure.Source.p0000644000175000017500000000153311266446160033501 0ustar directhexdirecthexPNG  IHDRagAMA7tEXtSoftwareAdobe ImageReadyqe<IDATMKh\U{<3LRj"[[lEP,U U7W D(BPN"vbV(ebv4y?38HIAUa |nuxȽ~zJf<H>|Ȧ`<(UeBZN~-mڕCP{(alD\WvcUƄZyGowu(8RTu iڮwrD~*I> Kɤbc^'.a ͕+3 0 LD,l:I>⏿7rp{"VIENDB`monodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Users.png0000644000175000017500000000136111266446160031737 0ustar directhexdirecthexPNG  IHDRagAMA7tEXtSoftwareAdobe ImageReadyqe<IDAT8ˍMLqpЖ:ud֋9X@BLɡ"d[?Z)R m{XkC ݚ9k2<<߾={~Qv{X-8&P{K+D d{0IT~ |꿋#-7p:3I bg7SB U:w(Άj$hOZ(NDoWWu .5:<9l2y RԺ %b&O8Dmd0u un%t%=Q"k{ݒ {u3pv JŠߡ4-aJ5髣hO>6@ bjyߗ@,G#ZA30AZ^>2[FOb8] 0 2(VYV `,|+}mzxHp5 g_~UW=yQh7<% 03B>o {/DJEyvQU!VTDdR9}rEi+:܂VmT j, xo>sLX+*Y~jr?UrF b'x1j\d%mv4c-NSIg"lZR%K``.2o6Vkԫd|v{$3iϋzB#YU7T-mY)H|{|$4 Uk#+dCܠsI-?-H*O7^`2@vu>%8jE<t2O,"tD֋bsRR#Cpfߥ)ԟa2X IENDB`monodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Table.Error.png0000644000175000017500000000125711266446160032761 0ustar directhexdirecthexPNG  IHDRagAMA7tEXtSoftwareAdobe ImageReadyqe<AIDAT8˥KHaRNPg(nD-E[l-&ZDZ+Zy4 $Ub}紘rhQtw9QU'|_ϩrҪlZbŊLt/DTk}N_:jm+{#c Ԛڙ.f>8Wݿ% )zF pth,Gko)%ZՁ>b +*7y.}Op\5]B&0ByQ&A\Ashmp!MljՑi#رZ#)@`]3K꽧S|'']En1(#*{SG3;1Ј.bc#61lIAKD"$X$ TDyUIޥwO69DBכY}o*>'o{t:& ﱋoGgpfS=3Og~jUiִe[ǫ;kҏxOT$4ls1 w}؝>``ʨ2*c*u˽=v̝* D)ke{Oy,0CB0(4;.ݓ3*J 4 PC%# 0C/$4 I2O!E6k3tGBT%`YCam)6Ӱl0C/щ*ER4\g ˲ZW7{谆$$|ṵu/ٮ+Jt(ν{0 ݤi.qΏ=D%O;t,ӭh}G <n7EQtPTh4^b<"@ J=/ˢ1c\H&+VݒB@gB"g&c^,p:jZ" 64 Lt%$I@ 0ujs {fNA-)yR`Vd̄/1vO/} }E63HLtk~}^0} ':L`U43#:V._Z^$%Gȶ!S=p355̞ [:B ICm'+5]~ f-OfG̎>促 >Х +?58]];> ,ƠFU+*AF SZ+΢)b,HAURk|q=\ίOfGE* S)<Ⱥ]v"@N3ӑy*B ADDB)tM#&C WUQYTPdHDtz Q I7?R BNrWG@avlnR~s6lȥ/1Yf{oKi)w~{a)\4m^{})֦S}템@wxa\hs:ayBnm:Ofu걱ɒՕ0{׍jvw}yI Ldelu?{;,EIENDB`././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Connection.Remove.pngmonodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Connection.Remove.0000644000175000017500000000123411266446160033463 0ustar directhexdirecthexPNG  IHDRagAMA7tEXtSoftwareAdobe ImageReadyqe<.IDAT8˥SMhAƆ`⥡ (rhKOCn=TՓ' M)!zŴjjjlvgƙI7-5cg7Oa>AX|8M۶5f)\:H`ffBPZ׻aq(U0?JD~!S@D Yչb^oW N@v%et$5z^TVfBЗ8-ه*̄Dn'2]V UA%$"3i^ bGt_\G65N;&9=KOj%idF7sп-­ЍR?pg@LAUVTȷ.ހoG#6*x^(@ ߑrvW;{BJJfC|hq$ߚĹT QUVPVnc&Irn2zaZ'lW}Q`]m(q2GM B w<bIENDB`monodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.User.png0000644000175000017500000000134511266446160031556 0ustar directhexdirecthexPNG  IHDRagAMA7tEXtSoftwareAdobe ImageReadyqe<wIDAT8˥mHQ *ֶVj)_OХ9]m*Y떩e-h-QJiLF2LJE8\9r~s)k­PiP.I$"EwDtR][)t$ҐB 4BtTPMjq1s M*nFj 4#/8A>PSPΞ S}|뺆y=9{sܔ:`;3evq/# ;us fEf q<^ք(ss7(`%|< ǗiXD%/X`a6.05 V);nǁ dN>*^?aW+jza)Zq\M9=Y[ ZR (mDV2’Jb 26TD]HCpލ C<^28;+Cu f5 7n:eF`Q( >%C%s2٥hid3@ A+YaU,Z1<@UZ%ձc_9]f'ɳ;fMjqkKENݯ_4K'S5 XcZ*JJ#~0[@jӲ^~1ra4>HjhQ| f~ӻJqǁni?U?amU՗1rƿBza`p0{Ig61 }k80>3m:s}۶M#Z<^4=D.M5f٩ Vم>oWko=?CBnnFv~a~fԁWIENDB`monodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Database.png0000644000175000017500000000060611266446160032343 0ustar directhexdirecthexPNG  IHDR7gAMA7tEXtSoftwareAdobe ImageReadyqe<IDATϊaG4&& O8 I͆sR( Qd,Y† jĔf<{\@vWν+zZwfyy #_|;xK*I$I!E, 78nC߭Y9%: J4Mhi!(3hPbl@aXuR̠A-͆. C3?١M+d-tР}mゕIl9؆)zT;3C'QӃtGIENDB`monodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Table.png0000644000175000017500000000106611266446160031667 0ustar directhexdirecthexPNG  IHDRagAMA7tEXtSoftwareAdobe ImageReadyqe<IDAT8˥S+DQ,4bAYXJ,(JX(d"E)X(3o{odANwsդ38I8c\2!\%ioqp&\όTm!@/\f\RfFY,nQjK3 ! rgz)EZbُ8L/U>(puMIENDB`monodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Column.png0000644000175000017500000000023111266446160032066 0ustar directhexdirecthexPNG  IHDR7gAMA7tEXtSoftwareAdobe ImageReadyqe<+IDAT(cπ2A!P<DA#_A\+v*IENDB`monodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Connection.png0000644000175000017500000000102211266446160032727 0ustar directhexdirecthexPNG  IHDRagAMA7tEXtSoftwareAdobe ImageReadyqe<IDAT8˥?O@_TXFCNJH~&|?;to@46脋A |+%%{]cBHFlۦyg&V9![]O# l۞Gz:=sHͪl6N鷁eY$rL/@ fDBA E|<GH1JALtPD`ݶ2Ni^ ]P= iBMBZX<kDB n% DǭF)$ ?q) ܟ]Ղ~lo`L1DjoF\j K5)Z[Y;VQx|LTi?5/ol¨}aIENDB`monodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Constraints.png0000644000175000017500000000114411266446160033144 0ustar directhexdirecthexPNG  IHDRagAMA7tEXtSoftwareAdobe ImageReadyqe<IDAT8ˍKOQMYpKBр  W bRhH"4 %RR.Zi;s m'y73yrΔ(ɗéNEw$aՇT 9:$Ih^U8?A80?OZ~ԁlN2#71ɭ2Y$#@{ve+﯄,Mx 4ߡ;/ @buP=|FҲb3{!˭8\OǤ3}W9Mp*-LvԆ=h=8GFyGڞb¼P޴TxJT2A렇9sOnDZk)W9JZB"c@kw6m~RA\ve v[lWएп; bb#YX3Ԑ~~!yC,A uBvNq,fX}ۦxQ3/׼*ݨD̆kIENDB`monodevelop-database-4.0.12/MonoDevelop.Database.Query/icons/Icons.16x16.Database.Database.Ok.png0000644000175000017500000000127211266446160032713 0ustar directhexdirecthexPNG  IHDRagAMA7tEXtSoftwareAdobe ImageReadyqe<LIDAT8˥SkA}$$$U!$$ĂiIA z rѓ ^ // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using MonoDevelop.Database.Sql; using MonoDevelop.Ide; using MonoDevelop.Ide.Gui; using MonoDevelop.Ide.Gui.Pads; using MonoDevelop.Components.Commands; using MonoDevelop.Core; namespace MonoDevelop.Database.Query { public enum ToolCommands { Query } public class QueryHandler : CommandHandler { protected override void Update (CommandInfo info) { info.Enabled = ConnectionContextService.DatabaseConnections.Count > 0; } protected override void Run () { SqlQueryView view = new SqlQueryView (); IdeApp.Workbench.OpenDocument (view, true); } } }monodevelop-database-4.0.12/MonoDevelop.Database.Query/QueryResultView.cs0000644000175000017500000000413511266446160027144 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Christian Hergert // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Data; using MonoDevelop.Ide.Gui; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Query { public class QueryResultView : AbstractViewContent { protected DataGrid grid; public QueryResultView () : base () { grid = new DataGrid (); grid.ShowAll (); } public QueryResultView (DataTable table) : this () { LoadDataTable (table); } public override string UntitledName { get { return "UntitledResult"; } } public override void Dispose () { Control.Destroy (); } public override void Load (string filename) { throw new NotImplementedException (); } public void LoadDataTable (DataTable table) { grid.Clear (); grid.DataSource = table; grid.DataBind (); } public override Widget Control { get { return grid; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Query/AssemblyInfo.cs0000644000175000017500000000050311266446160026373 0ustar directhexdirecthex// Autogenerated from MonoDevelop.Database.Query.addin.xml using System.Reflection; [assembly: AssemblyProduct ("MonoDevelop")] [assembly: AssemblyTitle ("MonoDevelop Database Query")] [assembly: AssemblyDescription ("Database Query Module")] [assembly: AssemblyVersion ("2.6")] [assembly: AssemblyCopyright ("MIT X11")] monodevelop-database-4.0.12/missing0000755000175000017500000002370311266446160020021 0ustar directhexdirecthex#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2012-01-06.18; # UTC # Copyright (C) 1996-2012 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try '$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, 'missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle 'PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file 'aclocal.m4' autoconf touch file 'configure' autoheader touch file 'config.h.in' autom4te touch the output file, or create a stub one automake touch all 'Makefile.in' files bison create 'y.tab.[ch]', if possible, from existing .[ch] flex create 'lex.yy.c', if possible, from existing .c help2man touch the output file lex create 'lex.yy.c', if possible, from existing .c makeinfo touch the output file yacc create 'y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and 'g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown '$1' option" echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac # normalize program name to check for. program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running '$TOOL --version' or '$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $program in aclocal*) echo 1>&2 "\ WARNING: '$1' is $msg. You should only need it if you modified 'acinclude.m4' or '${configure_ac}'. You might want to install the Automake and Perl packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: '$1' is $msg. You should only need it if you modified '${configure_ac}'. You might want to install the Autoconf and GNU m4 packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: '$1' is $msg. You should only need it if you modified 'acconfig.h' or '${configure_ac}'. You might want to install the Autoconf and GNU m4 packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: '$1' is $msg. You should only need it if you modified 'Makefile.am', 'acinclude.m4' or '${configure_ac}'. You might want to install the Automake and Perl packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te*) echo 1>&2 "\ WARNING: '$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get '$1' as part of Autoconf from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison*|yacc*) echo 1>&2 "\ WARNING: '$1' $msg. You should only need it if you modified a '.y' file. You may need the Bison package in order for those modifications to take effect. You can get Bison from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG=\${$#} case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex*|flex*) echo 1>&2 "\ WARNING: '$1' is $msg. You should only need it if you modified a '.l' file. You may need the Flex package in order for those modifications to take effect. You can get Flex from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG=\${$#} case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man*) echo 1>&2 "\ WARNING: '$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the Help2man package in order for those modifications to take effect. You can get Help2man from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? fi ;; makeinfo*) echo 1>&2 "\ WARNING: '$1' is $msg. You should only need it if you modified a '.texi' or '.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy 'make' (AIX, DU, IRIX). You might want to install the Texinfo package or the GNU make package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; *) echo 1>&2 "\ WARNING: '$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the 'README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing '$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: monodevelop-database-4.0.12/ChangeLog0000644000175000017500000003200711266446160020171 0ustar directhexdirecthex2010-06-14 Lluis Sanchez Gual * configure.in: Bump MD version. 2010-05-20 Lluis Sanchez Gual * configure.in: Bump MD version. 2010-03-22 Lluis Sanchez Gual * configure.in: Bumped MD version. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.sln: Merged MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui and MD.Components into MD.Ide. 2010-03-01 Lluis Sanchez Gual * MonoDevelop.Database.sln: The invariant policy can't be used anymore as base policy set. 2010-02-12 Lluis Sanchez Gual * MonoDevelop.Database.sln: Flush. 2009-10-30 Lluis Sanchez Gual * configure.in: Bump MD version. 2009-10-18 Michael Hutchinson * MonoDevelop.Database.sln: Fix the build & flush format changes. 2009-10-07 Lluis Sanchez Gual * configure.in: Bump MD version. 2009-08-26 Lluis Sanchez Gual * configure.in: We now depend on gtk# 2.12.8, Mono 2.4, and Mono.Addins 0.4. 2009-07-31 Lluis Sanchez Gual * MonoDevelop.Database.sln: Disabled 'require specific version' flags. 2009-05-27 Luciano N. Callero * MonoDevelop.Database.ConnectionManager/MonoDevelop.Database.ConnectionManager.csproj: Include ChangeLog into project. * MonoDevelop.Database.ConnectionManager/NodeBuilders/ProcedureNodeBuilders.cs: Show differents image for functions and stored procedures. Implement alter procedure. * MonoDevelop.Database.Designer/MonoDevelop.Database.Designer.csproj: Include ChangeLog into project. * MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs: Fix NullReferenceException. No show comment as default. * MonoDevelop.Database.Designer/gtk-gui/gui.stetic: Changes after rebuild the gui. * MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs: * MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs: * MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs: * MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs: * MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs: * MonoDevelop.Database.Designer/gtk-gui/object.xml: Changes after rebuild the gui. * MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs: Hide some widget for some operations. * MonoDevelop.Database.Query/icons/Icons.16x16.Database.Functions.png: New Icon for Functions. * MonoDevelop.Database.Query/Makefile.am: Add new image embeed as a resource. * MonoDevelop.Database.Query/MonoDevelop.Database.Query.addin.xml: New stock icon. * MonoDevelop.Database.Query/MonoDevelop.Database.Query.csproj: New png icon for the project. * MonoDevelop.Database.Sql.MySql/MonoDevelop.Database.Sql.MySql.csproj: Add ChangeLog into the project. * MonoDevelop.Database.Sql.MySql/MySqlGuiProvider.cs: Don't show Name entry on alter/create procedure beacause isn't needed. * MonoDevelop.Database.Sql.MySql/MySqlSchemaProvider.cs: Code clean. Replace string + string with string.concat/string.format for performance. Format sql tu use mult-line string and to make sql readable. Use of using statement where is supported. Fix alter procedure bugs. Remove unneeded comments. (old code) * MonoDevelop.Database.Sql.Npgsql/MonoDevelop.Database.Sql.Npgsql.csproj: Include ChangeLog into the project. * MonoDevelop.Database.Sql.Npgsql/NpgsqlSchemaProvider.cs: Save lastSystemOID to improve performance. Replace string + string with string.concat/string.format for performance. Format sql tu use mult-line string and to make sql readable. Use of using statement where is supported. Remove unneeded comments. (old code) Implement custom Procedure Definition creation. Show all the parameters. Use internal LastSystemOID when is present. GetProcedureParameters now really works and show all the parameters. Code clean. Fix alter procedure bugs. * MonoDevelop.Database.Sql.SqlServer/MonoDevelop.Database.Sql.SqlServer.csproj: Include ChangeLog into the project. * MonoDevelop.Database.Sql.SqlServer/SqlServerSchemaProvider: Replace string + string with string.concat/string.format for performance. Format sql tu use mult-line string and to make sql readable. Use of using statement where is supported. Code clean. Fix alter procedure bugs. Detect system and user tables differences. Implemente Create Procedure. * MonoDevelop.Database.Sql/AlterSchema/AbstractAlterSchema.cs: Fix NullReferenceException. * MonoDevelop.Database.Sql/AlterSchema/ProcedureAlterSchema.cs: Remove unneeded todo. * MonoDevelop.Database.Sql/MonoDevelop.Database.Sql.csproj: Add ChangeLog into the project. 2009-05-18 Luciano N. Callero * MonoDevelop.Database.Query/SqlQueryView.cs: Implement SourceEditorView. Sql History Tab. Implemented an ISqlQueryEditorView. Execute selected text (if exists) or all the text. Fix bug that make the query read only after execute. * MonoDevelop.Database.Query/SqlQueryTextEditorExtension.cs: Implement a TextEditorExtension to handle Ctrl + Enter (Execute Script). * MonoDevelop.Database.Query/ISqlQueryEditorView.cs: Interfase implementated by a Query Editor View. * MonoDevelop.Database.Query/SqlQueryDisplayBinding.cs: Implement a Display Binding to open Sql files with SqlQueryView. * MonoDevelop.Database.Components/Widgets/SqlEditorWidget.cs: Selected Text property to execute only the selected part of the SQL. 2009-04-21 Luciano N. Callero * MonoDevelop.Database.Components/Widgets/SelectColumnWidget.cs: * MonoDevelop.Database.Components/Widgets/SortedColumnListStore.cs: Add Clear Method to clear the Store. * MonoDevelop.Database.ConnectionManager/NodeBuilders/TablesNodeBuilder.cs: Added a new way to add a New Table with a unique name. * MonoDevelop.Database.Designer/gtk-gui/gui.stetic: * MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs: * MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs: * MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs: * MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs: * MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs: * MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs: * MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.cs: * MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.cs: * MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs: Fix all the Bugs that prevent run "Create Table" command. * MonoDevelop.Database.Sql/Schema/DataTypeCategory.cs: New Date Interval Type. * MonoDevelop.Database.Sql/Providers/AbstractSchemaProvider.cs: Method to Get Constraint Action as string. Don't rise some unneeded exceptions. * MonoDevelop.Database.Sql.MySql/MySqlGuiProvider.cs: Fix Preview Dialog. Cancel the dialog should not create the table and don't close the table creation dialog. * MonoDevelop.Database.Sql.MySql/MySqlSchemaProvider.cs: Fix creation table to create a correct sql. * MonoDevelop.Database.Sql.Npgsql/NpgsqlGuiProvider.cs: Fix Preview Dialog. When cancel the dialog, don't create the table and don't close the table. * MonoDevelop.Database.Sql.Npgsql/NpgsqlSchemaProvider.cs: Fix creation table to create a correct sql. * MonoDevelop.Database.Sql.Sqlite/SqliteGuiProvider.cs: Fix Preview Dialog. When cancel the dialog, don't create the table and don't close the table. * MonoDevelop.Database.Sql.Sqlite/SqliteSchemaProvider.cs: Fix creation table to create a correct sql. * MonoDevelop.Database.Sql.SqlServer/SqlServerPooledDbConnection.cs: Added a way to create a trigger after a table. * MonoDevelop.Database.Sql.SqlServer/SqlServerSchemaProvider.cs: Fix creation table to create a correct sql. Fix Constraint SQL. * MonoDevelop.Database.Sql.SqlServer/SqlServerGuiProvider.cs: Fix Preview Dialog. When cancel the dialog, don't create the table and don't close the table. 2009-04-17 Michael Hutchinson * configure.in: Reference SourceEditor correctly from makefile builds. 2009-04-15 Lluis Sanchez Gual * configure.in: Bump MD version. 2009-03-24 Luciano N. Callero * MonoDevelop.Database.Sql/Schema/ProcedureSchema.cs: Added IsFunction property to determine whether a Procedure is a function or a normal SP. * MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs: Fix ArgumentNullException. It was checking a parameter to null which is supplied after the constructor. * MonoDevelop.Database.Sql.MySql/MySqlSchemaProvider.cs: Check if it is a function or SP. Fix MySqlException when stored procedures are shown on a table which has functions. Uncomment GetProcedureAlterStatement implementation and check if it is a function or a SP. 2009-02-26 Michael Hutchinson * MonoDevelop.Database.sln: Fix translation projects' GUIDs. 2009-02-25 Michael Hutchinson * MonoDevelop.Database.sln: Set policies. Remove unused name attribute. 2009/02/06 Lluis Sanchez Gual * MonoDevelop.Database.sln: Flush. 2009/02/06 Lluis Sanchez Gual * MonoDevelop.Database.sln: Add missing files. 2009/02/06 Lluis Sanchez Gual * MonoDevelop.Database.mds: Migrated to MSBuild file format. 2009/02/03 Lluis Sanchez Gual * configure.in: Bump MD version. 2009-01-26 Michael Hutchinson * MonoDevelop.Database.Sql.Tests/MonoDevelop.Database.Sql.Tests.mdp: Flush project format changes. 2008-11-05 Lluis Sanchez Gual * configure.in: Bump MD version. 2008-06-04 Lluis Sanchez Gual * configure.in: Bump MD version. 2008-05-28 Michael Hutchinson * po/Makefile.am: Remove bash-isms. 2008-05-21 Lluis Sanchez Gual * MonoDevelop.Database.mds, po/po.mdse: New project model changes and updates. 2008-02-24 Enver ALTIN * po/tr.po: Updated Turkish translation. 2008-01-29 Ben Motmans * configure.in: only compile the Sqlite addin if the mono version >= 1.2.5 2008-01-29 Ben Motmans * configure.in: test the correct Sqlite assembly * contrib/Firebird, contrib/Firebird/Firebird.mdp, contrib/Firebird/FirebirdSql.Data.Firebird.dll, contrib/Firebird/FirebirdSql.Data.Firebird.license.txt, contrib/Firebird/Makefile.am, contrib/Sqlite, contrib/Sqlite/Mono.Data.Sqlite.dll, contrib/Sqlite/Sqlite.license.txt: obsolete 2008-01-28 Michael Hutchinson * po/nl.po: Updated translation by André Offringa. * po/es.po: Updated translation by Andrés G. Aragoneses. * po/de.po: Updated translation by anonymous GHOP student. 2008-01-28 Ben Motmans * configure.in, monodevelop-database.pc.in, Makefile.am, MonoDevelop.Database.mds: added code generation addin 2008-01-28 Ben Motmans * MonoDevelop.Database.CodeGenerator: added CodeGeneration addin to automatically generate data classes 2008-01-25 Lluis Sanchez Gual * configure.in: Update MD version. 2008-01-24 David Makovský (Yakeen) * cs.po: Updated translation. 2008-01-23 Atsushi Enomoto * po/ja.po : made it 100% up-to-date. 2008-01-22 Michael Hutchinson * configure.in: Check for msgfmt and msgmerge. * po/messages.po: Add to svn so that translators don't have to build MD. * po/hu.po: Added new translation. * po/po.mdse: * po/Makefile.am: Updated. Fix update-po target and add statistics target. 2008-01-22 Lluis Sanchez Gual * po/gl.po, po/cs.po, po/pt_BR.po, po/fr.po, po/es.po, po/sl_SI.po, po/pl.po, po/it.po, po/pt.po, po/ca.po, po/da.po, po/tr.po, po/ru.po, po/de.po, po/sv.po, po/ja.po, po/zh_TW.po, po/zh_CN.po: Updated translations. * po/nl.po, po/po.mdse, po/id.po: Added new translations. 2007-12-29 David Makovský (Yakeen) * po/cs.po: updated translation 2007-12-19 Ben Motmans * AUTHORS: added author info 2007-12-17 Lluis Sanchez Gual * configure.in: Updated add-in versions. 2007-12-04 Lluis Sanchez Gual * AUTHORS, configure.in, ChangeLog, MonoDevelop.Database.Sql.Tests/MonoDevelop.Database.Sql.Tests.mdp, README, Makefile.include, monodevelop-database.pc.in, Makefile.am, autogen.sh, MonoDevelop.Database.mds, NEWS, po, po/gl.po, po/cs.po, po/pt_BR.po, po/es.po, po/fr.po, po/sl_SI.po, po/pl.po, po/it.po, po/ca.po, po/pt.po, po/da.po, po/tr.po, po/ru.po, po/de.po, po/sv.po, po/po.mdse, po/ja.po, po/zh_TW.po, po/Makefile.am, po/zh_CN.po: Directory reorganization. monodevelop-database-4.0.12/MonoDevelop.Database.Designer/0000755000175000017500000000000011266446160024106 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/Makefile.in0000644000175000017500000003602111266446160026155 0ustar directhexdirecthex# Makefile.in generated by automake 1.12.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2012 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.include ChangeLog subdir = MonoDevelop.Database.Designer ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(assemblydir)" DATA = $(assembly_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ASSEMBLY_VERSION = @ASSEMBLY_VERSION@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CSC = @CSC@ CSC_FLAGS = @CSC_FLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ GLIB_SHARP_CFLAGS = @GLIB_SHARP_CFLAGS@ GLIB_SHARP_LIBS = @GLIB_SHARP_LIBS@ GTK_SHARP_CFLAGS = @GTK_SHARP_CFLAGS@ GTK_SHARP_LIBS = @GTK_SHARP_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD_LIBRARY_PATH = @LD_LIBRARY_PATH@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_PREFIX = @LIB_PREFIX@ LIB_SUFFIX = @LIB_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MCS = @MCS@ MD_ADDIN_DIR = @MD_ADDIN_DIR@ MD_ASSEMBLY_DIR = @MD_ASSEMBLY_DIR@ MD_DIR = @MD_DIR@ MKDIR_P = @MKDIR_P@ MONO = @MONO@ MONODEVELOP_CFLAGS = @MONODEVELOP_CFLAGS@ MONODEVELOP_CORE_ADDINS_CFLAGS = @MONODEVELOP_CORE_ADDINS_CFLAGS@ MONODEVELOP_CORE_ADDINS_LIBS = @MONODEVELOP_CORE_ADDINS_LIBS@ MONODEVELOP_LIBS = @MONODEVELOP_LIBS@ MONO_ADDINS_CFLAGS = @MONO_ADDINS_CFLAGS@ MONO_ADDINS_GUI_CFLAGS = @MONO_ADDINS_GUI_CFLAGS@ MONO_ADDINS_GUI_LIBS = @MONO_ADDINS_GUI_LIBS@ MONO_ADDINS_LIBS = @MONO_ADDINS_LIBS@ MONO_ADDINS_SETUP_CFLAGS = @MONO_ADDINS_SETUP_CFLAGS@ MONO_ADDINS_SETUP_LIBS = @MONO_ADDINS_SETUP_LIBS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH = @PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RUNTIME = @RUNTIME@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ UNMANAGED_DEPENDENCIES_MONO_CFLAGS = @UNMANAGED_DEPENDENCIES_MONO_CFLAGS@ UNMANAGED_DEPENDENCIES_MONO_LIBS = @UNMANAGED_DEPENDENCIES_MONO_LIBS@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gtksharp_prefix = @gtksharp_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.Designer.dll REFS = \ $(GTK_SHARP_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Components.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:Mono.Posix \ -r:System FILES = \ AssemblyInfo.cs \ Dialogs/CreateDatabaseDialog.cs \ Dialogs/PreviewDialog.cs \ Dialogs/ProcedureEditorDialog.cs \ Dialogs/TableEditorDialog.cs \ Dialogs/UserEditorDialog.cs \ Dialogs/ViewEditorDialog.cs \ gtk-gui/generated.cs \ gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.ColumnsEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.CommentEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.ConstraintsEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs \ gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.IndicesEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs \ gtk-gui/MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs \ gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs \ gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.UniqueConstraintEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs \ gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs \ Widgets/CheckConstraintEditorWidget.cs \ Widgets/ColumnsEditorWidget.cs \ Widgets/CommentEditorWidget.cs \ Widgets/ConstraintsEditorWidget.cs \ Widgets/ForeignKeyConstraintEditorWidget.cs \ Widgets/IndicesEditorWidget.cs \ Widgets/PrimaryKeyConstraintEditorWidget.cs \ Widgets/TriggersEditorWidget.cs \ Widgets/UniqueConstraintEditorWidget.cs RES = \ gtk-gui/gui.stetic \ gtk-gui/objects.xml \ MonoDevelop.Database.Designer.addin.xml assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb EXTRA_DIST = $(FILES) $(RES) build_sources = $(addprefix $(srcdir)/, $(FILES)) $(GENERATED_FILES) build_resources = $(addprefix $(srcdir)/, $(RES)) build_test_sources = $(addprefix $(srcdir)/, $(TESTFILES)) $(GENERATED_FILES) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.include $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu MonoDevelop.Database.Designer/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu MonoDevelop.Database.Designer/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_srcdir)/Makefile.include: $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-assemblyDATA: $(assembly_DATA) @$(NORMAL_INSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(assemblydir)'"; \ $(MKDIR_P) "$(DESTDIR)$(assemblydir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(assemblydir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(assemblydir)" || exit $$?; \ done uninstall-assemblyDATA: @$(NORMAL_UNINSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(assemblydir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: ctags: CTAGS CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(assemblydir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-assemblyDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-assemblyDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-assemblyDATA install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am uninstall uninstall-am uninstall-assemblyDATA all: $(ASSEMBLY) $(ADDIN_BUILD) $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: monodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/0000755000175000017500000000000011266446160025455 5ustar directhexdirecthex././@LongLink0000000000000000000000000000020000000000000011555 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UniqueConstraintEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.Uniq0000644000175000017500000001013311266446160034002 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Designer { public partial class UniqueConstraintEditorWidget { private global::Gtk.HPaned hpaned; private global::Gtk.VBox vbox3; private global::Gtk.ScrolledWindow windowPK; private global::Gtk.TreeView listUnique; private global::Gtk.HButtonBox hbuttonbox; private global::Gtk.Button buttonAdd; private global::Gtk.Button buttonRemove; private global::MonoDevelop.Database.Components.SelectColumnWidget columnSelecter; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Designer.UniqueConstraintEditorWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Designer.UniqueConstraintEditorWidget"; // Container child MonoDevelop.Database.Designer.UniqueConstraintEditorWidget.Gtk.Container+ContainerChild this.hpaned = new global::Gtk.HPaned (); this.hpaned.CanFocus = true; this.hpaned.Name = "hpaned"; this.hpaned.Position = 304; // Container child hpaned.Gtk.Paned+PanedChild this.vbox3 = new global::Gtk.VBox (); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.windowPK = new global::Gtk.ScrolledWindow (); this.windowPK.CanFocus = true; this.windowPK.Name = "windowPK"; this.windowPK.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child windowPK.Gtk.Container+ContainerChild this.listUnique = new global::Gtk.TreeView (); this.listUnique.CanFocus = true; this.listUnique.Name = "listUnique"; this.windowPK.Add (this.listUnique); this.vbox3.Add (this.windowPK); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.windowPK])); w2.Position = 0; // Container child vbox3.Gtk.Box+BoxChild this.hbuttonbox = new global::Gtk.HButtonBox (); this.hbuttonbox.Name = "hbuttonbox"; this.hbuttonbox.Spacing = 6; this.hbuttonbox.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(3)); // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild this.buttonAdd = new global::Gtk.Button (); this.buttonAdd.CanFocus = true; this.buttonAdd.Name = "buttonAdd"; this.buttonAdd.UseStock = true; this.buttonAdd.UseUnderline = true; this.buttonAdd.Label = "gtk-add"; this.hbuttonbox.Add (this.buttonAdd); global::Gtk.ButtonBox.ButtonBoxChild w3 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonAdd])); w3.Expand = false; w3.Fill = false; // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild this.buttonRemove = new global::Gtk.Button (); this.buttonRemove.Sensitive = false; this.buttonRemove.CanFocus = true; this.buttonRemove.Name = "buttonRemove"; this.buttonRemove.UseStock = true; this.buttonRemove.UseUnderline = true; this.buttonRemove.Label = "gtk-remove"; this.hbuttonbox.Add (this.buttonRemove); global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonRemove])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.vbox3.Add (this.hbuttonbox); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.hbuttonbox])); w5.Position = 1; w5.Expand = false; w5.Fill = false; this.hpaned.Add (this.vbox3); global::Gtk.Paned.PanedChild w6 = ((global::Gtk.Paned.PanedChild)(this.hpaned[this.vbox3])); w6.Resize = false; // Container child hpaned.Gtk.Paned+PanedChild this.columnSelecter = new global::MonoDevelop.Database.Components.SelectColumnWidget (); this.columnSelecter.Sensitive = false; this.columnSelecter.CanFocus = true; this.columnSelecter.Name = "columnSelecter"; this.columnSelecter.ShadowType = ((global::Gtk.ShadowType)(1)); this.columnSelecter.SingleCheck = false; this.hpaned.Add (this.columnSelecter); this.Add (this.hpaned); if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); this.buttonAdd.Clicked += new global::System.EventHandler (this.AddClicked); this.buttonRemove.Clicked += new global::System.EventHandler (this.RemoveClicked); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/generated.cs0000644000175000017500000000620011266446160027740 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace Stetic { internal class Gui { private static bool initialized; static internal void Initialize (Gtk.Widget iconRenderer) { if ((Stetic.Gui.initialized == false)) { Stetic.Gui.initialized = true; } } } internal class BinContainer { private Gtk.Widget child; private Gtk.UIManager uimanager; public static BinContainer Attach (Gtk.Bin bin) { BinContainer bc = new BinContainer (); bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested); bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated); bin.Added += new Gtk.AddedHandler (bc.OnAdded); return bc; } private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args) { if ((this.child != null)) { args.Requisition = this.child.SizeRequest (); } } private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args) { if ((this.child != null)) { this.child.Allocation = args.Allocation; } } private void OnAdded (object sender, Gtk.AddedArgs args) { this.child = args.Widget; } public void SetUiManager (Gtk.UIManager uim) { this.uimanager = uim; this.child.Realized += new System.EventHandler (this.OnRealized); } private void OnRealized (object sender, System.EventArgs args) { if ((this.uimanager != null)) { Gtk.Widget w; w = this.child.Toplevel; if (((w != null) && typeof(Gtk.Window).IsInstanceOfType (w))) { ((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup); this.uimanager = null; } } } } internal class IconLoader { public static Gdk.Pixbuf LoadIcon (Gtk.Widget widget, string name, Gtk.IconSize size) { Gdk.Pixbuf res = widget.RenderIcon (name, size, null); if ((res != null)) { return res; } else { int sz; int sy; global::Gtk.Icon.SizeLookup (size, out sz, out sy); try { return Gtk.IconTheme.Default.LoadIcon (name, sz, 0); } catch (System.Exception) { if ((name != "gtk-missing-image")) { return Stetic.IconLoader.LoadIcon (widget, "gtk-missing-image", size); } else { Gdk.Pixmap pmap = new Gdk.Pixmap (Gdk.Screen.Default.RootWindow, sz, sz); Gdk.GC gc = new Gdk.GC (pmap); gc.RgbFgColor = new Gdk.Color (255, 255, 255); pmap.DrawRectangle (gc, true, 0, 0, sz, sz); gc.RgbFgColor = new Gdk.Color (0, 0, 0); pmap.DrawRectangle (gc, false, 0, 0, (sz - 1), (sz - 1)); gc.SetLineAttributes (3, Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round); gc.RgbFgColor = new Gdk.Color (255, 0, 0); pmap.DrawLine (gc, (sz / 4), (sz / 4), ((sz - 1) - (sz / 4)), ((sz - 1) - (sz / 4))); pmap.DrawLine (gc, ((sz - 1) - (sz / 4)), (sz / 4), (sz / 4), ((sz - 1) - (sz / 4))); return Gdk.Pixbuf.FromDrawable (pmap, pmap.Colormap, 0, 0, 0, 0, sz, sz); } } } } } internal class ActionGroups { public static Gtk.ActionGroup GetActionGroup (System.Type type) { return Stetic.ActionGroups.GetActionGroup (type.FullName); } public static Gtk.ActionGroup GetActionGroup (string name) { return null; } } } ././@LongLink0000000000000000000000000000020400000000000011561 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.Fore0000644000175000017500000001561311266446160033771 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Designer { public partial class ForeignKeyConstraintEditorWidget { private global::Gtk.HPaned hpaned; private global::Gtk.VBox vbox3; private global::Gtk.ScrolledWindow windowPK; private global::Gtk.TreeView listFK; private global::Gtk.HButtonBox hbuttonbox; private global::Gtk.Button buttonAdd; private global::Gtk.Button buttonRemove; private global::Gtk.VBox vboxColumns; private global::Gtk.Frame frame1; private global::Gtk.Alignment GtkAlignment2; private global::MonoDevelop.Database.Components.SelectColumnWidget columnSelecter; private global::Gtk.Label GtkLabel2; private global::Gtk.Frame frame2; private global::Gtk.Alignment GtkAlignment3; private global::MonoDevelop.Database.Components.SelectColumnWidget referenceColumnSelecter; private global::Gtk.Label GtkLabel3; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget"; // Container child MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.Gtk.Container+ContainerChild this.hpaned = new global::Gtk.HPaned (); this.hpaned.CanFocus = true; this.hpaned.Name = "hpaned"; this.hpaned.Position = 293; // Container child hpaned.Gtk.Paned+PanedChild this.vbox3 = new global::Gtk.VBox (); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.windowPK = new global::Gtk.ScrolledWindow (); this.windowPK.CanFocus = true; this.windowPK.Name = "windowPK"; this.windowPK.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child windowPK.Gtk.Container+ContainerChild this.listFK = new global::Gtk.TreeView (); this.listFK.CanFocus = true; this.listFK.Name = "listFK"; this.windowPK.Add (this.listFK); this.vbox3.Add (this.windowPK); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.windowPK])); w2.Position = 0; // Container child vbox3.Gtk.Box+BoxChild this.hbuttonbox = new global::Gtk.HButtonBox (); this.hbuttonbox.Name = "hbuttonbox"; this.hbuttonbox.Spacing = 6; this.hbuttonbox.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(3)); // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild this.buttonAdd = new global::Gtk.Button (); this.buttonAdd.CanFocus = true; this.buttonAdd.Name = "buttonAdd"; this.buttonAdd.UseStock = true; this.buttonAdd.UseUnderline = true; this.buttonAdd.Label = "gtk-add"; this.hbuttonbox.Add (this.buttonAdd); global::Gtk.ButtonBox.ButtonBoxChild w3 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonAdd])); w3.Expand = false; w3.Fill = false; // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild this.buttonRemove = new global::Gtk.Button (); this.buttonRemove.Sensitive = false; this.buttonRemove.CanFocus = true; this.buttonRemove.Name = "buttonRemove"; this.buttonRemove.UseStock = true; this.buttonRemove.UseUnderline = true; this.buttonRemove.Label = "gtk-remove"; this.hbuttonbox.Add (this.buttonRemove); global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonRemove])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.vbox3.Add (this.hbuttonbox); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.hbuttonbox])); w5.Position = 1; w5.Expand = false; w5.Fill = false; this.hpaned.Add (this.vbox3); global::Gtk.Paned.PanedChild w6 = ((global::Gtk.Paned.PanedChild)(this.hpaned[this.vbox3])); w6.Resize = false; // Container child hpaned.Gtk.Paned+PanedChild this.vboxColumns = new global::Gtk.VBox (); this.vboxColumns.Name = "vboxColumns"; this.vboxColumns.Spacing = 6; // Container child vboxColumns.Gtk.Box+BoxChild this.frame1 = new global::Gtk.Frame (); this.frame1.Name = "frame1"; this.frame1.ShadowType = ((global::Gtk.ShadowType)(0)); // Container child frame1.Gtk.Container+ContainerChild this.GtkAlignment2 = new global::Gtk.Alignment (0f, 0f, 1f, 1f); this.GtkAlignment2.Name = "GtkAlignment2"; this.GtkAlignment2.LeftPadding = ((uint)(12)); // Container child GtkAlignment2.Gtk.Container+ContainerChild this.columnSelecter = new global::MonoDevelop.Database.Components.SelectColumnWidget (); this.columnSelecter.Sensitive = false; this.columnSelecter.CanFocus = true; this.columnSelecter.Name = "columnSelecter"; this.columnSelecter.ShadowType = ((global::Gtk.ShadowType)(1)); this.columnSelecter.SingleCheck = false; this.GtkAlignment2.Add (this.columnSelecter); this.frame1.Add (this.GtkAlignment2); this.GtkLabel2 = new global::Gtk.Label (); this.GtkLabel2.Name = "GtkLabel2"; this.GtkLabel2.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Columns"); this.GtkLabel2.UseMarkup = true; this.frame1.LabelWidget = this.GtkLabel2; this.vboxColumns.Add (this.frame1); global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vboxColumns[this.frame1])); w9.Position = 0; // Container child vboxColumns.Gtk.Box+BoxChild this.frame2 = new global::Gtk.Frame (); this.frame2.Name = "frame2"; this.frame2.ShadowType = ((global::Gtk.ShadowType)(0)); // Container child frame2.Gtk.Container+ContainerChild this.GtkAlignment3 = new global::Gtk.Alignment (0f, 0f, 1f, 1f); this.GtkAlignment3.Name = "GtkAlignment3"; this.GtkAlignment3.LeftPadding = ((uint)(12)); // Container child GtkAlignment3.Gtk.Container+ContainerChild this.referenceColumnSelecter = new global::MonoDevelop.Database.Components.SelectColumnWidget (); this.referenceColumnSelecter.Sensitive = false; this.referenceColumnSelecter.CanFocus = true; this.referenceColumnSelecter.Name = "referenceColumnSelecter"; this.referenceColumnSelecter.ShadowType = ((global::Gtk.ShadowType)(1)); this.referenceColumnSelecter.SingleCheck = false; this.GtkAlignment3.Add (this.referenceColumnSelecter); this.frame2.Add (this.GtkAlignment3); this.GtkLabel3 = new global::Gtk.Label (); this.GtkLabel3.Name = "GtkLabel3"; this.GtkLabel3.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Reference Columns"); this.GtkLabel3.UseMarkup = true; this.frame2.LabelWidget = this.GtkLabel3; this.vboxColumns.Add (this.frame2); global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vboxColumns[this.frame2])); w12.Position = 1; this.hpaned.Add (this.vboxColumns); this.Add (this.hpaned); if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); this.buttonAdd.Clicked += new global::System.EventHandler (this.AddClicked); this.buttonRemove.Clicked += new global::System.EventHandler (this.RemoveClicked); } } } ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.Trig0000644000175000017500000001155411266446160034003 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Designer { public partial class TriggersEditorWidget { private global::Gtk.VPaned vpaned; private global::Gtk.HBox hbox; private global::Gtk.ScrolledWindow windowTriggers; private global::Gtk.TreeView listTriggers; private global::Gtk.VButtonBox vbuttonbox; private global::Gtk.Button buttonAdd; private global::Gtk.Button buttonRemove; private global::Gtk.Frame frame; private global::Gtk.Alignment alignment; private global::MonoDevelop.Database.Components.SqlEditorWidget sqlEditor; private global::Gtk.Label GtkLabel2; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Designer.TriggersEditorWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Designer.TriggersEditorWidget"; // Container child MonoDevelop.Database.Designer.TriggersEditorWidget.Gtk.Container+ContainerChild this.vpaned = new global::Gtk.VPaned (); this.vpaned.CanFocus = true; this.vpaned.Name = "vpaned"; this.vpaned.Position = 205; // Container child vpaned.Gtk.Paned+PanedChild this.hbox = new global::Gtk.HBox (); this.hbox.Name = "hbox"; this.hbox.Spacing = 6; // Container child hbox.Gtk.Box+BoxChild this.windowTriggers = new global::Gtk.ScrolledWindow (); this.windowTriggers.CanFocus = true; this.windowTriggers.Name = "windowTriggers"; this.windowTriggers.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child windowTriggers.Gtk.Container+ContainerChild this.listTriggers = new global::Gtk.TreeView (); this.listTriggers.CanFocus = true; this.listTriggers.Name = "listTriggers"; this.windowTriggers.Add (this.listTriggers); this.hbox.Add (this.windowTriggers); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox[this.windowTriggers])); w2.Position = 0; // Container child hbox.Gtk.Box+BoxChild this.vbuttonbox = new global::Gtk.VButtonBox (); this.vbuttonbox.Name = "vbuttonbox"; this.vbuttonbox.Spacing = 6; this.vbuttonbox.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(3)); // Container child vbuttonbox.Gtk.ButtonBox+ButtonBoxChild this.buttonAdd = new global::Gtk.Button (); this.buttonAdd.CanFocus = true; this.buttonAdd.Name = "buttonAdd"; this.buttonAdd.UseStock = true; this.buttonAdd.UseUnderline = true; this.buttonAdd.Label = "gtk-add"; this.vbuttonbox.Add (this.buttonAdd); global::Gtk.ButtonBox.ButtonBoxChild w3 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox[this.buttonAdd])); w3.Expand = false; w3.Fill = false; // Container child vbuttonbox.Gtk.ButtonBox+ButtonBoxChild this.buttonRemove = new global::Gtk.Button (); this.buttonRemove.Sensitive = false; this.buttonRemove.CanFocus = true; this.buttonRemove.Name = "buttonRemove"; this.buttonRemove.UseStock = true; this.buttonRemove.UseUnderline = true; this.buttonRemove.Label = "gtk-remove"; this.vbuttonbox.Add (this.buttonRemove); global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox[this.buttonRemove])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.hbox.Add (this.vbuttonbox); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox[this.vbuttonbox])); w5.Position = 1; w5.Expand = false; w5.Fill = false; this.vpaned.Add (this.hbox); global::Gtk.Paned.PanedChild w6 = ((global::Gtk.Paned.PanedChild)(this.vpaned[this.hbox])); w6.Resize = false; // Container child vpaned.Gtk.Paned+PanedChild this.frame = new global::Gtk.Frame (); this.frame.Name = "frame"; this.frame.ShadowType = ((global::Gtk.ShadowType)(0)); // Container child frame.Gtk.Container+ContainerChild this.alignment = new global::Gtk.Alignment (0f, 0f, 1f, 1f); this.alignment.Name = "alignment"; this.alignment.LeftPadding = ((uint)(12)); // Container child alignment.Gtk.Container+ContainerChild this.sqlEditor = new global::MonoDevelop.Database.Components.SqlEditorWidget (); this.sqlEditor.HeightRequest = 80; this.sqlEditor.Events = ((global::Gdk.EventMask)(256)); this.sqlEditor.Name = "sqlEditor"; this.sqlEditor.Editable = false; this.alignment.Add (this.sqlEditor); this.frame.Add (this.alignment); this.GtkLabel2 = new global::Gtk.Label (); this.GtkLabel2.Name = "GtkLabel2"; this.GtkLabel2.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Statement"); this.GtkLabel2.UseMarkup = true; this.frame.LabelWidget = this.GtkLabel2; this.vpaned.Add (this.frame); this.Add (this.vpaned); if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); this.buttonAdd.Clicked += new global::System.EventHandler (this.AddClicked); this.buttonRemove.Clicked += new global::System.EventHandler (this.RemoveClicked); } } } ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.User0000644000175000017500000001011711266446160034006 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Designer { public partial class UserEditorDialog { private global::Gtk.VBox vboxContent; private global::Gtk.HBox hboxName; private global::Gtk.Label label7; private global::Gtk.Entry entryName; private global::Gtk.Button buttonCancel; private global::Gtk.Button buttonOk; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Designer.UserEditorDialog this.Name = "MonoDevelop.Database.Designer.UserEditorDialog"; this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Internal child MonoDevelop.Database.Designer.UserEditorDialog.VBox global::Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.vboxContent = new global::Gtk.VBox (); this.vboxContent.Name = "vboxContent"; this.vboxContent.Spacing = 6; this.vboxContent.BorderWidth = ((uint)(6)); // Container child vboxContent.Gtk.Box+BoxChild this.hboxName = new global::Gtk.HBox (); this.hboxName.Name = "hboxName"; this.hboxName.Spacing = 6; // Container child hboxName.Gtk.Box+BoxChild this.label7 = new global::Gtk.Label (); this.label7.Name = "label7"; this.label7.Xalign = 0f; this.label7.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Name"); this.hboxName.Add (this.label7); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hboxName[this.label7])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hboxName.Gtk.Box+BoxChild this.entryName = new global::Gtk.Entry (); this.entryName.CanFocus = true; this.entryName.Name = "entryName"; this.entryName.IsEditable = true; this.entryName.InvisibleChar = '●'; this.hboxName.Add (this.entryName); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hboxName[this.entryName])); w3.Position = 1; this.vboxContent.Add (this.hboxName); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vboxContent[this.hboxName])); w4.Position = 0; w4.Expand = false; w4.Fill = false; w1.Add (this.vboxContent); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(w1[this.vboxContent])); w5.Position = 0; // Internal child MonoDevelop.Database.Designer.UserEditorDialog.ActionArea global::Gtk.HButtonBox w6 = this.ActionArea; w6.Name = "dialog1_ActionArea"; w6.Spacing = 6; w6.BorderWidth = ((uint)(5)); w6.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new global::Gtk.Button (); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget (this.buttonCancel, -6); global::Gtk.ButtonBox.ButtonBoxChild w7 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonCancel])); w7.Expand = false; w7.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new global::Gtk.Button (); this.buttonOk.Sensitive = false; this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget (this.buttonOk, -5); global::Gtk.ButtonBox.ButtonBoxChild w8 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w6[this.buttonOk])); w8.Position = 1; w8.Expand = false; w8.Fill = false; if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 640; this.DefaultHeight = 480; this.Show (); this.entryName.Changed += new global::System.EventHandler (this.NameChanged); this.buttonCancel.Clicked += new global::System.EventHandler (this.CancelClicked); this.buttonOk.Clicked += new global::System.EventHandler (this.OkClicked); } } } ././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.Proc0000644000175000017500000002020411266446160033771 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Designer { public partial class ProcedureEditorDialog { private global::Gtk.VBox vboxContent; private global::Gtk.HBox hboxName; private global::Gtk.Label nameLabel; private global::Gtk.Entry entryName; private global::Gtk.HBox hboxWarning; private global::Gtk.Image imageWarning; private global::Gtk.Label labelWarning; private global::Gtk.Button buttonOpen; private global::Gtk.Button buttonSave; private global::Gtk.Button buttonCancel; private global::Gtk.Button buttonOk; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Designer.ProcedureEditorDialog this.Name = "MonoDevelop.Database.Designer.ProcedureEditorDialog"; this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Internal child MonoDevelop.Database.Designer.ProcedureEditorDialog.VBox global::Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.vboxContent = new global::Gtk.VBox (); this.vboxContent.Name = "vboxContent"; this.vboxContent.Spacing = 6; this.vboxContent.BorderWidth = ((uint)(6)); // Container child vboxContent.Gtk.Box+BoxChild this.hboxName = new global::Gtk.HBox (); this.hboxName.Name = "hboxName"; this.hboxName.Spacing = 6; // Container child hboxName.Gtk.Box+BoxChild this.nameLabel = new global::Gtk.Label (); this.nameLabel.Name = "nameLabel"; this.nameLabel.Xalign = 0f; this.nameLabel.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Name"); this.hboxName.Add (this.nameLabel); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hboxName[this.nameLabel])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hboxName.Gtk.Box+BoxChild this.entryName = new global::Gtk.Entry (); this.entryName.CanFocus = true; this.entryName.Name = "entryName"; this.entryName.IsEditable = true; this.entryName.InvisibleChar = '●'; this.hboxName.Add (this.entryName); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hboxName[this.entryName])); w3.Position = 1; this.vboxContent.Add (this.hboxName); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vboxContent[this.hboxName])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child vboxContent.Gtk.Box+BoxChild this.hboxWarning = new global::Gtk.HBox (); this.hboxWarning.Name = "hboxWarning"; this.hboxWarning.Spacing = 6; // Container child hboxWarning.Gtk.Box+BoxChild this.imageWarning = new global::Gtk.Image (); this.imageWarning.Name = "imageWarning"; this.imageWarning.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-dialog-warning", global::Gtk.IconSize.Menu); this.hboxWarning.Add (this.imageWarning); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hboxWarning[this.imageWarning])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child hboxWarning.Gtk.Box+BoxChild this.labelWarning = new global::Gtk.Label (); this.labelWarning.Name = "labelWarning"; this.labelWarning.Xalign = 0f; this.hboxWarning.Add (this.labelWarning); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hboxWarning[this.labelWarning])); w6.Position = 1; this.vboxContent.Add (this.hboxWarning); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vboxContent[this.hboxWarning])); w7.Position = 2; w7.Expand = false; w7.Fill = false; w1.Add (this.vboxContent); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(w1[this.vboxContent])); w8.Position = 0; // Internal child MonoDevelop.Database.Designer.ProcedureEditorDialog.ActionArea global::Gtk.HButtonBox w9 = this.ActionArea; w9.Name = "dialog1_ActionArea"; w9.Spacing = 6; w9.BorderWidth = ((uint)(5)); w9.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOpen = new global::Gtk.Button (); this.buttonOpen.CanFocus = true; this.buttonOpen.Name = "buttonOpen"; this.buttonOpen.UseUnderline = true; // Container child buttonOpen.Gtk.Container+ContainerChild global::Gtk.Alignment w10 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f); // Container child GtkAlignment.Gtk.Container+ContainerChild global::Gtk.HBox w11 = new global::Gtk.HBox (); w11.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild global::Gtk.Image w12 = new global::Gtk.Image (); w12.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-open", global::Gtk.IconSize.Menu); w11.Add (w12); // Container child GtkHBox.Gtk.Container+ContainerChild global::Gtk.Label w14 = new global::Gtk.Label (); w14.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("_Open Script"); w14.UseUnderline = true; w11.Add (w14); w10.Add (w11); this.buttonOpen.Add (w10); this.AddActionWidget (this.buttonOpen, -3); global::Gtk.ButtonBox.ButtonBoxChild w18 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonOpen])); w18.Expand = false; w18.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonSave = new global::Gtk.Button (); this.buttonSave.CanFocus = true; this.buttonSave.Name = "buttonSave"; this.buttonSave.UseUnderline = true; // Container child buttonSave.Gtk.Container+ContainerChild global::Gtk.Alignment w19 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f); // Container child GtkAlignment.Gtk.Container+ContainerChild global::Gtk.HBox w20 = new global::Gtk.HBox (); w20.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild global::Gtk.Image w21 = new global::Gtk.Image (); w21.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-save", global::Gtk.IconSize.Menu); w20.Add (w21); // Container child GtkHBox.Gtk.Container+ContainerChild global::Gtk.Label w23 = new global::Gtk.Label (); w23.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("_Save Script"); w23.UseUnderline = true; w20.Add (w23); w19.Add (w20); this.buttonSave.Add (w19); this.AddActionWidget (this.buttonSave, -3); global::Gtk.ButtonBox.ButtonBoxChild w27 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonSave])); w27.Position = 1; w27.Expand = false; w27.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new global::Gtk.Button (); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget (this.buttonCancel, -6); global::Gtk.ButtonBox.ButtonBoxChild w28 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonCancel])); w28.Position = 2; w28.Expand = false; w28.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new global::Gtk.Button (); this.buttonOk.Sensitive = false; this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget (this.buttonOk, -5); global::Gtk.ButtonBox.ButtonBoxChild w29 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonOk])); w29.Position = 3; w29.Expand = false; w29.Fill = false; if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 640; this.DefaultHeight = 480; this.Show (); this.entryName.Changed += new global::System.EventHandler (this.NameChanged); this.buttonOpen.Clicked += new global::System.EventHandler (this.OnButtonOpenClicked); this.buttonSave.Clicked += new global::System.EventHandler (this.OnButtonSaveClicked); this.buttonCancel.Clicked += new global::System.EventHandler (this.CancelClicked); this.buttonOk.Clicked += new global::System.EventHandler (this.OkClicked); } } } ././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.Chec0000644000175000017500000001147011266446160033735 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Designer { public partial class CheckConstraintEditorWidget { private global::Gtk.VPaned vpaned; private global::Gtk.HBox hbox; private global::Gtk.ScrolledWindow windowCheck; private global::Gtk.TreeView listCheck; private global::Gtk.VButtonBox vbuttonbox; private global::Gtk.Button buttonAdd; private global::Gtk.Button buttonRemove; private global::Gtk.Frame frame; private global::Gtk.Alignment alignment; private global::MonoDevelop.Database.Components.SqlEditorWidget sqlEditor; private global::Gtk.Label GtkLabel2; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Designer.CheckConstraintEditorWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Designer.CheckConstraintEditorWidget"; // Container child MonoDevelop.Database.Designer.CheckConstraintEditorWidget.Gtk.Container+ContainerChild this.vpaned = new global::Gtk.VPaned (); this.vpaned.CanFocus = true; this.vpaned.Name = "vpaned"; this.vpaned.Position = 189; // Container child vpaned.Gtk.Paned+PanedChild this.hbox = new global::Gtk.HBox (); this.hbox.Name = "hbox"; this.hbox.Spacing = 6; // Container child hbox.Gtk.Box+BoxChild this.windowCheck = new global::Gtk.ScrolledWindow (); this.windowCheck.CanFocus = true; this.windowCheck.Name = "windowCheck"; this.windowCheck.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child windowCheck.Gtk.Container+ContainerChild this.listCheck = new global::Gtk.TreeView (); this.listCheck.CanFocus = true; this.listCheck.Name = "listCheck"; this.windowCheck.Add (this.listCheck); this.hbox.Add (this.windowCheck); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox[this.windowCheck])); w2.Position = 0; // Container child hbox.Gtk.Box+BoxChild this.vbuttonbox = new global::Gtk.VButtonBox (); this.vbuttonbox.Name = "vbuttonbox"; this.vbuttonbox.Spacing = 6; this.vbuttonbox.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(3)); // Container child vbuttonbox.Gtk.ButtonBox+ButtonBoxChild this.buttonAdd = new global::Gtk.Button (); this.buttonAdd.CanFocus = true; this.buttonAdd.Name = "buttonAdd"; this.buttonAdd.UseStock = true; this.buttonAdd.UseUnderline = true; this.buttonAdd.Label = "gtk-add"; this.vbuttonbox.Add (this.buttonAdd); global::Gtk.ButtonBox.ButtonBoxChild w3 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox[this.buttonAdd])); w3.Expand = false; w3.Fill = false; // Container child vbuttonbox.Gtk.ButtonBox+ButtonBoxChild this.buttonRemove = new global::Gtk.Button (); this.buttonRemove.Sensitive = false; this.buttonRemove.CanFocus = true; this.buttonRemove.Name = "buttonRemove"; this.buttonRemove.UseStock = true; this.buttonRemove.UseUnderline = true; this.buttonRemove.Label = "gtk-remove"; this.vbuttonbox.Add (this.buttonRemove); global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.vbuttonbox[this.buttonRemove])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.hbox.Add (this.vbuttonbox); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox[this.vbuttonbox])); w5.Position = 1; w5.Expand = false; w5.Fill = false; this.vpaned.Add (this.hbox); global::Gtk.Paned.PanedChild w6 = ((global::Gtk.Paned.PanedChild)(this.vpaned[this.hbox])); w6.Resize = false; // Container child vpaned.Gtk.Paned+PanedChild this.frame = new global::Gtk.Frame (); this.frame.Name = "frame"; this.frame.ShadowType = ((global::Gtk.ShadowType)(0)); // Container child frame.Gtk.Container+ContainerChild this.alignment = new global::Gtk.Alignment (0f, 0f, 1f, 1f); this.alignment.Name = "alignment"; this.alignment.LeftPadding = ((uint)(12)); // Container child alignment.Gtk.Container+ContainerChild this.sqlEditor = new global::MonoDevelop.Database.Components.SqlEditorWidget (); this.sqlEditor.Events = ((global::Gdk.EventMask)(256)); this.sqlEditor.Name = "sqlEditor"; this.sqlEditor.Editable = false; this.alignment.Add (this.sqlEditor); this.frame.Add (this.alignment); this.GtkLabel2 = new global::Gtk.Label (); this.GtkLabel2.Name = "GtkLabel2"; this.GtkLabel2.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Check Condition"); this.GtkLabel2.UseMarkup = true; this.frame.LabelWidget = this.GtkLabel2; this.vpaned.Add (this.frame); this.Add (this.vpaned); if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); this.buttonAdd.Clicked += new global::System.EventHandler (this.AddClicked); this.buttonRemove.Clicked += new global::System.EventHandler (this.RemoveClicked); } } } ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.Prev0000644000175000017500000001122511266446160034005 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Designer { public partial class PreviewDialog { private global::Gtk.VBox vboxContent; private global::MonoDevelop.Database.Components.SqlEditorWidget sqlEditor; private global::Gtk.Button button21; private global::Gtk.Button buttonCancel; private global::Gtk.Button buttonOk; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Designer.PreviewDialog this.Name = "MonoDevelop.Database.Designer.PreviewDialog"; this.Title = global::MonoDevelop.Database.AddinCatalog.GetString ("Preview"); this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); this.WindowPosition = ((global::Gtk.WindowPosition)(1)); this.SkipTaskbarHint = true; // Internal child MonoDevelop.Database.Designer.PreviewDialog.VBox global::Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.vboxContent = new global::Gtk.VBox (); this.vboxContent.Name = "vboxContent"; this.vboxContent.Spacing = 6; // Container child vboxContent.Gtk.Box+BoxChild this.sqlEditor = new global::MonoDevelop.Database.Components.SqlEditorWidget (); this.sqlEditor.Events = ((global::Gdk.EventMask)(256)); this.sqlEditor.Name = "sqlEditor"; this.sqlEditor.Editable = false; this.vboxContent.Add (this.sqlEditor); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vboxContent[this.sqlEditor])); w2.Position = 0; w1.Add (this.vboxContent); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(w1[this.vboxContent])); w3.Position = 0; // Internal child MonoDevelop.Database.Designer.PreviewDialog.ActionArea global::Gtk.HButtonBox w4 = this.ActionArea; w4.Name = "dialog1_ActionArea"; w4.Spacing = 6; w4.BorderWidth = ((uint)(5)); w4.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.button21 = new global::Gtk.Button (); this.button21.CanFocus = true; this.button21.Name = "button21"; this.button21.UseUnderline = true; // Container child button21.Gtk.Container+ContainerChild global::Gtk.Alignment w5 = new global::Gtk.Alignment (0.5f, 0.5f, 0f, 0f); // Container child GtkAlignment.Gtk.Container+ContainerChild global::Gtk.HBox w6 = new global::Gtk.HBox (); w6.Spacing = 2; // Container child GtkHBox.Gtk.Container+ContainerChild global::Gtk.Image w7 = new global::Gtk.Image (); w7.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-save", global::Gtk.IconSize.Menu); w6.Add (w7); // Container child GtkHBox.Gtk.Container+ContainerChild global::Gtk.Label w9 = new global::Gtk.Label (); w9.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("_Save Script"); w9.UseUnderline = true; w6.Add (w9); w5.Add (w6); this.button21.Add (w5); this.AddActionWidget (this.button21, -10); global::Gtk.ButtonBox.ButtonBoxChild w13 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w4[this.button21])); w13.Expand = false; w13.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new global::Gtk.Button (); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget (this.buttonCancel, -6); global::Gtk.ButtonBox.ButtonBoxChild w14 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonCancel])); w14.Position = 1; w14.Expand = false; w14.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new global::Gtk.Button (); this.buttonOk.Sensitive = false; this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget (this.buttonOk, -5); global::Gtk.ButtonBox.ButtonBoxChild w15 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonOk])); w15.Position = 2; w15.Expand = false; w15.Fill = false; if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 617; this.DefaultHeight = 382; this.Show (); this.button21.Clicked += new global::System.EventHandler (this.OnButton21Clicked); this.buttonCancel.Clicked += new global::System.EventHandler (this.CancelClicked); this.buttonOk.Clicked += new global::System.EventHandler (this.OkClicked); } } } ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.IndicesEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.Indi0000644000175000017500000000076511266446160033763 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Designer { public partial class IndicesEditorWidget { protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Designer.IndicesEditorWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Designer.IndicesEditorWidget"; if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/objects.xml0000644000175000017500000000576711266446160027647 0ustar directhexdirecthex monodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/gui.stetic0000644000175000017500000020235011266446160027460 0ustar directhexdirecthex .. 2.12 True 205 6 True In True 0 True 6 2 Start True True StockItem gtk-add gtk-add False False False True True StockItem gtk-remove gtk-remove 1 False False 1 True False False False None 0 0 12 80 ButtonPressMask False Statement True label_item True 662 6 True In True 0 True 6 4 Start True True StockItem gtk-add gtk-add False False False True True StockItem gtk-remove gtk-remove 1 False False False True True StockItem gtk-go-up gtk-go-up 2 False False False True True StockItem gtk-go-down gtk-go-down 3 False False 1 True False False False True In None Edit Table Dialog Center True 2 False 2 6 6 6 0 Name 0 True False False True True 1 True 0 True False False 6 stock:gtk-dialog-warning Menu 0 True False False 0 1 False End 2 True False False True Preview SQL True True True True End 3 True False False 0 True 6 5 2 End True True True StockItem gtk-cancel -6 gtk-cancel False False False True True True StockItem gtk-ok -5 gtk-ok 1 False False Create Database Dialog Center True 2 False 2 True 0 False 6 6 Connection tab 0 True 6 5 2 End True True True StockItem gtk-cancel -6 gtk-cancel False False False True True True StockItem gtk-ok -5 gtk-ok 1 False False CenterOnParent 2 False 2 6 6 6 0 Name 0 True False False True True 1 True 0 True False False 6 stock:gtk-dialog-warning Menu 0 True False False 0 1 False 2 True False False 0 True 6 5 2 End True True True StockItem gtk-cancel -6 gtk-cancel False False False True True True StockItem gtk-ok -5 gtk-ok 1 False False CenterOnParent 4 False 2 6 6 6 0 Name 0 True False False True True 1 True 0 True False False 6 stock:gtk-dialog-warning Menu 0 True False False 0 1 False 2 True False False 0 True 6 5 4 End True TextAndIcon stock:gtk-open Menu _Open Script True -3 False False True TextAndIcon stock:gtk-save Menu _Save Script True -3 1 False False True True True StockItem gtk-cancel -6 gtk-cancel 2 False False False True True True StockItem gtk-ok -5 gtk-ok 3 False False True In True Preview Dialog Center True 3 False 2 6 ButtonPressMask False 0 True 0 True 6 5 3 End True TextAndIcon stock:gtk-save Menu _Save Script True -10 False False True True True StockItem gtk-cancel -6 gtk-cancel 1 False False False True True True StockItem gtk-ok -5 gtk-ok 2 False False CenterOnParent 2 False 2 6 6 6 0 Name 0 True False False True True 1 True 0 True False False 0 True 6 5 2 End True True True StockItem gtk-cancel -6 gtk-cancel False False False True True True StockItem gtk-ok -5 gtk-ok 1 False False True 293 6 True In True 0 True 6 2 Start True True StockItem gtk-add gtk-add False False False True True StockItem gtk-remove gtk-remove 1 False False 1 True False False False 6 None 0 0 12 False True In False Columns True label_item 0 False None 0 0 12 False True In False Reference Columns True label_item 1 False True 189 6 True In True 0 True 6 2 Start True True StockItem gtk-add gtk-add False False False True True StockItem gtk-remove gtk-remove 1 False False 1 True False False False None 0 0 12 ButtonPressMask False Check Condition True label_item True 293 6 True In True 0 True 6 2 Start True True StockItem gtk-add gtk-add False False False True True StockItem gtk-remove gtk-remove 1 False False 1 True False False False False True In False True 304 6 True In True 0 True 6 2 Start True True StockItem gtk-add gtk-add False False False True True StockItem gtk-remove gtk-remove 1 False False 1 True False False False False True In False ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CommentEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.Comm0000644000175000017500000000225211266446160033764 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Designer { public partial class CommentEditorWidget { private global::Gtk.ScrolledWindow scrolledwindow; private global::Gtk.TextView textComment; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Designer.CommentEditorWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Designer.CommentEditorWidget"; // Container child MonoDevelop.Database.Designer.CommentEditorWidget.Gtk.Container+ContainerChild this.scrolledwindow = new global::Gtk.ScrolledWindow (); this.scrolledwindow.CanFocus = true; this.scrolledwindow.Name = "scrolledwindow"; this.scrolledwindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child scrolledwindow.Gtk.Container+ContainerChild this.textComment = new global::Gtk.TextView (); this.textComment.CanFocus = true; this.textComment.Name = "textComment"; this.scrolledwindow.Add (this.textComment); this.Add (this.scrolledwindow); if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); } } } ././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.Tabl0000644000175000017500000001445011266446160033756 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Designer { public partial class TableEditorDialog { private global::Gtk.VBox vboxContent; private global::Gtk.HBox hboxName; private global::Gtk.Label label7; private global::Gtk.Entry entryName; private global::Gtk.HBox hboxWarning; private global::Gtk.Image imageWarning; private global::Gtk.Label labelWarning; private global::Gtk.CheckButton checkPreview; private global::Gtk.Button buttonCancel; private global::Gtk.Button buttonOk; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Designer.TableEditorDialog this.Name = "MonoDevelop.Database.Designer.TableEditorDialog"; this.Title = global::MonoDevelop.Database.AddinCatalog.GetString ("Edit Table"); this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); this.WindowPosition = ((global::Gtk.WindowPosition)(1)); this.SkipTaskbarHint = true; // Internal child MonoDevelop.Database.Designer.TableEditorDialog.VBox global::Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.vboxContent = new global::Gtk.VBox (); this.vboxContent.Name = "vboxContent"; this.vboxContent.Spacing = 6; this.vboxContent.BorderWidth = ((uint)(6)); // Container child vboxContent.Gtk.Box+BoxChild this.hboxName = new global::Gtk.HBox (); this.hboxName.Name = "hboxName"; this.hboxName.Spacing = 6; // Container child hboxName.Gtk.Box+BoxChild this.label7 = new global::Gtk.Label (); this.label7.Name = "label7"; this.label7.Xalign = 0f; this.label7.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Name"); this.hboxName.Add (this.label7); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hboxName[this.label7])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hboxName.Gtk.Box+BoxChild this.entryName = new global::Gtk.Entry (); this.entryName.CanFocus = true; this.entryName.Name = "entryName"; this.entryName.IsEditable = true; this.entryName.InvisibleChar = '●'; this.hboxName.Add (this.entryName); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hboxName[this.entryName])); w3.Position = 1; this.vboxContent.Add (this.hboxName); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vboxContent[this.hboxName])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child vboxContent.Gtk.Box+BoxChild this.hboxWarning = new global::Gtk.HBox (); this.hboxWarning.Name = "hboxWarning"; this.hboxWarning.Spacing = 6; // Container child hboxWarning.Gtk.Box+BoxChild this.imageWarning = new global::Gtk.Image (); this.imageWarning.Name = "imageWarning"; this.imageWarning.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-dialog-warning", global::Gtk.IconSize.Menu); this.hboxWarning.Add (this.imageWarning); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hboxWarning[this.imageWarning])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child hboxWarning.Gtk.Box+BoxChild this.labelWarning = new global::Gtk.Label (); this.labelWarning.Name = "labelWarning"; this.labelWarning.Xalign = 0f; this.hboxWarning.Add (this.labelWarning); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hboxWarning[this.labelWarning])); w6.Position = 1; this.vboxContent.Add (this.hboxWarning); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vboxContent[this.hboxWarning])); w7.PackType = ((global::Gtk.PackType)(1)); w7.Position = 2; w7.Expand = false; w7.Fill = false; // Container child vboxContent.Gtk.Box+BoxChild this.checkPreview = new global::Gtk.CheckButton (); this.checkPreview.CanFocus = true; this.checkPreview.Name = "checkPreview"; this.checkPreview.Label = global::MonoDevelop.Database.AddinCatalog.GetString ("Preview SQL"); this.checkPreview.Active = true; this.checkPreview.DrawIndicator = true; this.checkPreview.UseUnderline = true; this.vboxContent.Add (this.checkPreview); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vboxContent[this.checkPreview])); w8.PackType = ((global::Gtk.PackType)(1)); w8.Position = 3; w8.Expand = false; w8.Fill = false; w1.Add (this.vboxContent); global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(w1[this.vboxContent])); w9.Position = 0; // Internal child MonoDevelop.Database.Designer.TableEditorDialog.ActionArea global::Gtk.HButtonBox w10 = this.ActionArea; w10.Name = "dialog1_ActionArea"; w10.Spacing = 6; w10.BorderWidth = ((uint)(5)); w10.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new global::Gtk.Button (); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget (this.buttonCancel, -6); global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonCancel])); w11.Expand = false; w11.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new global::Gtk.Button (); this.buttonOk.Sensitive = false; this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget (this.buttonOk, -5); global::Gtk.ButtonBox.ButtonBoxChild w12 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10[this.buttonOk])); w12.Position = 1; w12.Expand = false; w12.Fill = false; if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 640; this.DefaultHeight = 480; this.Show (); this.entryName.Changed += new global::System.EventHandler (this.NameChanged); this.buttonCancel.Clicked += new global::System.EventHandler (this.CancelClicked); this.buttonOk.Clicked += new global::System.EventHandler (this.OkClicked); } } } ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.View0000644000175000017500000001257711266446160034016 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Designer { public partial class ViewEditorDialog { private global::Gtk.VBox vboxContent; private global::Gtk.HBox hboxName; private global::Gtk.Label label7; private global::Gtk.Entry entryName; private global::Gtk.HBox hboxWarning; private global::Gtk.Image imageWarning; private global::Gtk.Label labelWarning; private global::Gtk.Button buttonCancel; private global::Gtk.Button buttonOk; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Designer.ViewEditorDialog this.Name = "MonoDevelop.Database.Designer.ViewEditorDialog"; this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Internal child MonoDevelop.Database.Designer.ViewEditorDialog.VBox global::Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.vboxContent = new global::Gtk.VBox (); this.vboxContent.Name = "vboxContent"; this.vboxContent.Spacing = 6; this.vboxContent.BorderWidth = ((uint)(6)); // Container child vboxContent.Gtk.Box+BoxChild this.hboxName = new global::Gtk.HBox (); this.hboxName.Name = "hboxName"; this.hboxName.Spacing = 6; // Container child hboxName.Gtk.Box+BoxChild this.label7 = new global::Gtk.Label (); this.label7.Name = "label7"; this.label7.Xalign = 0f; this.label7.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Name"); this.hboxName.Add (this.label7); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hboxName[this.label7])); w2.Position = 0; w2.Expand = false; w2.Fill = false; // Container child hboxName.Gtk.Box+BoxChild this.entryName = new global::Gtk.Entry (); this.entryName.CanFocus = true; this.entryName.Name = "entryName"; this.entryName.IsEditable = true; this.entryName.InvisibleChar = '●'; this.hboxName.Add (this.entryName); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hboxName[this.entryName])); w3.Position = 1; this.vboxContent.Add (this.hboxName); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vboxContent[this.hboxName])); w4.Position = 0; w4.Expand = false; w4.Fill = false; // Container child vboxContent.Gtk.Box+BoxChild this.hboxWarning = new global::Gtk.HBox (); this.hboxWarning.Name = "hboxWarning"; this.hboxWarning.Spacing = 6; // Container child hboxWarning.Gtk.Box+BoxChild this.imageWarning = new global::Gtk.Image (); this.imageWarning.Name = "imageWarning"; this.imageWarning.Pixbuf = global::Stetic.IconLoader.LoadIcon (this, "gtk-dialog-warning", global::Gtk.IconSize.Menu); this.hboxWarning.Add (this.imageWarning); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hboxWarning[this.imageWarning])); w5.Position = 0; w5.Expand = false; w5.Fill = false; // Container child hboxWarning.Gtk.Box+BoxChild this.labelWarning = new global::Gtk.Label (); this.labelWarning.Name = "labelWarning"; this.labelWarning.Xalign = 0f; this.hboxWarning.Add (this.labelWarning); global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hboxWarning[this.labelWarning])); w6.Position = 1; this.vboxContent.Add (this.hboxWarning); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vboxContent[this.hboxWarning])); w7.Position = 2; w7.Expand = false; w7.Fill = false; w1.Add (this.vboxContent); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(w1[this.vboxContent])); w8.Position = 0; // Internal child MonoDevelop.Database.Designer.ViewEditorDialog.ActionArea global::Gtk.HButtonBox w9 = this.ActionArea; w9.Name = "dialog1_ActionArea"; w9.Spacing = 6; w9.BorderWidth = ((uint)(5)); w9.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new global::Gtk.Button (); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget (this.buttonCancel, -6); global::Gtk.ButtonBox.ButtonBoxChild w10 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonCancel])); w10.Expand = false; w10.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new global::Gtk.Button (); this.buttonOk.Sensitive = false; this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget (this.buttonOk, -5); global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w9[this.buttonOk])); w11.Position = 1; w11.Expand = false; w11.Fill = false; if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 640; this.DefaultHeight = 480; this.Show (); this.entryName.Changed += new global::System.EventHandler (this.NameChanged); this.buttonCancel.Clicked += new global::System.EventHandler (this.CancelClicked); this.buttonOk.Clicked += new global::System.EventHandler (this.OkClicked); } } } ././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ConstraintsEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.Cons0000644000175000017500000000100111266446160033762 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Designer { public partial class ConstraintsEditorWidget { protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Designer.ConstraintsEditorWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Designer.ConstraintsEditorWidget"; if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); } } } ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.ColumnsEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.Colu0000644000175000017500000001263711266446160034003 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Designer { public partial class ColumnsEditorWidget { private global::Gtk.HPaned hpaned; private global::Gtk.VBox vboxLeft; private global::Gtk.ScrolledWindow scrolledwindowLeft; private global::Gtk.TreeView treeColumns; private global::Gtk.HButtonBox hbuttonbox; private global::Gtk.Button buttonAdd; private global::Gtk.Button buttonRemove; private global::Gtk.Button buttonUp; private global::Gtk.Button buttonDown; private global::Gtk.ScrolledWindow scrolledwindowRight; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Designer.ColumnsEditorWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Designer.ColumnsEditorWidget"; // Container child MonoDevelop.Database.Designer.ColumnsEditorWidget.Gtk.Container+ContainerChild this.hpaned = new global::Gtk.HPaned (); this.hpaned.CanFocus = true; this.hpaned.Name = "hpaned"; this.hpaned.Position = 662; // Container child hpaned.Gtk.Paned+PanedChild this.vboxLeft = new global::Gtk.VBox (); this.vboxLeft.Name = "vboxLeft"; this.vboxLeft.Spacing = 6; // Container child vboxLeft.Gtk.Box+BoxChild this.scrolledwindowLeft = new global::Gtk.ScrolledWindow (); this.scrolledwindowLeft.CanFocus = true; this.scrolledwindowLeft.Name = "scrolledwindowLeft"; this.scrolledwindowLeft.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child scrolledwindowLeft.Gtk.Container+ContainerChild this.treeColumns = new global::Gtk.TreeView (); this.treeColumns.CanFocus = true; this.treeColumns.Name = "treeColumns"; this.scrolledwindowLeft.Add (this.treeColumns); this.vboxLeft.Add (this.scrolledwindowLeft); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vboxLeft[this.scrolledwindowLeft])); w2.Position = 0; // Container child vboxLeft.Gtk.Box+BoxChild this.hbuttonbox = new global::Gtk.HButtonBox (); this.hbuttonbox.Name = "hbuttonbox"; this.hbuttonbox.Spacing = 6; this.hbuttonbox.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(3)); // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild this.buttonAdd = new global::Gtk.Button (); this.buttonAdd.CanFocus = true; this.buttonAdd.Name = "buttonAdd"; this.buttonAdd.UseStock = true; this.buttonAdd.UseUnderline = true; this.buttonAdd.Label = "gtk-add"; this.hbuttonbox.Add (this.buttonAdd); global::Gtk.ButtonBox.ButtonBoxChild w3 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonAdd])); w3.Expand = false; w3.Fill = false; // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild this.buttonRemove = new global::Gtk.Button (); this.buttonRemove.Sensitive = false; this.buttonRemove.CanFocus = true; this.buttonRemove.Name = "buttonRemove"; this.buttonRemove.UseStock = true; this.buttonRemove.UseUnderline = true; this.buttonRemove.Label = "gtk-remove"; this.hbuttonbox.Add (this.buttonRemove); global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonRemove])); w4.Position = 1; w4.Expand = false; w4.Fill = false; // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild this.buttonUp = new global::Gtk.Button (); this.buttonUp.Sensitive = false; this.buttonUp.CanFocus = true; this.buttonUp.Name = "buttonUp"; this.buttonUp.UseStock = true; this.buttonUp.UseUnderline = true; this.buttonUp.Label = "gtk-go-up"; this.hbuttonbox.Add (this.buttonUp); global::Gtk.ButtonBox.ButtonBoxChild w5 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonUp])); w5.Position = 2; w5.Expand = false; w5.Fill = false; // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild this.buttonDown = new global::Gtk.Button (); this.buttonDown.Sensitive = false; this.buttonDown.CanFocus = true; this.buttonDown.Name = "buttonDown"; this.buttonDown.UseStock = true; this.buttonDown.UseUnderline = true; this.buttonDown.Label = "gtk-go-down"; this.hbuttonbox.Add (this.buttonDown); global::Gtk.ButtonBox.ButtonBoxChild w6 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonDown])); w6.Position = 3; w6.Expand = false; w6.Fill = false; this.vboxLeft.Add (this.hbuttonbox); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vboxLeft[this.hbuttonbox])); w7.Position = 1; w7.Expand = false; w7.Fill = false; this.hpaned.Add (this.vboxLeft); global::Gtk.Paned.PanedChild w8 = ((global::Gtk.Paned.PanedChild)(this.hpaned[this.vboxLeft])); w8.Resize = false; // Container child hpaned.Gtk.Paned+PanedChild this.scrolledwindowRight = new global::Gtk.ScrolledWindow (); this.scrolledwindowRight.CanFocus = true; this.scrolledwindowRight.Name = "scrolledwindowRight"; this.scrolledwindowRight.ShadowType = ((global::Gtk.ShadowType)(1)); this.hpaned.Add (this.scrolledwindowRight); this.Add (this.hpaned); if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); this.buttonAdd.Clicked += new global::System.EventHandler (this.AddClicked); this.buttonRemove.Clicked += new global::System.EventHandler (this.RemoveClicked); this.buttonUp.Clicked += new global::System.EventHandler (this.UpClicked); this.buttonDown.Clicked += new global::System.EventHandler (this.DownClicked); } } } ././@LongLink0000000000000000000000000000020400000000000011561 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.Prim0000644000175000017500000001012311266446160033774 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Designer { public partial class PrimaryKeyConstraintEditorWidget { private global::Gtk.HPaned hpaned; private global::Gtk.VBox vbox3; private global::Gtk.ScrolledWindow windowPK; private global::Gtk.TreeView listPK; private global::Gtk.HButtonBox hbuttonbox; private global::Gtk.Button buttonAdd; private global::Gtk.Button buttonRemove; private global::MonoDevelop.Database.Components.SelectColumnWidget columnSelecter; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget"; // Container child MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget.Gtk.Container+ContainerChild this.hpaned = new global::Gtk.HPaned (); this.hpaned.CanFocus = true; this.hpaned.Name = "hpaned"; this.hpaned.Position = 293; // Container child hpaned.Gtk.Paned+PanedChild this.vbox3 = new global::Gtk.VBox (); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.windowPK = new global::Gtk.ScrolledWindow (); this.windowPK.CanFocus = true; this.windowPK.Name = "windowPK"; this.windowPK.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child windowPK.Gtk.Container+ContainerChild this.listPK = new global::Gtk.TreeView (); this.listPK.CanFocus = true; this.listPK.Name = "listPK"; this.windowPK.Add (this.listPK); this.vbox3.Add (this.windowPK); global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.windowPK])); w2.Position = 0; // Container child vbox3.Gtk.Box+BoxChild this.hbuttonbox = new global::Gtk.HButtonBox (); this.hbuttonbox.Name = "hbuttonbox"; this.hbuttonbox.Spacing = 6; this.hbuttonbox.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(3)); // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild this.buttonAdd = new global::Gtk.Button (); this.buttonAdd.CanFocus = true; this.buttonAdd.Name = "buttonAdd"; this.buttonAdd.UseStock = true; this.buttonAdd.UseUnderline = true; this.buttonAdd.Label = "gtk-add"; this.hbuttonbox.Add (this.buttonAdd); global::Gtk.ButtonBox.ButtonBoxChild w3 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonAdd])); w3.Expand = false; w3.Fill = false; // Container child hbuttonbox.Gtk.ButtonBox+ButtonBoxChild this.buttonRemove = new global::Gtk.Button (); this.buttonRemove.Sensitive = false; this.buttonRemove.CanFocus = true; this.buttonRemove.Name = "buttonRemove"; this.buttonRemove.UseStock = true; this.buttonRemove.UseUnderline = true; this.buttonRemove.Label = "gtk-remove"; this.hbuttonbox.Add (this.buttonRemove); global::Gtk.ButtonBox.ButtonBoxChild w4 = ((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox[this.buttonRemove])); w4.Position = 1; w4.Expand = false; w4.Fill = false; this.vbox3.Add (this.hbuttonbox); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox3[this.hbuttonbox])); w5.Position = 1; w5.Expand = false; w5.Fill = false; this.hpaned.Add (this.vbox3); global::Gtk.Paned.PanedChild w6 = ((global::Gtk.Paned.PanedChild)(this.hpaned[this.vbox3])); w6.Resize = false; // Container child hpaned.Gtk.Paned+PanedChild this.columnSelecter = new global::MonoDevelop.Database.Components.SelectColumnWidget (); this.columnSelecter.Sensitive = false; this.columnSelecter.CanFocus = true; this.columnSelecter.Name = "columnSelecter"; this.columnSelecter.ShadowType = ((global::Gtk.ShadowType)(1)); this.columnSelecter.SingleCheck = false; this.hpaned.Add (this.columnSelecter); this.Add (this.hpaned); if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); this.buttonAdd.Clicked += new global::System.EventHandler (this.AddClicked); this.buttonRemove.Clicked += new global::System.EventHandler (this.RemoveClicked); } } } ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/gtk-gui/MonoDevelop.Database.Designer.Crea0000644000175000017500000000710011266446160033740 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Designer { public partial class CreateDatabaseDialog { private global::Gtk.Notebook notebook; private global::Gtk.VBox vboxConnection; private global::Gtk.Label label1; private global::Gtk.Button buttonCancel; private global::Gtk.Button buttonOk; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Designer.CreateDatabaseDialog this.Name = "MonoDevelop.Database.Designer.CreateDatabaseDialog"; this.Title = global::MonoDevelop.Database.AddinCatalog.GetString ("Create Database"); this.TypeHint = ((global::Gdk.WindowTypeHint)(1)); this.WindowPosition = ((global::Gtk.WindowPosition)(1)); this.SkipTaskbarHint = true; // Internal child MonoDevelop.Database.Designer.CreateDatabaseDialog.VBox global::Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.notebook = new global::Gtk.Notebook (); this.notebook.CanFocus = true; this.notebook.Name = "notebook"; this.notebook.CurrentPage = 0; this.notebook.ShowTabs = false; // Container child notebook.Gtk.Notebook+NotebookChild this.vboxConnection = new global::Gtk.VBox (); this.vboxConnection.Name = "vboxConnection"; this.vboxConnection.Spacing = 6; this.vboxConnection.BorderWidth = ((uint)(6)); this.notebook.Add (this.vboxConnection); // Notebook tab this.label1 = new global::Gtk.Label (); this.label1.Name = "label1"; this.label1.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Connection"); this.notebook.SetTabLabel (this.vboxConnection, this.label1); this.label1.ShowAll (); w1.Add (this.notebook); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(w1[this.notebook])); w3.Position = 0; // Internal child MonoDevelop.Database.Designer.CreateDatabaseDialog.ActionArea global::Gtk.HButtonBox w4 = this.ActionArea; w4.Name = "dialog1_ActionArea"; w4.Spacing = 6; w4.BorderWidth = ((uint)(5)); w4.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new global::Gtk.Button (); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget (this.buttonCancel, -6); global::Gtk.ButtonBox.ButtonBoxChild w5 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonCancel])); w5.Expand = false; w5.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonOk = new global::Gtk.Button (); this.buttonOk.Sensitive = false; this.buttonOk.CanDefault = true; this.buttonOk.CanFocus = true; this.buttonOk.Name = "buttonOk"; this.buttonOk.UseStock = true; this.buttonOk.UseUnderline = true; this.buttonOk.Label = "gtk-ok"; this.AddActionWidget (this.buttonOk, -5); global::Gtk.ButtonBox.ButtonBoxChild w6 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w4[this.buttonOk])); w6.Position = 1; w6.Expand = false; w6.Fill = false; if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 662; this.DefaultHeight = 474; this.Show (); this.buttonCancel.Clicked += new global::System.EventHandler (this.CancelClicked); this.buttonOk.Clicked += new global::System.EventHandler (this.OkClicked); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Designer/Makefile.am0000644000175000017500000000455311266446160026151 0ustar directhexdirecthexADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.Designer.dll REFS = \ $(GTK_SHARP_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Components.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:Mono.Posix \ -r:System FILES = \ AssemblyInfo.cs \ Dialogs/CreateDatabaseDialog.cs \ Dialogs/PreviewDialog.cs \ Dialogs/ProcedureEditorDialog.cs \ Dialogs/TableEditorDialog.cs \ Dialogs/UserEditorDialog.cs \ Dialogs/ViewEditorDialog.cs \ gtk-gui/generated.cs \ gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.ColumnsEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.CommentEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.ConstraintsEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs \ gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.IndicesEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs \ gtk-gui/MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs \ gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs \ gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.UniqueConstraintEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs \ gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs \ Widgets/CheckConstraintEditorWidget.cs \ Widgets/ColumnsEditorWidget.cs \ Widgets/CommentEditorWidget.cs \ Widgets/ConstraintsEditorWidget.cs \ Widgets/ForeignKeyConstraintEditorWidget.cs \ Widgets/IndicesEditorWidget.cs \ Widgets/PrimaryKeyConstraintEditorWidget.cs \ Widgets/TriggersEditorWidget.cs \ Widgets/UniqueConstraintEditorWidget.cs RES = \ gtk-gui/gui.stetic \ gtk-gui/objects.xml \ MonoDevelop.Database.Designer.addin.xml all: $(ASSEMBLY) $(ADDIN_BUILD) $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb EXTRA_DIST = $(FILES) $(RES) include $(top_srcdir)/Makefile.include monodevelop-database-4.0.12/MonoDevelop.Database.Designer/ChangeLog0000644000175000017500000004735311266446160025674 0ustar directhexdirecthex2010-03-22 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Designer.addin.xml: Bumped MD version. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.Designer.csproj: Flush. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.Designer.csproj: Remove mono.addins.targets import. 2010-03-17 Lluis Sanchez Gual * gtk-gui/gui.stetic: * Dialogs/PreviewDialog.cs: * Dialogs/UserEditorDialog.cs: * Dialogs/ViewEditorDialog.cs: * Dialogs/TableEditorDialog.cs: * Widgets/CommentEditorWidget.cs: * Widgets/IndicesEditorWidget.cs: * Widgets/ColumnsEditorWidget.cs: * Dialogs/CreateDatabaseDialog.cs: * Widgets/TriggersEditorWidget.cs: * Widgets/CreateDatabaseWidget.cs: * Dialogs/ProcedureEditorDialog.cs: * Widgets/ConstraintsEditorWidget.cs: * MonoDevelop.Database.Designer.csproj: * Widgets/CheckConstraintEditorWidget.cs: * MonoDevelop.Database.Designer.addin.xml: * Widgets/UniqueConstraintEditorWidget.cs: * Widgets/PrimaryKeyConstraintEditorWidget.cs: * Widgets/ForeignKeyConstraintEditorWidget.cs: Merged MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui and MD.Components into MD.Ide. 2010-02-12 Lluis Sanchez Gual * gtk-gui/gui.stetic: * gtk-gui/generated.cs: * gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.IndicesEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.ColumnsEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.CommentEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.ConstraintsEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.UniqueConstraintEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs: Flush. * MonoDevelop.Database.Designer.csproj: Fix gettext class. 2010-02-03 Luciano N. Callero * MonoDevelop.Database.Designer.csproj: - Flush changes. 2009-11-11 Luciano N. Callero * MonoDevelop.Database.Designer.csproj: Target runtime from 2.0 to 3.5. 2009-11-03 Luciano N. Callero * Dialogs/TableEditorDialog.cs: Implement save preview as script. * Dialogs/PreviewDialog.cs: * Dialogs/ProcedureEditorDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs: Implement save/open script to/from file. * Dialogs/CreateDatabaseDialog.cs: Refactoring database creation. * gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.IndicesEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.ColumnsEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.UniqueConstraintEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget.cs: Flush changes. * gtk-gui/gui.stetic: * gtk-gui/generated.cs: Flush changes. Implement save/open script to/from file. * gtk-gui/MonoDevelop.Database.Designer.CommentEditorWidget.cs: Flush changes. * gtk-gui/MonoDevelop.Database.Designer.ConstraintsEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs: Flush Changes 2009-10-30 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Designer.addin.xml: Bump MD version. 2009-10-21 Luciano N. Callero * Dialogs/CreateDatabaseDialog.cs: Create Database operations dialog. 2009-10-18 Michael Hutchinson * MonoDevelop.Database.Designer.csproj: Fix the build & flush format changes. 2009-10-07 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Designer.addin.xml: Bump MD version. 2009-08-26 Lluis Sanchez Gual * gtk-gui/gui.stetic: * MonoDevelop.Database.Designer.csproj: We now depend on gtk# 2.12.8, Mono 2.4, and Mono.Addins 0.4. 2009-07-31 Lluis Sanchez Gual * MonoDevelop.Database.Designer.csproj: Disabled 'require specific version' flags. 2009-05-27 Luciano N. Callero * MonoDevelop.Database.Designer.csproj: Include ChangeLog into project. * Dialogs/ProcedureEditorDialog.cs: Fix NullReferenceException. No show comment as default. * gtk-gui/gui.stetic: Changes after rebuild the gui. * gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs: * gtk-gui/object.xml: Changes after rebuild the gui. * gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs: Hide some widget for some operations. 2009-04-21 Luciano N. Callero * gtk-gui/gui.stetic: * Dialogs/TableEditorDialog.cs: * Widgets/ColumnsEditorWidget.cs: * Widgets/TriggersEditorWidget.cs: * Widgets/ConstraintsEditorWidget.cs: * Widgets/CheckConstraintEditorWidget.cs: * Widgets/UniqueConstraintEditorWidget.cs: * Widgets/PrimaryKeyConstraintEditorWidget.cs: * Widgets/ForeignKeyConstraintEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs: Fix all the Bugs that prevent run "Create Table" command. 2009-04-17 Michael Hutchinson * Makefile.am: Fix builddir paths. 2009-04-15 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Designer.addin.xml: Bump MD version. 2009-02-20 Lluis Sanchez Gual * MonoDevelop.Database.Designer.csproj: Updated references. 2009/02/06 Lluis Sanchez Gual * MonoDevelop.Database.Designer.mdp: * MonoDevelop.Database.Designer.csproj: Migrated to MSBuild file format. 2009/02/03 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Designer.addin.xml: Bump MD version. 2009/02/03 Lluis Sanchez Gual * gtk-gui/generated.cs: * gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.IndicesEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.ColumnsEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.CommentEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs: * gtk-gui/MonoDevelop.Database.Designer.ConstraintsEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.UniqueConstraintEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget.cs: Flush. 2009-01-26 Michael Hutchinson * MonoDevelop.Database.Designer.mdp: Flush project format changes. 2008-12-02 Michael Hutchinson * Makefile.am: * AssemblyInfo.cs: * MonoDevelop.Database.Designer.mdp: Add AssemblyInfo.cs files that are autogenerated from the addin manifests. 2008-11-06 Michael Hutchinson * Makefile.am: Fix build dependencies. 2008-11-05 Lluis Sanchez Gual * MonoDevelop.Database.Designer.addin.xml: Bump MD version. 2008-09-17 Lluis Sanchez Gual * MonoDevelop.Database.Designer.mdp: Updated projects. 2008-09-17 Lluis Sanchez Gual * gtk-gui/objects.xml: Update. 2008-08-18 Lluis Sanchez Gual * Widgets/ColumnsEditorWidget.cs, Widgets/PrimaryKeyConstraintEditorWidget.cs, Widgets/CheckConstraintEditorWidget.cs, Widgets/CommentEditorWidget.cs, Widgets/TriggersEditorWidget.cs, Widgets/ConstraintsEditorWidget.cs, Widgets/ForeignKeyConstraintEditorWidget.cs, Widgets/UniqueConstraintEditorWidget.cs, Widgets/IndicesEditorWidget.cs, gtk-gui/objects.xml: Use new model for describing custom stetic widgets. 2008-08-18 Lluis Sanchez Gual * MonoDevelop.Database.Designer.mdp: Fix reference to Mono.TextEditor. The incorrect add-in version number causes problems in the makefile synchronization. 2008-06-04 Lluis Sanchez Gual * MonoDevelop.Database.Designer.addin.xml: Bump MD version. 2008-05-21 Lluis Sanchez Gual * MonoDevelop.Database.Designer.mdp, Makefile.am: Fix projects. 2008-05-21 Lluis Sanchez Gual 2008-03-10 Lluis Sanchez Gual * Widgets/ColumnsEditorWidget.cs, Widgets/PrimaryKeyConstraintEditorWidget.cs, Widgets/CheckConstraintEditorWidget.cs, Widgets/TriggersEditorWidget.cs, Widgets/ForeignKeyConstraintEditorWidget.cs, Widgets/UniqueConstraintEditorWidget.cs: Track changes in the MessageService class. 2008-01-30 Ben Motmans * Dialogs/CreateDatabaseDialog.cs: GUI changes * gtk-gui/objects.xml, gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs, gtk-gui/gui.stetic: auto generated code * gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseWidget.cs: obsolete 2008-01-29 Ben Motmans * Dialogs/CreateDatabaseDialog.cs, Widgets/CreateDatabaseWidget.cs: improved design of the create database dialog * gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseWidget.cs, gtk-gui/objects.xml, gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs, gtk-gui/gui.stetic: auto generated code 2008-01-28 Ben Motmans * Dialogs/TableEditorDialog.cs, Dialogs/ProcedureEditorDialog.cs, Dialogs/ViewEditorDialog.cs, Dialogs/CreateDatabaseDialog.cs, Widgets/ColumnsEditorWidget.cs, Widgets/PrimaryKeyConstraintEditorWidget.cs, Widgets/CheckConstraintEditorWidget.cs, Widgets/TriggersEditorWidget.cs, Widgets/ConstraintsEditorWidget.cs, Widgets/ForeignKeyConstraintEditorWidget.cs, Widgets/UniqueConstraintEditorWidget.cs, gtk-gui/MonoDevelop.Database.Designer.UniqueConstraintEditorWidget.cs, gtk-gui/MonoDevelop.Database.Designer.ColumnsEditorWidget.cs, gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs, gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs, gtk-gui/MonoDevelop.Database.Designer.PrimaryKeyConstraintEditorWidget.cs, gtk-gui/MonoDevelop.Database.Designer.CommentEditorWidget.cs, gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs, gtk-gui/gui.stetic: make use of settings classes to change the behavior of the dialogs 2008-01-25 Lluis Sanchez Gual * MonoDevelop.Database.Designer.addin.xml: Update MD version. 2008-01-22 Lluis Sanchez Gual * MonoDevelop.Database.Designer.addin.xml: Updated add-in category and description. 2007-12-14 Lluis Sanchez Gual * MonoDevelop.Database.Designer.mdp: Updated project file. The order of extended properties won't change anymore. 2007-12-12 Lluis Sanchez Gual * MonoDevelop.Database.Designer.addin.xml: Bump add-in versions. 2007-12-04 Lluis Sanchez Gual * MonoDevelop.Database.Designer.mdp: Updated project files. 2007-12-04 Lluis Sanchez Gual * Dialogs/TableEditorDialog.cs, Dialogs/ProcedureEditorDialog.cs, Dialogs/ViewEditorDialog.cs, Dialogs/UserEditorDialog.cs, Widgets/ColumnsEditorWidget.cs, Widgets/PrimaryKeyConstraintEditorWidget.cs, Widgets/CheckConstraintEditorWidget.cs, Widgets/TriggersEditorWidget.cs, Widgets/ConstraintsEditorWidget.cs, Widgets/ForeignKeyConstraintEditorWidget.cs, Widgets/UniqueConstraintEditorWidget.cs, MonoDevelop.Database.Designer.addin.xml, gtk-gui/MonoDevelop.Database.Designer.CheckConstraintEditorWidget.cs, gtk-gui/MonoDevelop.Database.Designer.ViewEditorDialog.cs, gtk-gui/MonoDevelop.Database.Designer.TriggersEditorWidget.cs, gtk-gui/MonoDevelop.Database.Designer.PreviewDialog.cs, gtk-gui/MonoDevelop.Database.Designer.UserEditorDialog.cs, gtk-gui/MonoDevelop.Database.Designer.CreateDatabaseDialog.cs, gtk-gui/MonoDevelop.Database.Designer.TableEditorDialog.cs, gtk-gui/MonoDevelop.Database.Designer.ProcedureEditorDialog.cs, gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs, gtk-gui/gui.stetic, MonoDevelop.Database.Designer.mdp, Makefile.am: Directory reorganization. 2007-11-09 Michael Hutchinson * Dialogs/TableEditorDialog.cs, Widgets/ColumnsEditorWidget.cs: Track LoggingService API. Replace some "LogError" calls with "LogDebug" calls. 2007-10-29 Lluis Sanchez Gual * MonoDevelop.Database.Designer.addin.xml: Bump MD version. 2007-10-23 Lluis Sanchez Gual * MonoDevelop.Database.Designer.mdp: Project file names updated by change in MD path functions. 2007-10-16 Lluis Sanchez Gual * MonoDevelop.Database.Designer.mdp: Fix required GTK# version. 2007-09-26 Michael Hutchinson * MonoDevelop.Database.Designer.mdp: Don't unnecessarily local-copy project references. Don't sync EXTRA_DIST with deploy files. Add Makefile.am to file list. * Makefile.am: Don't deploy .addin.xml file. 2007-09-21 Lluis Sanchez Gual * MonoDevelop.Database.Designer.addin.xml: Bump MD version. 2007-09-19 Ben Motmans * Dialogs/ViewEditorDialog.cs: use the correct capabilities 2007-09-19 Ben Motmans * Commands/temp.cs, MonoDevelop.Database.Designer.mdp, Makefile.am: removed empty file 2007-09-16 Ben Motmans * Makefile.am: link to the correct Mono.Addins dll 2007-09-07 Ben Motmans * Dialogs/TableEditorDialog.cs, Dialogs/ProcedureEditorDialog.cs, Dialogs/ViewEditorDialog.cs, Dialogs/UserEditorDialog.cs, Dialogs/CreateDatabaseDialog.cs, Widgets/ColumnsEditorWidget.cs, Widgets/PrimaryKeyConstraintEditorWidget.cs, Widgets/CheckConstraintEditorWidget.cs, Widgets/TriggersEditorWidget.cs, Widgets/ConstraintsEditorWidget.cs, Widgets/ForeignKeyConstraintEditorWidget.cs, Widgets/UniqueConstraintEditorWidget.cs, Widgets/IndicesEditorWidget.cs: improved capabilities system 2007-08-29 Ben Motmans * Dialogs/TableEditorDialog.cs: retrieve and store the list of database tables for use in the constraint editor dialog * Widgets/ConstraintsEditorWidget.cs: use the correct list of database tables 2007-08-29 Ben Motmans * gtk-gui/gui.stetic: changes in auto generated code 2007-08-28 Ben Motmans * Widgets/ConstraintsEditorWidget.cs: use correct parameters for ForeignKeyConstraintEditorWidget ctor * Widgets/ForeignKeyConstraintEditorWidget.cs: fixed some copy paste errors * gtk-gui/gui.stetic, MonoDevelop.Database.Designer.mdp, Makefile.am: use project references instead of assembly references 2007-08-28 Ben Motmans * Widgets/ForeignKeyConstraintEditorWidget.cs, gtk-gui/MonoDevelop.Database.Designer.ForeignKeyConstraintEditorWidget.cs, gtk-gui/gui.stetic: GUI implementation 2007-08-03 Ben Motmans * Dialogs/TableEditorDialog.cs, Dialogs/ViewEditorDialog.cs, Dialogs/ProcedureEditorDialog.cs: added a warning widget that can show the user whats wrong with the schema object * Dialogs/PreviewDialog.cs: fixed the ctor * Widgets/TriggersEditorWidget.cs, Widgets/PrimaryKeyConstraintEditorWidget.cs, Widgets/CheckConstraintEditorWidget.cs, Widgets/UniqueConstraintEditorWidget.cs, Widgets/ForeignKeyConstraintEditorWidget.cs, Widgets/IndicesEditorWidget.cs, Widgets/ColumnsEditorWidget.cs: Added support for a error message while validating the control 2007-08-02 Ben Motmans * Widgets/UniqueConstraintEditorWidget.cs: removed the "Columns" column from the listview, Validate and FillSchemaObjects implementation * Widgets/TriggersEditorWidget.cs, Widgets/PrimaryKeyConstraintEditorWidget.cs, Widgets/CheckConstraintEditorWidget.cs: Validate and FillSchemaObjects implementation * Widgets/ForeignKeyConstraintEditorWidget.cs, Widgets/IndicesEditorWidget.cs: FillSchemaObjects stub * Widgets/ConstraintsEditorWidget.cs: ValidateSchemaObjects implementation * Widgets/ColumnsEditorWidget.cs: FillSchemaObjects implementation, show the default length if the datatype is changed * Dialogs/TableEditorDialog.cs: Fill objects when Ok is clicked * Widgets/UniqueConstraintEditorWidget.cs: implementation of the treeview with handlers * Widgets/TriggersEditorWidget.cs: added a column for the TriggerFireType 2007-08-01 Ben Motmans * Widgets/UniqueConstraintEditorWidget.cs: implemented Add and Remove button clicks * Widgets/TriggersEditorWidget.cs: Add and initialize implementation * Widgets/ColumnsEditorWidget.cs: better visualisation of database capabilities * Widgets/CheckConstraintEditorWidget.cs: implemented Add and Remove button clicks * Dialogs/TableEditorDialog.cs: create a clone when altering the table and various small bugfixes * Dialogs/ProcedureEditorDialog.cs, Dialogs/ViewEditorDialog.cs: show the alter statement instead of the create statement when the dialog is in alter mode * Dialogs/PreviewDialog.cs: Added a SqlEditor widget 2007-07-31 Ben Motmans * Dialogs/TableEditorDialog.cs: various improvements * Dialogs/ViewEditorDialog.cs: dialog implementation * Dialogs/ProcedureEditorDialog.cs: dialog implementation * Widgets/ColumnsEditorWidget.cs: various bugfixes * Widgets/ForeignKeyConstraintEditorWidget.cs, Widgets/UniqueConstraintEditorWidget.cs, Widgets/PrimaryKeyConstraintEditorWidget.cs, Widgets/ConstraintsEditorWidget.cs, Widgets/CheckConstraintEditorWidget.cs: Added separate widgets to edit each type of constraint 2007-07-25 Ben Motmans * Dialogs/TableEditorDialog.cs: small bugfixes * Dialogs/CreateDatabaseDialog.cs: dialog to create a new database * Dialogs/ViewEditorDialog.cs, Dialogs/UserEditorDialog.cs, Dialogs/ProcedureEditorDialog.cs, Dialogs/PreviewDialog.cs: Stubs for the dialogs * MonoDevelop.Database.Designer.addin.xml: addin definitions * Widgets/TriggersEditorWidget.cs, Widgets/IndicesEditorWidget.cs, Widgets/ConstraintsEditorWidget.cs: stubs with ctor * Widgets/ColumnsEditorWidget.cs: Various improvements and bugfixes * Widgets/CommentEditorWidget.cs: Widget to edit comment 2007-07-18 Ben Motmans * Dialogs/TableEditorDialog.cs, Widgets/TriggersEditorWidget.cs, Widgets/IndicesEditorWidget.cs, Widgets/ConstraintsEditorWidget.cs, Widgets/ColumnsEditorWidget.cs: Widgets and dialogs used by the Table Editor (unfinished) monodevelop-database-4.0.12/MonoDevelop.Database.Designer/Widgets/0000755000175000017500000000000011266446160025514 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/Widgets/IndicesEditorWidget.cs0000644000175000017500000000367411266446160031746 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Designer { [System.ComponentModel.Category("widget")] [System.ComponentModel.ToolboxItem(true)] public partial class IndicesEditorWidget : Gtk.Bin { public event EventHandler ContentChanged; private ISchemaProvider schemaProvider; private SchemaActions action; public IndicesEditorWidget(ISchemaProvider schemaProvider, SchemaActions action) { if (schemaProvider == null) throw new ArgumentNullException ("schemaProvider"); this.schemaProvider = schemaProvider; this.action = action; this.Build(); } public virtual bool ValidateSchemaObjects (out string msg) { msg = null; return true; } public virtual void FillSchemaObjects () { } } } ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/Widgets/ForeignKeyConstraintEditorWidget.c0000644000175000017500000003754111266446160034314 0ustar directhexdirecthex // // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Text; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Components; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Designer { [System.ComponentModel.Category("widget")] [System.ComponentModel.ToolboxItem(true)] public partial class ForeignKeyConstraintEditorWidget : Gtk.Bin { public event EventHandler ContentChanged; private ISchemaProvider schemaProvider; private TableSchema table; private TableSchemaCollection tables; private ColumnSchemaCollection columns; private ConstraintSchemaCollection constraints; TableSchema refTable = null; private const int colNameIndex = 0; private const int colReferenceTableIndex = 1; private const int colIsColumnConstraintIndex = 2; private const int colColumnsIndex = 3; private const int colReferenceColumnsIndex = 4; private const int colDeleteActionIndex = 5; private const int colUpdateActionIndex = 6; private const int colObjIndex = 7; private ListStore store; private ListStore storeActions; private ListStore storeTables; private SchemaActions action; private ForeignKeyConstraintEditorSettings settings; //TODO: difference between columns and reference columns + combo events public ForeignKeyConstraintEditorWidget (ISchemaProvider schemaProvider, SchemaActions action, ForeignKeyConstraintEditorSettings settings) { if (schemaProvider == null) throw new ArgumentNullException ("schemaProvider"); if (settings == null) throw new ArgumentNullException ("settings"); this.schemaProvider = schemaProvider; this.action = action; this.settings = settings; this.Build(); store = new ListStore (typeof (string), typeof (string), typeof (bool), typeof (string), typeof (string), typeof (string), typeof (string), typeof (object)); listFK.Model = store; storeActions = new ListStore (typeof (string), typeof (int)); storeTables = new ListStore (typeof (string), typeof(TableSchema)); if (settings.SupportsCascade) storeActions.AppendValues ("Cascade", (int)ForeignKeyAction.Cascade); if (settings.SupportsRestrict) storeActions.AppendValues ("Restrict", (int)ForeignKeyAction.Restrict); if (settings.SupportsNoAction) storeActions.AppendValues ("No Action", (int)ForeignKeyAction.NoAction); if (settings.SupportsSetNull) storeActions.AppendValues ("Set Null", (int)ForeignKeyAction.SetNull); if (settings.SupportsSetDefault) storeActions.AppendValues ("Set Default", (int)ForeignKeyAction.SetDefault); TreeViewColumn colName = new TreeViewColumn (); TreeViewColumn colRefTable = new TreeViewColumn (); TreeViewColumn colIsColumnConstraint = new TreeViewColumn (); TreeViewColumn colDeleteAction = new TreeViewColumn (); TreeViewColumn colUpdateAction = new TreeViewColumn (); colName.Title = AddinCatalog.GetString ("Name"); colRefTable.Title = AddinCatalog.GetString ("Reference Table"); colIsColumnConstraint.Title = AddinCatalog.GetString ("Column Constraint"); colDeleteAction.Title = AddinCatalog.GetString ("Delete Action"); colUpdateAction.Title = AddinCatalog.GetString ("Update Action"); colRefTable.MinWidth = 120; CellRendererText nameRenderer = new CellRendererText (); CellRendererCombo refTableRenderer = new CellRendererCombo (); CellRendererToggle isColumnConstraintRenderer = new CellRendererToggle (); CellRendererCombo deleteActionRenderer = new CellRendererCombo (); CellRendererCombo updateActionRenderer = new CellRendererCombo (); nameRenderer.Editable = true; nameRenderer.Edited += new EditedHandler (NameEdited); refTableRenderer.Model = storeTables; refTableRenderer.TextColumn = 0; refTableRenderer.Editable = true; refTableRenderer.Edited += new EditedHandler (RefTableEdited); deleteActionRenderer.Model = storeActions; deleteActionRenderer.TextColumn = 0; deleteActionRenderer.Editable = true; deleteActionRenderer.Edited += new EditedHandler (DeleteActionEdited); updateActionRenderer.Model = storeActions; updateActionRenderer.TextColumn = 0; updateActionRenderer.Editable = true; updateActionRenderer.Edited += new EditedHandler (UpdateActionEdited); colName.PackStart (nameRenderer, true); colRefTable.PackStart (refTableRenderer, true); colIsColumnConstraint.PackStart (isColumnConstraintRenderer, true); colDeleteAction.PackStart (deleteActionRenderer, true); colUpdateAction.PackStart (updateActionRenderer, true); colName.AddAttribute (nameRenderer, "text", colNameIndex); colRefTable.AddAttribute (refTableRenderer, "text", colReferenceTableIndex); colIsColumnConstraint.AddAttribute (isColumnConstraintRenderer, "active", colIsColumnConstraintIndex); colDeleteAction.AddAttribute (deleteActionRenderer, "text", colDeleteActionIndex); colUpdateAction.AddAttribute (updateActionRenderer, "text", colUpdateActionIndex); colIsColumnConstraint.Visible = false; listFK.AppendColumn (colName); listFK.AppendColumn (colRefTable); listFK.AppendColumn (colIsColumnConstraint); listFK.AppendColumn (colDeleteAction); listFK.AppendColumn (colUpdateAction); columnSelecter.ColumnToggled += new EventHandler (ColumnToggled); referenceColumnSelecter.ColumnToggled += new EventHandler (ReferenceColumnToggled); listFK.Selection.Changed += new EventHandler (SelectionChanged); ShowAll (); } public void Initialize (TableSchemaCollection tables, TableSchema table, ColumnSchemaCollection columns, ConstraintSchemaCollection constraints) { if (columns == null) throw new ArgumentNullException ("columns"); if (table == null) throw new ArgumentNullException ("table"); if (constraints == null) throw new ArgumentNullException ("constraints"); if (tables == null) throw new ArgumentNullException ("tables"); this.table = table; this.tables = tables; this.columns = columns; this.constraints = constraints; columnSelecter.Initialize (columns); foreach (TableSchema tbl in tables) if (tbl.Name != table.Name) storeTables.AppendValues (tbl.Name, tbl); } protected virtual void AddClicked (object sender, EventArgs e) { ForeignKeyConstraintSchema fk = schemaProvider.CreateForeignKeyConstraintSchema (string.Concat (table.Name, "_", "fk_new")); int index = 1; while (constraints.Contains (fk.Name)) fk.Name = string.Concat (table.Name, "_", "fk_new", (index++).ToString ()); constraints.Add (fk); AddConstraint (fk); EmitContentChanged (); } protected virtual void RemoveClicked (object sender, EventArgs e) { TreeIter iter; if (listFK.Selection.GetSelected (out iter)) { ForeignKeyConstraintSchema fk = store.GetValue (iter, colObjIndex) as ForeignKeyConstraintSchema; if (MessageService.Confirm ( AddinCatalog.GetString ("Are you sure you want to remove foreign key constraint '{0}'?", fk.Name), AlertButton.Remove )) { store.Remove (ref iter); constraints.Remove (fk); EmitContentChanged (); } } } private void SelectionChanged (object sender, EventArgs args) { columnSelecter.DeselectAll (); referenceColumnSelecter.Clear (); TreeIter iter; if (listFK.Selection.GetSelected (out iter)) { FillReferenceColumnSelector (iter, store.GetValue (iter, colReferenceTableIndex).ToString ()); buttonRemove.Sensitive = true; columnSelecter.Sensitive = true; SetSelectionFromIter (iter); } else { buttonRemove.Sensitive = false; columnSelecter.Sensitive = false; } } private void SetSelectionFromIter (TreeIter iter) { bool iscolc = (bool)store.GetValue (iter, colIsColumnConstraintIndex); columnSelecter.SingleCheck = iscolc; string colstr = store.GetValue (iter, colColumnsIndex) as string; if (colstr != String.Empty) { string[] cols = colstr.Split (','); foreach (string col in cols) columnSelecter.Select (col); } colstr = store.GetValue (iter, colReferenceColumnsIndex) as string; if (colstr != string.Empty) { string[] cols = colstr.Split (','); foreach (string col in cols) referenceColumnSelecter.Select (col); } } private void RefTableEdited (object sender, EditedArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { FillReferenceColumnSelector (iter, args.NewText); } } private void FillReferenceColumnSelector (TreeIter iter, string table) { if (tables.Contains (table)) { refTable = tables.Search (table); if (refTable != null) { referenceColumnSelecter.Initialize (refTable.Columns); referenceColumnSelecter.Sensitive = true; store.SetValue (iter, colReferenceTableIndex, table); SetSelectionFromIter (iter); } else { referenceColumnSelecter.Sensitive = false; referenceColumnSelecter.Clear (); } EmitContentChanged (); } } private void ColumnToggled (object sender, EventArgs args) { TreeIter iter; if (listFK.Selection.GetSelected (out iter)) { (store.GetValue (iter, colObjIndex) as ForeignKeyConstraintSchema).Columns.Clear (); foreach (ColumnSchema col in columnSelecter.CheckedColumns) (store.GetValue (iter, colObjIndex) as ForeignKeyConstraintSchema).Columns.Add (col); store.SetValue (iter, colColumnsIndex, GetColumnsString (columnSelecter.CheckedColumns)); EmitContentChanged (); } } private void ReferenceColumnToggled (object sender, EventArgs args) { TreeIter iter; if (listFK.Selection.GetSelected (out iter)) { if (refTable != null) { (store.GetValue (iter, colObjIndex) as ForeignKeyConstraintSchema).ReferenceTable = refTable; (store.GetValue (iter, colObjIndex) as ForeignKeyConstraintSchema).ReferenceColumns.Clear (); foreach (ColumnSchema col in referenceColumnSelecter.CheckedColumns) (store.GetValue (iter, colObjIndex) as ForeignKeyConstraintSchema).ReferenceColumns.Add (col); store.SetValue (iter, colReferenceColumnsIndex, GetColumnsString (referenceColumnSelecter.CheckedColumns)); EmitContentChanged (); } } } private void NameEdited (object sender, EditedArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { if (!string.IsNullOrEmpty (args.NewText)) { store.SetValue (iter, colNameIndex, args.NewText); EmitContentChanged (); } else { string oldText = store.GetValue (iter, colNameIndex) as string; (sender as CellRendererText).Text = oldText; } } } private void UpdateActionEdited (object sender, EditedArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { if (IsValidForeignKeyAction (args.NewText)) { store.SetValue (iter, colUpdateActionIndex, args.NewText); (store.GetValue (iter, colObjIndex) as ForeignKeyConstraintSchema).UpdateAction = GetForeignKeyAction (iter, colUpdateActionIndex); EmitContentChanged (); } else { string oldText = store.GetValue (iter, colUpdateActionIndex) as string; (sender as CellRendererText).Text = oldText; } } } private void DeleteActionEdited (object sender, EditedArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { if (IsValidForeignKeyAction (args.NewText)) { store.SetValue (iter, colDeleteActionIndex, args.NewText); (store.GetValue (iter, colObjIndex) as ForeignKeyConstraintSchema).DeleteAction = GetForeignKeyAction (iter, colDeleteActionIndex); EmitContentChanged (); } else { string oldText = store.GetValue (iter, colDeleteActionIndex) as string; (sender as CellRendererText).Text = oldText; } } } private bool IsValidForeignKeyAction (string name) { foreach (string item in Enum.GetNames (typeof (ForeignKeyAction))) { if (item == name.Replace (" ", "")) return true; } return false; } private void AddConstraint (ForeignKeyConstraintSchema fk) { store.AppendValues (fk.Name, String.Empty, false, String.Empty, String.Empty, fk.DeleteAction.ToString (), fk.UpdateAction.ToString (), fk ); } protected virtual void EmitContentChanged () { if (ContentChanged != null) ContentChanged (this, EventArgs.Empty); } public virtual bool ValidateSchemaObjects (out string msg) { TreeIter iter; if (store.GetIterFirst (out iter)) { do { string name = store.GetValue (iter, colNameIndex) as string; string columns = store.GetValue (iter, colColumnsIndex) as string; if (String.IsNullOrEmpty (columns)) { msg = AddinCatalog.GetString ("Unique Key constraint '{0}' must be applied to one or more columns.", name); return false; } } while (store.IterNext (ref iter)); } msg = null; return true; } public virtual void FillSchemaObjects () { /* * This code isn't needed anymore, beacause Foreign Key's constraint are added on demand when clicking * Add Button. */ } private string GetColumnsString (IEnumerable collection) { bool first = true; StringBuilder sb = new StringBuilder (); foreach (ColumnSchema column in collection) { if (first) first = false; else sb.Append (','); sb.Append (column.Name); } return sb.ToString (); } private ForeignKeyAction GetForeignKeyAction (TreeIter colIter, int colIndex) { string name = store.GetValue (colIter, colIndex) as string; TreeIter iter; if (storeActions.GetIterFirst (out iter)) { do { string actionName = storeActions.GetValue (iter, 0) as string; if (actionName == name) return (ForeignKeyAction)storeActions.GetValue (iter, 1); } while (storeActions.IterNext (ref iter)); } return ForeignKeyAction.None; } } public class ForeignKeyConstraintEditorSettings { private bool supportsCascade = true; private bool supportsRestrict = true; private bool supportsNoAction = true; private bool supportsSetNull = true; private bool supportsSetDefault = true; public bool SupportsCascade { get { return supportsCascade; } set { supportsCascade = value; } } public bool SupportsRestrict { get { return supportsRestrict; } set { supportsRestrict = value; } } public bool SupportsNoAction { get { return supportsNoAction; } set { supportsNoAction = value; } } public bool SupportsSetNull { get { return supportsSetNull; } set { supportsSetNull = value; } } public bool SupportsSetDefault { get { return supportsSetDefault; } set { supportsSetDefault = value; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Designer/Widgets/CheckConstraintEditorWidget.cs0000644000175000017500000002412011266446160033437 0ustar directhexdirecthex // // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Components; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Designer { [System.ComponentModel.Category("widget")] [System.ComponentModel.ToolboxItem(true)] public partial class CheckConstraintEditorWidget : Gtk.Bin { public event EventHandler ContentChanged; private ISchemaProvider schemaProvider; private TableSchema table; private ColumnSchemaCollection columns; private ConstraintSchemaCollection constraints; private ListStore store; private SortedColumnListStore storeColumns; private const int colNameIndex = 0; private const int colColumnNameIndex = 1; private const int colIsColumnConstraintIndex = 2; private const int colSourceIndex = 3; private const int colObjIndex = 4; CellRendererCombo columnRenderer; private CheckConstraintEditorSettings settings; private SchemaActions action; public CheckConstraintEditorWidget (ISchemaProvider schemaProvider, SchemaActions action, CheckConstraintEditorSettings settings) { if (settings == null) throw new ArgumentNullException ("settings"); if (schemaProvider == null) throw new ArgumentNullException ("schemaProvider"); this.schemaProvider = schemaProvider; this.settings = settings; this.action = action; this.Build(); store = new ListStore (typeof (string), typeof (string), typeof (bool), typeof (string), typeof (object)); listCheck.Model = store; TreeViewColumn colName = new TreeViewColumn (); TreeViewColumn colColumn = new TreeViewColumn (); TreeViewColumn colIsColumnConstraint = new TreeViewColumn (); colName.Title = AddinCatalog.GetString ("Name"); colColumn.Title = AddinCatalog.GetString ("Column"); colIsColumnConstraint.Title = AddinCatalog.GetString ("Column Constraint"); colColumn.MinWidth = 120; //request a bigger width CellRendererText nameRenderer = new CellRendererText (); columnRenderer = new CellRendererCombo (); CellRendererToggle isColumnConstraintRenderer = new CellRendererToggle (); nameRenderer.Editable = true; nameRenderer.Edited += new EditedHandler (NameEdited); columnRenderer.TextColumn = SortedColumnListStore.ColNameIndex; columnRenderer.Editable = true; columnRenderer.Edited += new EditedHandler (ColumnEdited); isColumnConstraintRenderer.Activatable = true; isColumnConstraintRenderer.Toggled += new ToggledHandler (IsColumnConstraintToggled); colName.PackStart (nameRenderer, true); colColumn.PackStart (columnRenderer, true); colIsColumnConstraint.PackStart (isColumnConstraintRenderer, true); colName.AddAttribute (nameRenderer, "text", colNameIndex); colColumn.AddAttribute (columnRenderer, "text", colColumnNameIndex); colIsColumnConstraint.AddAttribute (isColumnConstraintRenderer, "active", colIsColumnConstraintIndex); listCheck.AppendColumn (colName); if (settings.SupportsColumnConstraints) listCheck.AppendColumn (colColumn); if (settings.SupportsColumnConstraints && settings.SupportsTableConstraints) listCheck.AppendColumn (colIsColumnConstraint); listCheck.Selection.Changed += new EventHandler (OnSelectionChanged); sqlEditor.TextChanged += new EventHandler (SourceChanged); ShowAll (); } public void Initialize (TableSchema table, ColumnSchemaCollection columns, ConstraintSchemaCollection constraints) { if (columns == null) throw new ArgumentNullException ("columns"); if (table == null) throw new ArgumentNullException ("table"); if (constraints == null) throw new ArgumentNullException ("constraints"); this.table = table; this.columns = columns; this.constraints = constraints; foreach (CheckConstraintSchema check in constraints.GetConstraints (ConstraintType.Check)) AddConstraint (check); storeColumns = new SortedColumnListStore (columns); columnRenderer.Model = storeColumns.Store; //TODO: also col constraints } protected virtual void AddClicked (object sender, EventArgs e) { CheckConstraintSchema check = schemaProvider.CreateCheckConstraintSchema (string.Concat (table.Name, "_", "check_new")); int index = 1; while (constraints.Contains (check.Name)) check.Name = string.Concat (table.Name, "_", "check_new", (index++).ToString ()); constraints.Add (check); AddConstraint (check); EmitContentChanged (); } protected virtual void RemoveClicked (object sender, EventArgs e) { TreeIter iter; if (listCheck.Selection.GetSelected (out iter)) { CheckConstraintSchema check = store.GetValue (iter, colObjIndex) as CheckConstraintSchema; if (MessageService.Confirm ( AddinCatalog.GetString ("Are you sure you want to remove constraint '{0}'?", check.Name), AlertButton.Remove )) { store.Remove (ref iter); constraints.Remove (check); EmitContentChanged (); } } } protected virtual void OnSelectionChanged (object sender, EventArgs e) { TreeIter iter; if (listCheck.Selection.GetSelected (out iter)) { buttonRemove.Sensitive = true; sqlEditor.Editable = true; CheckConstraintSchema check = store.GetValue (iter, colObjIndex) as CheckConstraintSchema; sqlEditor.Text = check.Source; } else { buttonRemove.Sensitive = false; sqlEditor.Editable = false; sqlEditor.Text = String.Empty; } } private void IsColumnConstraintToggled (object sender, ToggledArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { bool val = (bool) store.GetValue (iter, colIsColumnConstraintIndex); store.SetValue (iter, colIsColumnConstraintIndex, !val); EmitContentChanged (); } } private void NameEdited (object sender, EditedArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { if (!string.IsNullOrEmpty (args.NewText)) { store.SetValue (iter, colNameIndex, args.NewText); EmitContentChanged (); } else { string oldText = store.GetValue (iter, colNameIndex) as string; (sender as CellRendererText).Text = oldText; } } } private void ColumnEdited (object sender, EditedArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { if (columns.Contains (args.NewText)) { //only allow existing columns store.SetValue (iter, colColumnNameIndex, args.NewText); EmitContentChanged (); } else { string oldText = store.GetValue (iter, colColumnNameIndex) as string; (sender as CellRendererText).Text = oldText; } } } private void SourceChanged (object sender, EventArgs args) { TreeIter iter; if (listCheck.Selection.GetSelected (out iter)) { CheckConstraintSchema check = store.GetValue (iter, colObjIndex) as CheckConstraintSchema; check.Source = sqlEditor.Text; store.SetValue (iter, colSourceIndex, sqlEditor.Text); EmitContentChanged (); } } private void AddConstraint (CheckConstraintSchema check) { store.AppendValues (check.Name, String.Empty, false, String.Empty, check); } protected virtual void EmitContentChanged () { if (ContentChanged != null) ContentChanged (this, EventArgs.Empty); } public virtual bool ValidateSchemaObjects (out string msg) { TreeIter iter; if (store.GetIterFirst (out iter)) { do { string name = store.GetValue (iter, colNameIndex) as string; string column = store.GetValue (iter, colColumnNameIndex) as string; string source = store.GetValue (iter, colSourceIndex) as string; bool iscolc = (bool)store.GetValue (iter, colIsColumnConstraintIndex); if (String.IsNullOrEmpty (source)) { msg = AddinCatalog.GetString ("Checked constraint '{0}' does not contain a check statement.", name); return false; } if (iscolc && String.IsNullOrEmpty (column)) { msg = AddinCatalog.GetString ("Checked constraint '{0}' is marked as a column constraint but is not applied to a column.", name); return false; } } while (store.IterNext (ref iter)); } msg = null; return true; } public virtual void FillSchemaObjects () { /* * This code isn't needed anymore, beacause Check's constraint are added on demand when clicking * Add Button. */ } } public class CheckConstraintEditorSettings { private bool supportsColumnConstraints = true; private bool supportsTableConstraints = true; public bool SupportsColumnConstraints { get { return supportsColumnConstraints; } set { supportsColumnConstraints = value; } } public bool SupportsTableConstraints { get { return supportsTableConstraints; } set { supportsTableConstraints = value; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Designer/Widgets/TriggersEditorWidget.cs0000644000175000017500000003244611266446160032155 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Designer { [System.ComponentModel.Category("widget")] [System.ComponentModel.ToolboxItem(true)] public partial class TriggersEditorWidget : Gtk.Bin { public event EventHandler ContentChanged; private ISchemaProvider schemaProvider; private TableSchema table; private TriggerSchemaCollection triggers; private SchemaActions action; private ListStore store; private ListStore storeTypes; private ListStore storeEvents; private const int colNameIndex = 0; private const int colTypeIndex = 1; private const int colEventIndex = 2; private const int colFireTypeIndex = 3; private const int colPositionIndex = 4; private const int colActiveIndex = 5; private const int colCommentIndex = 6; private const int colSourceIndex = 7; private const int colObjIndex = 8; public TriggersEditorWidget (ISchemaProvider schemaProvider, SchemaActions action) { if (schemaProvider == null) throw new ArgumentNullException ("schemaProvider"); this.schemaProvider = schemaProvider; this.action = action; this.Build(); sqlEditor.Editable = false; sqlEditor.TextChanged += new EventHandler (SourceChanged); store = new ListStore (typeof (string), typeof (string), typeof (string), typeof (bool), typeof (string), typeof (bool), typeof (string), typeof (string), typeof (object)); storeTypes = new ListStore (typeof (string)); storeEvents = new ListStore (typeof (string)); listTriggers.Model = store; listTriggers.Selection.Changed += new EventHandler (OnSelectionChanged); foreach (string name in Enum.GetNames (typeof (TriggerType))) storeTypes.AppendValues (name); foreach (string name in Enum.GetNames (typeof (TriggerEvent))) storeEvents.AppendValues (name); TreeViewColumn colName = new TreeViewColumn (); TreeViewColumn colType = new TreeViewColumn (); TreeViewColumn colEvent = new TreeViewColumn (); TreeViewColumn colFireType = new TreeViewColumn (); TreeViewColumn colPosition = new TreeViewColumn (); TreeViewColumn colActive = new TreeViewColumn (); TreeViewColumn colComment = new TreeViewColumn (); colName.Title = AddinCatalog.GetString ("Name"); colType.Title = AddinCatalog.GetString ("Type"); colEvent.Title = AddinCatalog.GetString ("Event"); colFireType.Title = AddinCatalog.GetString ("Each Row"); colPosition.Title = AddinCatalog.GetString ("Position"); colActive.Title = AddinCatalog.GetString ("Active"); colComment.Title = AddinCatalog.GetString ("Comment"); colType.MinWidth = 120; colEvent.MinWidth = 120; CellRendererText nameRenderer = new CellRendererText (); CellRendererCombo typeRenderer = new CellRendererCombo (); CellRendererCombo eventRenderer = new CellRendererCombo (); CellRendererToggle fireTypeRenderer = new CellRendererToggle (); CellRendererText positionRenderer = new CellRendererText (); CellRendererToggle activeRenderer = new CellRendererToggle (); CellRendererText commentRenderer = new CellRendererText (); nameRenderer.Editable = true; nameRenderer.Edited += new EditedHandler (NameEdited); typeRenderer.Model = storeTypes; typeRenderer.TextColumn = 0; typeRenderer.Editable = true; typeRenderer.Edited += new EditedHandler (TypeEdited); eventRenderer.Model = storeEvents; eventRenderer.TextColumn = 0; eventRenderer.Editable = true; eventRenderer.Edited += new EditedHandler (EventEdited); fireTypeRenderer.Activatable = true; fireTypeRenderer.Toggled += new ToggledHandler (FireTypeToggled); positionRenderer.Editable = true; positionRenderer.Edited += new EditedHandler (PositionEdited); activeRenderer.Activatable = true; activeRenderer.Toggled += new ToggledHandler (ActiveToggled); commentRenderer.Editable = true; commentRenderer.Edited += new EditedHandler (CommentEdited); colName.PackStart (nameRenderer, true); colType.PackStart (typeRenderer, true); colEvent.PackStart (eventRenderer, true); colFireType.PackStart (fireTypeRenderer, true); colPosition.PackStart (positionRenderer, true); colActive.PackStart (activeRenderer, true); colComment.PackStart (commentRenderer, true); colName.AddAttribute (nameRenderer, "text", colNameIndex); colType.AddAttribute (typeRenderer, "text", colTypeIndex); colEvent.AddAttribute (eventRenderer, "text", colEventIndex); colFireType.AddAttribute (fireTypeRenderer, "active", colFireTypeIndex); colPosition.AddAttribute (positionRenderer, "text", colPositionIndex); colActive.AddAttribute (activeRenderer, "active", colActiveIndex); colComment.AddAttribute (commentRenderer, "text", colCommentIndex); listTriggers.AppendColumn (colName); listTriggers.AppendColumn (colType); listTriggers.AppendColumn (colEvent); listTriggers.AppendColumn (colFireType); listTriggers.AppendColumn (colPosition); listTriggers.AppendColumn (colActive); listTriggers.AppendColumn (colComment); ShowAll (); } public void Initialize (TableSchema table, TriggerSchemaCollection triggers) { if (table == null) throw new ArgumentNullException ("table"); if (triggers == null) throw new ArgumentNullException ("triggers"); this.table = table; this.triggers = triggers; if (action == SchemaActions.Alter) foreach (TriggerSchema trigger in triggers) AddTrigger (trigger); } protected virtual void RemoveClicked (object sender, System.EventArgs e) { TreeIter iter; if (listTriggers.Selection.GetSelected (out iter)) { TriggerSchema trigger = store.GetValue (iter, colObjIndex) as TriggerSchema; if (MessageService.Confirm ( AddinCatalog.GetString ("Are you sure you want to remove trigger '{0}'?", trigger.Name), AlertButton.Remove )) { store.Remove (ref iter); triggers.Remove (trigger); EmitContentChanged (); } } } protected virtual void AddClicked (object sender, EventArgs e) { TriggerSchema trigger = schemaProvider.CreateTriggerSchema (string.Concat (table.Name, "_", "trigger_", table.Name)); trigger.TableName = table.Name; int index = 1; while (triggers.Contains (trigger.Name)) trigger.Name = "trigger_" + table.Name + (index++); // triggers.Add (trigger); AddTrigger (trigger); EmitContentChanged (); } private void AddTrigger (TriggerSchema trigger) { store.AppendValues (trigger.Name, trigger.TriggerType.ToString (), trigger.TriggerEvent.ToString (), trigger.TriggerFireType == TriggerFireType.ForEachRow, trigger.Position.ToString (), trigger.IsActive, trigger.Comment, trigger.Source , trigger); } private void NameEdited (object sender, EditedArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { if (!string.IsNullOrEmpty (args.NewText)) { store.SetValue (iter, colNameIndex, args.NewText); } else { string oldText = store.GetValue (iter, colNameIndex) as string; (sender as CellRendererText).Text = oldText; } } } protected virtual void OnSelectionChanged (object sender, EventArgs e) { TreeIter iter; if (listTriggers.Selection.GetSelected (out iter)) { buttonRemove.Sensitive = true; sqlEditor.Editable = true; TriggerSchema trigger = store.GetValue (iter, colObjIndex) as TriggerSchema; sqlEditor.Text = trigger.Source; } else { buttonRemove.Sensitive = false; sqlEditor.Editable = false; sqlEditor.Text = String.Empty; } } private void SourceChanged (object sender, EventArgs args) { TreeIter iter; if (listTriggers.Selection.GetSelected (out iter)) { store.SetValue (iter, colSourceIndex, sqlEditor.Text); EmitContentChanged (); } } private void TypeEdited (object sender, EditedArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { foreach (string name in Enum.GetNames (typeof (TriggerType))) { if (args.NewText == name) { store.SetValue (iter, colTypeIndex, args.NewText); EmitContentChanged (); return; } } string oldText = store.GetValue (iter, colTypeIndex) as string; (sender as CellRendererText).Text = oldText; } } private void EventEdited (object sender, EditedArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { foreach (string name in Enum.GetNames (typeof (TriggerEvent))) { if (args.NewText == name) { store.SetValue (iter, colEventIndex, args.NewText); EmitContentChanged (); return; } } string oldText = store.GetValue (iter, colEventIndex) as string; (sender as CellRendererText).Text = oldText; } } private void PositionEdited (object sender, EditedArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { int len; if (!string.IsNullOrEmpty (args.NewText) && int.TryParse (args.NewText, out len)) { store.SetValue (iter, colPositionIndex, args.NewText); EmitContentChanged (); } else { string oldText = store.GetValue (iter, colPositionIndex) as string; (sender as CellRendererText).Text = oldText; } } } private void FireTypeToggled (object sender, ToggledArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { bool val = (bool) store.GetValue (iter, colFireTypeIndex); store.SetValue (iter, colFireTypeIndex, !val); EmitContentChanged (); } } private void ActiveToggled (object sender, ToggledArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { bool val = (bool) store.GetValue (iter, colActiveIndex); store.SetValue (iter, colActiveIndex, !val); EmitContentChanged (); } } private void CommentEdited (object sender, EditedArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { store.SetValue (iter, colCommentIndex, args.NewText); EmitContentChanged (); } } public virtual bool ValidateSchemaObjects (out string msg) { TreeIter iter; if (store.GetIterFirst (out iter)) { do { string name = store.GetValue (iter, colNameIndex) as string; string source = store.GetValue (iter, colSourceIndex) as string; //type, event, firetype, position and fireType are always valid if (String.IsNullOrEmpty (source)) { msg = AddinCatalog.GetString ("Trigger '{0}' does not contain a trigger statement.", name); return false; } } while (store.IterNext (ref iter)); } msg = null; return true; } public virtual void FillSchemaObjects () { TreeIter iter; if (store.GetIterFirst (out iter)) { do { TriggerSchema trigger = store.GetValue (iter, colObjIndex) as TriggerSchema; trigger.Name = store.GetValue (iter, colNameIndex) as string; trigger.TriggerType = (TriggerType)Enum.Parse (typeof (TriggerType), store.GetValue (iter, colTypeIndex) as string); trigger.TriggerEvent = (TriggerEvent)Enum.Parse (typeof (TriggerEvent), store.GetValue (iter, colEventIndex) as string); if (Convert.ToBoolean(store.GetValue (iter, colFireTypeIndex))) trigger.TriggerFireType = TriggerFireType.ForEachRow; else trigger.TriggerFireType = TriggerFireType.ForEachStatement; trigger.Position = int.Parse (store.GetValue (iter, colPositionIndex) as string); trigger.IsActive = (bool)store.GetValue (iter, colActiveIndex); trigger.Comment = store.GetValue (iter, colCommentIndex) as string; trigger.Source = store.GetValue (iter, colSourceIndex) as string; table.Triggers.Add (trigger); } while (store.IterNext (ref iter)); } } protected virtual void EmitContentChanged () { if (ContentChanged != null) ContentChanged (this, EventArgs.Empty); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Designer/Widgets/ConstraintsEditorWidget.cs0000644000175000017500000001531711266446160032674 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Designer { [System.ComponentModel.Category("widget")] [System.ComponentModel.ToolboxItem(true)] public partial class ConstraintsEditorWidget : Gtk.Bin { public event EventHandler ContentChanged; public event EventHandler PrimaryKeyChanged; private Notebook notebook; private ISchemaProvider schemaProvider; private PrimaryKeyConstraintEditorWidget pkEditor; private ForeignKeyConstraintEditorWidget fkEditor; private CheckConstraintEditorWidget checkEditor; private UniqueConstraintEditorWidget uniqueEditor; private SchemaActions action; public ConstraintsEditorWidget (ISchemaProvider schemaProvider, SchemaActions action, ConstraintEditorSettings settings) { if (schemaProvider == null) throw new ArgumentNullException ("schemaProvider"); this.schemaProvider = schemaProvider; this.action = action; this.Build(); notebook = new Notebook (); Add (notebook); if (settings.ShowPrimaryKeyConstraints) { //not for column constraints, since they are already editable in the column editor pkEditor = new PrimaryKeyConstraintEditorWidget (schemaProvider, action); pkEditor.ContentChanged += new EventHandler (OnContentChanged); pkEditor.PrimaryKeyChanged += delegate(object sender, EventArgs e) { if (PrimaryKeyChanged != null) PrimaryKeyChanged (this, new EventArgs ()); }; notebook.AppendPage (pkEditor, new Label (AddinCatalog.GetString ("Primary Key"))); } if (settings.ShowForeignKeyConstraints) { fkEditor = new ForeignKeyConstraintEditorWidget (schemaProvider, action, settings.ForeignKeySettings); fkEditor.ContentChanged += new EventHandler (OnContentChanged); notebook.AppendPage (fkEditor, new Label (AddinCatalog.GetString ("Foreign Key"))); } if (settings.ShowCheckConstraints) { checkEditor = new CheckConstraintEditorWidget (schemaProvider, action, settings.CheckSettings); checkEditor.ContentChanged += new EventHandler (OnContentChanged); notebook.AppendPage (checkEditor, new Label (AddinCatalog.GetString ("Check"))); } if (settings.ShowUniqueConstraints) { uniqueEditor = new UniqueConstraintEditorWidget (schemaProvider, action); uniqueEditor.ContentChanged += new EventHandler (OnContentChanged); notebook.AppendPage (uniqueEditor, new Label (AddinCatalog.GetString ("Unique"))); } ShowAll (); } public void Initialize (TableSchemaCollection tables, TableSchema table, ColumnSchemaCollection columns, ConstraintSchemaCollection constraints, DataTypeSchemaCollection dataTypes) { if (columns == null) throw new ArgumentNullException ("columns"); if (constraints == null) throw new ArgumentNullException ("constraints"); if (table == null) throw new ArgumentNullException ("table"); if (tables == null) throw new ArgumentNullException ("tables"); if (pkEditor != null) pkEditor.Initialize (table, columns, constraints); if (fkEditor != null) fkEditor.Initialize (tables, table, columns, constraints); if (checkEditor != null) checkEditor.Initialize (table, columns, constraints); if (uniqueEditor != null) uniqueEditor.Initialize (table, columns, constraints); } private void OnContentChanged (object sender, EventArgs args) { if (ContentChanged != null) ContentChanged (this, args); } public virtual void RefreshConstraints () { pkEditor.RefreshConstraints (); } public virtual bool ValidateSchemaObjects (out string msg) { msg = null; bool ret = true; if (pkEditor != null) ret &= pkEditor.ValidateSchemaObjects (out msg); if (!ret) return ret; if (fkEditor != null) ret &= fkEditor.ValidateSchemaObjects (out msg); if (!ret) return ret; if (checkEditor != null) ret &= checkEditor.ValidateSchemaObjects (out msg); if (!ret) return ret; if (uniqueEditor != null) ret &= uniqueEditor.ValidateSchemaObjects (out msg); if (!ret) return ret; return ret; } public virtual void FillSchemaObjects () { if (pkEditor != null) pkEditor.FillSchemaObjects (); if (fkEditor != null) fkEditor.FillSchemaObjects (); if (checkEditor != null) checkEditor.FillSchemaObjects (); if (uniqueEditor != null) uniqueEditor.FillSchemaObjects (); } } public class ConstraintEditorSettings { private bool showPrimaryKeyConstraints = true; private bool showForeignKeyConstraints = true; private bool showCheckConstraints = true; private bool showUniqueConstraints = true; private ForeignKeyConstraintEditorSettings foreignKeySettings; private CheckConstraintEditorSettings checkSettings; public ConstraintEditorSettings () { foreignKeySettings = new ForeignKeyConstraintEditorSettings (); checkSettings = new CheckConstraintEditorSettings (); } public ForeignKeyConstraintEditorSettings ForeignKeySettings { get { return foreignKeySettings; } } public CheckConstraintEditorSettings CheckSettings { get { return checkSettings; } } public bool ShowPrimaryKeyConstraints { get { return showPrimaryKeyConstraints; } set { showPrimaryKeyConstraints = value; } } public bool ShowForeignKeyConstraints { get { return showForeignKeyConstraints; } set { showForeignKeyConstraints = value; } } public bool ShowCheckConstraints { get { return showCheckConstraints; } set { showCheckConstraints = value; } } public bool ShowUniqueConstraints { get { return showUniqueConstraints; } set { showUniqueConstraints = value; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Designer/Widgets/CommentEditorWidget.cs0000644000175000017500000000316711266446160031767 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; namespace MonoDevelop.Database.Designer { [System.ComponentModel.Category("widget")] [System.ComponentModel.ToolboxItem(true)] public partial class CommentEditorWidget : Gtk.Bin { public CommentEditorWidget() { this.Build(); } public string Comment { get { return textComment.Buffer.Text; } set { if (value == null) textComment.Buffer.Text = String.Empty; else textComment.Buffer.Text = value; } } } } ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/Widgets/PrimaryKeyConstraintEditorWidget.c0000644000175000017500000001752311266446160034344 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Text; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Components; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Designer { [System.ComponentModel.Category("widget")] [System.ComponentModel.ToolboxItem(true)] public partial class PrimaryKeyConstraintEditorWidget : Gtk.Bin { public event EventHandler ContentChanged; public event EventHandler PrimaryKeyChanged; private ISchemaProvider schemaProvider; private TableSchema table; private ColumnSchemaCollection columns; private ConstraintSchemaCollection constraints; private SchemaActions action; private ListStore store; private const int colNameIndex = 0; private const int colColumnsIndex = 1; private const int colObjIndex = 2; public PrimaryKeyConstraintEditorWidget (ISchemaProvider schemaProvider, SchemaActions action) { if (schemaProvider == null) throw new ArgumentNullException ("schemaProvider"); this.schemaProvider = schemaProvider; this.action = action; this.Build(); store = new ListStore (typeof (string), typeof (string), typeof (object)); listPK.Model = store; TreeViewColumn colName = new TreeViewColumn (); colName.Title = AddinCatalog.GetString ("Name"); CellRendererText nameRenderer = new CellRendererText (); nameRenderer.Editable = true; nameRenderer.Edited += new EditedHandler (NameEdited); colName.PackStart (nameRenderer, true); colName.AddAttribute (nameRenderer, "text", colNameIndex); listPK.AppendColumn (colName); listPK.Selection.Changed += new EventHandler (SelectionChanged); columnSelecter.ColumnToggled += new EventHandler (ColumnToggled); ShowAll (); } public void Initialize (TableSchema table, ColumnSchemaCollection columns, ConstraintSchemaCollection constraints) { if (columns == null) throw new ArgumentNullException ("columns"); if (table == null) throw new ArgumentNullException ("table"); if (constraints == null) throw new ArgumentNullException ("constraints"); this.table = table; this.columns = columns; this.constraints = constraints; columnSelecter.Initialize (columns); RefreshConstraints (); } public virtual void RefreshConstraints () { store.Clear (); foreach (PrimaryKeyConstraintSchema pk in constraints.GetConstraints (ConstraintType.PrimaryKey)) AddConstraint (pk); } private void NameEdited (object sender, EditedArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { if (!string.IsNullOrEmpty (args.NewText) && !constraints.Contains (args.NewText)) { store.SetValue (iter, colNameIndex, args.NewText); EmitContentChanged (); } else { string oldText = store.GetValue (iter, colNameIndex) as string; (sender as CellRendererText).Text = oldText; } } } private void SelectionChanged (object sender, EventArgs args) { columnSelecter.DeselectAll (); TreeIter iter; if (listPK.Selection.GetSelected (out iter)) { columnSelecter.Sensitive = true; buttonRemove.Sensitive = true; string colstr = store.GetValue (iter, colColumnsIndex) as string; string[] cols = colstr.Split (','); foreach (string col in cols) columnSelecter.Select (col); } else { columnSelecter.Sensitive = false; buttonRemove.Sensitive = false; } } private void ColumnToggled (object sender, EventArgs args) { TreeIter iter; if (listPK.Selection.GetSelected (out iter)) { bool first = true; StringBuilder sb = new StringBuilder (); ConstraintSchema constraint = (ConstraintSchema)store.GetValue (iter, colObjIndex); constraint.Columns.Clear (); foreach (ColumnSchema column in columnSelecter.CheckedColumns) { constraint.Columns.Add (column); if (first) first = false; else sb.Append (','); sb.Append (column.Name); } store.SetValue (iter, colColumnsIndex, sb.ToString ()); EmitContentChanged (); OnPrimaryKeyChanged (); } } protected virtual void OnPrimaryKeyChanged () { if (PrimaryKeyChanged != null) PrimaryKeyChanged (this, new EventArgs ()); } protected virtual void AddClicked (object sender, System.EventArgs e) { PrimaryKeyConstraintSchema pk = schemaProvider.CreatePrimaryKeyConstraintSchema ( string.Concat ( table.Name, "_", AddinCatalog.GetString ("pk_new"))); int index = 1; while (constraints.Contains (pk.Name)) pk.Name = string.Concat (table.Name,"_", AddinCatalog.GetString ("pk_new"), (index++).ToString ()); constraints.Add (pk); AddConstraint (pk); EmitContentChanged (); } protected virtual void RemoveClicked (object sender, System.EventArgs e) { TreeIter iter; if (listPK.Selection.GetSelected (out iter)) { PrimaryKeyConstraintSchema pk = store.GetValue (iter, colObjIndex) as PrimaryKeyConstraintSchema; if (MessageService.Confirm ( AddinCatalog.GetString ("Are you sure you want to remove constraint '{0}'?", pk.Name), AlertButton.Remove )) { store.Remove (ref iter); constraints.Remove (pk); EmitContentChanged (); } } } private void AddConstraint (PrimaryKeyConstraintSchema pk) { System.Text.StringBuilder pk_cols = new System.Text.StringBuilder (); foreach (ColumnSchema col in pk.Columns) { if (pk_cols.Length > 0) pk_cols.Append (","); pk_cols.Append (col.Name); } TreeIter iter = store.AppendValues (pk.Name, pk_cols.ToString (), pk); } public virtual bool ValidateSchemaObjects (out string msg) { TreeIter iter; if (store.GetIterFirst (out iter)) { do { string name = store.GetValue (iter, colNameIndex) as string; string columns = store.GetValue (iter, colColumnsIndex) as string; if (String.IsNullOrEmpty (columns)) { msg = AddinCatalog.GetString ("Primary Key constraint '{0}' must be applied to one or more columns.", name); return false; } } while (store.IterNext (ref iter)); } msg = null; return true; } public virtual void FillSchemaObjects () { /* * This code isn't needed anymore, beacause PK's are added on demand in * order to mantain the exact same thing between "ColumnsEditorWiget" and PrimaryKeyConstraintEditorWidget */ } protected virtual void EmitContentChanged () { if (ContentChanged != null) ContentChanged (this, EventArgs.Empty); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Designer/Widgets/UniqueConstraintEditorWidget.cs0000644000175000017500000001724511266446160033702 0ustar directhexdirecthex // // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Text; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Components; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Designer { [System.ComponentModel.Category("widget")] [System.ComponentModel.ToolboxItem(true)] public partial class UniqueConstraintEditorWidget : Gtk.Bin { public event EventHandler ContentChanged; private ISchemaProvider schemaProvider; private ColumnSchemaCollection columns; private ConstraintSchemaCollection constraints; private TableSchema table; private SchemaActions action; private ListStore store; private const int colNameIndex = 0; private const int colIsColumnConstraintIndex = 1; private const int colColumnsIndex = 2; private const int colObjIndex = 3; public UniqueConstraintEditorWidget (ISchemaProvider schemaProvider, SchemaActions action) { if (schemaProvider == null) throw new ArgumentNullException ("schemaProvider"); this.schemaProvider = schemaProvider; this.action = action; this.Build(); store = new ListStore (typeof (string), typeof (bool), typeof (string), typeof (object)); listUnique.Model = store; listUnique.Selection.Changed += new EventHandler (SelectionChanged); columnSelecter.ColumnToggled += new EventHandler (ColumnToggled); TreeViewColumn colName = new TreeViewColumn (); colName.Title = AddinCatalog.GetString ("Name"); CellRendererText nameRenderer = new CellRendererText (); nameRenderer.Editable = true; nameRenderer.Edited += new EditedHandler (NameEdited); colName.PackStart (nameRenderer, true); colName.AddAttribute (nameRenderer, "text", colNameIndex); listUnique.AppendColumn (colName); ShowAll (); } public void Initialize (TableSchema table, ColumnSchemaCollection columns, ConstraintSchemaCollection constraints) { if (columns == null) throw new ArgumentNullException ("columns"); if (table == null) throw new ArgumentNullException ("table"); if (constraints == null) throw new ArgumentNullException ("constraints"); this.table = table; this.columns = columns; this.constraints = constraints; columnSelecter.Initialize (columns); foreach (UniqueConstraintSchema uni in constraints.GetConstraints (ConstraintType.Unique)) AddConstraint (uni); //TODO: also col constraints } private void NameEdited (object sender, EditedArgs args) { TreeIter iter; if (store.GetIterFromString (out iter, args.Path)) { if (!string.IsNullOrEmpty (args.NewText) && !constraints.Contains (args.NewText)) { store.SetValue (iter, colNameIndex, args.NewText); EmitContentChanged (); } else { string oldText = store.GetValue (iter, colNameIndex) as string; (sender as CellRendererText).Text = oldText; } } } private void SelectionChanged (object sender, EventArgs args) { columnSelecter.DeselectAll (); TreeIter iter; if (listUnique.Selection.GetSelected (out iter)) { columnSelecter.Sensitive = true; SetSelectionFromIter (iter); } else { columnSelecter.Sensitive = false; } } private void SetSelectionFromIter (TreeIter iter) { bool iscolc = (bool)store.GetValue (iter, colIsColumnConstraintIndex); columnSelecter.SingleCheck = iscolc; string colstr = store.GetValue (iter, colColumnsIndex) as string; if (colstr != string.Empty) { string[] cols = colstr.Split (','); foreach (string col in cols) columnSelecter.Select (col); } } private void ColumnToggled (object sender, EventArgs args) { TreeIter iter; if (listUnique.Selection.GetSelected (out iter)) { store.SetValue (iter, colColumnsIndex, GetColumnsString (columnSelecter.CheckedColumns)); (store.GetValue (iter, colObjIndex) as UniqueConstraintSchema).Columns.Clear (); foreach (ColumnSchema col in columnSelecter.CheckedColumns) (store.GetValue (iter, colObjIndex) as UniqueConstraintSchema).Columns.Add (col); EmitContentChanged (); } } protected virtual void AddClicked (object sender, EventArgs e) { UniqueConstraintSchema uni = schemaProvider.CreateUniqueConstraintSchema (string.Concat (table.Name, "_", "uni_new")); int index = 1; while (constraints.Contains (uni.Name)) uni.Name = string.Concat (table.Name, "_", "uni_new", (index++).ToString ()); constraints.Add (uni); AddConstraint (uni); EmitContentChanged (); } protected virtual void RemoveClicked (object sender, EventArgs e) { TreeIter iter; if (listUnique.Selection.GetSelected (out iter)) { UniqueConstraintSchema uni = store.GetValue (iter, colObjIndex) as UniqueConstraintSchema; if (MessageService.Confirm ( AddinCatalog.GetString ("Are you sure you want to remove constraint '{0}'?", uni.Name), AlertButton.Remove )) { store.Remove (ref iter); constraints.Remove (uni); EmitContentChanged (); } } } private void AddConstraint (UniqueConstraintSchema uni) { string colstr = GetColumnsString (uni.Columns); store.AppendValues (uni.Name, uni.IsColumnConstraint, colstr, uni); } private string GetColumnsString (IEnumerable collection) { bool first = true; StringBuilder sb = new StringBuilder (); foreach (ColumnSchema column in collection) { if (first) first = false; else sb.Append (','); sb.Append (column.Name); } return sb.ToString (); } public virtual bool ValidateSchemaObjects (out string msg) { TreeIter iter; if (store.GetIterFirst (out iter)) { do { string name = store.GetValue (iter, colNameIndex) as string; string columns = store.GetValue (iter, colColumnsIndex) as string; if (String.IsNullOrEmpty (columns)) { msg = AddinCatalog.GetString ("Unique Key constraint '{0}' must be applied to one or more columns.", name); return false; } } while (store.IterNext (ref iter)); } msg = null; return true; } public virtual void FillSchemaObjects () { /* * This code isn't needed anymore, beacause Unique's constraint are added on demand when clicking * Add Button. */ } protected virtual void EmitContentChanged () { if (ContentChanged != null) ContentChanged (this, EventArgs.Empty); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Designer/Widgets/ColumnsEditorWidget.cs0000644000175000017500000004562411266446160032011 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using Gtk; using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Designer { [System.ComponentModel.Category("widget")] [System.ComponentModel.ToolboxItem(true)] public partial class ColumnsEditorWidget : Gtk.Bin { public event EventHandler ContentChanged; public event EventHandler PrimaryKeyChanged; private ListStore storeColumns; private ListStore storeTypes; private const int colPKIndex = 0; private const int colNameIndex = 1; private const int colTypeIndex = 2; private const int colLengthIndex = 3; private const int colNullableIndex = 4; private const int colCommentIndex = 5; private const int colObjIndex = 6; private ColumnSchemaCollection columns; private ConstraintSchemaCollection constraints; private DataTypeSchemaCollection dataTypes; private ISchemaProvider schemaProvider; private TableSchema table; private SchemaActions action; private ColumnEditorSettings settings; public ColumnsEditorWidget (ISchemaProvider schemaProvider, SchemaActions action, ColumnEditorSettings settings) { if (schemaProvider == null) throw new ArgumentNullException ("schemaProvider"); if (settings == null) throw new ArgumentNullException ("settings"); this.schemaProvider = schemaProvider; this.action = action; this.settings = settings; this.Build(); storeTypes = new ListStore (typeof (string), typeof (object)); storeColumns = new ListStore (typeof (bool), typeof (string), typeof (string), typeof (string), typeof (bool), typeof (string), typeof (object)); treeColumns.Model = storeColumns; treeColumns.Selection.Changed += new EventHandler (OnSelectionChanged); //TODO: cols for scale, precision, ... ? TreeViewColumn colPK = new TreeViewColumn (); TreeViewColumn colName = new TreeViewColumn (); TreeViewColumn colType = new TreeViewColumn (); TreeViewColumn colLength = new TreeViewColumn (); TreeViewColumn colNullable = new TreeViewColumn (); TreeViewColumn colComment = new TreeViewColumn (); colPK.Title = AddinCatalog.GetString ("PK"); colName.Title = AddinCatalog.GetString ("Name"); colType.Title = AddinCatalog.GetString ("Type"); colLength.Title = AddinCatalog.GetString ("Length"); colNullable.Title = AddinCatalog.GetString ("Nullable"); colComment.Title = AddinCatalog.GetString ("Comment"); colType.MinWidth = 120; //request a bigger width CellRendererToggle pkRenderer = new CellRendererToggle (); CellRendererText nameRenderer = new CellRendererText (); CellRendererCombo typeRenderer = new CellRendererCombo (); CellRendererText lengthRenderer = new CellRendererText (); CellRendererToggle nullableRenderer = new CellRendererToggle (); CellRendererText commentRenderer = new CellRendererText (); nameRenderer.Editable = true; nameRenderer.Edited += new EditedHandler (NameEdited); typeRenderer.Model = storeTypes; storeTypes.SetSortColumnId (0, SortType.Ascending); typeRenderer.TextColumn = 0; typeRenderer.Editable = true; typeRenderer.Edited += new EditedHandler (TypeEdited); lengthRenderer.Editable = true; lengthRenderer.Edited += new EditedHandler (LengthEdited); pkRenderer.Activatable = true; pkRenderer.Toggled += new ToggledHandler (PkToggled); nullableRenderer.Activatable = true; nullableRenderer.Toggled += new ToggledHandler (NullableToggled); commentRenderer.Editable = true; commentRenderer.Edited += new EditedHandler (CommentEdited); colPK.PackStart (pkRenderer, true); colName.PackStart (nameRenderer, true); colType.PackStart (typeRenderer, true); colLength.PackStart (lengthRenderer, true); colNullable.PackStart (nullableRenderer, true); colComment.PackStart (commentRenderer, true); colPK.AddAttribute (pkRenderer, "active", colPKIndex); colName.AddAttribute (nameRenderer, "text", colNameIndex); colType.AddAttribute (typeRenderer, "text", colTypeIndex); colLength.AddAttribute (lengthRenderer, "text", colLengthIndex); colNullable.AddAttribute (nullableRenderer, "active", colNullableIndex); colComment.AddAttribute (commentRenderer, "text", colCommentIndex); if (settings.ShowPrimaryKeyColumn) treeColumns.AppendColumn (colPK); if (settings.ShowNameColumn) treeColumns.AppendColumn (colName); if (settings.ShowTypeColumn) treeColumns.AppendColumn (colType); if (settings.ShowLengthColumn) treeColumns.AppendColumn (colLength); if (settings.ShowNullableColumn) treeColumns.AppendColumn (colNullable); if (settings.ShowCommentColumn) treeColumns.AppendColumn (colComment); treeColumns.Reorderable = false; treeColumns.HeadersClickable = false; treeColumns.HeadersVisible = true; //Gtk# 2.10:treeColumns.EnableGridLines = TreeViewGridLines.Both; treeColumns.EnableSearch = false; if (action == SchemaActions.Alter) { buttonAdd.Sensitive = settings.ShowAddButton; buttonRemove.Sensitive = settings.ShowRemoveButton; buttonUp.Sensitive = settings.AllowReorder; } ShowAll (); } public void Initialize (TableSchema table, ColumnSchemaCollection columns, ConstraintSchemaCollection constraints, DataTypeSchemaCollection dataTypes) { if (columns == null) throw new ArgumentNullException ("columns"); if (constraints == null) throw new ArgumentNullException ("constraints"); if (table == null) throw new ArgumentNullException ("table"); if (dataTypes == null) throw new ArgumentNullException ("dataTypes"); this.table = table; this.columns = columns; this.constraints = constraints; this.dataTypes = dataTypes; foreach (ColumnSchema column in columns) AppendColumnSchema (column); foreach (DataTypeSchema dataType in dataTypes) storeTypes.AppendValues (dataType.Name, dataType); } public virtual void RefreshConstraints () { ColumnSchema sc; storeColumns.Foreach (delegate (TreeModel model, TreePath path, TreeIter iter) { ColumnSchema col = (ColumnSchema)model.GetValue (iter, colObjIndex); model.SetValue (iter, colPKIndex, false); foreach (ConstraintSchema cons in constraints) if (cons is PrimaryKeyConstraintSchema) foreach (ColumnSchema colConstraint in cons.Columns) if (colConstraint.Name == col.Name) model.SetValue (iter, colPKIndex, true); return false; }); } private void AppendColumnSchema (ColumnSchema column) { bool pk = column.Constraints.GetConstraint (ConstraintType.PrimaryKey) != null; storeColumns.AppendValues (pk, column.Name, column.DataType.Name, column.DataType.LengthRange.Default.ToString (), column.IsNullable, column.Comment, column); } protected void OnPrimaryKeyChanged (object sender, EventArgs args) { if (PrimaryKeyChanged != null) PrimaryKeyChanged (this, args); } protected virtual void AddClicked (object sender, EventArgs e) { // Need to detect if it is a previous column with the same name. string name = AddinCatalog.GetString("column"); int lastIdx = 0; foreach (ColumnSchema col in columns) { if (col.Name == name) { name = string.Concat (name, "1"); } else if (col.Name.StartsWith (name, StringComparison.OrdinalIgnoreCase)) { string idx = col.Name.Substring (name.Length); int newIdx; if (int.TryParse (idx, out newIdx)) lastIdx = newIdx; } } if (lastIdx != 0) name = String.Concat (name, lastIdx+1); else name = string.Concat (name, "1"); ColumnSchema column = new ColumnSchema (schemaProvider, table, name); TreeIter iter; if (storeTypes.GetIterFirst (out iter)) column.DataTypeName = storeTypes.GetValue (iter, 0) as string; columns.Add (column); AppendColumnSchema (column); EmitContentChanged (); } protected virtual void RemoveClicked (object sender, EventArgs e) { TreeIter iter; if (treeColumns.Selection.GetSelected (out iter)) { ColumnSchema column = storeColumns.GetValue (iter, colObjIndex) as ColumnSchema; //TODO: also check for attached constraints bool result = MessageService.Confirm ( AddinCatalog.GetString ("Are you sure you want to remove column '{0}'", column.Name), AlertButton.Remove ); if (result) { storeColumns.Remove (ref iter); EmitContentChanged (); } } } private void PkToggled (object sender, ToggledArgs args) { TreeIter iter; if (storeColumns.GetIterFromString (out iter, args.Path)) { bool val = (bool) storeColumns.GetValue (iter, colPKIndex); storeColumns.SetValue (iter, colPKIndex, !val); if (val) { // Remove Constraint ColumnSchema column = storeColumns.GetValue (iter, colObjIndex) as ColumnSchema; ConstraintSchema delConstraint = null; foreach (ConstraintSchema c in constraints) if (c is PrimaryKeyConstraintSchema) { foreach (ColumnSchema col in c.Columns) if (col.Name == column.Name) { c.Columns.Remove (col); delConstraint = c; break; } } // If PK doesn't have any columns, delete it. if (delConstraint != null) if (delConstraint.Columns.Count < 1) { constraints.Remove (delConstraint); } } else { // Add Constraint ColumnSchema column = storeColumns.GetValue (iter, colObjIndex) as ColumnSchema; // Add the column for an existing PK foreach (ConstraintSchema c in constraints) if (c is PrimaryKeyConstraintSchema) { c.Columns.Add (column); // Fire the Primary Key Changed Event to tell the other widget that "Primary Key Constraint" // are changed in the Column Editor. OnPrimaryKeyChanged (this, new EventArgs ()); EmitContentChanged (); return; } PrimaryKeyConstraintSchema pk = schemaProvider.CreatePrimaryKeyConstraintSchema (string.Concat ( table.Name,"_", AddinCatalog.GetString ("pk_new") )); pk.Columns.Add (column); constraints.Add (pk); } OnPrimaryKeyChanged (this, new EventArgs ()); EmitContentChanged (); } } private void NullableToggled (object sender, ToggledArgs args) { TreeIter iter; if (storeColumns.GetIterFromString (out iter, args.Path)) { bool val = (bool) storeColumns.GetValue (iter, colNullableIndex); ColumnSchema column = storeColumns.GetValue (iter, colObjIndex) as ColumnSchema; storeColumns.SetValue (iter, colNullableIndex, !val); column.IsNullable = !val; EmitContentChanged (); } } private void NameEdited (object sender, EditedArgs args) { TreeIter iter; if (storeColumns.GetIterFromString (out iter, args.Path)) { if (!string.IsNullOrEmpty (args.NewText)) { storeColumns.SetValue (iter, colNameIndex, args.NewText); ColumnSchema column = storeColumns.GetValue (iter, colObjIndex) as ColumnSchema; column.Name = args.NewText; EmitContentChanged (); } else { string oldText = storeColumns.GetValue (iter, colNameIndex) as string; (sender as CellRendererText).Text = oldText; } } } private void TypeEdited (object sender, EditedArgs args) { TreeIter iter; if (storeColumns.GetIterFromString (out iter, args.Path)) { if (!string.IsNullOrEmpty (args.NewText)) { ColumnSchema column = storeColumns.GetValue (iter, colObjIndex) as ColumnSchema; int len = int.Parse (storeColumns.GetValue (iter, colLengthIndex) as string); if (column.DataType.LengthRange.Default == len) { //change the length if it is still the default length DataTypeSchema dtNew = schemaProvider.GetDataType (args.NewText); storeColumns.SetValue (iter, colLengthIndex, dtNew.LengthRange.Default.ToString ()); } storeColumns.SetValue (iter, colTypeIndex, args.NewText); column.DataTypeName = args.NewText; EmitContentChanged (); } else { string oldText = storeColumns.GetValue (iter, colTypeIndex) as string; (sender as CellRendererText).Text = oldText; } } } private void LengthEdited (object sender, EditedArgs args) { TreeIter iter; if (storeColumns.GetIterFromString (out iter, args.Path)) { int len; if (!string.IsNullOrEmpty (args.NewText) && int.TryParse (args.NewText, out len)) { storeColumns.SetValue (iter, colLengthIndex, args.NewText); ColumnSchema column = storeColumns.GetValue (iter, colObjIndex) as ColumnSchema; column.DataType.LengthRange.Default = int.Parse (args.NewText); EmitContentChanged (); } else { string oldText = storeColumns.GetValue (iter, colLengthIndex) as string; (sender as CellRendererText).Text = oldText; } } } private void CommentEdited (object sender, EditedArgs args) { TreeIter iter; if (storeColumns.GetIterFromString (out iter, args.Path)) { storeColumns.SetValue (iter, colCommentIndex, args.NewText); ColumnSchema column = storeColumns.GetValue (iter, colObjIndex) as ColumnSchema; column.Comment = args.NewText; EmitContentChanged (); } } protected virtual void DownClicked (object sender, EventArgs e) { TreeIter iter; if (treeColumns.Selection.GetSelected (out iter)) { TreePath path = storeColumns.GetPath (iter); int x = path.Indices[0]; columns.Swap (x, x + 1); } } protected virtual void UpClicked (object sender, EventArgs e) { TreeIter iter; if (treeColumns.Selection.GetSelected (out iter)) { TreePath path = storeColumns.GetPath (iter); int x = path.Indices[0]; columns.Swap (x, x - 1); } } private void OnSelectionChanged (object sender, EventArgs e) { IDbFactory fac = schemaProvider.ConnectionPool.DbFactory; //TODO: check Append if "next" is the last row TreeIter iter; bool sel = settings.ShowRemoveButton; bool next = settings.AllowReorder; bool prev = next; if (treeColumns.Selection.GetSelected (out iter)) { TreePath path = storeColumns.GetPath (iter); int index = path.Indices[0]; sel &= true; prev &= index > 0; next &= storeColumns.IterNext (ref iter); } buttonUp.Sensitive = prev; buttonDown.Sensitive = next; buttonRemove.Sensitive = sel; } protected virtual void EmitContentChanged () { if (ContentChanged != null) ContentChanged (this, EventArgs.Empty); } public virtual bool ValidateSchemaObjects (out string msg) { TreeIter iter; if (storeColumns.GetIterFirst (out iter)) { bool isPk = constraints.GetConstraint (ConstraintType.PrimaryKey) != null; do { string name = storeColumns.GetValue (iter, colNameIndex) as string; string type = storeColumns.GetValue (iter, colTypeIndex) as string; int len = int.Parse (storeColumns.GetValue (iter, colLengthIndex) as string); if (!isPk) isPk = (bool)storeColumns.GetValue (iter, colPKIndex); DataTypeSchema dt = schemaProvider.GetDataType (type); if (dt == null) { msg = AddinCatalog.GetString ("Unknown data type '{0}' applied to column '{1}'.", type, name); return false; } //TODO: enable when all providers have good datatype info // if (!dt.LengthRange.IsInRange (len)) { // msg = AddinCatalog.GetString ("Invalid length for '{0}'.", name); // return false; // } } while (storeColumns.IterNext (ref iter)); if (!isPk) { msg = AddinCatalog.GetString ("Table '{0}' must contain at least one primary key.", table.Name); return false; } else { msg = null; return true; } } msg = AddinCatalog.GetString ("Table '{0}' must contain at least 1 column.", table.Name); return false; } public virtual void FillSchemaObjects () { TreeIter iter; if (storeColumns.GetIterFirst (out iter)) { do { ColumnSchema column = storeColumns.GetValue (iter, colObjIndex) as ColumnSchema; column.Name = storeColumns.GetValue (iter, colNameIndex) as string; column.DataTypeName = storeColumns.GetValue (iter, colTypeIndex) as string; column.DataType.LengthRange.Default = int.Parse (storeColumns.GetValue (iter, colLengthIndex) as string); column.IsNullable = (bool)storeColumns.GetValue (iter, colNullableIndex); column.Comment = storeColumns.GetValue (iter, colCommentIndex) as string; } while (storeColumns.IterNext (ref iter)); } } } public class ColumnEditorSettings { private bool showAddButton = true; private bool showRemoveButton = true; private bool allowReorder = true; private bool showPrimaryKeyColumn = true; private bool showNameColumn = true; private bool showTypeColumn = true; private bool showLengthColumn = true; private bool showNullableColumn = true; private bool showCommentColumn = true; public bool ShowAddButton { get { return showAddButton; } set { showAddButton = value; } } public bool ShowRemoveButton { get { return showRemoveButton; } set { showRemoveButton = value; } } public bool AllowReorder { get { return allowReorder; } set { allowReorder = value; } } public bool ShowPrimaryKeyColumn { get { return showPrimaryKeyColumn; } set { showPrimaryKeyColumn = value; } } public bool ShowNameColumn { get { return showNameColumn; } set { showNameColumn = value; } } public bool ShowTypeColumn { get { return showTypeColumn; } set { showTypeColumn = value; } } public bool ShowLengthColumn { get { return showLengthColumn; } set { showLengthColumn = value; } } public bool ShowNullableColumn { get { return showNullableColumn; } set { showNullableColumn = value; } } public bool ShowCommentColumn { get { return showCommentColumn; } set { showCommentColumn = value; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Designer/Dialogs/0000755000175000017500000000000011266446160025470 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Designer/Dialogs/ProcedureEditorDialog.cs0000644000175000017500000001540511266446160032243 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.IO; using System.Threading; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Components; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Designer { public partial class ProcedureEditorDialog : Gtk.Dialog { private SchemaActions action; private Notebook notebook; private IEditSchemaProvider schemaProvider; private ProcedureSchema procedure; private CommentEditorWidget commentEditor; private SqlEditorWidget sqlEditor; private ProcedureEditorSettings settings; public ProcedureEditorDialog (IEditSchemaProvider schemaProvider, bool create, ProcedureEditorSettings settings) { if (schemaProvider == null) throw new ArgumentNullException ("schemaProvider"); this.settings = settings; this.schemaProvider = schemaProvider; this.action = create ? SchemaActions.Create : SchemaActions.Alter; this.Build(); if (create) Title = AddinCatalog.GetString ("Create Procedure"); else Title = AddinCatalog.GetString ("Alter Procedure"); notebook = new Notebook (); sqlEditor = new SqlEditorWidget (); sqlEditor.TextChanged += new EventHandler (SqlChanged); notebook.AppendPage (sqlEditor, new Label (AddinCatalog.GetString ("Definition"))); if (settings.ShowComment) { commentEditor = new CommentEditorWidget (); notebook.AppendPage (commentEditor, new Label (AddinCatalog.GetString ("Comment"))); } if (!settings.ShowName) { nameLabel.Visible = false; entryName.Visible = false; } vboxContent.PackStart (notebook, true, true, 0); vboxContent.ShowAll (); SetWarning (null); } public void Initialize (ProcedureSchema procedure) { if (procedure == null) throw new ArgumentNullException ("procedure"); this.procedure = procedure; entryName.Text = procedure.Name; if (action == SchemaActions.Alter) { sqlEditor.Text = schemaProvider.GetProcedureAlterStatement (procedure); if (commentEditor != null) commentEditor.Comment = procedure.Comment; } else sqlEditor.Text = procedure.Definition; } protected virtual void OkClicked (object sender, EventArgs e) { if (settings.ShowName) procedure.Name = entryName.Text; procedure.Definition = sqlEditor.Text; if (settings.ShowComment) procedure.Comment = commentEditor.Comment; Respond (ResponseType.Ok); Hide (); } protected virtual void CancelClicked (object sender, EventArgs e) { Respond (ResponseType.Cancel); Hide (); } protected virtual void NameChanged (object sender, EventArgs e) { CheckState (); } protected virtual void SqlChanged (object sender, EventArgs e) { CheckState (); } private void CheckState () { buttonOk.Sensitive = entryName.Text.Length > 0 && sqlEditor.Text.Length > 0; //TODO: check for duplicate name } protected virtual void SetWarning (string msg) { if (msg == null) { hboxWarning.Hide (); labelWarning.Text = ""; } else { hboxWarning.ShowAll (); labelWarning.Text = msg; } } protected virtual void OnButtonSaveClicked (object sender, System.EventArgs e) { FileChooserDialog dlg = new FileChooserDialog ( AddinCatalog.GetString ("Save Script"), null, FileChooserAction.Save, "gtk-cancel", ResponseType.Cancel, "gtk-save", ResponseType.Accept ); dlg.SelectMultiple = false; dlg.LocalOnly = true; dlg.Modal = true; FileFilter filter = new FileFilter (); filter.AddPattern ("*.sql"); filter.Name = AddinCatalog.GetString ("SQL Scripts"); FileFilter filterAll = new FileFilter (); filterAll.AddPattern ("*"); filterAll.Name = AddinCatalog.GetString ("All files"); dlg.AddFilter (filter); dlg.AddFilter (filterAll); try { if (dlg.Run () == (int)ResponseType.Accept) { if (File.Exists (dlg.Filename)) { if (!MessageService.Confirm (AddinCatalog.GetString (@"File {0} already exists. Do you want to overwrite\nthe existing file?", dlg.Filename), AlertButton.Yes)) return; else File.Delete (dlg.Filename); } using (StreamWriter writer = File.CreateText (dlg.Filename)) { writer.Write (sqlEditor.Text); writer.Close (); } } } finally { dlg.Destroy (); } } protected virtual void OnButtonOpenClicked (object sender, System.EventArgs e) { FileChooserDialog dlg = new FileChooserDialog ( AddinCatalog.GetString ("Open Script"), null, FileChooserAction.Open, "gtk-cancel", ResponseType.Cancel, "gtk-open", ResponseType.Accept ); dlg.SelectMultiple = false; dlg.LocalOnly = true; dlg.Modal = true; FileFilter filter = new FileFilter (); filter.AddPattern ("*.sql"); filter.Name = AddinCatalog.GetString ("SQL Scripts"); FileFilter filterAll = new FileFilter (); filterAll.AddPattern ("*"); filterAll.Name = AddinCatalog.GetString ("All files"); dlg.AddFilter (filter); dlg.AddFilter (filterAll); try { if (dlg.Run () == (int)ResponseType.Accept) { using (StreamReader reader = File.OpenText (dlg.Filename)) { sqlEditor.Text = reader.ReadToEnd (); reader.Close (); } } } finally { dlg.Destroy (); } } } public class ProcedureEditorSettings { bool showComment = false; bool showName = true; public bool ShowComment { get { return showComment; } set { showComment = value; } } public bool ShowName { get { return showName; } set { showName = value; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Designer/Dialogs/UserEditorDialog.cs0000644000175000017500000000455711266446160031237 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Designer { public partial class UserEditorDialog : Gtk.Dialog { private SchemaActions action; private Notebook notebook; private ISchemaProvider schemaProvider; private UserSchema user; public UserEditorDialog (ISchemaProvider schemaProvider, UserSchema user, bool create) { this.Build(); if (schemaProvider == null) throw new ArgumentNullException ("schemaProvider"); if (user == null) throw new ArgumentNullException ("user"); this.schemaProvider = schemaProvider; this.user = user; this.action = create ? SchemaActions.Create : SchemaActions.Alter; this.Build(); if (create) Title = AddinCatalog.GetString ("Create User"); else Title = AddinCatalog.GetString ("Alter User"); notebook = new Notebook (); vboxContent.PackStart (notebook, true, true, 0); vboxContent.ShowAll (); } protected virtual void OkClicked (object sender, System.EventArgs e) { } protected virtual void CancelClicked (object sender, System.EventArgs e) { } protected virtual void NameChanged (object sender, System.EventArgs e) { } } } monodevelop-database-4.0.12/MonoDevelop.Database.Designer/Dialogs/PreviewDialog.cs0000644000175000017500000000654311266446160030570 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.IO; using System.Threading; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Components; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Designer { public partial class PreviewDialog : Gtk.Dialog { public PreviewDialog (string sql) { this.Build(); sqlEditor.TextChanged += new EventHandler (SqlChanged); sqlEditor.Text = sql; } public string Text { get { return sqlEditor.Text; } set { sqlEditor.Text = value; } } protected virtual void CancelClicked (object sender, EventArgs e) { Respond (ResponseType.Cancel); Hide (); } protected virtual void OkClicked (object sender, EventArgs e) { Respond (ResponseType.Ok); Hide (); } protected virtual void SqlChanged (object sender, EventArgs e) { buttonOk.Sensitive = sqlEditor.Text.Length > 0; } protected virtual void OnButton21Clicked (object sender, System.EventArgs e) { FileChooserDialog dlg = new FileChooserDialog ( AddinCatalog.GetString ("Save Script"), null, FileChooserAction.Save, "gtk-cancel", ResponseType.Cancel, "gtk-save", ResponseType.Accept ); dlg.SelectMultiple = false; dlg.LocalOnly = true; dlg.Modal = true; FileFilter filter = new FileFilter (); filter.AddPattern ("*.sql"); filter.Name = AddinCatalog.GetString ("SQL Scripts"); FileFilter filterAll = new FileFilter (); filterAll.AddPattern ("*"); filterAll.Name = AddinCatalog.GetString ("All files"); dlg.AddFilter (filter); dlg.AddFilter (filterAll); try { if (dlg.Run () == (int)ResponseType.Accept) { if (File.Exists (dlg.Filename)) { if (!MessageService.Confirm (AddinCatalog.GetString (@"File {0} already exists. Do you want to overwrite\nthe existing file?", dlg.Filename), AlertButton.Yes)) return; else File.Delete (dlg.Filename); } using (StreamWriter writer = File.CreateText (dlg.Filename)) { writer.Write (Text); writer.Close (); } } } finally { dlg.Destroy (); } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Designer/Dialogs/TableEditorDialog.cs0000644000175000017500000002451311266446160031342 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Components; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Designer { public partial class TableEditorDialog : Gtk.Dialog { private SchemaActions action; private IEditSchemaProvider schemaProvider; private TableSchemaCollection tables; private TableSchema table; private TableSchema originalTable; private ColumnSchemaCollection columns; private ConstraintSchemaCollection constraints; private IndexSchemaCollection indexes; private TriggerSchemaCollection triggers; private DataTypeSchemaCollection dataTypes; private Notebook notebook; private ColumnsEditorWidget columnEditor; private ConstraintsEditorWidget constraintEditor; private IndicesEditorWidget indexEditor; private TriggersEditorWidget triggerEditor; private CommentEditorWidget commentEditor; TableEditorSettings settings; public TableEditorDialog (IEditSchemaProvider schemaProvider, bool create, TableEditorSettings settings) { if (schemaProvider == null) throw new ArgumentNullException ("schemaProvider"); this.schemaProvider = schemaProvider; this.action = create ? SchemaActions.Create : SchemaActions.Alter; this.settings = settings; this.Build(); if (create) Title = AddinCatalog.GetString ("Create Table"); else Title = AddinCatalog.GetString ("Alter Table"); notebook = new Notebook (); vboxContent.PackStart (notebook, true, true, 0); notebook.Sensitive = false; ThreadPool.QueueUserWorkItem (new WaitCallback (InitializeThreaded)); vboxContent.ShowAll (); } public void Initialize (TableSchema table) { if (table == null) throw new ArgumentNullException ("table"); this.originalTable = table; this.table = table; SetWarning (null); columnEditor = new ColumnsEditorWidget (schemaProvider, action, settings.ColumnSettings); columnEditor.ContentChanged += new EventHandler (OnContentChanged); // When primary Key are selected on the "Column Editor", it has to refresh the "Primary Key" Widget. columnEditor.PrimaryKeyChanged += delegate(object sender, EventArgs e) { if (constraintEditor != null) constraintEditor.RefreshConstraints (); }; notebook.AppendPage (columnEditor, new Label (AddinCatalog.GetString ("Columns"))); if (settings.ShowConstraints) { constraintEditor = new ConstraintsEditorWidget (schemaProvider, action, settings.ConstraintSettings); constraintEditor.ContentChanged += new EventHandler (OnContentChanged); notebook.AppendPage (constraintEditor, new Label (AddinCatalog.GetString ("Constraints"))); // If Primary Key are changed on it has to refresh the "Column Editor" Widget to select the correct // columns constraintEditor.PrimaryKeyChanged += delegate(object sender, EventArgs e) { columnEditor.RefreshConstraints (); }; } //TODO: Implement Index /* if (settings.ShowIndices) { indexEditor = new IndicesEditorWidget (schemaProvider, action); indexEditor.ContentChanged += OnContentChanged; notebook.AppendPage (indexEditor, new Label (AddinCatalog.GetString ("Indexes"))); } */ if (settings.ShowTriggers) { triggerEditor = new TriggersEditorWidget (schemaProvider, action); triggerEditor.ContentChanged += new EventHandler (OnContentChanged); notebook.AppendPage (triggerEditor, new Label (AddinCatalog.GetString ("Triggers"))); } if (settings.ShowComment) { commentEditor = new CommentEditorWidget (); notebook.AppendPage (commentEditor, new Label (AddinCatalog.GetString ("Comment"))); } notebook.Page = 0; entryName.Text = originalTable.Name; WaitDialog.ShowDialog ("Loading table data ..."); } private void InitializeThreaded (object state) { tables = schemaProvider.GetTables (); dataTypes = schemaProvider.GetDataTypes (); columns = originalTable.Columns; constraints = originalTable.Constraints; triggers = originalTable.Triggers; //TODO: indices indexes = new IndexSchemaCollection (); System.Text.StringBuilder builder = new System.Text.StringBuilder (); builder.Append ("Loading editor for TABLE "); builder.Append (originalTable.Name); builder.AppendLine (); builder.Append (" columns = "); builder.Append (columns.Count); builder.AppendLine (); builder.Append ("constraints = "); builder.Append (constraints.Count); builder.AppendLine (); try { foreach (ColumnSchema col in columns) { int dummy = col.Constraints.Count; //get column constraints builder.Append ("CONSTRAINTS "); builder.Append (col.Name); builder.Append (" "); builder.Append (dummy); builder.AppendLine (); } LoggingService.LogDebug (builder.ToString ()); } catch (Exception ee) { LoggingService.LogDebug (builder.ToString ()); LoggingService.LogError (ee.ToString ()); } if (action == SchemaActions.Alter) //make a duplicate if we are going to alter the table this.table = originalTable.Clone () as TableSchema; DispatchService.GuiDispatch (delegate () { InitializeGui (); }); } private void InitializeGui () { notebook.Sensitive = true; WaitDialog.HideDialog (); LoggingService.LogDebug ("TableEditorDialog: entering InitializeGui"); columnEditor.Initialize (table, columns, constraints, dataTypes); if (constraintEditor != null) constraintEditor.Initialize (tables, table, columns, constraints, dataTypes); if (triggerEditor != null) triggerEditor.Initialize (table, triggers); LoggingService.LogDebug ("TableEditorDialog: leaving InitializeGui"); } protected virtual void CancelClicked (object sender, System.EventArgs e) { Respond (ResponseType.Cancel); Hide (); } protected virtual void OkClicked (object sender, System.EventArgs e) { columnEditor.FillSchemaObjects (); if (constraintEditor != null) constraintEditor.FillSchemaObjects (); if (triggerEditor != null) triggerEditor.FillSchemaObjects (); if (commentEditor != null) table.Comment = commentEditor.Comment; if (action == SchemaActions.Create) table.Definition = schemaProvider.GetTableCreateStatement (table); // else // table.Definition = schemaProvider.GetTableAlterStatement (table); if (checkPreview.Active) { // Preview Dialog: If it's canceled the response to the previous dialog should be None to know that it // isn't OK and don't close the table editor dialog. PreviewDialog dlg = new PreviewDialog (table.Definition); int resp = 0; while ((resp = dlg.Run ()) != (int)ResponseType.Ok) if (resp == (int)ResponseType.Cancel) break; else Respond (ResponseType.Cancel); if (resp == (int)ResponseType.Ok) { table.Definition = dlg.Text; Respond (ResponseType.Ok); Hide (); } else Respond (ResponseType.None); dlg.Destroy (); } else { Respond (ResponseType.Ok); Hide (); } } protected virtual void NameChanged (object sender, System.EventArgs e) { table.Name = entryName.Text; } protected virtual void OnContentChanged (object sender, EventArgs args) { string msg; bool val = entryName.Text.Length > 0; if (!val) { msg = AddinCatalog.GetString ("No name specified."); goto sens; } val &= columnEditor.ValidateSchemaObjects (out msg); if (!val) goto sens; if (constraintEditor != null) { val &= constraintEditor.ValidateSchemaObjects (out msg); if (!val) goto sens; } if (triggerEditor != null) { val &= triggerEditor.ValidateSchemaObjects (out msg); if (!val) goto sens; } //TODO: validate indexEditor sens: SetWarning (msg); buttonOk.Sensitive = val; } protected virtual void SetWarning (string msg) { if (msg == null) { hboxWarning.Hide (); labelWarning.Text = ""; } else { hboxWarning.ShowAll (); labelWarning.Text = msg; } } } public class TableEditorSettings { private bool showConstraints = true; private bool showComment = false; private bool showTriggers = true; private bool showIndices = true; private ConstraintEditorSettings constraintSettings; private ColumnEditorSettings columnSettings; public TableEditorSettings () { constraintSettings = new ConstraintEditorSettings (); columnSettings = new ColumnEditorSettings (); } public ConstraintEditorSettings ConstraintSettings { get { return constraintSettings; } } public ColumnEditorSettings ColumnSettings { get { return columnSettings; } } public bool ShowConstraints { get { return constraintSettings.ShowPrimaryKeyConstraints | constraintSettings.ShowForeignKeyConstraints | constraintSettings.ShowCheckConstraints | constraintSettings.ShowUniqueConstraints; } } public bool ShowComment { get { return showComment; } set { showComment = value; } } public bool ShowTriggers { get { return showTriggers; } set { showTriggers = value; } } public bool ShowIndices { get { return showIndices; } set { showIndices = value; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Designer/Dialogs/ViewEditorDialog.cs0000644000175000017500000000770611266446160031232 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Designer { public partial class ViewEditorDialog : Gtk.Dialog { private SchemaActions action; private Notebook notebook; private ISchemaProvider schemaProvider; private ViewSchema view; private CommentEditorWidget commentEditor; private SqlEditorWidget sqlEditor; public ViewEditorDialog (ISchemaProvider schemaProvider, bool create, ViewEditorSettings settings) { if (schemaProvider == null) throw new ArgumentNullException ("schemaProvider"); this.schemaProvider = schemaProvider; this.action = create ? SchemaActions.Create : SchemaActions.Alter; this.Build(); if (create) Title = AddinCatalog.GetString ("Create View"); else Title = AddinCatalog.GetString ("Alter View"); notebook = new Notebook (); sqlEditor = new SqlEditorWidget (); sqlEditor.TextChanged += new EventHandler (SqlChanged); notebook.AppendPage (sqlEditor, new Label (AddinCatalog.GetString ("Definition"))); if (settings.ShowComment) { commentEditor = new CommentEditorWidget (); notebook.AppendPage (commentEditor, new Label (AddinCatalog.GetString ("Comment"))); } notebook.Page = 0; entryName.Text = view.Name; vboxContent.PackStart (notebook, true, true, 0); vboxContent.ShowAll (); SetWarning (null); } public void Initialize (ViewSchema view) { if (view == null) throw new ArgumentNullException ("view"); this.view = view; if (action == SchemaActions.Alter) { // sqlEditor.Text = schemaProvider.GetViewAlterStatement (view); commentEditor.Comment = view.Comment; } } protected virtual void CancelClicked (object sender, System.EventArgs e) { Respond (ResponseType.Cancel); Hide (); } protected virtual void OkClicked (object sender, System.EventArgs e) { view.Name = entryName.Text; view.Definition = sqlEditor.Text; view.Comment = commentEditor.Comment; Respond (ResponseType.Ok); Hide (); } protected virtual void NameChanged (object sender, System.EventArgs e) { CheckState (); } protected virtual void SqlChanged (object sender, EventArgs e) { CheckState (); } private void CheckState () { buttonOk.Sensitive = entryName.Text.Length > 0 && sqlEditor.Text.Length > 0; //TODO: check for duplicate name } protected virtual void SetWarning (string msg) { if (msg == null) { hboxWarning.Hide (); labelWarning.Text = ""; } else { hboxWarning.ShowAll (); labelWarning.Text = msg; } } } public class ViewEditorSettings { private bool showComment = false; public bool ShowComment { get { return showComment; } set { showComment = value; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Designer/Dialogs/CreateDatabaseDialog.cs0000644000175000017500000000737611266446160032004 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Threading; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Ide; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Designer { public partial class CreateDatabaseDialog : Gtk.Dialog { private DatabaseConnectionContext context; private ConnectionSettingsWidget settingsWidget; public CreateDatabaseDialog (IDbFactory factory) { this.Build(); settingsWidget = CreateConnectionSettingsWidget (factory); vboxConnection.PackStart (settingsWidget, true, true, 0); settingsWidget.NeedsValidation += Validate; settingsWidget.EnableRefreshButton = false; ShowAll (); } public DatabaseConnectionContext DatabaseConnection { get { return context; } set { context = value; } } protected internal Notebook Notebook { get { return notebook; } } protected virtual ConnectionSettingsWidget CreateConnectionSettingsWidget (IDbFactory factory) { return new ConnectionSettingsWidget (factory); } protected virtual void OkClicked (object sender, EventArgs e) { if (context.IsTemporary) { try { //make it a real connection context and fill in the database IConnectionPool pool = DbFactoryService.CreateConnectionPool (DatabaseConnection); pool.Initialize (); ISchemaProvider provider = DbFactoryService.CreateSchemaProvider (DatabaseConnection, pool); DatabaseSchema db = provider.CreateDatabaseSchema (settingsWidget.ConnectionSettings.Database); OnBeforeDatabaseCreation (db); ((AbstractEditSchemaProvider)provider).CreateDatabase (db); context.ConnectionSettings.Database = settingsWidget.ConnectionSettings.Database; context.ConnectionSettings.Name = settingsWidget.ConnectionSettings.Name; context.IsTemporary = false; MessageService.ShowMessage (AddinCatalog.GetString ("Database has been created.")); ConnectionContextService.AddDatabaseConnectionContext (context); } catch (Exception ex) { QueryService.RaiseException (ex); Respond (ResponseType.Close); return; } } Respond (ResponseType.Ok); } protected virtual void CancelClicked (object sender, EventArgs e) { Respond (ResponseType.Cancel); Destroy (); } protected virtual void Validate (object sender, EventArgs e) { buttonOk.Sensitive = settingsWidget.ValidateFields (); } protected virtual void OnBeforeDatabaseCreation (DatabaseSchema schema) { } } } monodevelop-database-4.0.12/MonoDevelop.Database.Designer/AssemblyInfo.cs0000644000175000017500000000051411266446160027030 0ustar directhexdirecthex// Autogenerated from MonoDevelop.Database.Designer.addin.xml using System.Reflection; [assembly: AssemblyProduct ("MonoDevelop")] [assembly: AssemblyTitle ("MonoDevelop Database Designer")] [assembly: AssemblyDescription ("Database Designer Module")] [assembly: AssemblyVersion ("2.6")] [assembly: AssemblyCopyright ("MIT X11")] monodevelop-database-4.0.12/MonoDevelop.Database.Designer/MonoDevelop.Database.Designer.addin.xml0000644000175000017500000000111511266446160033375 0ustar directhexdirecthex monodevelop-database-4.0.12/COPYING0000644000175000017500000000202211266446160017444 0ustar directhexdirecthex The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/0000755000175000017500000000000011266446160024151 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Makefile.in0000644000175000017500000003527011266446160026225 0ustar directhexdirecthex# Makefile.in generated by automake 1.12.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2012 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.include ChangeLog subdir = MonoDevelop.Database.Sql.MySql ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(assemblydir)" DATA = $(assembly_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ASSEMBLY_VERSION = @ASSEMBLY_VERSION@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CSC = @CSC@ CSC_FLAGS = @CSC_FLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ GLIB_SHARP_CFLAGS = @GLIB_SHARP_CFLAGS@ GLIB_SHARP_LIBS = @GLIB_SHARP_LIBS@ GTK_SHARP_CFLAGS = @GTK_SHARP_CFLAGS@ GTK_SHARP_LIBS = @GTK_SHARP_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD_LIBRARY_PATH = @LD_LIBRARY_PATH@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_PREFIX = @LIB_PREFIX@ LIB_SUFFIX = @LIB_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MCS = @MCS@ MD_ADDIN_DIR = @MD_ADDIN_DIR@ MD_ASSEMBLY_DIR = @MD_ASSEMBLY_DIR@ MD_DIR = @MD_DIR@ MKDIR_P = @MKDIR_P@ MONO = @MONO@ MONODEVELOP_CFLAGS = @MONODEVELOP_CFLAGS@ MONODEVELOP_CORE_ADDINS_CFLAGS = @MONODEVELOP_CORE_ADDINS_CFLAGS@ MONODEVELOP_CORE_ADDINS_LIBS = @MONODEVELOP_CORE_ADDINS_LIBS@ MONODEVELOP_LIBS = @MONODEVELOP_LIBS@ MONO_ADDINS_CFLAGS = @MONO_ADDINS_CFLAGS@ MONO_ADDINS_GUI_CFLAGS = @MONO_ADDINS_GUI_CFLAGS@ MONO_ADDINS_GUI_LIBS = @MONO_ADDINS_GUI_LIBS@ MONO_ADDINS_LIBS = @MONO_ADDINS_LIBS@ MONO_ADDINS_SETUP_CFLAGS = @MONO_ADDINS_SETUP_CFLAGS@ MONO_ADDINS_SETUP_LIBS = @MONO_ADDINS_SETUP_LIBS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH = @PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RUNTIME = @RUNTIME@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ UNMANAGED_DEPENDENCIES_MONO_CFLAGS = @UNMANAGED_DEPENDENCIES_MONO_CFLAGS@ UNMANAGED_DEPENDENCIES_MONO_LIBS = @UNMANAGED_DEPENDENCIES_MONO_LIBS@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gtksharp_prefix = @gtksharp_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.Sql.MySql.dll REFS = \ $(GTK_SHARP_LIBS) \ $(MONODEVELOP_CORE_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Components.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Designer.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:$(top_srcdir)/contrib/MySql/MySql.Data.dll \ -r:Mono.Posix \ -r:System \ -r:System.Data FILES = \ AssemblyInfo.cs \ Collections/MySqlCharacterSetSchemaCollection.cs \ Collections/MySqlCollationSchemaCollection.cs \ Dialogs/MySqlCreateDatabaseDialog.cs \ Dialogs/MySqlTableEditorDialog.cs \ gtk-gui/generated.cs \ gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlColumnEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs \ MySqlConnectionProvider.cs \ MySqlDbFactory.cs \ MySqlDialect.cs \ MySqlGuiProvider.cs \ MySqlPooledDbConnection.cs \ MySqlSchemaProvider.cs \ Schema/MySqlCharacterSetSchema.cs \ Schema/MySqlCollationSchema.cs \ Schema/MySqlDatabaseSchema.cs \ Widgets/MySqlColumnEditorWidget.cs \ Widgets/MySqlCreateDatabaseWidget.cs MYSQL_FILES = \ MySql.Data.dll RES = \ gtk-gui/gui.stetic \ gtk-gui/objects.xml \ MonoDevelop.Database.Sql.MySql.addin.xml \ MySqlSyntaxMode.xml SRC_MYSQL_FILES = $(addprefix $(top_srcdir)/contrib/MySql/, $(MYSQL_FILES)) BUILD_MYSQL_FILES = $(addprefix $(ADDIN_BUILD)/, $(notdir $(MYSQL_FILES))) assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb $(BUILD_MYSQL_FILES) CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(BUILD_MYSQL_FILES) EXTRA_DIST = $(FILES) $(RES) $(SRC_MYSQL_FILES) build_sources = $(addprefix $(srcdir)/, $(FILES)) $(GENERATED_FILES) build_resources = $(addprefix $(srcdir)/, $(RES)) build_test_sources = $(addprefix $(srcdir)/, $(TESTFILES)) $(GENERATED_FILES) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.include $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu MonoDevelop.Database.Sql.MySql/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu MonoDevelop.Database.Sql.MySql/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_srcdir)/Makefile.include: $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-assemblyDATA: $(assembly_DATA) @$(NORMAL_INSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(assemblydir)'"; \ $(MKDIR_P) "$(DESTDIR)$(assemblydir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(assemblydir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(assemblydir)" || exit $$?; \ done uninstall-assemblyDATA: @$(NORMAL_UNINSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(assemblydir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: ctags: CTAGS CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(assemblydir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-assemblyDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-assemblyDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-assemblyDATA install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am uninstall uninstall-am uninstall-assemblyDATA all: $(ASSEMBLY) $(BUILD_MYSQL_FILES) $(BUILD_MYSQL_FILES): $(SRC_MYSQL_FILES) mkdir -p $(ADDIN_BUILD) cp $(SRC_MYSQL_FILES) $(ADDIN_BUILD)/. $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/MySqlGuiProvider.cs0000644000175000017500000001043211266446160027725 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Data; using System.Collections.Generic; using MonoDevelop.Database.Designer; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Sql.MySql { public class MySqlGuiProvider : IGuiProvider { public bool ShowCreateDatabaseDialog (IDbFactory factory) { MySqlCreateDatabaseDialog dialog = new MySqlCreateDatabaseDialog (factory); int resp; do { resp = dialog.Run (); } while (resp != (int)ResponseType.Cancel && resp != (int)ResponseType.Ok && resp != (int)ResponseType.DeleteEvent); dialog.Destroy (); if (resp == (int)ResponseType.Ok) return true; else return false; // return (RunDialog (new MySqlCreateDatabaseDialog (factory))); } public bool ShowAddConnectionDialog (IDbFactory factory) { DatabaseConnectionSettingsDialog dlg = new DatabaseConnectionSettingsDialog (factory); return RunDialog (dlg); } public bool ShowEditConnectionDialog (IDbFactory factory, DatabaseConnectionSettings settings, out DatabaseConnectionSettings newSettings) { DatabaseConnectionSettingsDialog dlg = new DatabaseConnectionSettingsDialog (factory, settings); bool result = RunDialog (dlg); if (result) newSettings = dlg.ConnectionSettings; else newSettings = null; return result; } public bool ShowTableEditorDialog (IEditSchemaProvider schemaProvider, TableSchema table, bool create) { TableEditorSettings settings = new TableEditorSettings (); settings.ConstraintSettings.CheckSettings.SupportsColumnConstraints = false; TableEditorDialog dlg = new TableEditorDialog (schemaProvider, create, settings); dlg.Initialize (table); return RunDialog (dlg); } public bool ShowViewEditorDialog (IEditSchemaProvider schemaProvider, ViewSchema view, bool create) { ViewEditorSettings settings = new ViewEditorSettings (); ViewEditorDialog dlg = new ViewEditorDialog (schemaProvider, create, settings); dlg.Initialize (view); return RunDialog (dlg); } public bool ShowProcedureEditorDialog (IEditSchemaProvider schemaProvider, ProcedureSchema procedure, bool create) { ProcedureEditorSettings settings = new ProcedureEditorSettings (); settings.ShowName = false; ProcedureEditorDialog dlg = new ProcedureEditorDialog (schemaProvider, create, settings); dlg.Initialize (procedure); return RunDialog (dlg); } public bool ShowUserEditorDialog (IEditSchemaProvider schemaProvider, UserSchema user, bool create) { return false; //TODO: implement ShowUserEditorDialog } private bool RunDialog (Dialog dlg) { bool result = false; // If the Preview Dialog is canceled, don't execute and don't close the Editor Dialog. try { int resp; do { resp = dlg.Run (); } while (resp != (int)ResponseType.Cancel && resp != (int)ResponseType.Ok && resp != (int)ResponseType.DeleteEvent); if (resp == (int)ResponseType.Ok) result = true; else result = false; } finally { dlg.Destroy (); } return result; } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/MonoDevelop.Database.Sql.MySql.addin.xml0000644000175000017500000000201011266446160033476 0ustar directhexdirecthex monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/gtk-gui/0000755000175000017500000000000011266446160025520 5ustar directhexdirecthex././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.My0000644000175000017500000000606111266446160033566 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Sql.MySql { public partial class MySqlCreateDatabaseWidget { private global::Gtk.Table table; private global::Gtk.ComboBoxEntry comboCharset; private global::Gtk.ComboBoxEntry comboCollation; private global::Gtk.Label label2; private global::Gtk.Label label3; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget"; // Container child MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.Gtk.Container+ContainerChild this.table = new global::Gtk.Table (((uint)(2)), ((uint)(2)), false); this.table.Name = "table"; this.table.RowSpacing = ((uint)(6)); this.table.ColumnSpacing = ((uint)(6)); this.table.BorderWidth = ((uint)(6)); // Container child table.Gtk.Table+TableChild this.comboCharset = global::Gtk.ComboBoxEntry.NewText (); this.comboCharset.Name = "comboCharset"; this.table.Add (this.comboCharset); global::Gtk.Table.TableChild w1 = ((global::Gtk.Table.TableChild)(this.table[this.comboCharset])); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.XOptions = ((global::Gtk.AttachOptions)(4)); w1.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.comboCollation = global::Gtk.ComboBoxEntry.NewText (); this.comboCollation.Name = "comboCollation"; this.table.Add (this.comboCollation); global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table[this.comboCollation])); w2.TopAttach = ((uint)(1)); w2.BottomAttach = ((uint)(2)); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.XOptions = ((global::Gtk.AttachOptions)(4)); w2.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.label2 = new global::Gtk.Label (); this.label2.Name = "label2"; this.label2.Xalign = 0f; this.label2.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Character Set:"); this.table.Add (this.label2); global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table[this.label2])); w3.XOptions = ((global::Gtk.AttachOptions)(4)); w3.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.label3 = new global::Gtk.Label (); this.label3.Name = "label3"; this.label3.Xalign = 0f; this.label3.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Collation:"); this.table.Add (this.label3); global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table[this.label3])); w4.TopAttach = ((uint)(1)); w4.BottomAttach = ((uint)(2)); w4.XOptions = ((global::Gtk.AttachOptions)(4)); w4.YOptions = ((global::Gtk.AttachOptions)(4)); this.Add (this.table); if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/gtk-gui/generated.cs0000644000175000017500000000354111266446160030010 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace Stetic { internal class Gui { private static bool initialized; static internal void Initialize (Gtk.Widget iconRenderer) { if ((Stetic.Gui.initialized == false)) { Stetic.Gui.initialized = true; } } } internal class BinContainer { private Gtk.Widget child; private Gtk.UIManager uimanager; public static BinContainer Attach (Gtk.Bin bin) { BinContainer bc = new BinContainer (); bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested); bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated); bin.Added += new Gtk.AddedHandler (bc.OnAdded); return bc; } private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args) { if ((this.child != null)) { args.Requisition = this.child.SizeRequest (); } } private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args) { if ((this.child != null)) { this.child.Allocation = args.Allocation; } } private void OnAdded (object sender, Gtk.AddedArgs args) { this.child = args.Widget; } public void SetUiManager (Gtk.UIManager uim) { this.uimanager = uim; this.child.Realized += new System.EventHandler (this.OnRealized); } private void OnRealized (object sender, System.EventArgs args) { if ((this.uimanager != null)) { Gtk.Widget w; w = this.child.Toplevel; if (((w != null) && typeof(Gtk.Window).IsInstanceOfType (w))) { ((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup); this.uimanager = null; } } } } internal class ActionGroups { public static Gtk.ActionGroup GetActionGroup (System.Type type) { return Stetic.ActionGroups.GetActionGroup (type.FullName); } public static Gtk.ActionGroup GetActionGroup (string name) { return null; } } } ././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlColumnEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/gtk-gui/MonoDevelop.Database.Sql.MySql.My0000644000175000017500000000141511266446160033564 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Sql.MySql { public partial class MySqlColumnEditorWidget { private global::Gtk.VBox vbox2; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Sql.MySql.MySqlColumnEditorWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Sql.MySql.MySqlColumnEditorWidget"; // Container child MonoDevelop.Database.Sql.MySql.MySqlColumnEditorWidget.Gtk.Container+ContainerChild this.vbox2 = new global::Gtk.VBox (); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; this.Add (this.vbox2); if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/gtk-gui/objects.xml0000644000175000017500000000071711266446160027700 0ustar directhexdirecthex monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/gtk-gui/gui.stetic0000644000175000017500000001556111266446160027531 0ustar directhexdirecthex .. 2.12 6 2 2 6 6 6 True 1 2 True Fill Fill False True False False True False True 1 2 1 2 True Fill Fill False True False False True False 0 Character Set: True Fill Fill False True False False True False 0 Collation: 1 2 True Fill Fill False True False False True False monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Makefile.am0000644000175000017500000000402011266446160026201 0ustar directhexdirecthexADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.Sql.MySql.dll REFS = \ $(GTK_SHARP_LIBS) \ $(MONODEVELOP_CORE_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Components.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Designer.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:$(top_srcdir)/contrib/MySql/MySql.Data.dll \ -r:Mono.Posix \ -r:System \ -r:System.Data FILES = \ AssemblyInfo.cs \ Collections/MySqlCharacterSetSchemaCollection.cs \ Collections/MySqlCollationSchemaCollection.cs \ Dialogs/MySqlCreateDatabaseDialog.cs \ Dialogs/MySqlTableEditorDialog.cs \ gtk-gui/generated.cs \ gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlColumnEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs \ MySqlConnectionProvider.cs \ MySqlDbFactory.cs \ MySqlDialect.cs \ MySqlGuiProvider.cs \ MySqlPooledDbConnection.cs \ MySqlSchemaProvider.cs \ Schema/MySqlCharacterSetSchema.cs \ Schema/MySqlCollationSchema.cs \ Schema/MySqlDatabaseSchema.cs \ Widgets/MySqlColumnEditorWidget.cs \ Widgets/MySqlCreateDatabaseWidget.cs MYSQL_FILES = \ MySql.Data.dll RES = \ gtk-gui/gui.stetic \ gtk-gui/objects.xml \ MonoDevelop.Database.Sql.MySql.addin.xml \ MySqlSyntaxMode.xml SRC_MYSQL_FILES = $(addprefix $(top_srcdir)/contrib/MySql/, $(MYSQL_FILES)) BUILD_MYSQL_FILES = $(addprefix $(ADDIN_BUILD)/, $(notdir $(MYSQL_FILES))) all: $(ASSEMBLY) $(BUILD_MYSQL_FILES) $(BUILD_MYSQL_FILES): $(SRC_MYSQL_FILES) mkdir -p $(ADDIN_BUILD) cp $(SRC_MYSQL_FILES) $(ADDIN_BUILD)/. $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb $(BUILD_MYSQL_FILES) CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(BUILD_MYSQL_FILES) EXTRA_DIST = $(FILES) $(RES) $(SRC_MYSQL_FILES) include $(top_srcdir)/Makefile.include monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/MySqlSchemaProvider.cs0000755000175000017500000010543311266446160030412 0ustar directhexdirecthex// // Authors: // Christian Hergert // Daniel Morgan // Sureshkumar T // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007-2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Text; using System.Text.RegularExpressions; using System.Data; using MySql.Data.MySqlClient; using System.Collections.Generic; using MonoDevelop.Core; namespace MonoDevelop.Database.Sql.MySql { public class MySqlSchemaProvider : AbstractEditSchemaProvider { static Regex constraintRegex = new Regex (@"`([\w ]+)`", RegexOptions.Compiled); public MySqlSchemaProvider (IConnectionPool connectionPool) : base (connectionPool) { AddSupportedSchemaActions (SchemaType.Database, SchemaActions.All); AddSupportedSchemaActions (SchemaType.Table, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.View, SchemaActions.All); AddSupportedSchemaActions (SchemaType.TableColumn, SchemaActions.All); AddSupportedSchemaActions (SchemaType.Trigger, SchemaActions.All); AddSupportedSchemaActions (SchemaType.PrimaryKeyConstraint, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.ForeignKeyConstraint, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.CheckConstraint, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.UniqueConstraint, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.Constraint, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.User, SchemaActions.Schema); if (connectionPool.HasVersion && connectionPool.DatabaseVersion.Major > 4) { AddSupportedSchemaActions (SchemaType.Procedure, SchemaActions.All); AddSupportedSchemaActions (SchemaType.ProcedureParameter, SchemaActions.Schema); } } public override DatabaseSchemaCollection GetDatabases () { DatabaseSchemaCollection databases = new DatabaseSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand ("SHOW DATABASES;")) { try { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { DatabaseSchema db = new DatabaseSchema (this); db.Name = r.GetString (0); databases.Add (db); } r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return databases; } public override ProcedureSchema CreateProcedureSchema (string name) { StringBuilder proc = new StringBuilder (); proc.Append ("DROP PROCEDURE IF EXISTS `"); proc.Append (name); proc.Append ("`;"); proc.Append (Environment.NewLine); proc.Append ("CREATE PROCEDURE `"); proc.Append (name); proc.Append ("` ()"); proc.Append (Environment.NewLine); proc.Append ("BEGIN"); proc.Append (Environment.NewLine); proc.Append ("END"); ProcedureSchema newProc = new ProcedureSchema (this); newProc.Definition = proc.ToString (); newProc.IsFunction = false; newProc.Name = name; return newProc; } // see: http://dev.mysql.com/doc/refman/5.1/en/tables-table.html // // see: http://dev.mysql.com/doc/refman/5.1/en/show-create-table.html public override TableSchemaCollection GetTables () { TableSchemaCollection tables = new TableSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { // Second Connection - MySql Connector doesn't allow more than 1 datareader by connection. IPooledDbConnection conn2 = connectionPool.Request (); using (IDbCommand command = conn.CreateCommand ("SHOW TABLES;")) { try { if (GetMainVersion (command) >= 5) { //in mysql 5.x we can use an sql query to provide the comment command.CommandText = string.Format( @"SELECT TABLE_NAME, TABLE_SCHEMA, TABLE_TYPE, TABLE_COMMENT FROM `information_schema`.`TABLES` WHERE TABLE_TYPE='BASE TABLE' AND TABLE_SCHEMA='{0}' ORDER BY TABLE_NAME;", command.Connection.Database); using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { TableSchema table = new TableSchema (this); table.Name = r.GetString (0); table.SchemaName = r.GetString (1); table.Comment = r.IsDBNull (3) ? null : r.GetString (3); using (IDbCommand command2 = conn2.CreateCommand ( string.Concat("SHOW CREATE TABLE `", table.Name, "`;"))) { using (IDataReader r2 = command2.ExecuteReader()) { r2.Read (); table.Definition = r2.GetString (1); } } tables.Add (table); } r.Close (); } } else { //use the default command for mysql 4.x and 3.23 using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { TableSchema table = new TableSchema (this); table.Name = r.GetString (0); table.SchemaName = command.Connection.Database; using (IDbCommand command2 = conn2.CreateCommand (string.Concat( "SHOW CREATE TABLE `", table.Name,"`;"))) { using (IDataReader r2 = command2.ExecuteReader()) { r2.Read (); table.Definition = r2.GetString (1); } } tables.Add (table); } r.Close (); } } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); conn2.Release (); } } } return tables; } public override ColumnSchemaCollection GetTableColumns (TableSchema table) { ColumnSchemaCollection columns = new ColumnSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (String.Format ("DESCRIBE {0}", table.Name))) { try { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { ColumnSchema column = new ColumnSchema (this, table); column.Name = r.GetString (0); column.DataTypeName = r.GetString (1); column.IsNullable = String.Compare (r.GetString (2), "YES", true) == 0; column.DefaultValue = r.IsDBNull (4) ? null : r.GetString (4); //TODO: if r.GetString (5) constains "auto_increment" ? column.OwnerName = table.Name; columns.Add (column); } r.Close (); } } catch (Exception e) { // Don't raise error, if the table doesn't exists return an empty collection } finally { conn.Release (); } } } return columns; } // see: http://dev.mysql.com/doc/refman/5.1/en/views-table.html public override ViewSchemaCollection GetViews () { ViewSchemaCollection views = new ViewSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (string.Format ( @"SELECT TABLE_NAME, TABLE_SCHEMA FROM information_schema.VIEWS where TABLE_SCHEMA = '{0}' ORDER BY TABLE_NAME", ConnectionPool.ConnectionContext.ConnectionSettings.Database))){ try { // Views are supported in mysql since version 5. if (GetMainVersion (command) >= 5) { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { ViewSchema view = new ViewSchema (this); view.Name = r.GetString (0); view.OwnerName = r.GetString (1); using (IPooledDbConnection conn2 = connectionPool.Request ()) { using (IDbCommand command2 = conn2.CreateCommand (string.Concat( "SHOW CREATE TABLE `", view.Name, "`;"))) { using (IDataReader r2 = command2.ExecuteReader()) { r2.Read (); view.Definition = r2.GetString (1); } } conn2.Release (); } views.Add (view); } r.Close (); } } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return views; } public override ColumnSchemaCollection GetViewColumns (ViewSchema view) { ColumnSchemaCollection columns = new ColumnSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (String.Format ("DESCRIBE {0}", view.Name))) { try { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { ColumnSchema column = new ColumnSchema (this, view); column.Name = r.GetString (0); column.DataTypeName = r.GetString (1); column.IsNullable = r.IsDBNull (2); column.DefaultValue = r.GetString (4); column.Comment = r.GetString (5); column.OwnerName = view.Name; columns.Add (column); } r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return columns; } // see: http://dev.mysql.com/doc/refman/5.1/en/routines-table.html public override ProcedureSchemaCollection GetProcedures () { ProcedureSchemaCollection procedures = new ProcedureSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { IPooledDbConnection conn2 = connectionPool.Request (); IDbCommand command = conn.CreateCommand (string.Concat ( @"SELECT ROUTINE_NAME, ROUTINE_SCHEMA, ROUTINE_TYPE FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA ='", ConnectionPool.ConnectionContext.ConnectionSettings.Database, "' ORDER BY ROUTINE_NAME")); try { using (command) { if (GetMainVersion (command) >= 5) { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { ProcedureSchema procedure = new ProcedureSchema (this); procedure.Name = r.GetString (0); procedure.OwnerName = r.GetString (1); procedure.IsSystemProcedure = (r.GetString (2).IndexOf ("system", StringComparison.OrdinalIgnoreCase) > -1); procedure.IsFunction = (r.GetString (2).IndexOf ("function", StringComparison.OrdinalIgnoreCase) > -1); IDbCommand command2; if (!procedure.IsFunction) command2 = conn2.CreateCommand (string.Concat ("SHOW CREATE PROCEDURE `", procedure.Name, "`;")); else command2 = conn2.CreateCommand (string.Concat("SHOW CREATE FUNCTION `", procedure.Name , "`;")); using (IDataReader r2 = command2.ExecuteReader()) if (r2.Read ()) procedure.Definition = r2.GetString (2); procedures.Add (procedure); } r.Close (); } } //else: do nothing, since procedures are only supported since mysql 5.x } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); if (conn2 != null) conn2.Release (); } } return procedures; } public override ParameterSchemaCollection GetProcedureParameters (ProcedureSchema procedure) { ParameterSchemaCollection parameters = new ParameterSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (string.Concat ( "SELECT param_list FROM mysql.proc where name = '", procedure.Name, "'"))) { try { if (GetMainVersion (command) >= 5) { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { if (r.IsDBNull (0)) continue; string[] field = Encoding.ASCII.GetString ( (byte[])r.GetValue (0)).Split ( new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries); foreach (string chunk in field) { ParameterSchema param = new ParameterSchema (this); param.Definition = chunk; string[] tmp = chunk.TrimStart (new char[] { ' ' }).Split (new char[] { ' ' }); int nameIndex = 0; if (String.Compare (tmp[0], "OUT", true) == 0) { nameIndex = 1; param.ParameterType = ParameterType.Out; } else if (String.Compare (tmp[0], "INOUT", true) == 0) { nameIndex = 1; param.ParameterType = ParameterType.InOut; } else { param.ParameterType = ParameterType.In; } param.Name = tmp[nameIndex]; param.OwnerName = procedure.Name; param.DataTypeName = tmp[nameIndex + 1]; parameters.Add (param); } } r.Close (); } } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return parameters; } public override ConstraintSchemaCollection GetTableConstraints (TableSchema table) { ConstraintSchemaCollection constraints = new ConstraintSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (string.Concat ("SHOW TABLE STATUS FROM `", table.SchemaName, "`;"))) { try { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { string[] chunks = ((string)r["Comment"]).Split (';'); // the values we are looking for are in the format: // (`table`) REFER `database\table2` (`table2`) foreach (string chunk in chunks) { if (constraintRegex.IsMatch (chunk)) { MatchCollection matches = constraintRegex.Matches (chunk); ForeignKeyConstraintSchema constraint = new ForeignKeyConstraintSchema (this); constraint.ReferenceTableName = matches[1].Groups[1].ToString (); constraint.Name = matches[0].Groups[1].ToString (); constraints.Add (constraint); } } } r.Close (); } } catch (Exception e) { // Don't raise error, if the table doesn't exists return an empty collection } finally { conn.Release (); } } } return constraints; } public override ConstraintSchemaCollection GetColumnConstraints (TableSchema table, ColumnSchema column) { ConstraintSchemaCollection constraints = new ConstraintSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (String.Format ("DESCRIBE {0}", table.Name))) { try { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { if (r.IsDBNull (3) || String.Compare (r.GetString (0), column.Name, true) != 0) continue; string key = r.GetString (3).ToUpper (); ConstraintSchema constraint = null; if (key.Contains ("PRI")) constraint = CreatePrimaryKeyConstraintSchema ("pk_" + column.Name); else if (key.Contains ("UNI")) constraint = CreateUniqueConstraintSchema ("uni_" + column.Name); else continue; constraint.IsColumnConstraint = true; constraint.OwnerName = r.GetString (0); constraints.Add (constraint); } r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return constraints; } public override UserSchemaCollection GetUsers () { UserSchemaCollection users = new UserSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (@"SELECT DISTINCT user from mysql.user where user != '';")) { try { using (IDataReader r = command.ExecuteReader ()) { while (r.Read ()) { UserSchema user = new UserSchema (this); user.Name = r.GetString (0); users.Add (user); } r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return users; } // see: // http://www.htmlite.com/mysql003.php // http://kimbriggs.com/computers/computer-notes/mysql-notes/mysql-data-types.file // http://dev.mysql.com/doc/refman/5.1/en/data-type-overview.html public override DataTypeSchema GetDataType (string name) { if (name == null) throw new ArgumentNullException ("name"); string type = null; int length = 0; int scale = 0; ParseType (name, out type, out length, out scale); DataTypeSchema dts = new DataTypeSchema (this); dts.Name = type; switch (type.ToLower ()) { case "tinyint": case "smallint": case "mediumint": case "int": case "integer": case "bigint": dts.LengthRange = new Range (length); dts.DataTypeCategory = DataTypeCategory.Integer; break; case "bit": dts.LengthRange = new Range (length); //in bits dts.DataTypeCategory = DataTypeCategory.Bit; break; case "bool": case "boolean": dts.LengthRange = new Range (1); //in bits dts.DataTypeCategory = DataTypeCategory.Boolean; break; case "float": case "double": case "double precision": case "decimal": case "dec": dts.LengthRange = new Range (length); dts.ScaleRange = new Range (scale); dts.DataTypeCategory = DataTypeCategory.Boolean; break; case "date": dts.DataTypeCategory = DataTypeCategory.Date; break; case "datetime": dts.DataTypeCategory = DataTypeCategory.DateTime; break; case "timestamp": dts.DataTypeCategory = DataTypeCategory.TimeStamp; break; case "time": dts.DataTypeCategory = DataTypeCategory.Time; break; case "year": dts.LengthRange = new Range (length); dts.DataTypeCategory = DataTypeCategory.Integer; break; case "binary": case "char byte": dts.LengthRange = new Range (length); dts.DataTypeCategory = DataTypeCategory.Binary; break; case "varbinary": dts.LengthRange = new Range (length); dts.DataTypeCategory = DataTypeCategory.VarBinary; break; case "tinyblob": case "mediumblob": case "longblob": case "blob": dts.LengthRange = new Range (length); dts.DataTypeCategory = DataTypeCategory.Binary; break; case "tinytext": case "mediumtext": case "longtext": case "text": dts.LengthRange = new Range (length); dts.DataTypeCategory = DataTypeCategory.NChar; break; case "national char": case "nchar": dts.LengthRange = new Range (length); dts.DataTypeCategory = DataTypeCategory.NChar; break; case "national varchar": case "nvarchar": dts.LengthRange = new Range (length); dts.DataTypeCategory = DataTypeCategory.NVarChar; break; case "varchar": dts.LengthRange = new Range (length); dts.DataTypeCategory = DataTypeCategory.VarChar; break; case "char": dts.LengthRange = new Range (length); dts.DataTypeCategory = DataTypeCategory.Char; break; case "set": case "enum": dts.DataTypeCategory = DataTypeCategory.Integer; break; default: dts = null; break; } return dts; } //http://dev.mysql.com/doc/refman/5.0/en/charset-mysql.html public MySqlCharacterSetSchemaCollection GetCharacterSets () { MySqlCharacterSetSchemaCollection characterSets = new MySqlCharacterSetSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand ("SHOW CHARACTER SET;")) { try { using (IDataReader r = command.ExecuteReader ()) { while (r.Read ()) { MySqlCharacterSetSchema charset = new MySqlCharacterSetSchema (this); charset.Name = r.GetString (0); charset.Comment = r.GetString (1); charset.DefaultCollactionName = r.GetString (2); charset.MaxLength = r.GetInt32 (3); characterSets.Add (charset); } r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return characterSets; } public MySqlCollationSchemaCollection GetCollations () { MySqlCharacterSetSchema sch = new MySqlCharacterSetSchema (this); sch.Name = ""; return GetCollations (sch); } public MySqlCollationSchemaCollection GetCollations (MySqlCharacterSetSchema characterSet) { MySqlCollationSchemaCollection collations = new MySqlCollationSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (String.Format ("SHOW COLLATION LIKE '{0}%';", characterSet.Name))) { try { using (IDataReader r = command.ExecuteReader ()) { while (r.Read ()) { MySqlCollationSchema collation = new MySqlCollationSchema (this); collation.Name = r.GetString (0); collation.CharacterSetName = r.GetString (1); collation.Id = r.GetInt32 (2); collation.IsDefaultCollation = r.GetString (3) == "Yes" ? true : false; collation.IsCompiled = r.GetString (4) == "Yes" ? true : false; collation.SortLength = r.GetInt32 (5); collations.Add (collation); } r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return collations; } //http://dev.mysql.com/doc/refman/5.1/en/create-database.html public override void CreateDatabase (DatabaseSchema database) { MySqlDatabaseSchema schema = (MySqlDatabaseSchema)database; StringBuilder sql = new StringBuilder (); sql.AppendFormat ("CREATE DATABASE {0} ", schema.Name); if (schema.CharacterSetName != string.Empty) sql.AppendFormat ("CHARACTER SET {0} ", schema.CharacterSetName); if (schema.CollationName != string.Empty) sql.AppendFormat ("COLLATE {0}", schema.CollationName); ExecuteNonQuery (sql.ToString ()); } //http://dev.mysql.com/doc/refman/5.1/en/create-table.html public override string GetTableCreateStatement (TableSchema table) { StringBuilder sb = new StringBuilder (); sb.Append ("CREATE TABLE "); sb.Append (table.Name); sb.Append (" ("); bool first = true; foreach (ColumnSchema column in table.Columns) { if (first) first = false; else sb.Append ("," + Environment.NewLine); sb.Append (column.Name); sb.Append (' '); sb.Append (column.DataType.GetCreateString (column)); if (!column.IsNullable) sb.Append (" NOT NULL"); if (column.HasDefaultValue) { sb.Append (" DEFAULT "); if (column.DefaultValue == null) sb.Append ("NULL"); else sb.Append (column.DefaultValue); } //TODO: AUTO_INCREMENT if (column.Comment != null) { sb.Append (" COMMENT '"); sb.Append (column.Comment); sb.Append ("'"); } } //TODO: table comment foreach (ConstraintSchema constraint in table.Constraints) { sb.Append ("," + Environment.NewLine); sb.Append (GetConstraintString (constraint)); } sb.Append (")"); if (table.TableSpaceName != null) { sb.Append (", TABLESPACE "); sb.Append (table.TableSpaceName); sb.Append (" STORAGE DISK"); } sb.Append (";"); foreach (TriggerSchema trigger in table.Triggers) { sb.Append (Environment.NewLine); sb.Append (GetTriggerCreateStatement (trigger)); } return sb.ToString (); } protected virtual string GetConstraintString (ConstraintSchema constraint) { if (constraint.ConstraintType == ConstraintType.Check) return String.Format ("CHECK ({0})", (constraint as CheckConstraintSchema).Source); StringBuilder sb = new StringBuilder (); sb.Append ("CONSTRAINT "); sb.Append (constraint.Name); sb.Append (' '); switch (constraint.ConstraintType) { case ConstraintType.PrimaryKey: sb.Append ("PRIMARY KEY "); sb.Append (GetColumnsString (constraint.Columns, true)); break; case ConstraintType.Unique: sb.Append ("UNIQUE KEY "); sb.Append (GetColumnsString (constraint.Columns, true)); break; case ConstraintType.ForeignKey: sb.Append ("FOREIGN KEY "); sb.Append (GetColumnsString (constraint.Columns, true)); sb.Append (" REFERENCES "); ForeignKeyConstraintSchema fk = constraint as ForeignKeyConstraintSchema; sb.Append (fk.ReferenceTableName); sb.Append (' '); if (fk.ReferenceColumns != null) sb.Append (GetColumnsString (fk.ReferenceColumns, true)); sb.Append (Environment.NewLine); sb.Append (" ON DELETE "); sb.Append (GetConstraintActionString (fk.DeleteAction)); sb.Append (Environment.NewLine); sb.Append (" ON UPDATE "); sb.Append (GetConstraintActionString (fk.UpdateAction)); break; default: throw new NotImplementedException (); } return sb.ToString (); } //http://dev.mysql.com/doc/refman/5.1/en/create-view.html public override void CreateView (ViewSchema view) { ExecuteNonQuery (view.Definition); } //http://dev.mysql.com/doc/refman/5.1/en/create-procedure.html public override void CreateProcedure (ProcedureSchema procedure) { ExecuteNonQuery (procedure.Definition); } //http://dev.mysql.com/doc/refman/5.1/en/create-index.html public override void CreateIndex (IndexSchema index) { throw new NotImplementedException (); } //http://dev.mysql.com/doc/refman/5.1/en/create-trigger.html public override void CreateTrigger (TriggerSchema trigger) { string sql = GetTriggerCreateStatement (trigger); ExecuteNonQuery (sql); } protected virtual string GetTriggerCreateStatement (TriggerSchema trigger) { StringBuilder sb = new StringBuilder (); sb.Append (Environment.NewLine); sb.Append ("CREATE TRIGGER "); sb.Append (trigger.Name); if (trigger.TriggerType == TriggerType.Before) sb.Append (" BEFORE "); else sb.Append (" AFTER "); switch (trigger.TriggerEvent) { case TriggerEvent.Delete: sb.Append ("DELETE"); break; case TriggerEvent.Insert: sb.Append ("INSERT"); break; case TriggerEvent.Update: sb.Append ("UPDATE"); break; default: throw new NotImplementedException (); } sb.Append (" ON "); sb.Append (trigger.TableName); sb.Append (Environment.NewLine); sb.Append ("FOR EACH ROW "); sb.Append (Environment.NewLine); sb.Append ("BEGIN"); sb.Append (Environment.NewLine); sb.Append (trigger.Source); sb.Append (Environment.NewLine); sb.Append ("END"); sb.Append (Environment.NewLine); return sb.ToString (); } //http://dev.mysql.com/doc/refman/5.1/en/create-user.html public override void CreateUser (UserSchema user) { throw new NotImplementedException (); } //http://dev.mysql.com/doc/refman/5.1/en/alter-database.html public override void AlterDatabase (DatabaseAlterSchema database) { throw new NotImplementedException (); } //http://dev.mysql.com/doc/refman/5.1/en/alter-table.html public override void AlterTable (TableAlterSchema table) { throw new NotImplementedException (); } //http://dev.mysql.com/doc/refman/5.1/en/alter-view.html public override void AlterView (ViewAlterSchema view) { throw new NotImplementedException (); } //http://dev.mysql.com/doc/refman/5.1/en/alter-procedure.html public override void AlterProcedure (ProcedureAlterSchema procedure) { ExecuteNonQuery (procedure.NewSchema.Definition); } //http://dev.mysql.com/doc/refman/5.1/en/drop-database.html public override void DropDatabase (DatabaseSchema database) { ExecuteNonQuery (string.Concat("DROP DATABASE IF EXISTS ", database.Name, ";")); } //http://dev.mysql.com/doc/refman/5.1/en/drop-table.html public override void DropTable (TableSchema table) { ExecuteNonQuery (string.Concat("DROP TABLE IF EXISTS ", table.Name, ";")); } //http://dev.mysql.com/doc/refman/5.1/en/drop-view.html public override void DropView (ViewSchema view) { ExecuteNonQuery (string.Concat("DROP VIEW IF EXISTS ", view.Name, ";")); } //http://dev.mysql.com/doc/refman/5.1/en/drop-procedure.html public override void DropProcedure (ProcedureSchema procedure) { ExecuteNonQuery (string.Concat("DROP PROCEDURE IF EXISTS ", procedure.Name, ";")); } //http://dev.mysql.com/doc/refman/5.1/en/drop-index.html public override void DropIndex (IndexSchema index) { ExecuteNonQuery (string.Concat("DROP INDEX ", index.Name, " ON ", index.TableName, ";")); } //http://dev.mysql.com/doc/refman/5.1/en/drop-trigger.html public override void DropTrigger (TriggerSchema trigger) { ExecuteNonQuery (string.Concat("DROP TRIGGER IF EXISTS ", trigger.Name, ";")); } //http://dev.mysql.com/doc/refman/5.1/en/drop-user.html public override void DropUser (UserSchema user) { ExecuteNonQuery (string.Concat("DROP USER ", user.Name, ";")); } //http://dev.mysql.com/doc/refman/5.1/en/rename-database.html public override void RenameDatabase (DatabaseSchema database, string name) { ExecuteNonQuery (string.Concat("RENAME DATABASE ", database.Name, " TO ", name, ";")); connectionPool.ConnectionContext.ConnectionSettings.Database = name; database.Name = name; } //http://dev.mysql.com/doc/refman/5.1/en/rename-table.html public override void RenameTable (TableSchema table, string name) { ExecuteNonQuery (string.Concat("RENAME TABLE ", table.Name, " TO ", name, ";")); table.Name = name; } //http://dev.mysql.com/doc/refman/5.1/en/rename-table.html public override void RenameView (ViewSchema view, string name) { ExecuteNonQuery (string.Concat("RENAME TABLE ", view.Name, " TO ", name, ";")); view.Name = name; } //http://dev.mysql.com/doc/refman/5.1/en/rename-user.html public override void RenameUser (UserSchema user, string name) { ExecuteNonQuery (string.Concat("RENAME USER ", user.Name, " TO ", name, ";")); user.Name = name; } public override DatabaseSchema CreateDatabaseSchema (string name) { MySqlDatabaseSchema schema = new MySqlDatabaseSchema (this); schema.Name = name; return schema; } public override string GetProcedureAlterStatement (ProcedureSchema procedure) { if (!procedure.IsFunction) return String.Concat ("DROP PROCEDURE IF EXISTS ", procedure.Name, "; ", Environment.NewLine, procedure.Definition); else return procedure.Definition; } //TODO: remove this and use the Version provided by the connection pool private int GetMainVersion (IDbCommand command) { string str = (command.Connection as MySqlConnection).ServerVersion; int version = -1; if (int.TryParse (str.Substring (0, str.IndexOf (".")), out version)) return version; return -1; } private void ParseType (string str, out string type, out int length, out int scale) { int parenOpen = str.IndexOf ('('); int parenClose = str.IndexOf (')'); int commaPos = -1; if (parenOpen > 0) commaPos = str.IndexOf (',', parenOpen); if (parenOpen > 0) { type = str.Substring (0, parenOpen).Trim (); string lengthString = null; if (commaPos > 0) { lengthString = str.Substring (parenOpen + 1, commaPos - parenOpen - 1); string scaleString = str.Substring (commaPos + 1, parenClose - commaPos - 1).Trim (); int.TryParse (scaleString, out scale); } else { lengthString = str.Substring (parenOpen + 1, parenClose - parenOpen - 1); scale = 0; } int.TryParse (lengthString, out length); } else { type = str; length = 1; scale = 0; } } public override string GetMimeType () { return "text/x-mysql"; } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/ChangeLog0000644000175000017500000003201111266446160025720 0ustar directhexdirecthex2010-03-22 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.MySql.addin.xml: Bumped MD version. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.csproj: Flush. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.csproj: Remove mono.addins.targets import. 2010-03-17 Lluis Sanchez Gual * MySqlDbFactory.cs: * Dialogs/MySqlCreateDatabaseDialog.cs: * MonoDevelop.Database.Sql.MySql.csproj: * MonoDevelop.Database.Sql.MySql.addin.xml: Merged MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui and MD.Components into MD.Ide. 2010-02-15 Luciano N. Callero * MySqlDbFactory.cs: * MonoDevelop.Database.Sql.MySql.csproj: Implement IDbLinq interface for SqlMetal services. Flush changes. 2010-02-12 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.csproj: Fix gettext class. * gtk-gui/gui.stetic: * gtk-gui/objects.xml: * gtk-gui/generated.cs: * gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlColumnEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs: Flush. 2010-02-03 Luciano N. Callero * gtk-gui/gui.stetic: * Widgets/MySqlCreateDatabaseWidget.cs: * MonoDevelop.Database.Sql.MySql.csproj: - Flush changes. 2009-11-11 Luciano N. Callero * Makefile.am: * MySqlSyntaxMode.xml: * MySqlSchemaProvider.cs: * MonoDevelop.Database.Sql.MySql.addin.xml: Implement Syntax mode by provider. * MonoDevelop.Database.Sql.MySql.csproj: Target runtime from 2.0 to 3.5. 2009-11-04 Luciano N. Callero * gtk-gui/gui.stetic: * Widgets/MySqlCreateDatabaseWidget.cs: * Dialogs/MySqlCreateDatabaseDialog.cs: Flush Changes. Refactoring MySql database creation dialog. 2009-11-03 Luciano N. Callero * MySqlSchemaProvider.cs: * Widgets/MySqlCreateDatabaseWidget.cs: * Dialogs/MySqlCreateDatabaseDialog.cs: Refactoring database creation. 2009-10-30 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.MySql.addin.xml: Bump MD version. 2009-10-22 Luciano N. Callero * Fix build problem. 2009-10-22 Luciano N. Callero * MySqlGuiProvider.cs: Common Database API update. * MySqlConnectionProvider.cs: Implement Use Default port (to use the default port without specifing it). 2009-10-21 Luciano N.Callero * Dialogs/MySqlCreateDatabaseDialog.cs: * MySqlGuiProvider.cs: * MonoDevelop.Database.Sql.MySql.csproj: * MySqlSchemaProvider.cs: * Widgets/MySqlCreateDatabaseWidget.cs: * gtk-gui/objects.xml: * gtk-gui/gui.stetic: * MySqlDbFactory.cs: * Makefile.am: Implemented Database CreationOperation. 2009-10-18 Michael Hutchinson * MonoDevelop.Database.Sql.MySql.csproj: Fix the build & flush format changes. 2009-10-15 Luciano N. Callero * MySqlSchemaProvider.cs: Get Views bugfix. * Makefile.am: Fix build error. 2009-10-07 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.MySql.addin.xml: Bump MD version. 2009-08-26 Lluis Sanchez Gual * gtk-gui/gui.stetic: * MonoDevelop.Database.Sql.MySql.csproj: We now depend on gtk# 2.12.8, Mono 2.4, and Mono.Addins 0.4. 2009-07-31 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.csproj: Disabled 'require specific version' flags. 2009-05-27 Luciano N. Callero * MonoDevelop.Database.Sql.MySql.csproj: Add ChangeLog into the project. * MySqlGuiProvider.cs: Don't show Name entry on alter/create procedure beacause isn't needed. * MySqlSchemaProvider.cs: Code clean. Replace string + string with string.concat/string.format for performance. Format sql tu use mult-line string and to make sql readable. Use of using statement where is supported. Fix alter procedure bugs. Remove unneeded comments. (old code) 2009-04-21 Luciano N. Callero * MySqlGuiProvider.cs: Fix Preview Dialog. Cancel the dialog should not create the table and don't close the table creation dialog. * MySqlSchemaProvider.cs: Fix creation table to create a correct sql. 2009-04-15 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.MySql.addin.xml: Bump MD version. 2009-02-20 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.csproj: Updated references. 2009/02/06 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.mdp: * MonoDevelop.Database.Sql.MySql.csproj: Migrated to MSBuild file format. 2009/02/03 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.MySql.addin.xml: Bump MD version. 2009/02/03 Lluis Sanchez Gual * gtk-gui/generated.cs: * gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlColumnEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs: Flush. 2009-01-26 Michael Hutchinson * MonoDevelop.Database.Sql.MySql.mdp: Flush project format changes. 2008-12-02 Michael Hutchinson * Makefile.am: * AssemblyInfo.cs: * MonoDevelop.Database.Sql.MySql.mdp: Add AssemblyInfo.cs files that are autogenerated from the addin manifests. 2008-11-06 Michael Hutchinson * Makefile.am: Fix build dependencies. 2008-11-05 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.addin.xml: Bump MD version. 2008-09-17 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.mdp: Updated projects. 2008-09-17 Lluis Sanchez Gual * gtk-gui/objects.xml: Update. 2008-08-18 Lluis Sanchez Gual * Widgets/MySqlColumnEditorWidget.cs, Widgets/MySqlCreateDatabaseWidget.cs, gtk-gui/objects.xml: Use new model for describing custom stetic widgets. 2008-08-18 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.mdp: Fix reference to Mono.TextEditor. The incorrect add-in version number causes problems in the makefile synchronization. 2008-06-04 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.addin.xml: Bump MD version. 2008-05-21 Lluis Sanchez Gual * Makefile.am, MonoDevelop.Database.Sql.MySql.mdp: Fix projects. 2008-05-21 Lluis Sanchez Gual 2008-01-30 Ben Motmans * MySqlGuiProvider.cs: added parameter to the ShowCreateDatabaseDialog method * Widgets/MySqlCreateDatabaseWidget.cs: don't inherit from CreateDatabaseWidget * gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs, gtk-gui/gui.stetic: auto generated code 2008-01-29 Ben Motmans * MySqlSchemaProvider.cs: only support procedures if the server version > 4 2008-01-29 Ben Motmans * Schema/MySqlDatabaseSchema.cs, Schema/MySqlCollationSchema.cs, Schema/MySqlCharacterSetSchema.cs, MySqlSchemaProvider.cs, Collections, Collections/MySqlCharacterSetSchemaCollection.cs, Collections/MySqlCollationSchemaCollection.cs: added support for collations/character sets in the DB schema * Widgets/MySqlCreateDatabaseWidget.cs: subclass of the default CreateDatabaseWidget * gtk-gui, gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlCreateDatabaseWidget.cs, gtk-gui/generated.cs, gtk-gui/objects.xml, gtk-gui/MonoDevelop.Database.Sql.MySql.MySqlColumnEditorWidget.cs, gtk-gui/gui.stetic: auto generated code * MonoDevelop.Database.Sql.MySql.mdp: depend on Gtk# 2.8 instead of 2.12 2008-01-28 Ben Motmans * MySqlDialect.cs, MySqlConnectionProvider.cs, MySqlSchemaProvider.cs, MySqlDbFactory.cs, MySqlGuiProvider.cs: small API related changes * MySqlPooledDbConnection.cs: database version support * Widgets/MySqlColumnEditorWidget.cs, Widgets/MySqlCreateDatabaseWidget.cs: placeholders for future implementations 2008-01-28 Ben Motmans * MonoDevelop.Database.Sql.MySql.addin.xml: removed obsolete stuff from the old capabilities system 2008-01-25 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.addin.xml: Update MD version. 2008-01-22 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.addin.xml: Updated add-in category and description. 2007-12-14 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.mdp: Updated project file. The order of extended properties won't change anymore. 2007-12-12 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.addin.xml: Bump add-in versions. 2007-12-04 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.mdp: Updated project files. 2007-12-04 Lluis Sanchez Gual * Makefile.am, MonoDevelop.Database.Sql.MySql.addin.xml, MonoDevelop.Database.Sql.MySql.mdp: Directory reorganization. 2007-10-29 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.addin.xml: Bump MD version. 2007-10-23 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.mdp: Project file names updated by change in MD path functions. 2007-10-16 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.mdp: Fix required GTK# version. 2007-09-26 Michael Hutchinson * Makefile.am: Don't deploy .addin.xml file. * MonoDevelop.Database.Sql.MySql.mdp: Don't unnecessarily local-copy project references. Don't sync EXTRA_DIST with deploy files. Add Makefile.am to file list. 2007-09-21 Lluis Sanchez Gual * MonoDevelop.Database.Sql.MySql.addin.xml: Bump MD version. 2007-09-20 Ben Motmans * Makefile.am: removed incorrect references 2007-09-20 Ben Motmans * Makefile.am: changed reference to contrib/MySql 2007-09-16 Ben Motmans * Makefile.am: link to the correct Mono.Addins dll 2007-09-07 Ben Motmans * MySqlSchemaProvider.cs, MySqlDbFactory.cs, MonoDevelop.Database.Sql.MySql.addin.xml: improved capabilities system 2007-08-28 Ben Motmans * Makefile.am, MonoDevelop.Database.Sql.MySql.mdp: use project references instead of assembly references 2007-08-28 Ben Motmans * Makefile.am: updated makefile 2007-08-03 Ben Motmans * MySqlConnectionProvider.cs: added support for an error message 2007-08-02 Ben Motmans * MySqlSchemaProvider.cs: also create triggers in the create table method 2007-08-01 Ben Motmans * MySqlSchemaProvider.cs: Catch exceptions and notify the user and various small bugfixes 2007-07-31 Ben Motmans * MySqlDbFactory.cs, MySqlGuiProvider.cs: Added a GuiProvider * MySqlSchemaProvider.cs: Implemented CreateTable 2007-07-25 Ben Motmans * MySqlPooledDbConnection.cs: expose the GetSchema method of the internal connection * MySqlDbFactory.cs, MySqlSchemaProvider.cs: improved metadata support 2007-07-18 Ben Motmans * MySqlSchemaProvider.cs: SupportsSchemaOperation implementation, use of strongly typed collections, Drop* and Rename* implementations 2007-07-17 Ben Motmans * Makefile.am: initial makefile * MySqlDbFactory.cs: implemented methods required for the connection settings dialog * MySqlSchemaProvider.cs: implemented GetDataType method 2007-07-15 Ben Motmans * MySqlDialect.cs: dialect implementation with keyword detection * MySqlDbFactory.cs: use MySqlDialect instead of the obsolete Sql99Dialect 2007-07-14 Ben Motmans * MySqlConnectionProvider.cs, MySqlDbFactory.cs, MySqlSchemaProvider.cs: small changes to reflect API changes * MySqlPooledDbConnection.cs: implementation of ConnectionPool aware connection 2007-07-10 Ben Motmans * MySqlConnectionProvider.cs: set IsConnectionError property 2007-07-05 Ben Motmans * MySqlConnectionProvider.cs: ExecuteQueryAsDataSet and ExecuteQueryAsDataTable implementation * MySqlDbFactory.cs: specified the ISqlDialect and added default connection settings * Mono.Data.Sql.MySql.mdp: switched from the old ByteFX.Data provider to the new MySql.Data 2007-07-02 Ben Motmans * MySqlSchemaProvider.cs: Fixed several compilation issues Added Close () statements when the IDataReader is no longer needed 2007-07-01 Ben Motmans * MySqlSchemaProvider.cs: * MySqlDbFactory.cs: * MySqlConnectionProvider.cs: Imported original code and splitted in 3 classes GetDatabases, GetTableConstraints, GetViews, GetProcedures, GetViewColumns, GetProcedureColumns implementation improved support for MySql 5.x for the GetTables method updated sql statements to allow lazy loading monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Collections/0000755000175000017500000000000011266446160026427 5ustar directhexdirecthex././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Collections/MySqlCharacterSetSchemaCollection.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Collections/MySqlCharacterSetSchemaCollec0000644000175000017500000000313211266446160034152 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql.MySql { public sealed class MySqlCharacterSetSchemaCollection : SortedCollectionBase { public MySqlCharacterSetSchemaCollection () : base (true) { } public MySqlCharacterSetSchemaCollection (MySqlCharacterSetSchemaCollection collection) : base (collection, true) { } } }././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Collections/MySqlCollationSchemaCollection.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Collections/MySqlCollationSchemaCollectio0000644000175000017500000000311311266446160034241 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql.MySql { public sealed class MySqlCollationSchemaCollection : SortedCollectionBase { public MySqlCollationSchemaCollection () : base (true) { } public MySqlCollationSchemaCollection (MySqlCollationSchemaCollection collection) : base (collection, true) { } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Widgets/0000755000175000017500000000000011266446160025557 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Widgets/MySqlColumnEditorWidget.cs0000644000175000017500000000045511266446160032650 0ustar directhexdirecthex using System; namespace MonoDevelop.Database.Sql.MySql { [System.ComponentModel.Category("MonoDevelop.Database.Sql.MySql")] [System.ComponentModel.ToolboxItem(true)] public partial class MySqlColumnEditorWidget : Gtk.Bin { public MySqlColumnEditorWidget() { this.Build(); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Widgets/MySqlCreateDatabaseWidget.cs0000644000175000017500000000555311266446160033100 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Designer; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Sql.MySql { [System.ComponentModel.Category("MonoDevelop.Database.Sql.MySql")] [System.ComponentModel.ToolboxItem(true)] public partial class MySqlCreateDatabaseWidget : Bin { ListStore storeCollation = new ListStore (typeof(string), typeof(MySqlCollationSchema)); ListStore storeCharset = new ListStore (typeof(string), typeof(MySqlCharacterSetSchema)); public MySqlCreateDatabaseWidget () { this.Build(); comboCharset.Model = storeCharset; comboCollation.Model = storeCollation; } public void Initialize (MySqlSchemaProvider provider) { ClearCombos (); MySqlCharacterSetSchemaCollection charsets = provider.GetCharacterSets (); MySqlCollationSchemaCollection collations = provider.GetCollations (); foreach (MySqlCharacterSetSchema charset in charsets) storeCharset.AppendValues (charset.Name, charset); foreach (MySqlCollationSchema collation in collations) storeCollation.AppendValues (collation.Name, collation); } private void ClearCombos () { storeCollation.Clear (); storeCharset.Clear (); } public void SetDatabaseOptions (MySqlDatabaseSchema schema) { TreeIter iterCharset; TreeIter iterCollation; if (comboCharset.GetActiveIter (out iterCharset) && comboCollation.GetActiveIter (out iterCollation)) { schema.CharacterSetName = ((MySqlCharacterSetSchema)storeCharset.GetValue (iterCharset, 1)).Name; schema.CollationName = ((MySqlCollationSchema)storeCollation.GetValue (iterCollation, 1)).Name; schema.Comment = ""; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/MySqlDialect.cs0000644000175000017500000001333211266446160027035 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql.MySql { public class MySqlDialect : AbstractSqlDialect { public override string QuoteIdentifier (string identifier) { if (identifier == null) throw new ArgumentNullException ("identifier"); if (IsReservedWord (identifier) || identifier.Contains (" ")) return String.Concat ('`', identifier, '`'); return identifier; } public override string MarkAsParameter (string identifier) { if (identifier == null) throw new ArgumentNullException ("identifier"); return "?" + identifier; } //http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html protected virtual bool IsReservedWord (string word) { word = word.ToUpper (); switch (word) { case "ADD": case "ALL": case "ALTER": case "ANALYZE": case "AND": case "AS": case "ASC": case "ASENSITIVE": case "BEFORE": case "BETWEEN": case "BIGINT": case "BINARY": case "BLOB": case "BOTH": case "BY": case "CALL": case "CASCADE": case "CASE": case "CHANGE": case "CHAR": case "CHARACTER": case "CHECK": case "COLLATE": case "COLUMN": case "CONDITION": case "CONSTRAINT": case "CONTINUE": case "CONVERT": case "CREATE": case "CROSS": case "CURRENT_DATE": case "CURRENT_TIME": case "CURRENT_TIMESTAMP": case "CURRENT_USER": case "CURSOR": case "DATABASE": case "DATABASES": case "DAY_HOUR": case "DAY_MICROSECOND": case "DAY_MINUTE": case "DAY_SECOND": case "DEC": case "DECIMAL": case "DECLARE": case "DEFAULT": case "DELAYED": case "DELETE": case "DESC": case "DESCRIBE": case "DETERMINISTIC": case "DISTINCT": case "DISTINCTROW": case "DIV": case "DOUBLE": case "DROP": case "DUAL": case "EACH": case "ELSE": case "ELSEIF": case "ENCLOSED": case "ESCAPED": case "EXISTS": case "EXIT": case "EXPLAIN": case "FALSE": case "FETCH": case "FLOAT": case "FLOAT4": case "FLOAT8": case "FOR": case "FORCE": case "FOREIGN": case "FROM": case "FULLTEXT": case "GRANT": case "GROUP": case "HAVING": case "HIGH_PRIORITY": case "HOUR_MICROSECOND": case "HOUR_MINUTE": case "HOUR_SECOND": case "IF": case "IGNORE": case "IN": case "INDEX": case "INFILE": case "INNER": case "INOUT": case "INSENSITIVE": case "INSERT": case "INT": case "INT1": case "INT2": case "INT3": case "INT4": case "INT8": case "INTEGER": case "INTERVAL": case "INTO": case "IS": case "ITERATE": case "JOIN": case "KEY": case "KEYS": case "KILL": case "LEADING": case "LEAVE": case "LEFT": case "LIKE": case "LIMIT": case "LINES": case "LOAD": case "LOCALTIME": case "LOCALTIMESTAMP": case "LOCK": case "LONG": case "LONGBLOB": case "LONGTEXT": case "LOOP": case "LOW_PRIORITY": case "MATCH": case "MEDIUMBLOB": case "MEDIUMINT": case "MEDIUMTEXT": case "MIDDLEINT": case "MINUTE_MICROSECOND": case "MINUTE_SECOND": case "MOD": case "MODIFIES": case "NATURAL": case "NOT": case "NO_WRITE_TO_BINLOG": case "NULL": case "NUMERIC": case "ON": case "OPTIMIZE": case "OPTION": case "OPTIONALLY": case "OR": case "ORDER": case "OUT": case "OUTER": case "OUTFILE": case "PRECISION": case "PRIMARY": case "PROCEDURE": case "PURGE": case "RAID0": case "READ": case "READS": case "REAL": case "REFERENCES": case "REGEXP": case "RELEASE": case "RENAME": case "REPEAT": case "REPLACE": case "REQUIRE": case "RESTRICT": case "RETURN": case "REVOKE": case "RIGHT": case "RLIKE": case "SCHEMA": case "SCHEMAS": case "SECOND_MICROSECOND": case "SELECT": case "SENSITIVE": case "SEPARATOR": case "SET": case "SHOW": case "SMALLINT": case "SONAME": case "SPATIAL": case "SPECIFIC": case "SQL": case "SQLEXCEPTION": case "SQLSTATE": case "SQLWARNING": case "SQL_BIG_RESULT": case "SQL_CALC_FOUND_ROWS": case "SQL_SMALL_RESULT": case "SSL": case "STARTING": case "STRAIGHT_JOIN": case "TABLE": case "TERMINATED": case "THEN": case "TINYBLOB": case "TINYINT": case "TINYTEXT": case "TO": case "TRAILING": case "TRIGGER": case "TRUE": case "UNDO": case "UNION": case "UNIQUE": case "UNLOCK": case "UNSIGNED": case "UPDATE": case "USAGE": case "USE": case "USING": case "UTC_DATE": case "UTC_TIME": case "UTC_TIMESTAMP": case "VALUES": case "VARBINARY": case "VARCHAR": case "VARCHARACTER": case "VARYING": case "WHEN": case "WHERE": case "WHILE": case "WITH": case "WRITE": case "X509": case "XOR": case "YEAR_MONTH": case "ZEROFILL": return true; default: return false; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/MySqlSyntaxMode.xml0000644000175000017500000002777111266446160027772 0ustar directhexdirecthex - /* */ " " ' ' ABS ACOS ADDDATE ADDTIME AES_DECRYPT AES_ENCRYPT ASCII ASIN ATAN2 ATAN AVG BENCHMARK BIN BIT_AND BIT_COUNT BIT_LENGTH BIT_OR BIT_XOR CAST CEIL CEILING CHAR_LENGTH CHAR CHARACTER_LENGTH CHARSET COALESCE COERCIBILITY COLLATION COMPRESS CONCAT_WS CONCAT CONNECTION_ID CONV CONVERT_TZ Convert COS COT COUNT COUNT CRC32 CURDATE CURRENT_DATE CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURTIME DATABASE DATE_ADD DATE_FORMAT DATE_SUB DATE DATEDIFF DAY DAYNAME DAYOFMONTH DAYOFWEEK DAYOFYEAR DECODE DEFAULT DEGREES DES_DECRYPT DES_ENCRYPT DIV ELT ENCODE ENCRYPT EXP EXPORT_SET EXTRACT ExtractValue FIELD FIND_IN_SET FLOOR FORMAT FOUND_ROWS FROM_DAYS FROM_UNIXTIME GET_FORMAT GET_LOCK GREATEST GROUP_CONCAT HEX HOUR IF IFNULL IN INET_ATON INET_NTOA INSERT INSTR INTERVAL IS_FREE_LOCK IS_USED_LOCK ISNULL LAST_DAY LAST_INSERT_ID LCASE LEAST LEFT LENGTH LN LOAD_FILE LOCALTIME LOCALTIMESTAMP LOCATE LOG10 LOG2 LOG LOWER LPAD LTRIM MAKE_SET MAKEDATE MAKETIME MASTER_POS_WAIT MD5 MICROSECOND MID MINUTE MONTH MONTHNAME NAME_CONST NOW NULLIF oct OCTET_LENGTH OLD_PASSWORD ORD PASSWORD PERIOD_ADD PERIOD_DIFF PI POSITION POW POWER PROCEDURE ANALYSE QUARTER QUOTE RADIANS RAND RELEASE_LOCK REPLACE REVERSE RIGHT( SHA ROUND ROW_COUNT RPAD RTRIM SCHEMA SEC_TO_TIME SECOND SESSION_USER SHA1 SIGN SIN SLEEP SOUNDEX SPACE SQRT STD STDDEV_POP STDDEV_SAMP STDDEV STR_TO_DATE STRCMP SUBDATE SUBSTR SUBSTRING_INDEX SUBSTRING SUBTIME SYSDATE SYSTEM_USER TAN TIME_FORMAT TIME_TO_SEC TIME TIMEDIFF TIMESTAMP TIMESTAMPADD TIMESTAMPDIFF TO_DAYS TRIM TRUNCATE UCASE UNCOMPRESS UNCOMPRESSED_LENGTH UNHEX UNIX_TIMESTAMP UpdateXML UPPER USER UTC_DATE UTC_TIME UTC_TIMESTAMP UUID_SHORT UUID VALUES VAR_POP VAR_SAMP VARIANCE VERSION WEEK WEEKDAY WEEKOFYEAR YEAR YEARWEEK BEGIN END AND && BETWEEN Binary & ~ | ^ CASE WHEN DIV / <=> = >= > IS NOT NULL IS NOT IS NULL IS << <= < LIKE - % NOT BETWEEN != <> NOT LIKE NOT REGEXP NOT ! OR || + >> RLIKE SOUNDS * XOR ( ) SET MATCH MOD IN AS CREATE DATABASE SCHEMA IF NOT EXISTS CHARACTER COLLATION DROP IF EXISTS FUNCTION ALTER PROCEDURE ALTER VIEW TABLE TRIGGER TEMPORARY CONSTRAINT PRIMARY KEY INDEX UNIQUE FULLTEXT SPATIAL FOREIGN CHECK AUTO_INCREMENT COMMENT COLUMN_FORMAT FIXED DYNAMIC DEFAULT COLUMN_FORMAT COLUMN_FORMAT DISK MEMORY STORAGE USING REFERENCES FULL PARTIAL SIMPLE MATCH DELETE UPDATE RESTRICT CASCADE NULL ACTION ENGINE AVG_ROW_LENGTH CHECKSUM DATA DIRECTORY DELAY_KEY_WRITE INDEX DIRECTORY MAX_ROWS MIN_ROWS PACK_KEYS PASSWORD ADD COLUMN AFTER INDEX FULLTEXT DISABLE KEYS RENAME ENABLE DECLARE IN OUT SELECT FROM WHERE INNER LEFT RIGHT CROSS JOIN UNION ALL LIMIT USE MAX COUNT MIN SUM ASC DESC DUMPFILE INTO OUTFILE FIELDS TERMINATED LINES EXPLAIN ANALYZE SHOW TABLES DATABASES PROCEDURES DESCRIBE DELETE UPDATE EXISTS INSERT INTO START COMMIT ROLLBACK TRANSACTION UNCOMMITTED COMMITTED READ REPEATABLE SERIALIZABLE ORDER By Group Having HANDLER CALL DO WHILE BREAK RETURN RETURNS TRUE FALSE NULL DEFAULT TinyInt SmallInt MediumInt Int BigInt Float Double Real Decimal Numeric Bit Unsigned DateTime Date Time TimeStamp Year Char VarChar Binary VarBinary Blob TinyBlob MediumBlob LongBlob Text TinyText MediumText LongText Enum Set TODO FIXME HACK UNDONE monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/MySqlPooledDbConnection.cs0000644000175000017500000000576011266446160031206 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; using MySql.Data.MySqlClient; namespace MonoDevelop.Database.Sql.MySql { public class MySqlPooledDbConnection : AbstractPooledDbConnection { public MySqlPooledDbConnection (IConnectionPool connectionPool, IDbConnection connection) : base (connectionPool, connection) { } public override Version DatabaseVersion { get { MySqlConnection connection = DbConnection as MySqlConnection; try { //the version string is in the form ##.##.##-xxx (major.minor.build-comment) string version = connection.ServerVersion; int index = version.IndexOf ("-"); return new Version (version.Substring (0, index)); } catch { return new Version (4, 0); //assume a minimum of 4.0 } } } public override DataSet ExecuteSet (IDbCommand command) { if (command == null) throw new ArgumentException ("command"); DataSet set = new DataSet (); using (command) { using (MySqlDataAdapter adapter = new MySqlDataAdapter (command as MySqlCommand)) { try { adapter.Fill (set); } catch (Exception e) { QueryService.RaiseException (e); } } } return set; } public override DataTable ExecuteTable (IDbCommand command) { if (command == null) throw new ArgumentException ("command"); DataTable table = new DataTable (); using (command) { using (MySqlDataAdapter adapter = new MySqlDataAdapter (command as MySqlCommand)) { try { adapter.Fill (table); } catch (Exception e) { QueryService.RaiseException (e); } } } return table; } public override DataTable GetSchema (string collectionName, params string[] restrictionValues) { return (connection as MySqlConnection).GetSchema (collectionName, restrictionValues); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/MySqlConnectionProvider.cs0000644000175000017500000000550211266446160031302 0ustar directhexdirecthex// // Authors: // Christian Hergert // Daniel Morgan // Sureshkumar T // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using MySql.Data.MySqlClient; using System.Collections.Generic; namespace MonoDevelop.Database.Sql.MySql { public class MySqlConnectionProvider : AbstractConnectionProvider { public override IPooledDbConnection CreateConnection (IConnectionPool pool, DatabaseConnectionSettings settings, out string error) { string connStr = null; try { if (settings.UseConnectionString) { connStr = settings.ConnectionString; } else { //"Server=Server;Port=1234;Database=Test;Uid=UserName;Pwd=asdasd;" //Default port is 3306. Enter value -1 to use a named pipe connection. if (settings.Port > 0) connStr = String.Format ("Server={0};Port={1};Database={2};Uid={3};Pwd={4};", settings.Server, settings.Port, settings.Database, settings.Username, settings.Password); else connStr = String.Format ("Server={0};Database={2};Uid={3};Pwd={3};", settings.Server, settings.Database, settings.Username, settings.Password); } connStr = SetConnectionStringParameter (connStr, String.Empty, "Pooling", "false"); MySqlConnection connection = new MySqlConnection (connStr); connection.Open (); error = null; return new MySqlPooledDbConnection (pool, connection); } catch (Exception e) { error = e.Message; return null; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/MySqlDbFactory.cs0000644000175000017500000001071711266446160027351 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Sql.MySql { public class MySqlDbFactory : IDbFactory, IDbLinq { private ISqlDialect dialect; private IConnectionProvider connectionProvider; private IGuiProvider guiProvider; public string Identifier { get { return "MySql.Data.MySqlClient"; } } public string Name { get { return AddinCatalog.GetString ("MySql database"); } } public ISqlDialect Dialect { get { if (dialect == null) dialect = new MySqlDialect (); return dialect; } } public IConnectionProvider ConnectionProvider { get { if (connectionProvider == null) connectionProvider = new MySqlConnectionProvider (); return connectionProvider; } } public IGuiProvider GuiProvider { get { if (guiProvider == null) guiProvider = new MySqlGuiProvider (); return guiProvider; } } public IConnectionPool CreateConnectionPool (DatabaseConnectionContext context) { return new DefaultConnectionPool (this, ConnectionProvider, context); } public ISchemaProvider CreateSchemaProvider (IConnectionPool connectionPool) { return new MySqlSchemaProvider (connectionPool); } public DatabaseConnectionSettings GetDefaultConnectionSettings () { DatabaseConnectionSettings settings = new DatabaseConnectionSettings (); settings.ProviderIdentifier = Identifier; settings.Server = "localhost"; settings.Port = 3306; settings.Username = "root"; settings.MaxPoolSize = 5; return settings; } #region IDbLinq implementation public bool Generate (DatabaseConnectionSettings connection, string outputType, string outputFile, string language, string style, string defaultNamespace, string entityBase, string entityAttr, string membersAttr, string generateTypes, string culture, bool generateSchema, bool generateTimestamp, bool overrideEqualAndHash, bool extractProcedures, bool pluralize) { return SqlMetalServices.Generate (Provider, connection, outputType, outputFile, language, style, defaultNamespace, entityBase, entityAttr, membersAttr, generateTypes, culture, generateSchema, generateTimestamp, overrideEqualAndHash, extractProcedures, pluralize); } public bool Generate (DatabaseConnectionSettings connection, string outputType, string outputFile, string defaultNamespace, string entityBase, string entityAttr, string membersAttr, string generateTypes, string culture, bool generateSchema, bool generateTimestamp, bool overrideEqualAndHash, bool extractProcedures, bool pluralize) { return SqlMetalServices.Generate (Provider, connection, outputType, outputFile, defaultNamespace, entityBase, entityAttr, membersAttr, generateTypes, culture, generateSchema, generateTimestamp, overrideEqualAndHash, extractProcedures, pluralize); } public string Provider { get { return "MySql"; } } public bool HasProcedures { get { return true; } } #endregion } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Schema/0000755000175000017500000000000011266446160025351 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Schema/MySqlCharacterSetSchema.cs0000644000175000017500000000422611266446160032363 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections; namespace MonoDevelop.Database.Sql.MySql { public class MySqlCharacterSetSchema : AbstractSchema { protected string defaultCollactionName; protected int maxLength; public MySqlCharacterSetSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public MySqlCharacterSetSchema (MySqlCharacterSetSchema schema) : base (schema) { defaultCollactionName = schema.defaultCollactionName; defaultCollactionName = schema.defaultCollactionName; } public int MaxLength { get { return maxLength; } set { if (maxLength != value) { maxLength = value; OnChanged (); } } } public string DefaultCollactionName { get { return defaultCollactionName; } set { if (defaultCollactionName != value) { defaultCollactionName = value; OnChanged (); } } } public override object Clone () { return new MySqlCharacterSetSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Schema/MySqlCollationSchema.cs0000644000175000017500000000530211266446160031733 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections; namespace MonoDevelop.Database.Sql.MySql { public class MySqlCollationSchema : AbstractSchema { protected int id; protected bool isDefaultCollation; protected bool isCompiled; protected int sortLength; protected string characterSetName; public MySqlCollationSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public MySqlCollationSchema (MySqlCollationSchema schema) : base (schema) { id = schema.id; isDefaultCollation = schema.isDefaultCollation; isCompiled = schema.isCompiled; sortLength = schema.sortLength; } public int Id { get { return id; } set { if (id != value) { id = value; OnChanged (); } } } public bool IsDefaultCollation { get { return isDefaultCollation; } set { if (isDefaultCollation != value) { isDefaultCollation = value; OnChanged (); } } } public bool IsCompiled { get { return isCompiled; } set { if (isCompiled != value) { isCompiled = value; OnChanged (); } } } public int SortLength { get { return sortLength; } set { if (sortLength != value) { sortLength = value; OnChanged (); } } } public string CharacterSetName { get { return characterSetName; } set { if (characterSetName != value) { characterSetName = value; OnChanged (); } } } public override object Clone () { return new MySqlCollationSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Schema/MySqlDatabaseSchema.cs0000644000175000017500000000455411266446160031523 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // using System; using System.Collections; namespace MonoDevelop.Database.Sql.MySql { public class MySqlDatabaseSchema : DatabaseSchema { protected string characterSetName; protected string collationName; public MySqlDatabaseSchema (ISchemaProvider schemaProvider) : base (schemaProvider) { } public MySqlDatabaseSchema (MySqlDatabaseSchema schema) : base (schema) { characterSetName = schema.characterSetName; collationName = schema.collationName; } public string CharacterSetName { get { return characterSetName; } set { if (characterSetName != value) { characterSetName = value; OnChanged (); } } } public string CollationName { get { return collationName; } set { if (collationName != value) { collationName = value; OnChanged (); } } } public MySqlCharacterSetSchema CharacterSet { get { throw new NotImplementedException (); //TODO: implement } } public MySqlCollationSchema Collation { get { throw new NotImplementedException (); //TODO: implement } } public override object Clone () { return new MySqlDatabaseSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Dialogs/0000755000175000017500000000000011266446160025533 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Dialogs/MySqlCreateDatabaseDialog.cs0000644000175000017500000000676711266446160033040 0ustar directhexdirecthex// // MySqlCreateDatabaseDialog.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using Gtk; using System; using System.Data; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; using MonoDevelop.Database.Designer; using MonoDevelop.Ide; namespace MonoDevelop.Database.Sql.MySql { public class MySqlCreateDatabaseDialog : CreateDatabaseDialog { ConnectionSettingsWidget connectionWidget; MySqlCreateDatabaseWidget createDBWidget; public MySqlCreateDatabaseDialog (IDbFactory factory):base(factory) { createDBWidget = new MySqlCreateDatabaseWidget (); Notebook.AppendPage (createDBWidget, new Label (AddinCatalog.GetString ("Database Properties"))); Notebook.ShowTabs = true; Gtk.Notebook nb = Notebook; nb.SwitchPage += delegate(object o, SwitchPageArgs args) { if (nb.CurrentPage == 1) if (!connectionWidget.ValidateFields ()) { nb.CurrentPage = 0; MessageService.ShowError (this, AddinCatalog.GetString ("Set the connection properties before the database properties.")); } else { Initialize (factory); if (DatabaseConnection.ConnectionPool.HasErrors) { MessageService.ShowError (DatabaseConnection.ConnectionPool.Error); nb.CurrentPage = 0; return; } createDBWidget.Initialize ((MySqlSchemaProvider)DatabaseConnection.SchemaProvider); } }; Notebook.ShowAll (); } private void Initialize (IDbFactory factory) { if (DatabaseConnection != null) DatabaseConnection.ConnectionPool.Close (); DatabaseConnectionSettings settings = new DatabaseConnectionSettings(connectionWidget.ConnectionSettings); settings.Database = "mysql"; // Create Context, Pool, Connection DatabaseConnectionContext ctx = new DatabaseConnectionContext (settings, true); ctx.ConnectionPool.Initialize (); this.DatabaseConnection = ctx; } protected override ConnectionSettingsWidget CreateConnectionSettingsWidget (IDbFactory factory) { connectionWidget = new ConnectionSettingsWidget (factory); connectionWidget.ShowSettings (factory.GetDefaultConnectionSettings ()); connectionWidget.EnableTestButton = false; return connectionWidget; } protected override void OnBeforeDatabaseCreation (DatabaseSchema schema) { createDBWidget.SetDatabaseOptions ((MySqlDatabaseSchema)schema); base.OnBeforeDatabaseCreation (schema); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/Dialogs/MySqlTableEditorDialog.cs0000644000175000017500000000000011266446160032354 0ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.MySql/AssemblyInfo.cs0000644000175000017500000000050711266446160027075 0ustar directhexdirecthex// Autogenerated from MonoDevelop.Database.Sql.MySql.addin.xml using System.Reflection; [assembly: AssemblyProduct ("MonoDevelop")] [assembly: AssemblyTitle ("MySql provider for Mono Data Sql")] [assembly: AssemblyDescription ("Database Module")] [assembly: AssemblyVersion ("2.6")] [assembly: AssemblyCopyright ("MIT X11")] monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/0000755000175000017500000000000011266446160024350 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Makefile.in0000644000175000017500000003470311266446160026424 0ustar directhexdirecthex# Makefile.in generated by automake 1.12.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2012 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.include ChangeLog subdir = MonoDevelop.Database.Sql.Npgsql ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(assemblydir)" DATA = $(assembly_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ASSEMBLY_VERSION = @ASSEMBLY_VERSION@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CSC = @CSC@ CSC_FLAGS = @CSC_FLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ GLIB_SHARP_CFLAGS = @GLIB_SHARP_CFLAGS@ GLIB_SHARP_LIBS = @GLIB_SHARP_LIBS@ GTK_SHARP_CFLAGS = @GTK_SHARP_CFLAGS@ GTK_SHARP_LIBS = @GTK_SHARP_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD_LIBRARY_PATH = @LD_LIBRARY_PATH@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_PREFIX = @LIB_PREFIX@ LIB_SUFFIX = @LIB_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MCS = @MCS@ MD_ADDIN_DIR = @MD_ADDIN_DIR@ MD_ASSEMBLY_DIR = @MD_ASSEMBLY_DIR@ MD_DIR = @MD_DIR@ MKDIR_P = @MKDIR_P@ MONO = @MONO@ MONODEVELOP_CFLAGS = @MONODEVELOP_CFLAGS@ MONODEVELOP_CORE_ADDINS_CFLAGS = @MONODEVELOP_CORE_ADDINS_CFLAGS@ MONODEVELOP_CORE_ADDINS_LIBS = @MONODEVELOP_CORE_ADDINS_LIBS@ MONODEVELOP_LIBS = @MONODEVELOP_LIBS@ MONO_ADDINS_CFLAGS = @MONO_ADDINS_CFLAGS@ MONO_ADDINS_GUI_CFLAGS = @MONO_ADDINS_GUI_CFLAGS@ MONO_ADDINS_GUI_LIBS = @MONO_ADDINS_GUI_LIBS@ MONO_ADDINS_LIBS = @MONO_ADDINS_LIBS@ MONO_ADDINS_SETUP_CFLAGS = @MONO_ADDINS_SETUP_CFLAGS@ MONO_ADDINS_SETUP_LIBS = @MONO_ADDINS_SETUP_LIBS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH = @PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RUNTIME = @RUNTIME@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ UNMANAGED_DEPENDENCIES_MONO_CFLAGS = @UNMANAGED_DEPENDENCIES_MONO_CFLAGS@ UNMANAGED_DEPENDENCIES_MONO_LIBS = @UNMANAGED_DEPENDENCIES_MONO_LIBS@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gtksharp_prefix = @gtksharp_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.Sql.Npgsql.dll REFS = \ $(GTK_SHARP_LIBS) \ $(MONODEVELOP_CORE_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Components.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Designer.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:Mono.Posix \ -r:Npgsql \ -r:System \ -r:System.Core \ -r:System.Data \ -r:System.Xml.Linq FILES = \ AssemblyInfo.cs \ Collections/NpgsqlEncodingCollection.cs \ Collections/NpgsqlTablespaceCollection.cs \ Dialogs/NpgsqlCreateDatabaseDialog.cs \ Dialogs/NpgsqlTableEditorDialog.cs \ gtk-gui/generated.cs \ gtk-gui/MonoDevelop.Database.Sql.Npgsql.NpgsqlColumnEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Sql.Npgsql.NpgsqlCreateDatabaseWidget.cs \ NpgsqlConnectionProvider.cs \ NpgsqlDbFactory.cs \ NpgsqlDialect.cs \ NpgsqlGuiProvider.cs \ NpgsqlPooledDbConnection.cs \ NpgsqlSchemaProvider.cs \ Schema/dummy.cs \ Schema/NpgsqlDatabaseSchema.cs \ Schema/NpgsqlEncoding.cs \ Schema/NpgsqlTablespace.cs \ Widgets/NpgsqlColumnEditorWidget.cs \ Widgets/NpgsqlCreateDatabaseWidget.cs RES = \ Encoding.xml \ gtk-gui/gui.stetic \ gtk-gui/objects.xml \ MonoDevelop.Database.Sql.Npgsql.addin.xml \ NpgsqlSyntaxMode.xml @ENABLE_POSTGRES_TRUE@assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database @ENABLE_POSTGRES_TRUE@assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb EXTRA_DIST = $(FILES) $(RES) build_sources = $(addprefix $(srcdir)/, $(FILES)) $(GENERATED_FILES) build_resources = $(addprefix $(srcdir)/, $(RES)) build_test_sources = $(addprefix $(srcdir)/, $(TESTFILES)) $(GENERATED_FILES) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.include $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu MonoDevelop.Database.Sql.Npgsql/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu MonoDevelop.Database.Sql.Npgsql/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_srcdir)/Makefile.include: $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-assemblyDATA: $(assembly_DATA) @$(NORMAL_INSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(assemblydir)'"; \ $(MKDIR_P) "$(DESTDIR)$(assemblydir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(assemblydir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(assemblydir)" || exit $$?; \ done uninstall-assemblyDATA: @$(NORMAL_UNINSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(assemblydir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: ctags: CTAGS CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(assemblydir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-assemblyDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-assemblyDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-assemblyDATA install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am uninstall uninstall-am uninstall-assemblyDATA @ENABLE_POSTGRES_TRUE@all: $(ASSEMBLY) @ENABLE_POSTGRES_FALSE@all: $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Encoding.xml0000644000175000017500000002026211266446160026622 0ustar directhexdirecthex BIG5 Big Five Traditional Chinese 1-2 WIN950, Windows950 EUC_CN Extended UNIX Code-CN Simplified Chinese 1-3 EUC_JP Extended UNIX Code-JP Japanese 1-3 EUC_JIS_2004 Extended UNIX Code-JP, JIS X 0213 Japanese 1-3 EUC_KR Extended UNIX Code-KR Korean 1-3 EUC_TW Extended UNIX Code-TW Traditional Chinese, Taiwanese 1-3 GB18030 National Standard Chinese 1-2 GBK Extended National Standard Simplified Chinese 1-2 WIN936, Windows936 ISO_8859_5 ISO 8859-5, ECMA 113 Latin/Cyrillic 1 ISO_8859_6 ISO 8859-6, ECMA 114 Latin/Arabic 1 ISO_8859_7 ISO 8859-7, ECMA 118 Latin/Greek 1 ISO_8859_8 ISO 8859-8, ECMA 121 Latin/Hebrew 1 JOHAB JOHAB Korean (Hangul) 1-3 KOI8R KOI8-R Cyrillic (Russian) 1 KOI8 KOI8U KOI8-U Cyrillic (Ukrainian) 1 LATIN1 ISO 8859-1, ECMA 94 Western European 1 ISO88591 LATIN2 ISO 8859-2, ECMA 94 Central European 1 ISO88592 LATIN3 ISO 8859-3, ECMA 94 South European 1 ISO88593 LATIN4 ISO 8859-4, ECMA 94 North European 1 ISO88594 LATIN5 ISO 8859-9, ECMA 128 Turkish 1 ISO88599 LATIN6 ISO 8859-10, ECMA 144 Nordic 1 ISO885910 LATIN7 ISO 8859-13 Baltic 1 ISO885913 LATIN8 ISO 8859-14 Celtic 1 ISO885914 LATIN9 ISO 8859-15 LATIN1 with Euro and accents 1 ISO885915 LATIN10 ISO 8859-16, ASRO SR 14111 Romanian 1 ISO885916 MULE_INTERNAL Mule internal code Multilingual Emacs 1-4 SJIS Shift JIS Japanese 1-2 Mskanji, ShiftJIS, WIN932, Windows932 SHIFT_JIS_2004 Shift JIS, JIS X 0213 Japanese 1-2 SQL_ASCII unspecified any 1 UHC Unified Hangul Code Korean 1-2 WIN949, Windows949 UTF8 Unicode, 8-bit all 1-4 Unicode WIN866 Windows CP866 Cyrillic 1 ALT WIN874 Windows CP874 Thai 1 WIN1250 Windows CP1250 Central European 1 WIN1251 Windows CP1251 Cyrillic 1 WIN WIN1252 Windows CP1252 Western European 1 WIN1253 Windows CP1253 Greek 1 WIN1254 Windows CP1254 Turkish 1 WIN1255 Windows CP1255 Hebrew 1 WIN1256 Windows CP1256 Arabic 1 WIN1257 Windows CP1257 Baltic 1 WIN1258 Windows CP1258 Vietnamese 1 ABC, TCVN, TCVN5712, VSCII monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/NpgsqlSyntaxMode.xml0000644000175000017500000003671511266446160030366 0ustar directhexdirecthex - /* */ " " ' ' abs cbrt ceil ceiling degrees exp floor ln log mod pi power radians random round setseed sign sqrt trunc width_bucket acos asin atan atan2 cos cot sin tan character_length string bit_length char_length convert lower octet_length overlay position substring trim upper ascii btrim chr convert decode encode initcap length lpad ltrim md5 pg_client_encoding quote_ident regexp_replace repeat replace rpad rtrim split_part strpos substr to_ascii to_hex translate Notes: ascii_to_mic ascii_to_utf8 big5_to_euc_tw big5_to_mic big5_to_utf8 euc_cn_to_mic euc_cn_to_utf8 euc_jp_to_mic euc_jp_to_sjis euc_jp_to_utf8 euc_kr_to_mic euc_kr_to_utf8 euc_tw_to_big5 euc_tw_to_mic euc_tw_to_utf8 gb18030_to_utf8 gbk_to_utf8 iso_8859_10_to_utf8 iso_8859_13_to_utf8 iso_8859_14_to_utf8 iso_8859_15_to_utf8 iso_8859_16_to_utf8 iso_8859_1_to_mic iso_8859_1_to_utf8 iso_8859_2_to_mic iso_8859_2_to_utf8 iso_8859_2_to_windows_1250 iso_8859_3_to_mic iso_8859_3_to_utf8 iso_8859_4_to_mic iso_8859_4_to_utf8 iso_8859_5_to_koi8_r iso_8859_5_to_mic iso_8859_5_to_utf8 iso_8859_5_to_windows_1251 iso_8859_5_to_windows_866 iso_8859_6_to_utf8 iso_8859_7_to_utf8 iso_8859_8_to_utf8 iso_8859_9_to_utf8 johab_to_utf8 koi8_r_to_iso_8859_5 koi8_r_to_mic koi8_r_to_utf8 koi8_r_to_windows_1251 koi8_r_to_windows_866 mic_to_ascii mic_to_big5 mic_to_euc_cn mic_to_euc_jp mic_to_euc_kr mic_to_euc_tw mic_to_iso_8859_1 mic_to_iso_8859_2 mic_to_iso_8859_3 mic_to_iso_8859_4 mic_to_iso_8859_5 mic_to_koi8_r mic_to_sjis mic_to_windows_1250 mic_to_windows_1251 mic_to_windows_866 sjis_to_euc_jp sjis_to_mic sjis_to_utf8 tcvn_to_utf8 uhc_to_utf8 utf8_to_ascii utf8_to_big5 utf8_to_euc_cn utf8_to_euc_jp utf8_to_euc_kr utf8_to_euc_tw utf8_to_gb18030 utf8_to_gbk utf8_to_iso_8859_1 utf8_to_iso_8859_10 utf8_to_iso_8859_13 utf8_to_iso_8859_14 utf8_to_iso_8859_15 utf8_to_iso_8859_16 utf8_to_iso_8859_2 utf8_to_iso_8859_3 utf8_to_iso_8859_4 utf8_to_iso_8859_5 utf8_to_iso_8859_6 utf8_to_iso_8859_7 utf8_to_iso_8859_8 utf8_to_iso_8859_9 utf8_to_johab utf8_to_koi8_r utf8_to_sjis utf8_to_tcvn utf8_to_uhc utf8_to_windows_1250 utf8_to_windows_1251 utf8_to_windows_1252 utf8_to_windows_1256 utf8_to_windows_866 utf8_to_windows_874 windows_1250_to_iso_8859_2 windows_1250_to_mic windows_1250_to_utf8 windows_1251_to_iso_8859_5 windows_1251_to_koi8_r windows_1251_to_mic windows_1251_to_utf8 windows_1251_to_windows_866 windows_1252_to_utf8 windows_1256_to_utf8 windows_866_to_iso_8859_5 windows_866_to_koi8_r windows_866_to_mic windows_866_to_utf8 windows_866_to_windows_1251 windows_874_to_utf8 get_byte set_byte get_bit set_bit to_char to_date to_timestamp to_number age current_date current_time current_timestamp date_part date_trunc extract isfinite justify_hours justify_days localtime localtimestamp now timeofday area center diameter height isclosed isopen npoints pclose popen radius width box circle lseg path point polygon broadcast host masklen set_masklen netmask hostmask network text abbrev family trunc nextval currval lastval setval nullif array_cat array_append array_prepend array_dims array_lower array_upper array_to_string string_to_array avg bit_and bit_or bool_and bool_or count count every max min stddev sum variance current_database current_schema current_schemas current_user inet_client_addr inet_client_port inet_server_addr inet_server_port session_user pg_postmaster_start_time user version has_table_privilege has_database_privilege has_function_privilege has_language_privilege pg_has_role has_schema_privilege has_tablespace_privilege pg_table_is_visible pg_type_is_visible pg_function_is_visible pg_operator_is_visible pg_opclass_is_visible pg_conversion_is_visible format_type pg_get_constraintdef pg_get_expr pg_get_indexdef pg_get_ruledef pg_get_serial_sequence pg_tablespace_databases pg_get_triggerdef pg_get_userbyid pg_get_viewdef obj_description col_description current_setting set_config pg_cancel_backend pg_reload_conf pg_rotate_logfile pg_start_backup pg_stop_backup pg_column_size pg_tablespace_size pg_database_size pg_relation_size pg_total_relation_size pg_size_pretty pg_ls_dir pg_read_file pg_stat_file AND OR NOT < > <= >= = <> != BETWEEN IS NOT NULL UNKNOW + - * / % ^ |/ ||/ ! !! @ & | # ~ << >> LIKE SIMILAR TO ~ ~* !~ !~* @-@ @@ ## >-< && << >> &< &> ?# ?- ?| ?-| ?|| ~= CASE WHEN THEN ANY SOME CREATE DATABASE WITH OWNER TEMPLATE TABLESPACE ENCODING LC_COLLATE LC_CTYPE DROP DATABASE IF EXISTS REPLACE FUNCTION CALLED LANGUAGE WINDOW INMUTABLE STABLE VOLATILE INPUT STRICT EXTERNAL WITH FUNCTION CREATE GLOBAL TEMPORARY TEMP INHERITS COMMIT ROWS PRESERVE DELETE CONSTRAINT UNIQUE PRIMARY KEY CHECK FOREIGN REFERENCES DEFERRABLE INITIALLY IMMEDIATE USING INDEX TABLESPACE RENAME TO ALTET COLUMN ADD DISABLE TRIGGER ENABLE DEFAULT SET STORAGE STATISTICS UNIQUE INDEX ROLE ROLE PROCEDURAL LANGUAGE TRUSTED VIEW REPLACE TEMPORARY TEMP SELECT FROM WHERE INNER LEFT RIGHT CROSS JOIN UNION ALL LIMIT USE MAX COUNT MIN SUM ASC DESC DELETE UPDATE EXISTS INSERT INTO Group By Order Having BREAK RETURN RETURNS TRUE FALSE NULL DEFAULT bigint bigserial bit boolean box bytea character varying cidr circle date double precision inet integer interval line lseg macaddr money numeric path point polygon real smallint serial text time timestamp tsquery tsvector txid_snapshot uuid xml TODO FIXME HACK UNDONE monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/gtk-gui/0000755000175000017500000000000011266446160025717 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/gtk-gui/generated.cs0000644000175000017500000000354111266446160030207 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace Stetic { internal class Gui { private static bool initialized; static internal void Initialize (Gtk.Widget iconRenderer) { if ((Stetic.Gui.initialized == false)) { Stetic.Gui.initialized = true; } } } internal class BinContainer { private Gtk.Widget child; private Gtk.UIManager uimanager; public static BinContainer Attach (Gtk.Bin bin) { BinContainer bc = new BinContainer (); bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested); bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated); bin.Added += new Gtk.AddedHandler (bc.OnAdded); return bc; } private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args) { if ((this.child != null)) { args.Requisition = this.child.SizeRequest (); } } private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args) { if ((this.child != null)) { this.child.Allocation = args.Allocation; } } private void OnAdded (object sender, Gtk.AddedArgs args) { this.child = args.Widget; } public void SetUiManager (Gtk.UIManager uim) { this.uimanager = uim; this.child.Realized += new System.EventHandler (this.OnRealized); } private void OnRealized (object sender, System.EventArgs args) { if ((this.uimanager != null)) { Gtk.Widget w; w = this.child.Toplevel; if (((w != null) && typeof(Gtk.Window).IsInstanceOfType (w))) { ((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup); this.uimanager = null; } } } } internal class ActionGroups { public static Gtk.ActionGroup GetActionGroup (System.Type type) { return Stetic.ActionGroups.GetActionGroup (type.FullName); } public static Gtk.ActionGroup GetActionGroup (string name) { return null; } } } ././@LongLink0000000000000000000000000000020000000000000011555 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/gtk-gui/MonoDevelop.Database.Sql.Npgsql.NpgsqlColumnEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/gtk-gui/MonoDevelop.Database.Sql.Npgsql.0000644000175000017500000000101211266446160033645 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Sql.Npgsql { public partial class NpgsqlColumnEditorWidget { protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Sql.Npgsql.NpgsqlColumnEditorWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Sql.Npgsql.NpgsqlColumnEditorWidget"; if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/gtk-gui/objects.xml0000644000175000017500000000072511266446160030076 0ustar directhexdirecthex monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/gtk-gui/gui.stetic0000644000175000017500000002404011266446160027720 0ustar directhexdirecthex .. 2.12 4 2 6 6 False 2 3 1 2 True Fill Fill False True False False True False False 1 2 False Fill True True False False True False False 3 4 1 2 True Fill Fill False True False False True False False 1 2 1 2 True Fill Fill False True False False True False Encoding 2 3 True Fill Fill False True False False True False Owner True Fill Fill False True False False True False Tablespace 3 4 True Fill Fill False True False False True False Template 1 2 True Fill Fill False True False False True False ././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/gtk-gui/MonoDevelop.Database.Sql.Npgsql.NpgsqlCreateDatabaseWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/gtk-gui/MonoDevelop.Database.Sql.Npgsql.0000644000175000017500000001247611266446160033665 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Sql.Npgsql { public partial class NpgsqlCreateDatabaseWidget { private global::Gtk.Table table1; private global::Gtk.ComboBoxEntry comboEncoding; private global::Gtk.ComboBoxEntry comboOwner; private global::Gtk.ComboBoxEntry comboTablespace; private global::Gtk.ComboBoxEntry comboTemplate; private global::Gtk.Label labelEncoding; private global::Gtk.Label labelOwner; private global::Gtk.Label labelTablespace; private global::Gtk.Label labelTemplate; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Sql.Npgsql.NpgsqlCreateDatabaseWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Sql.Npgsql.NpgsqlCreateDatabaseWidget"; // Container child MonoDevelop.Database.Sql.Npgsql.NpgsqlCreateDatabaseWidget.Gtk.Container+ContainerChild this.table1 = new global::Gtk.Table (((uint)(4)), ((uint)(2)), false); this.table1.Name = "table1"; this.table1.RowSpacing = ((uint)(6)); this.table1.ColumnSpacing = ((uint)(6)); // Container child table1.Gtk.Table+TableChild this.comboEncoding = new global::Gtk.ComboBoxEntry (); this.comboEncoding.Name = "comboEncoding"; this.table1.Add (this.comboEncoding); global::Gtk.Table.TableChild w1 = ((global::Gtk.Table.TableChild)(this.table1[this.comboEncoding])); w1.TopAttach = ((uint)(2)); w1.BottomAttach = ((uint)(3)); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.XOptions = ((global::Gtk.AttachOptions)(4)); w1.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.comboOwner = new global::Gtk.ComboBoxEntry (); this.comboOwner.Name = "comboOwner"; this.table1.Add (this.comboOwner); global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table1[this.comboOwner])); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.comboTablespace = new global::Gtk.ComboBoxEntry (); this.comboTablespace.Name = "comboTablespace"; this.table1.Add (this.comboTablespace); global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1[this.comboTablespace])); w3.TopAttach = ((uint)(3)); w3.BottomAttach = ((uint)(4)); w3.LeftAttach = ((uint)(1)); w3.RightAttach = ((uint)(2)); w3.XOptions = ((global::Gtk.AttachOptions)(4)); w3.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.comboTemplate = new global::Gtk.ComboBoxEntry (); this.comboTemplate.Name = "comboTemplate"; this.table1.Add (this.comboTemplate); global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1[this.comboTemplate])); w4.TopAttach = ((uint)(1)); w4.BottomAttach = ((uint)(2)); w4.LeftAttach = ((uint)(1)); w4.RightAttach = ((uint)(2)); w4.XOptions = ((global::Gtk.AttachOptions)(4)); w4.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.labelEncoding = new global::Gtk.Label (); this.labelEncoding.Name = "labelEncoding"; this.labelEncoding.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Encoding"); this.table1.Add (this.labelEncoding); global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1[this.labelEncoding])); w5.TopAttach = ((uint)(2)); w5.BottomAttach = ((uint)(3)); w5.XOptions = ((global::Gtk.AttachOptions)(4)); w5.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.labelOwner = new global::Gtk.Label (); this.labelOwner.Name = "labelOwner"; this.labelOwner.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Owner"); this.table1.Add (this.labelOwner); global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1[this.labelOwner])); w6.XOptions = ((global::Gtk.AttachOptions)(4)); w6.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.labelTablespace = new global::Gtk.Label (); this.labelTablespace.Name = "labelTablespace"; this.labelTablespace.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Tablespace"); this.table1.Add (this.labelTablespace); global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1[this.labelTablespace])); w7.TopAttach = ((uint)(3)); w7.BottomAttach = ((uint)(4)); w7.XOptions = ((global::Gtk.AttachOptions)(4)); w7.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table1.Gtk.Table+TableChild this.labelTemplate = new global::Gtk.Label (); this.labelTemplate.Name = "labelTemplate"; this.labelTemplate.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Template"); this.table1.Add (this.labelTemplate); global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1[this.labelTemplate])); w8.TopAttach = ((uint)(1)); w8.BottomAttach = ((uint)(2)); w8.XOptions = ((global::Gtk.AttachOptions)(4)); w8.YOptions = ((global::Gtk.AttachOptions)(4)); this.Add (this.table1); if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/NpgsqlSchemaProvider.cs0000644000175000017500000015241111266446160031003 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Xml; using System.Linq; using System.Data; using System.Text; using System.Reflection; using System.Text.RegularExpressions; using System.Collections.Generic; using MonoDevelop.Core; using Npgsql; namespace MonoDevelop.Database.Sql.Npgsql { public class NpgsqlSchemaProvider : AbstractEditSchemaProvider { int lastSystemOID = 0; IConnectionPool pool; public NpgsqlSchemaProvider (IConnectionPool connectionPool): base (connectionPool) { AddSupportedSchemaActions (SchemaType.Database, SchemaActions.All); AddSupportedSchemaActions (SchemaType.Table, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.View, SchemaActions.All); AddSupportedSchemaActions (SchemaType.Procedure, SchemaActions.All); AddSupportedSchemaActions (SchemaType.TableColumn, SchemaActions.All); AddSupportedSchemaActions (SchemaType.ProcedureParameter, SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.Trigger, SchemaActions.All); AddSupportedSchemaActions (SchemaType.PrimaryKeyConstraint, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.ForeignKeyConstraint, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.CheckConstraint, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.UniqueConstraint, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.Constraint, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.User, SchemaActions.Schema); pool = connectionPool; } public override TableSchemaCollection GetTables () { TableSchemaCollection tables = new TableSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand ( @"SELECT DISTINCT c.relname, n.nspname, u.usename FROM pg_class c, pg_namespace n, pg_user u WHERE c.relnamespace = n.oid AND c.relowner = u.usesysid AND c.relkind='r' AND NOT EXISTS (SELECT 1 FROM pg_rewrite r WHERE r.ev_class = c.oid AND r.ev_type = '1') ORDER BY relname;")) { try { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { TableSchema table = new TableSchema (this); table.Name = r.GetString (0); table.IsSystemTable = table.Name.StartsWith ("pg_") || table.Name.StartsWith ("sql_"); table.SchemaName = r.GetString (1); table.OwnerName = r.GetString (2); // TODO: Fill table.Definition tables.Add (table); } r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return tables; } public override ColumnSchemaCollection GetTableColumns (TableSchema table) { ColumnSchemaCollection columns = new ColumnSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (string.Format( @"SELECT a.attname, a.attnotnull, a.attlen, t.typname, adef.adsrc FROM pg_catalog.pg_attribute a LEFT JOIN pg_catalog.pg_attrdef adef ON a.attrelid=adef.adrelid AND a.attnum=adef.adnum LEFT JOIN pg_catalog.pg_type t ON a.atttypid=t.oid WHERE a.attrelid = (SELECT oid FROM pg_catalog.pg_class WHERE relname='{0}') AND a.attnum > 0 AND NOT a.attisdropped AND a.atttypid = t.oid ORDER BY a.attnum;", table.Name))) { try { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { ColumnSchema column = new ColumnSchema (this, table); column.Name = r.GetString (0); column.DataTypeName = r.GetString (3); column.IsNullable = !r.GetBoolean (1); column.DefaultValue = r.IsDBNull (4) ? null : r.GetString (4); column.HasDefaultValue = !r.IsDBNull (4); // TODO: fill column.Definition columns.Add (column); } r.Close (); } } catch (NpgsqlException) { // Don't raise error, if the table doesn't exists return an empty collection } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return columns; } public NpgsqlEncodingCollection GetEncodings () { NpgsqlEncodingCollection coll = new NpgsqlEncodingCollection (); using (System.IO.Stream stream = Assembly.GetExecutingAssembly ().GetManifestResourceStream ("Encoding.xml")) { XmlDocument doc = new XmlDocument (); doc.Load (stream); var encodings = doc.GetElementsByTagName ("Encoding"); foreach (var enc in encodings) { NpgsqlEncoding newEnc = new NpgsqlEncoding (this); newEnc.Server = Convert.ToBoolean (((XmlNode)enc).Attributes["Server"].Value); newEnc.Name = ((XmlNode)enc).ChildNodes[0].InnerText; newEnc.Description = ((XmlNode)enc).ChildNodes[1].InnerText; newEnc.Language = ((XmlNode)enc).ChildNodes[2].InnerText; newEnc.BytesChar = ((XmlNode)enc).ChildNodes[3].InnerText; newEnc.Aliases = ((XmlNode)enc).ChildNodes[4].InnerText; coll.Add (newEnc); } // This doesn't work until this bug isn't fixed // // XmlTextReader reader = new XmlTextReader (stream); // XDocument encodingsDoc = XDocument.Load (reader, LoadOptions.None); // // var encodings = from enc in encodingsDoc.Descendants ("Encodings") // select new { // IsServer = Convert.ToBoolean(enc.Attribute("Server").Value), // Name = enc.Element("Name").Value, // Description = enc.Element("Description").Value, // Language = enc.Element("Language").Value, // BytesChar = enc.Element("BytesChar").Value, // Aliases = enc.Element("Aliases").Value // }; // // foreach (var enc in encodings) { // NpgsqlEncoding newEnc = new NpgsqlEncoding (this); // newEnc.Server = enc.IsServer; // newEnc.Name = enc.Name; // newEnc.Description = enc.Description; // newEnc.Language = enc.Language; // newEnc.BytesChar = enc.BytesChar; // newEnc.Aliases = enc.Aliases; // coll.Add (newEnc); // } } return coll; } public override ViewSchemaCollection GetViews () { ViewSchemaCollection views = new ViewSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (string.Format ( @"SELECT v.schemaname, v.viewname, v.viewowner, v.definition, (c.oid <= {0}), (SELECT description from pg_description pd, pg_class pc WHERE pc.oid = pd.objoid AND pc.relname= v.viewname) FROM pg_views v, pg_class c WHERE v.viewname = c.relname ORDER BY viewname", LastSystemOID))) { try { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { ViewSchema view = new ViewSchema (this); view.Name = r.GetString (1); view.OwnerName = r.GetString (2); view.SchemaName = r.GetString (0); view.IsSystemView = r.GetBoolean (4); view.Comment = r.IsDBNull (5) ? null : r.GetString (5); // TODO: Fill view.Definition views.Add (view); } r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return views; } public override ColumnSchemaCollection GetViewColumns (ViewSchema view) { ColumnSchemaCollection columns = new ColumnSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (string.Format ( @"SELECT attname, typname, attlen, attnotnull FROM pg_catalog.pg_attribute a LEFT JOIN pg_catalog.pg_attrdef adef ON a.attrelid = adef.adrelid AND a.attnum = adef.adnum LEFT JOIN pg_catalog.pg_type t ON a.atttypid = t.oid WHERE a.attrelid = (SELECT oid FROM pg_catalog.pg_class WHERE relname='{0}') AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum;", view.Name))) { try { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { ColumnSchema column = new ColumnSchema (this, view); column.Name = r.GetString(0); column.DataTypeName = r.GetString (1); column.SchemaName = view.SchemaName; column.IsNullable = r.GetBoolean (3); column.DataType.LengthRange.Default = r.GetInt32 (2); // TODO: Fill column.Definition columns.Add (column); } r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return columns; } public override ProcedureSchemaCollection GetProcedures () { ProcedureSchemaCollection procedures = new ProcedureSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { // Exclude: Language Handler (2280) - Triggers (2279) - Void (2278) using (IDbCommand command = conn.CreateCommand ( @"SELECT pc.proname, pc.oid::integer, pl.lanname, pc.prosrc, pc.procost, pc.provolatile, pt.typname as rettypename, pc.proargnames as argnames, pc.proargmodes as argmodes, pc.proallargtypes as argtypes FROM pg_proc pc, pg_user pu, pg_type pt, pg_language pl WHERE pc.proowner = pu.usesysid AND pc.prorettype = pt.oid AND pc.prolang = pl.oid AND pc.prorettype not in (2278, 2279, 2280) UNION SELECT pc.proname, pt.oid::integer, pl.lanname, pc.prosrc, pc.procost, pc.provolatile, pt.typname as rettypename, pc.proargnames as argnames, pc.proargmodes as argmodes, pc.proallargtypes as argtypes FROM pg_proc pc, pg_user pu, pg_type pt, pg_language pl WHERE pc.proowner = pu.usesysid AND pc.prorettype not in (2278, 2279, 2280) AND pc.prorettype = 0 AND pc.prolang = pl.oid;")) { try { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { ProcedureSchema procedure = new ProcedureSchema (this); procedure.Name = r.GetString (0); procedure.LanguageName = r.GetString (2); if (!r.IsDBNull (1) && r.GetInt32 (1) < LastSystemOID) procedure.IsSystemProcedure = true; procedure.IsFunction = true; // Procedure Definition StringBuilder proc = new StringBuilder (); if (procedure.IsFunction) { string lang = r.GetString (2); string proctype = string.Empty; string retType = r.GetString (6); switch (r.GetString (5)) { case "s": proctype = "STABLE"; break; case "i": proctype = "INMUTABLE"; break; default: proctype = "VOLATILE"; break; } float cost = r.GetFloat (4); proc.AppendFormat ("CREATE OR REPLACE FUNCTION {0} (", r.GetString (0)); // Get parameters collection ParameterSchemaCollection pars = GetParams (r.GetValue (7).ToString (), r.GetValue (8).ToString (), r.GetValue (9).ToString (), conn); bool first = true; // Set Parameters list foreach (ParameterSchema p in pars) { if (!first) { proc.Append (", "); } first = false; proc.Append (p.ParameterType.ToString ()); if (p.Name != "") { proc.AppendFormat (" {0}", p.Name); } proc.AppendFormat (" {0}", p.DataTypeName); } proc.Append (")"); if (lang == "edbspl") proc.AppendFormat ("\nRETURN {0} AS \n", retType); else proc.AppendFormat ("\nRETURNS {0} AS \n", retType); proc.AppendFormat ("$BODY$ {0} $BODY$\n", r.GetString (3)); proc.AppendFormat ("LANGUAGE '{0}' {1}\n", lang, proctype); proc.AppendFormat ("COST {0};\n", cost.ToString ()); } procedure.Definition = proc.ToString (); procedures.Add (procedure); } r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return procedures; } private ParameterSchemaCollection GetParams (string names, string directions, string types, IPooledDbConnection conn) { ParameterSchemaCollection pars = new ParameterSchemaCollection (); if (names == string.Empty || directions == string.Empty || types == String.Empty) return pars; // Array always start with { and end with } if (!names.StartsWith ("{") || !names.EndsWith ("}")) throw new ArgumentOutOfRangeException ("names"); string[] namesArray = names.Substring(1, names.Length -2).Split (','); string[] directionsArray = directions.Substring(1, directions.Length -2).Split (','); string[] typesArray = types.Substring(1, types.Length -2).Split (','); for (int idx = 0; idx < namesArray.Length; idx++) { ParameterSchema ps = new ParameterSchema (this); // Name if (namesArray[idx] != "\"\"") ps.Name = namesArray[idx]; // Direction string d = directionsArray[idx]; if (d == "i") ps.ParameterType = ParameterType.In; else if (d == "o") ps.ParameterType = ParameterType.Out; else ps.ParameterType = ParameterType.InOut; // Type using (IDbCommand cmd = conn.CreateCommand (string.Format ( "select format_type(oid, null) from pg_type WHERE oid = '{0}'::oid", typesArray[idx]))) { using (IDataReader r = cmd.ExecuteReader()) if (r.Read ()) ps.DataTypeName = r.GetString (0); } pars.Add (ps); } return pars; } public override ParameterSchemaCollection GetProcedureParameters (ProcedureSchema procedure) { ParameterSchemaCollection parameters = null; using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (String.Format ( @"SELECT pc.proname, pc.oid::integer, pl.lanname, pc.prosrc, pc.procost, pc.provolatile, pt.typname as rettypename, pc.proargnames as argnames, pc.proargmodes as argmodes, pc.proallargtypes as argtypes FROM pg_proc pc, pg_user pu, pg_type pt, pg_language pl WHERE pc.proowner = pu.usesysid AND pc.prorettype = pt.oid AND pc.prolang = pl.oid AND pc.prorettype not in (2278, 2279, 2280) AND pc.proname = '{0}' UNION SELECT pc.proname, pt.oid::integer, pl.lanname, pc.prosrc, pc.procost, pc.provolatile, pt.typname as rettypename, pc.proargnames as argnames, pc.proargmodes as argmodes, pc.proallargtypes as argtypes FROM pg_proc pc, pg_user pu, pg_type pt, pg_language pl WHERE pc.proowner = pu.usesysid AND pc.prorettype not in (2278, 2279, 2280) AND pc.prorettype = 0 AND pc.prolang = pl.oid AND pc.proname = '{0}';", procedure.Name))) { try { using (IDataReader r = command.ExecuteReader()) { if (r.Read ()) parameters = GetParams (r.GetValue (7).ToString (), r.GetValue (8).ToString (), r.GetValue (9).ToString (), conn); r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return parameters; } public override ConstraintSchemaCollection GetTableConstraints (TableSchema table) { ConstraintSchemaCollection constraints = new ConstraintSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (String.Format ( @"SELECT pc.conname, pg_catalog.pg_get_constraintdef(pc.oid, true) AS consrc, pc.contype, CASE WHEN pc.contype='u' OR pc.contype='p' THEN ( SELECT indisclustered FROM pg_catalog.pg_depend pd, pg_catalog.pg_class pl, pg_catalog.pg_index pi WHERE pd.refclassid=pc.tableoid AND pd.refobjid=pc.oid AND pd.objid=pl.oid AND pl.oid=pi.indexrelid) ELSE NULL END AS indisclustered FROM pg_catalog.pg_constraint pc WHERE pc.conrelid = ( SELECT oid FROM pg_catalog.pg_class WHERE relname='{0}' AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace WHERE nspname='{1}')) ORDER BY 1;", table.Name, table.SchemaName))) { try { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { ConstraintSchema constraint = null; //TODO: Add support for Check constraints. switch (r.GetString (2)) { case "f": string match = @".*REFERENCES (.+)\(.*\).*"; constraint = new ForeignKeyConstraintSchema (this); if (Regex.IsMatch (r.GetString (1), match)) (constraint as ForeignKeyConstraintSchema).ReferenceTableName = Regex.Match (r.GetString (1), match).Groups[0].Captures[0].Value; break; case "u": constraint = new UniqueConstraintSchema (this); break; case "p": default: constraint = new PrimaryKeyConstraintSchema (this); break; } constraint.Name = r.GetString (0); constraint.Definition = r.GetString (1); int parenOpen = constraint.Definition.IndexOf ('('); if (parenOpen > 0) { int parenClose = constraint.Definition.IndexOf (')'); string colstr = constraint.Definition.Substring (parenOpen + 1, parenClose - parenOpen - 1); foreach (string col in colstr.Split (',')) { ColumnSchema column = new ColumnSchema (this, table); column.Name = col.Trim (); constraint.Columns.Add (column); } } constraints.Add (constraint); } r.Close (); } } catch (Exception) { // Don't raise error, if the table doesn't exists return an empty collection } finally { conn.Release (); } } } return constraints; } public override UserSchemaCollection GetUsers () { UserSchemaCollection users = new UserSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand ("SELECT * FROM pg_user;")) { try { using (IDataReader r = command.ExecuteReader ()) { while (r.Read ()) { UserSchema user = new UserSchema (this); user.Name = r.GetString (0); user.UserId = String.Format ("{0}", r.GetValue (1)); user.Expires = r.IsDBNull (6) ? DateTime.MinValue : r.GetDateTime (6); user.Password = r.GetString (5); StringBuilder sb = new StringBuilder (); sb.AppendFormat ("-- User: \"{0}\"\n\n", user.Name); sb.AppendFormat ("-- DROP USER {0};\n\n", user.Name); sb.AppendFormat ("CREATE USER {0}", user.Name); sb.AppendFormat (" WITH SYSID {0}", user.UserId); if (user.Password != "********") sb.AppendFormat (" ENCRYPTED PASSWORD {0}", user.Password); if (user.Expires != DateTime.MinValue) sb.AppendFormat (" VALID UNTIL {0}", user.Expires); sb.Append (";"); user.Definition = sb.ToString (); users.Add (user); } r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return users; } public override DataTypeSchemaCollection GetDataTypes () { DataTypeSchemaCollection collection = new DataTypeSchemaCollection (); #region Types // ENUM DataTypeSchema schema = new DataTypeSchema (this); schema.Name = "smallint"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(Int16); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // Integer schema = new DataTypeSchema (this); schema.Name = "integer"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(int); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // Big Int schema = new DataTypeSchema (this); schema.Name = "bigint"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(long); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // Serial schema = new DataTypeSchema (this); schema.Name = "serial"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(long); schema.IsAutoincrementable = true; schema.IsFixedLength = true; schema.IsNullable = false; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // Big Serial schema = new DataTypeSchema (this); schema.Name = "bigserial"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(long); schema.IsAutoincrementable = true; schema.IsFixedLength = true; schema.IsNullable = false; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // Numeric schema = new DataTypeSchema (this); schema.Name = "numeric"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(float); schema.IsAutoincrementable = false; schema.IsFixedLength = false; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // Decimal schema = new DataTypeSchema (this); schema.Name = "decimal"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(float); schema.IsAutoincrementable = false; schema.IsFixedLength = false; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // real schema = new DataTypeSchema (this); schema.Name = "real"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(float); schema.IsAutoincrementable = false; schema.IsFixedLength = false; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // double precision schema = new DataTypeSchema (this); schema.Name = "double precision"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(float); schema.IsAutoincrementable = false; schema.IsFixedLength = false; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // money schema = new DataTypeSchema (this); schema.Name = "money"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(float); schema.IsAutoincrementable = false; schema.IsFixedLength = false; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // character varying schema = new DataTypeSchema (this); schema.Name = "character varying"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(string); schema.IsAutoincrementable = false; schema.IsFixedLength = false; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // varying schema = new DataTypeSchema (this); schema.Name = "varying"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(string); schema.IsAutoincrementable = false; schema.IsFixedLength = false; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // varchar schema = new DataTypeSchema (this); schema.Name = "varchar"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(string); schema.IsAutoincrementable = false; schema.IsFixedLength = false; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // text schema = new DataTypeSchema (this); schema.Name = "text"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(string); schema.IsAutoincrementable = false; schema.IsFixedLength = false; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // character schema = new DataTypeSchema (this); schema.Name = "character"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(string); schema.IsAutoincrementable = false; schema.IsFixedLength = false; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // char schema = new DataTypeSchema (this); schema.Name = "char"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(string); schema.IsAutoincrementable = false; schema.IsFixedLength = false; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // bytea schema = new DataTypeSchema (this); schema.Name = "bytea"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(byte); schema.IsAutoincrementable = false; schema.IsFixedLength = false; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // timeSpan schema = new DataTypeSchema (this); schema.Name = "timespan"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(object); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // interval schema = new DataTypeSchema (this); schema.Name = "interval"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(TimeSpan); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // Date schema = new DataTypeSchema (this); schema.Name = "date"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(DateTime); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // Time schema = new DataTypeSchema (this); schema.Name = "time"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(DateTime); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // boolean schema = new DataTypeSchema (this); schema.Name = "boolean"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(bool); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // bit schema = new DataTypeSchema (this); schema.Name = "bit"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(bool); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // uuid schema = new DataTypeSchema (this); schema.Name = "bit"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(Guid); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // xml schema = new DataTypeSchema (this); schema.Name = "xml"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(Guid); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // point schema = new DataTypeSchema (this); schema.Name = "point"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(string); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // line schema = new DataTypeSchema (this); schema.Name = "line"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(string); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // lseg schema = new DataTypeSchema (this); schema.Name = "lseg"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(string); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // box schema = new DataTypeSchema (this); schema.Name = "box"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(string); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // polygon schema = new DataTypeSchema (this); schema.Name = "polygon"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(string); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // circle schema = new DataTypeSchema (this); schema.Name = "circle"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(string); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // inet schema = new DataTypeSchema (this); schema.Name = "inet"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(string); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); // cidr schema = new DataTypeSchema (this); schema.Name = "cidr"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(string); schema.IsAutoincrementable = false; schema.IsFixedLength = true; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); schema = new DataTypeSchema (this); schema.Name = "enum"; schema.LengthRange = new Range (0); schema.DotNetType = typeof(object); schema.IsAutoincrementable = false; schema.IsFixedLength = false; schema.IsNullable = true; schema.ScaleRange = new Range (0, 0); schema.PrecisionRange = new Range (0, 0); collection.Add (schema); #endregion return collection; } public override TriggerSchemaCollection GetTableTriggers (TableSchema table) { if (table == null) throw new ArgumentNullException ("table"); TriggerSchemaCollection triggers = new TriggerSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (string.Format ( @"SELECT * FROM information_schema.triggers WHERE event_object_table = '{0}' order by trigger_name", table.Name))) { try { using (IDataReader r = command.ExecuteReader ()) { while (r.Read ()) { TriggerSchema trigger = new TriggerSchema (this); trigger.Name = r.GetString (r.GetOrdinal ("trigger_name")); trigger.Source = r.GetString (r.GetOrdinal ("action_statement")); trigger.TriggerType = (TriggerType)Enum.Parse (typeof(TriggerType), r.GetString (r.GetOrdinal ("condition_timing"))); trigger.TriggerEvent = (TriggerEvent)Enum.Parse (typeof(TriggerEvent), r.GetString (r.GetOrdinal ("event_manipulation"))); trigger.TriggerFireType = TriggerFireType.ForEachRow; triggers.Add (trigger); } } } catch (NpgsqlException e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return triggers; } public override DataTypeSchema GetDataType (string name) { if (name == null) throw new ArgumentNullException ("name"); if (name == null) throw new ArgumentNullException ("name"); string type = null; int length = 0; int scale = 0; ParseType (name, out type, out length, out scale); DataTypeSchema dts = new DataTypeSchema (this); dts.Name = type; switch (type) { case "enum": case "smallint": case "integer": case "bigint": case "serial": case "bigserial": dts.LengthRange = new Range (length); dts.DataTypeCategory = DataTypeCategory.Integer; break; case "numeric": case "decimal": case "real": case "double precision": case "money": dts.LengthRange = new Range (length); dts.ScaleRange = new Range (scale); dts.DataTypeCategory = DataTypeCategory.Float; break; case "character varying": case "varying": case "varchar": case "text": dts.LengthRange = new Range (length); dts.DataTypeCategory = DataTypeCategory.VarChar; break; case "character": case "char": dts.LengthRange = new Range (length); dts.DataTypeCategory = DataTypeCategory.Char; break; case "bytea": dts.LengthRange = new Range (length); dts.DataTypeCategory = DataTypeCategory.Binary; break; case "timestamp": dts.DataTypeCategory = DataTypeCategory.TimeStamp; break; case "interval": dts.DataTypeCategory = DataTypeCategory.Interval; break; case "date": dts.DataTypeCategory = DataTypeCategory.Date; break; case "time": dts.DataTypeCategory = DataTypeCategory.Time; break; case "boolean": dts.DataTypeCategory = DataTypeCategory.Bit; break; case "point": case "line": case "lseg": case "box": case "polygon": case "circle": case "inet": case "cidr": // Research this dts.DataTypeCategory = DataTypeCategory.VarChar; break; case "bit": dts.DataTypeCategory = DataTypeCategory.Bit; break; case "uuid": dts.DataTypeCategory = DataTypeCategory.Uid; break; case "xml": dts.DataTypeCategory = DataTypeCategory.Xml; break; default: dts.DataTypeCategory = DataTypeCategory.Other; break; } return dts; } private void ParseType (string str, out string type, out int length, out int scale) { int parenOpen = str.IndexOf ('('); int parenClose = str.IndexOf (')'); int commaPos = -1; if (parenOpen > 0) commaPos = str.IndexOf (',', parenOpen); if (parenOpen > 0) { type = str.Substring (0, parenOpen).Trim (); string lengthString = null; if (commaPos > 0) { lengthString = str.Substring (parenOpen + 1, commaPos - parenOpen - 1); string scaleString = str.Substring (commaPos + 1, parenClose - commaPos - 1).Trim (); int.TryParse (scaleString, out scale); } else { lengthString = str.Substring (parenOpen + 1, parenClose - parenOpen - 1); scale = 0; } int.TryParse (lengthString, out length); } else { type = str; length = 1; scale = 0; } } public override DatabaseSchema CreateDatabaseSchema (string name) { NpgsqlDatabaseSchema schema = new NpgsqlDatabaseSchema (this); schema.Name = name; return schema; } public NpgsqlTablespaceCollection GetTablespaces() { NpgsqlTablespaceCollection tables = new NpgsqlTablespaceCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand ("select * from pg_tablespace")) { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { NpgsqlTablespace ts = new NpgsqlTablespace (this); ts.Name = r.GetString (r.GetOrdinal ("spcname")); ts.Oid = Convert.ToInt32 (r.GetValue (r.GetOrdinal ("spcowner"))); tables.Add (ts); } } } } return tables; } //http://www.postgresql.org/docs/8.2/interactive/sql-createdatabase.html public override void CreateDatabase (DatabaseSchema database) { NpgsqlDatabaseSchema schema = (NpgsqlDatabaseSchema)database; StringBuilder sb = new StringBuilder (string.Concat("CREATE DATABASE ", database.Name)); if (schema.Owner != null && schema.Owner.Name != string.Empty) sb.AppendFormat (" OWNER = {0}", schema.Owner.Name); if (schema.Template != null && schema.Template.Name != string.Empty) sb.AppendFormat (" TEMPLATE = {0}", schema.Template.Name); if (schema.Tablespace != null && schema.Tablespace.Name != string.Empty) sb.AppendFormat (" TABLESPACE = {0}", schema.Tablespace.Name); if (schema.Encoding != null && schema.Encoding.Name != string.Empty) sb.AppendFormat (" ENCODING = '{0}'", schema.Encoding.Name); ExecuteNonQuery (sb.ToString ()); } //http://www.postgresql.org/docs/8.2/interactive/sql-createtable.html public override string GetTableCreateStatement (TableSchema table) { StringBuilder sb = new StringBuilder (); sb.Append ("CREATE TABLE "); sb.Append (table.Name); sb.Append (" ("); bool first = true; foreach (ColumnSchema column in table.Columns) { if (first) first = false; else sb.Append ("," + Environment.NewLine); sb.Append (column.Name); sb.Append (' '); sb.Append (column.DataType.GetCreateString (column)); if (!column.IsNullable) sb.Append (" NOT NULL "); if (column.HasDefaultValue) { sb.Append (" DEFAULT "); if (column.DefaultValue == null) sb.Append (" NULL "); else sb.Append (column.DefaultValue); } foreach (ConstraintSchema constraint in column.Constraints) sb.Append (GetConstraintString (constraint, false)); } foreach (ConstraintSchema constraint in table.Constraints) { sb.Append ("," + Environment.NewLine); sb.Append (GetConstraintString (constraint, true)); } sb.Append (")"); if (table.TableSpaceName != null) { sb.Append (" TABLESPACE "); sb.Append (table.TableSpaceName); sb.Append (';'); } sb.Append (';'); foreach (TriggerSchema trigger in table.Triggers) { sb.Append (Environment.NewLine); sb.Append (GetTriggerCreateStatement (trigger)); } return sb.ToString (); } protected virtual string GetConstraintString (ConstraintSchema constraint, bool isTableConstraint) { StringBuilder sb = new StringBuilder (); sb.Append ("CONSTRAINT "); sb.Append (constraint.Name); sb.Append (' '); switch (constraint.ConstraintType) { case ConstraintType.PrimaryKey: sb.Append ("PRIMARY KEY "); if (isTableConstraint) sb.Append (GetColumnsString (constraint.Columns, true)); break; case ConstraintType.Unique: sb.Append ("UNIQUE "); if (isTableConstraint) sb.Append (GetColumnsString (constraint.Columns, true)); break; case ConstraintType.ForeignKey: sb.Append ("FOREIGN KEY "); sb.Append (GetColumnsString (constraint.Columns, true)); sb.Append (" REFERENCES "); ForeignKeyConstraintSchema fk = constraint as ForeignKeyConstraintSchema; sb.Append (fk.ReferenceTableName); sb.Append (' '); if (fk.ReferenceColumns != null) sb.Append (GetColumnsString (fk.ReferenceColumns, true)); break; case ConstraintType.Check: sb.Append ("CHECK ("); sb.Append ((constraint as CheckConstraintSchema).Source); sb.Append (")"); break; default: throw new NotImplementedException (); } return sb.ToString (); } //http://www.postgresql.org/docs/8.2/interactive/sql-createview.html public override void CreateView (ViewSchema view) { throw new NotImplementedException (); } //http://www.postgresql.org/docs/8.2/interactive/sql-createindex.html //http://www.postgresql.org/docs/8.2/interactive/sql-createconstraint.html public override void CreateIndex (IndexSchema index) { throw new NotImplementedException (); } //http://www.postgresql.org/docs/8.2/interactive/sql-createtrigger.html public override void CreateTrigger (TriggerSchema trigger) { string sql = GetTriggerCreateStatement (trigger); ExecuteNonQuery (sql); } protected virtual string GetTriggerCreateStatement (TriggerSchema trigger) { StringBuilder sb = new StringBuilder (); sb.Append ("CREATE TRIGGER "); sb.Append (trigger.Name); switch (trigger.TriggerType) { case TriggerType.Before: sb.Append (" BEFORE"); break; case TriggerType.After: sb.Append (" AFTER"); break; default: throw new NotImplementedException (); } switch (trigger.TriggerEvent) { case TriggerEvent.Insert: sb.Append (" INSERT "); break; case TriggerEvent.Update: sb.Append (" UPDATE "); break; case TriggerEvent.Delete: sb.Append (" DELETE "); break; default: throw new NotImplementedException (); } sb.Append ("ON "); sb.Append (trigger.TableName); sb.Append (' '); sb.Append (Environment.NewLine); switch (trigger.TriggerFireType) { case TriggerFireType.ForEachRow: sb.Append (" FOR EACH ROW "); break; case TriggerFireType.ForEachStatement: sb.Append (" FOR EACH STATEMENT "); break; default: throw new NotImplementedException (); } sb.Append (Environment.NewLine); sb.Append ("EXECUTE PROCEDURE "); sb.Append (trigger.Source); sb.Append (";"); return sb.ToString (); } //http://www.postgresql.org/docs/8.2/interactive/sql-createuser.html public override void CreateUser (UserSchema user) { throw new NotImplementedException (); } public override void AlterProcedure (ProcedureAlterSchema procedure) { ExecuteNonQuery (procedure.NewSchema.Definition); } //http://www.postgresql.org/docs/8.2/interactive/sql-alterdatabase.html public override void AlterDatabase (DatabaseAlterSchema database) { throw new NotImplementedException (); } //http://www.postgresql.org/docs/8.2/interactive/sql-altertable.html public override void AlterTable (TableAlterSchema table) { throw new NotImplementedException (); } //http://www.postgresql.org/docs/8.2/interactive/sql-alterindex.html public override void AlterIndex (IndexAlterSchema index) { throw new NotImplementedException (); } //http://www.postgresql.org/docs/8.2/interactive/sql-altertrigger.html public override void AlterTrigger (TriggerAlterSchema trigger) { throw new NotImplementedException (); } //http://www.postgresql.org/docs/8.2/interactive/sql-alteruser.html public override void AlterUser (UserAlterSchema user) { throw new NotImplementedException (); } //http://www.postgresql.org/docs/8.2/interactive/sql-dropdatabase.html public override void DropDatabase (DatabaseSchema database) { if (String.Compare (database.Name, "template1", true) == 0) throw new ArgumentOutOfRangeException ("Cannot delete template1 database"); string connStr = null; // Close the pool, connect to a default DB an delete the other. DatabaseConnectionSettings newSettings = new DatabaseConnectionSettings(pool.ConnectionContext.ConnectionSettings); database.SchemaProvider.ConnectionPool.Close (); database.SchemaProvider.ConnectionPool.ConnectionContext.Refresh (); pool.Close (); newSettings.Database = "template1"; if (newSettings.Port > 0) connStr = String.Format ("User ID={0};Password={1};Host={2};Port={3};Database={4};", newSettings.Username, newSettings.Password, newSettings.Server, newSettings.Port, newSettings.Database); else connStr = String.Format ("User ID={0};Password={1};Host={2};Database={3};", newSettings.Username, newSettings.Password, newSettings.Server, newSettings.Database); using (NpgsqlConnection conn = new NpgsqlConnection(connStr)) { conn.Open (); NpgsqlCommand cmd = new NpgsqlCommand (string.Concat("DROP DATABASE IF EXISTS \"", database.Name, "\";")); cmd.Connection = conn; cmd.ExecuteNonQuery (); conn.Close (); } } //http://www.postgresql.org/docs/8.2/interactive/sql-droptable.html public override void DropTable (TableSchema table) { ExecuteNonQuery (string.Concat("DROP TABLE IF EXISTS ", table.Name, ";")); } //http://www.postgresql.org/docs/8.2/interactive/sql-dropview.html public override void DropView (ViewSchema view) { ExecuteNonQuery (string.Concat("DROP VIEW IF EXISTS ", view.Name, ";")); } //http://www.postgresql.org/docs/8.2/interactive/sql-dropindex.html public override void DropIndex (IndexSchema index) { ExecuteNonQuery (string.Concat("DROP INDEX IF EXISTS ", index.Name, " ON ", index.TableName, ";")); } //http://www.postgresql.org/docs/8.2/interactive/sql-droptrigger.html public override void DropTrigger (TriggerSchema trigger) { ExecuteNonQuery (string.Concat("DROP TRIGGER IF EXISTS ", trigger.Name, " ON ", trigger.TableName, ";")); } //http://www.postgresql.org/docs/8.2/interactive/sql-dropuser.html public override void DropUser (UserSchema user) { ExecuteNonQuery (string.Concat("DROP USER IF EXISTS ", user.Name, ";")); } //http://www.postgresql.org/docs/8.2/interactive/sql-alterdatabase.html public override void RenameDatabase (DatabaseSchema database, string name) { ExecuteNonQuery (string.Concat("ALTER DATABASE ", database.Name, " RENAME TO ", name, ";")); connectionPool.ConnectionContext.ConnectionSettings.Database = name; database.Name = name; } //http://www.postgresql.org/docs/8.2/interactive/sql-altertable.html public override void RenameTable (TableSchema table, string name) { ExecuteNonQuery (string.Concat("ALTER TABLE ", table.Name, " RENAME TO ", name, ";")); table.Name = name; } //http://www.postgresql.org/docs/8.2/interactive/sql-altertable.html public override void RenameView (ViewSchema view, string name) { //this is no copy paste error, it really is "ALTER TABLE" ExecuteNonQuery (string.Concat("ALTER TABLE ", view.Name, " RENAME TO ", name, ";")); view.Name = name; } //http://www.postgresql.org/docs/8.2/interactive/sql-altertrigger.html public override void RenameTrigger (TriggerSchema trigger, string name) { ExecuteNonQuery (string.Concat("ALTER TRIGGER ", trigger.Name, " ON ", trigger.TableName, " RENAME TO ", name, ";")); trigger.Name = name; } //http://www.postgresql.org/docs/8.2/interactive/sql-alteruser.html public override void RenameUser (UserSchema user, string name) { ExecuteNonQuery (string.Concat("ALTER USER ", user.Name, " RENAME TO ", name, ";")); user.Name = name; } public override string GetViewAlterStatement (ViewSchema view) { return view.Definition.Insert (8, "OR REPLACE "); } public override string GetProcedureAlterStatement (ProcedureSchema procedure) { return procedure.Definition; } /// /// Last system OID used in postgres to monitor system vs user /// objects. This varies based on the connections Server Version. /// protected int LastSystemOID { get { if (lastSystemOID != 0) return lastSystemOID; using (IPooledDbConnection conn = connectionPool.Request ()) { using (NpgsqlConnection internalConn = conn.DbConnection as NpgsqlConnection) { int major = internalConn.ServerVersion.Major; int minor = internalConn.ServerVersion.Minor; try { using (IDbCommand command = conn.CreateCommand ( "SELECT datlastsysoid FROM pg_database Limit 1")) using (IDataReader r = command.ExecuteReader()) if (r.Read ()) lastSystemOID = Convert.ToInt32 (r.GetValue (0)); else throw new Exception (); } catch (Exception) { if (major == 8) lastSystemOID = 17137; else if (major == 7 && minor == 1) lastSystemOID = 18539; else if (major == 7 && minor == 2) lastSystemOID = 16554; else if (major == 7 && minor == 3) lastSystemOID = 16974; else if (major == 7 && minor == 4) lastSystemOID = 17137; else lastSystemOID = 17137; } finally { conn.Release (); } } return lastSystemOID; } } } public override string GetMimeType () { return "text/x-npgsql"; } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Makefile.am0000644000175000017500000000336511266446160026413 0ustar directhexdirecthexADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.Sql.Npgsql.dll REFS = \ $(GTK_SHARP_LIBS) \ $(MONODEVELOP_CORE_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Components.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Designer.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:Mono.Posix \ -r:Npgsql \ -r:System \ -r:System.Core \ -r:System.Data \ -r:System.Xml.Linq FILES = \ AssemblyInfo.cs \ Collections/NpgsqlEncodingCollection.cs \ Collections/NpgsqlTablespaceCollection.cs \ Dialogs/NpgsqlCreateDatabaseDialog.cs \ Dialogs/NpgsqlTableEditorDialog.cs \ gtk-gui/generated.cs \ gtk-gui/MonoDevelop.Database.Sql.Npgsql.NpgsqlColumnEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Sql.Npgsql.NpgsqlCreateDatabaseWidget.cs \ NpgsqlConnectionProvider.cs \ NpgsqlDbFactory.cs \ NpgsqlDialect.cs \ NpgsqlGuiProvider.cs \ NpgsqlPooledDbConnection.cs \ NpgsqlSchemaProvider.cs \ Schema/dummy.cs \ Schema/NpgsqlDatabaseSchema.cs \ Schema/NpgsqlEncoding.cs \ Schema/NpgsqlTablespace.cs \ Widgets/NpgsqlColumnEditorWidget.cs \ Widgets/NpgsqlCreateDatabaseWidget.cs RES = \ Encoding.xml \ gtk-gui/gui.stetic \ gtk-gui/objects.xml \ MonoDevelop.Database.Sql.Npgsql.addin.xml \ NpgsqlSyntaxMode.xml if ENABLE_POSTGRES all: $(ASSEMBLY) else all: endif $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library if ENABLE_POSTGRES assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb endif CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb EXTRA_DIST = $(FILES) $(RES) include $(top_srcdir)/Makefile.include monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/NpgsqlConnectionProvider.cs0000644000175000017500000000517411266446160031705 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using Npgsql; using System.Collections.Generic; namespace MonoDevelop.Database.Sql.Npgsql { public class NpgsqlConnectionProvider : AbstractConnectionProvider { public override IPooledDbConnection CreateConnection (IConnectionPool pool, DatabaseConnectionSettings settings, out string error) { string connStr = null; try { if (settings.UseConnectionString) { connStr = settings.ConnectionString; } else { //User ID=root;Password=myPassword;Host=localhost;Port=5432;Database=myDataBase;Pooling=true;Min Pool Size=0;Max Pool Size=100;Connection Lifetime=0; if (settings.Port > 0) connStr = String.Format ("User ID={0};Password={1};Host={2};Port={3};Database={4};", settings.Username, settings.Password, settings.Server, settings.Port, settings.Database); else connStr = String.Format ("User ID={0};Password={1};Host={2};Database={3};", settings.Username, settings.Password, settings.Server, settings.Database); } connStr = SetConnectionStringParameter (connStr, String.Empty, "Pooling", "false"); NpgsqlConnection connection = new NpgsqlConnection (connStr); connection.Open (); error = null; return new NpgsqlPooledDbConnection (pool, connection); } catch (Exception e) { error = e.Message; return null; } } } } ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/MonoDevelop.Database.Sql.Npgsql.addin.xmlmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/MonoDevelop.Database.Sql.Npgsql.addin.xm0000644000175000017500000000201711266446160033727 0ustar directhexdirecthex monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/ChangeLog0000644000175000017500000003166711266446160026137 0ustar directhexdirecthex2010-03-22 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.Npgsql.addin.xml: Bumped MD version. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.csproj: Flush. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.csproj: Remove mono.addins.targets import. 2010-03-17 Lluis Sanchez Gual * NpgsqlDbFactory.cs: * Dialogs/NpgsqlCreateDatabaseDialog.cs: * MonoDevelop.Database.Sql.Npgsql.csproj: * MonoDevelop.Database.Sql.Npgsql.addin.xml: Merged MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui and MD.Components into MD.Ide. 2010-02-15 Luciano N. Callero * Makefile.am: * NpgsqlDbFactory.cs: * MonoDevelop.Database.Sql.Npgsql.csproj: Implement IDbLinq interface for SqlMetal services. Flush changes. 2010-02-12 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.csproj: Fix gettext class. * gtk-gui/gui.stetic: * gtk-gui/MonoDevelop.Database.Sql.Npgsql.NpgsqlCreateDatabaseWidget.cs: Flush. 2010-02-12 Lluis Sanchez Gual * gtk-gui/generated.cs: * gtk-gui/MonoDevelop.Database.Sql.Npgsql.NpgsqlColumnEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Sql.Npgsql.NpgsqlCreateDatabaseWidget.cs: Flush. 2010-02-03 Luciano N. Callero * gtk-gui/gui.stetic: * Widgets/NpgsqlCreateDatabaseWidget.cs: * MonoDevelop.Database.Sql.Npgsql.csproj: - Flush changes. 2009-11-11 Luciano N. Callero * Makefile.am: * NpgsqlSyntaxMode.xml: * NpgsqlSchemaProvider.cs: * MonoDevelop.Database.Sql.Npgsql.csproj: * MonoDevelop.Database.Sql.Npgsql.addin.xml: Implement Syntax mode by provider. 2009-11-04 Luciano N. Callero * NpgsqlGuiProvider.cs: * Dialogs/NpgsqlCreateDatabaseDialog.cs: Implement Npgsql Create Database Dialog. * Encoding.xml: Set of encoding for Postgresql. * MonoDevelop.Database.Sql.Npgsql.csproj: Target runtime change from 2.0 to 3.5. Flush changes. * Schema/NpgsqlEncoding.cs: Implement NpgsqlEncoding schema. * Schema/NpgsqlTablespace.cs: Implement NpgsqlTablespace Schema * Schema/NpgsqlDatabaseSchema.cs: Implement NpgsqlDatabaseschema schema. * NpgsqlSchemaProvider.cs: Implement Create Database. * Makefile.am: * Collections: * gtk-gui/gui.stetic: * gtk-gui/objects.xml: * gtk-gui/generated.cs: * Widgets/NpgsqlCreateDatabaseWidget.cs: * Collections/NpgsqlEncodingCollection.cs: * Collections/NpgsqlTablespaceCollection.cs: * gtk-gui/MonoDevelop.Database.Sql.Npgsql.NpgsqlColumnEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Sql.Npgsql.NpgsqlCreateDatabaseWidget.cs: Implement Npgsql Create Database. 2009-11-03 Luciano N. Callero * NpgsqlSchemaProvider.cs: Fix Npgsql Drop Database: Drop the current database from another connection. 2009-10-30 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.Npgsql.addin.xml: Bump MD version. 2009-10-22 Luciano N. Callero * NpgsqlGuiProvider.cs: Common Database API update. * NpgsqlConnectionProvider.cs: Implement Use Default port (to use the default port without specifing it). 2009-10-18 Michael Hutchinson * MonoDevelop.Database.Sql.Npgsql.csproj: Fix the build & flush format changes. 2009-10-07 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.Npgsql.addin.xml: Bump MD version. 2009-08-26 Lluis Sanchez Gual * gtk-gui/gui.stetic: * MonoDevelop.Database.Sql.Npgsql.csproj: We now depend on gtk# 2.12.8, Mono 2.4, and Mono.Addins 0.4. 2009-07-31 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.csproj: Disabled 'require specific version' flags. 2009-05-27 Luciano N. Callero * MonoDevelop.Database.Sql.Npgsql.csproj: Include ChangeLog into the project. * NpgsqlSchemaProvider.cs: Save lastSystemOID to improve performance. Replace string + string with string.concat/string.format for performance. Format sql tu use mult-line string and to make sql readable. Use of using statement where is supported. Remove unneeded comments. (old code) Implement custom Procedure Definition creation. Show all the parameters. Use internal LastSystemOID when is present. GetProcedureParameters now really works and show all the parameters. Code clean. Fix alter procedure bugs. 2009-04-23 Luciano N. Callero * NpgsqlSchemaProvider.cs: Implement a custom GetTableTriggers fix a create table bug. 2009-04-21 Luciano N. Callero * NpgsqlGuiProvider.cs: Fix Preview Dialog. When cancel the dialog, don't create the table and don't close the table. * NpgsqlSchemaProvider.cs: Fix creation table to create a correct sql. 2009-04-17 Michael Hutchinson * Makefile.am: Fix builddir paths. 2009-04-15 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.Npgsql.addin.xml: Bump MD version. 2009-02-20 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.csproj: Updated references. 2009/02/06 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.mdp: * MonoDevelop.Database.Sql.Npgsql.csproj: Migrated to MSBuild file format. 2009/02/03 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.Npgsql.addin.xml: Bump MD version. 2009/02/03 Lluis Sanchez Gual * gtk-gui/generated.cs: * gtk-gui/MonoDevelop.Database.Sql.Npgsql.NpgsqlColumnEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Sql.Npgsql.NpgsqlCreateDatabaseWidget.cs: Flush. 2009-01-26 Michael Hutchinson * MonoDevelop.Database.Sql.Npgsql.mdp: Flush project format changes. 2008-12-02 Michael Hutchinson * Makefile.am: * AssemblyInfo.cs: * MonoDevelop.Database.Sql.Npgsql.mdp: Add AssemblyInfo.cs files that are autogenerated from the addin manifests. 2008-11-06 Michael Hutchinson * Makefile.am: Fix build dependencies. 2008-11-05 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.addin.xml: Bump MD version. 2008-09-17 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.mdp: Updated projects. 2008-09-17 Lluis Sanchez Gual * gtk-gui/objects.xml: Update. 2008-08-18 Lluis Sanchez Gual * Widgets/NpgsqlColumnEditorWidget.cs, Widgets/NpgsqlCreateDatabaseWidget.cs, gtk-gui/objects.xml: Use new model for describing custom stetic widgets. 2008-08-18 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.mdp: Fix reference to Mono.TextEditor. The incorrect add-in version number causes problems in the makefile synchronization. 2008-06-04 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.addin.xml: Bump MD version. 2008-05-21 Lluis Sanchez Gual * Makefile.am, MonoDevelop.Database.Sql.Npgsql.mdp: Fix projects. 2008-05-21 Lluis Sanchez Gual 2008-01-30 Ben Motmans * NpgsqlGuiProvider.cs: added parameter to the ShowCreateDatabaseDialog method 2008-01-29 Ben Motmans * NpgsqlSchemaProvider.cs: Add missing capability 2008-01-29 Ben Motmans * gtk-gui, gtk-gui/MonoDevelop.Database.Sql.Npgsql.NpgsqlCreateDatabaseWidget.cs, gtk-gui/generated.cs, gtk-gui/objects.xml, gtk-gui/MonoDevelop.Database.Sql.Npgsql.NpgsqlColumnEditorWidget.cs, gtk-gui/gui.stetic: auto generated code * MonoDevelop.Database.Sql.Npgsql.mdp: depend on Gtk# 2.8 instead of 2.12 2008-01-28 Ben Motmans * NpgsqlPooledDbConnection.cs: database version support * NpgsqlConnectionProvider.cs, NpgsqlSchemaProvider.cs, NpgsqlDbFactory.cs, NpgsqlGuiProvider.cs, NpgsqlDialect.cs: small API related changes * Widgets/NpgsqlColumnEditorWidget.cs, Widgets/NpgsqlCreateDatabaseWidget.cs: placeholders for future implementations 2008-01-28 Ben Motmans * MonoDevelop.Database.Sql.Npgsql.addin.xml: removed obsolete stuff from the old capabilities system 2008-01-25 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.addin.xml: Update MD version. 2008-01-22 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.addin.xml: Updated add-in category and description. 2007-12-14 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.mdp: Updated project file. The order of extended properties won't change anymore. 2007-12-12 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.addin.xml: Bump add-in versions. 2007-12-04 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.mdp: Updated project files. 2007-12-04 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.addin.xml, Makefile.am, MonoDevelop.Database.Sql.Npgsql.mdp: Directory reorganization. 2007-10-29 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.addin.xml: Bump MD version. 2007-10-23 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.mdp: Project file names updated by change in MD path functions. 2007-10-16 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.mdp: Fix required GTK# version. 2007-09-26 Michael Hutchinson * Makefile.am: Don't deploy .addin.xml file. * MonoDevelop.Database.Sql.Npgsql.mdp: Don't unnecessarily local-copy project references. Don't sync EXTRA_DIST with deploy files. Add Makefile.am to file list. 2007-09-21 Lluis Sanchez Gual * MonoDevelop.Database.Sql.Npgsql.addin.xml: Bump MD version. 2007-09-19 Ben Motmans * MonoDevelop.Database.Sql.Npgsql.addin.xml: temporarily disabled the Create table command due to a missing feature in the database provider 2007-09-16 Ben Motmans * NpgsqlSchemaProvider.cs: IsDBNull check for columns that can have 'null' values * Makefile.am: link to the correct Mono.Addins dll 2007-09-07 Ben Motmans * NpgsqlSchemaProvider.cs, NpgsqlDbFactory.cs, MonoDevelop.Database.Sql.Npgsql.addin.xml: improved capabilities system 2007-08-28 Ben Motmans * Makefile.am, MonoDevelop.Database.Sql.Npgsql.mdp: use project references instead of assembly references 2007-08-28 Ben Motmans * NpgsqlSchemaProvider.cs: some tweaks in the sql queries 2007-08-03 Ben Motmans * NpgsqlConnectionProvider.cs: added support for an error message * NpgsqlSchemaProvider.cs: added MetaData information and implemented GetProcedureParameters 2007-08-02 Ben Motmans * NpgsqlSchemaProvider.cs: CreateTrigger implementation 2007-08-01 Ben Motmans * NpgsqlSchemaProvider.cs: Catch exceptions and notify the user 2007-07-31 Ben Motmans * NpgsqlDbFactory.cs, NpgsqlGuiProvider.cs: Added a GuiProvider * NpgsqlSchemaProvider.cs: Implemented CreateTable 2007-07-25 Ben Motmans * NpgsqlSchemaProvider.cs, NpgsqlDbFactory.cs: improved metadata support * NpgsqlPooledDbConnection.cs: expose the GetSchema method of the internal connection 2007-07-18 Ben Motmans * NpgsqlSchemaProvider.cs: SupportsSchemaOperation implementation, use of strongly typed collections, Drop* and Rename* implementations 2007-07-17 Ben Motmans * Makefile.am: initial makefile * NpgsqlDbFactory.cs: implemented methods required for the connection settings dialog 2007-07-15 Ben Motmans * NpgsqlDialect.cs: dialect implementation with keyword detection * NpgsqlDbFactory.cs: use NpgsqlDialect instead of the obsolete Sql99Dialect 2007-07-14 Ben Motmans * NpgsqlConnectionProvider.cs, NpgsqlDbFactory.cs, NpgsqlSchemaProvider.cs: small changes to reflect API changes * NpgsqlPooledDbConnection.cs: implementation of ConnectionPool aware connection 2007-07-10 Ben Motmans * NpgsqlConnectionProvider.cs: set IsConnectionError property 2007-07-05 Ben Motmans * NpgsqlConnectionProvider.cs: ExecuteQueryAsDataSet and ExecuteQueryAsDataTable implementation * NpgsqlDbFactory.cs: specified the ISqlDialect and added default connection settings 2007-07-02 Ben Motmans * NpgsqlSchemaProvider.cs: Imported the old DbProvider and updated all to code to use the new API 2007-07-01 Ben Motmans * NpgsqlSchemaProvider.cs: * NpgsqlDbFactory.cs: * NpgsqlConnectionProvider.cs: Imported original code and splitted in 3 classes monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Collections/0000755000175000017500000000000011266446160026626 5ustar directhexdirecthex././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Collections/NpgsqlTablespaceCollection.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Collections/NpgsqlTablespaceCollection.c0000644000175000017500000000307611266446160034244 0ustar directhexdirecthex// // NpgsqlTablespaceCollection.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql.Npgsql { public class NpgsqlTablespaceCollection:SortedCollectionBase { public NpgsqlTablespaceCollection ():base(true) { } public NpgsqlTablespaceCollection (NpgsqlTablespaceCollection collection):base(collection, true) { } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Collections/NpgsqlEncodingCollection.cs0000644000175000017500000000305511266446160034107 0ustar directhexdirecthex// // NpgsqlEncodingCollection.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql.Npgsql { public class NpgsqlEncodingCollection:SortedCollectionBase { public NpgsqlEncodingCollection ():base(true) { } public NpgsqlEncodingCollection (NpgsqlEncodingCollection collection):base(collection, true) { } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/NpgsqlDbFactory.cs0000644000175000017500000001076111266446160027746 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using MonoDevelop.Core; using MonoDevelop.Database.Components; using MonoDevelop.Database.Sql; using System; using System.Collections.Generic; using System.Data; namespace MonoDevelop.Database.Sql.Npgsql { public class NpgsqlDbFactory : IDbFactory, IDbLinq { private ISqlDialect dialect; private IConnectionProvider connectionProvider; private IGuiProvider guiProvider; public string Identifier { get { return "Npgsql"; } } public string Name { get { return AddinCatalog.GetString ("PostgreSQL database"); } } public ISqlDialect Dialect { get { if (dialect == null) dialect = new NpgsqlDialect (); return dialect; } } public IConnectionProvider ConnectionProvider { get { if (connectionProvider == null) connectionProvider = new NpgsqlConnectionProvider (); return connectionProvider; } } public IGuiProvider GuiProvider { get { if (guiProvider == null) guiProvider = new NpgsqlGuiProvider (); return guiProvider; } } public IConnectionPool CreateConnectionPool (DatabaseConnectionContext context) { return new DefaultConnectionPool (this, ConnectionProvider, context); } public ISchemaProvider CreateSchemaProvider (IConnectionPool connectionPool) { return new NpgsqlSchemaProvider (connectionPool); } public DatabaseConnectionSettings GetDefaultConnectionSettings () { DatabaseConnectionSettings settings = new DatabaseConnectionSettings (); settings.ProviderIdentifier = Identifier; settings.Server = "localhost"; settings.Port = 5432; settings.Username = "postgres"; settings.MaxPoolSize = 5; return settings; } #region IDbLinq implementation public bool Generate (DatabaseConnectionSettings connection, string outputType, string outputFile, string language, string style, string defaultNamespace, string entityBase, string entityAttr, string membersAttr, string generateTypes, string culture, bool generateSchema, bool generateTimestamp, bool overrideEqualAndHash, bool extractProcedures, bool pluralize) { return SqlMetalServices.Generate (Provider, connection, outputType, outputFile, language, style, defaultNamespace, entityBase, entityAttr, membersAttr, generateTypes, culture, generateSchema, generateTimestamp, overrideEqualAndHash, extractProcedures, pluralize); } public bool Generate (DatabaseConnectionSettings connection, string outputType, string outputFile, string defaultNamespace, string entityBase, string entityAttr, string membersAttr, string generateTypes, string culture, bool generateSchema, bool generateTimestamp, bool overrideEqualAndHash, bool extractProcedures, bool pluralize) { return SqlMetalServices.Generate (Provider, connection, outputType, outputFile, defaultNamespace, entityBase, entityAttr, membersAttr, generateTypes, culture, generateSchema, generateTimestamp, overrideEqualAndHash, extractProcedures, pluralize); } public string Provider { get { return "PostgreSql"; } } public bool HasProcedures { get { return true; } } #endregion } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Widgets/0000755000175000017500000000000011266446160025756 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Widgets/NpgsqlCreateDatabaseWidget.cs0000644000175000017500000001064111266446160033470 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Text; namespace MonoDevelop.Database.Sql.Npgsql { [System.ComponentModel.Category("MonoDevelop.Database.Sql.Npgsql")] [System.ComponentModel.ToolboxItem(true)] public partial class NpgsqlCreateDatabaseWidget : Gtk.Bin { ListStore ownersStore; ListStore templatesStore; ListStore encodingsStore; ListStore tablespacesStore; public NpgsqlCreateDatabaseWidget() { this.Build(); ownersStore = new ListStore (typeof (string), typeof (UserSchema)); templatesStore = new ListStore (typeof (string), typeof (DatabaseSchema)); encodingsStore = new ListStore (typeof (string), typeof (NpgsqlEncoding)); tablespacesStore = new ListStore (typeof (string), typeof(NpgsqlTablespace)); comboOwner.Model = ownersStore; comboTemplate.Model = templatesStore; comboEncoding.Model = encodingsStore; comboTablespace.Model = tablespacesStore; } private void ClearCombos () { ownersStore.Clear (); templatesStore.Clear (); encodingsStore.Clear (); tablespacesStore.Clear (); } public void Initialize (NpgsqlSchemaProvider provider) { UserSchemaCollection users = provider.GetUsers (); DatabaseSchemaCollection databases = provider.GetDatabases (); NpgsqlEncodingCollection encodings = provider.GetEncodings (); NpgsqlTablespaceCollection tablespaces = provider.GetTablespaces (); foreach (UserSchema user in users) ownersStore.AppendValues (user.Name, user); foreach (DatabaseSchema db in databases) templatesStore.AppendValues (db.Name, db); foreach (NpgsqlEncoding enc in encodings) { StringBuilder encName = new StringBuilder (enc.Name); encName.AppendFormat (" - {0} - {1}", enc.Description, enc.Language); if (enc.Aliases != string.Empty) encName.AppendFormat (" ({0})", enc.Aliases); encodingsStore.AppendValues (encName.ToString (), enc); } foreach (NpgsqlTablespace ts in tablespaces) tablespacesStore.AppendValues (ts.Name, ts); } public void SetDatabaseOptions (NpgsqlDatabaseSchema schema) { TreeIter iter; if (comboOwner.GetActiveIter (out iter)) schema.Owner = (UserSchema)ownersStore.GetValue (iter,1); else if (comboOwner.ActiveText != String.Empty) { Console.WriteLine ("Elegido"); UserSchema user = new UserSchema (schema.SchemaProvider); user.Name = comboOwner.ActiveText; } if (comboTemplate.GetActiveIter (out iter)) schema.Template = (DatabaseSchema)templatesStore.GetValue (iter,1); else if (comboTemplate.ActiveText != string.Empty) { DatabaseSchema db = new DatabaseSchema (schema.SchemaProvider); db.Name = comboTemplate.ActiveText; } if (comboEncoding.GetActiveIter (out iter)) schema.Encoding = (NpgsqlEncoding)encodingsStore.GetValue (iter, 1); else if (comboEncoding.ActiveText != string.Empty) { NpgsqlEncoding enc = new NpgsqlEncoding (schema.SchemaProvider); enc.Name = comboEncoding.ActiveText; } if (comboTablespace.GetActiveIter (out iter)) schema.Tablespace = (NpgsqlTablespace)tablespacesStore.GetValue (iter, 1); else if (comboTablespace.ActiveText != string.Empty) { NpgsqlTablespace ts = new NpgsqlTablespace (schema.SchemaProvider); ts.Name = comboTablespace.ActiveText; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Widgets/NpgsqlColumnEditorWidget.cs0000644000175000017500000000046111266446160033243 0ustar directhexdirecthex using System; namespace MonoDevelop.Database.Sql.Npgsql { [System.ComponentModel.Category("MonoDevelop.Database.Sql.Npgsql")] [System.ComponentModel.ToolboxItem(true)] public partial class NpgsqlColumnEditorWidget : Gtk.Bin { public NpgsqlColumnEditorWidget() { this.Build(); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/NpgsqlGuiProvider.cs0000644000175000017500000001015511266446160030325 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Data; using System.Collections.Generic; using MonoDevelop.Database.Designer; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Sql.Npgsql { public class NpgsqlGuiProvider : IGuiProvider { public bool ShowCreateDatabaseDialog (IDbFactory factory) { NpgsqlCreateDatabaseDialog dialog = new NpgsqlCreateDatabaseDialog (factory); int resp; do { resp = dialog.Run (); } while (resp != (int)ResponseType.Cancel && resp != (int)ResponseType.Ok && resp != (int)ResponseType.DeleteEvent); dialog.Destroy (); if (resp == (int)ResponseType.Ok) return true; else return false; } public bool ShowAddConnectionDialog (IDbFactory factory) { DatabaseConnectionSettingsDialog dlg = new DatabaseConnectionSettingsDialog (factory); return RunDialog (dlg); } public bool ShowEditConnectionDialog (IDbFactory factory, DatabaseConnectionSettings settings, out DatabaseConnectionSettings newSettings) { DatabaseConnectionSettingsDialog dlg = new DatabaseConnectionSettingsDialog (factory, settings); bool result = RunDialog (dlg); if (result) newSettings = dlg.ConnectionSettings; else newSettings = null; return result; } public bool ShowTableEditorDialog (IEditSchemaProvider schemaProvider, TableSchema table, bool create) { TableEditorSettings settings = new TableEditorSettings (); TableEditorDialog dlg = new TableEditorDialog (schemaProvider, create, settings); dlg.Initialize (table); return RunDialog (dlg); } public bool ShowViewEditorDialog (IEditSchemaProvider schemaProvider, ViewSchema view, bool create) { ViewEditorSettings settings = new ViewEditorSettings (); ViewEditorDialog dlg = new ViewEditorDialog (schemaProvider, create, settings); dlg.Initialize (view); return RunDialog (dlg); } public bool ShowProcedureEditorDialog (IEditSchemaProvider schemaProvider, ProcedureSchema procedure, bool create) { ProcedureEditorSettings settings = new ProcedureEditorSettings (); ProcedureEditorDialog dlg = new ProcedureEditorDialog (schemaProvider, create, settings); dlg.Initialize (procedure); return RunDialog (dlg); } public bool ShowUserEditorDialog (IEditSchemaProvider schemaProvider, UserSchema user, bool create) { return false; //TODO: implement ShowUserEditorDialog } private bool RunDialog (Dialog dlg) { bool result = false; // If the Preview Dialog is canceled, don't execute and don't close the Editor Dialog. try { int resp; do { resp = dlg.Run (); } while (resp != (int)ResponseType.Cancel && resp != (int)ResponseType.Ok && resp != (int)ResponseType.DeleteEvent); if (resp == (int)ResponseType.Ok) result = true; else result = false; } finally { dlg.Destroy (); } return result; } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/NpgsqlPooledDbConnection.cs0000644000175000017500000000545511266446160031605 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; using Npgsql; namespace MonoDevelop.Database.Sql.Npgsql { public class NpgsqlPooledDbConnection : AbstractPooledDbConnection { public NpgsqlPooledDbConnection (IConnectionPool connectionPool, IDbConnection connection) : base (connectionPool, connection) { } public override Version DatabaseVersion { get { NpgsqlConnection connection = DbConnection as NpgsqlConnection; ServerVersion version = connection.ServerVersion; return new Version (version.Major, version.Minor, version.Patch); } } public override DataSet ExecuteSet (IDbCommand command) { if (command == null) throw new ArgumentException ("command"); DataSet set = new DataSet (); using (command) { using (NpgsqlDataAdapter adapter = new NpgsqlDataAdapter (command as NpgsqlCommand)) { try { adapter.Fill (set); } catch (Exception e) { QueryService.RaiseException (e); } } } return set; } public override DataTable ExecuteTable (IDbCommand command) { if (command == null) throw new ArgumentException ("command"); DataTable table = new DataTable (); using (command) { using (NpgsqlDataAdapter adapter = new NpgsqlDataAdapter (command as NpgsqlCommand)) { try { adapter.Fill (table); } catch (Exception e) { QueryService.RaiseException (e); } } } return table; } public override DataTable GetSchema (string collectionName, params string[] restrictionValues) { return (connection as NpgsqlConnection).GetSchema (collectionName, restrictionValues); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/NpgsqlDialect.cs0000644000175000017500000002420611266446160027435 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql.Npgsql { public class NpgsqlDialect : AbstractSqlDialect { public override string QuoteIdentifier (string identifier) { if (identifier == null) throw new ArgumentNullException ("identifier"); if (IsReservedWord (identifier) || identifier.Contains (" ")) return String.Concat ('"', identifier, '"'); return identifier; } public override string MarkAsParameter (string identifier) { if (identifier == null) throw new ArgumentNullException ("identifier"); return ":" + identifier; } //http://www.postgresql.org/docs/8.1/interactive/sql-keywords-appendix.html protected virtual bool IsReservedWord (string word) { word = word.ToUpper (); switch (word) { case "A": case "ABS": case "ADA": case "ALIAS": case "ALL": case "ALLOCATE": case "ALWAYS": case "ANALYSE": case "ANALYZE": case "AND": case "ANY": case "ARE": case "ARRAY": case "AS": case "ASC": case "ASENSITIVE": case "ASYMMETRIC": case "ATOMIC": case "ATTRIBUTE": case "ATTRIBUTES": case "AUTHORIZATION": case "AVG": case "BERNOULLI": case "BETWEEN": case "BINARY": case "BITVAR": case "BIT_LENGTH": case "BLOB": case "BOTH": case "BREADTH": case "C": case "CALL": case "CARDINALITY": case "CASCADED": case "CASE": case "CAST": case "CATALOG": case "CATALOG_NAME": case "CEIL": case "CEILING": case "CHARACTERS": case "CHARACTER_LENGTH": case "CHARACTER_SET_CATALOG": case "CHARACTER_SET_NAME": case "CHARACTER_SET_SCHEMA": case "CHAR_LENGTH": case "CHECK": case "CHECKED": case "CLASS_ORIGIN": case "CLOB": case "COBOL": case "COLLATE": case "COLLATION": case "COLLATION_CATALOG": case "COLLATION_NAME": case "COLLATION_SCHEMA": case "COLLECT": case "COLUMN": case "COLUMN_NAME": case "COMMAND_FUNCTION": case "COMMAND_FUNCTION_CODE": case "COMPLETION": case "CONDITION": case "CONDITION_NUMBER": case "CONNECT": case "CONNECTION_NAME": case "CONSTRAINT": case "CONSTRAINT_CATALOG": case "CONSTRAINT_NAME": case "CONSTRAINT_SCHEMA": case "CONSTRUCTOR": case "CONTAINS": case "CONTINUE": case "CORR": case "CORRESPONDING": case "COUNT": case "COVAR_POP": case "COVAR_SAMP": case "CREATE": case "CROSS": case "CUBE": case "CUME_DIST": case "CURRENT": case "CURRENT_DATE": case "CURRENT_DEFAULT_TRANSFORM_GROUP": case "CURRENT_PATH": case "CURRENT_ROLE": case "CURRENT_TIME": case "CURRENT_TIMESTAMP": case "CURRENT_TRANSFORM_GROUP_FOR_TYPE": case "CURRENT_USER": case "CURSOR_NAME": case "DATA": case "DATE": case "DATETIME_INTERVAL_CODE": case "DATETIME_INTERVAL_PRECISION": case "DEFAULT": case "DEFERRABLE": case "DEFINED": case "DEGREE": case "DENSE_RANK": case "DEPTH": case "DEREF": case "DERIVED": case "DESC": case "DESCRIBE": case "DESCRIPTOR": case "DESTROY": case "DESTRUCTOR": case "DETERMINISTIC": case "DIAGNOSTICS": case "DICTIONARY": case "DISCONNECT": case "DISPATCH": case "DISTINCT": case "DO": case "DYNAMIC": case "DYNAMIC_FUNCTION": case "DYNAMIC_FUNCTION_CODE": case "ELEMENT": case "ELSE": case "END": case "END-EXEC": case "EQUALS": case "EVERY": case "EXCEPT": case "EXCEPTION": case "EXCLUDE": case "EXEC": case "EXISTING": case "EXP": case "0": case "FILTER": case "FINAL": case "FLOOR": case "FOLLOWING": case "FOR": case "FOREIGN": case "FORTRAN": case "FOUND": case "FREE": case "FREEZE": case "FROM": case "FULL": case "FUSION": case "G": case "GENERAL": case "GENERATED": case "GET": case "GO": case "GOTO": case "GRANT": case "GROUP": case "GROUPING": case "HAVING": case "HIERARCHY": case "HOST": case "IDENTITY": case "IGNORE": case "ILIKE": case "IMPLEMENTATION": case "IN": case "INDICATOR": case "INFIX": case "INITIALIZE": case "INITIALLY": case "INNER": case "INSTANCE": case "INSTANTIABLE": case "INTERSECT": case "INTERSECTION": case "INTO": case "IS": case "ISNULL": case "ITERATE": case "JOIN": case "K": case "KEY_MEMBER": case "KEY_TYPE": case "LATERAL": case "LEADING": case "LEFT": case "LENGTH": case "LESS": case "LIKE": case "LIMIT": case "LN": case "LOCALTIME": case "LOCALTIMESTAMP": case "LOCATOR": case "LOWER": case "M": case "MAP": case "MATCHED": case "MAX": case "MEMBER": case "MERGE": case "MESSAGE_LENGTH": case "MESSAGE_OCTET_LENGTH": case "MESSAGE_TEXT": case "METHOD": case "MIN": case "MOD": case "MODIFIES": case "MODIFY": case "MODULE": case "MORE": case "MULTISET": case "MUMPS": case "NAME": case "NATURAL": case "NCLOB": case "NESTING": case "NEW": case "NOLOGIN": case "NORMALIZE": case "NORMALIZED": case "NOT": case "NOTNULL": case "NULL": case "NULLABLE": case "NULLS": case "NUMBER": case "OCTETS": case "OCTET_LENGTH": case "OFF": case "OFFSET": case "OLD": case "ON": case "ONLY": case "OPEN": case "OPERATION": case "OPTIONS": case "OR": case "ORDER": case "ORDERING": case "ORDINALITY": case "OTHERS": case "OUTER": case "OUTPUT": case "OVER": case "OVERLAPS": case "OVERRIDING": case "PAD": case "PARAMETER": case "PARAMETERS": case "PARAMETER_MODE": case "PARAMETER_NAME": case "PARAMETER_ORDINAL_POSITION": case "PARAMETER_SPECIFIC_CATALOG": case "PARAMETER_SPECIFIC_NAME": case "PARAMETER_SPECIFIC_SCHEMA": case "PARTITION": case "PASCAL": case "PATH": case "PERCENTILE_CONT": case "PERCENTILE_DISC": case "PERCENT_RANK": case "PLACING": case "PLI": case "POSTFIX": case "POWER": case "PRECEDING": case "PREFIX": case "PREORDER": case "PRIMARY": case "PUBLIC": case "RANGE": case "RANK": case "READS": case "RECURSIVE": case "REF": case "REFERENCES": case "REFERENCING": case "REGR_AVGX": case "REGR_AVGY": case "REGR_COUNT": case "REGR_INTERCEPT": case "REGR_R2": case "REGR_SLOPE": case "REGR_SXX": case "REGR_SXY": case "REGR_SYY": case "RESULT": case "RETURN": case "RETURNED_CARDINALITY": case "RETURNED_LENGTH": case "RETURNED_OCTET_LENGTH": case "RETURNED_SQLSTATE": case "RIGHT": case "ROLLUP": case "ROUTINE": case "ROUTINE_CATALOG": case "ROUTINE_NAME": case "ROUTINE_SCHEMA": case "ROW_COUNT": case "ROW_NUMBER": case "SCALE": case "SCHEMA_NAME": case "SCOPE": case "SCOPE_CATALOG": case "SCOPE_NAME": case "SCOPE_SCHEMA": case "SEARCH": case "SECTION": case "SELECT": case "SELF": case "SENSITIVE": case "SERVER_NAME": case "SESSION_USER": case "SETS": case "SIMILAR": case "SIZE": case "SOME": case "SOURCE": case "SPACE": case "SPECIFIC": case "SPECIFICTYPE": case "SPECIFIC_NAME": case "SQL": case "SQLCODE": case "SQLERROR": case "SQLEXCEPTION": case "SQLSTATE": case "SQLWARNING": case "SQRT": case "STATE": case "STATIC": case "STDDEV_POP": case "STDDEV_SAMP": case "STRUCTURE": case "STYLE": case "SUBCLASS_ORIGIN": case "SUBLIST": case "SUBMULTISET": case "SUM": case "SYMMETRIC": case "SYSTEM_USER": case "TABLE": case "TABLESAMPLE": case "TABLE_NAME": case "TERMINATE": case "THAN": case "THEN": case "TIES": case "TIMEZONE_HOUR": case "TIMEZONE_MINUTE": case "TO": case "TOP_LEVEL_COUNT": case "TRAILING": case "TRANSACTIONS_COMMITTED": case "TRANSACTIONS_ROLLED_BACK": case "TRANSACTION_ACTIVE": case "TRANSFORM": case "TRANSFORMS": case "TRANSLATE": case "TRANSLATION": case "TRIGGER_CATALOG": case "TRIGGER_NAME": case "TRIGGER_SCHEMA": case "1": case "UESCAPE": case "UNBOUNDED": case "UNDER": case "UNION": case "UNIQUE": case "UNNAMED": case "UNNEST": case "UPPER": case "USAGE": case "USER": case "USER_DEFINED_TYPE_CATALOG": case "USER_DEFINED_TYPE_CODE": case "USER_DEFINED_TYPE_NAME": case "USER_DEFINED_TYPE_SCHEMA": case "USING": case "VALUE": case "VARIABLE": case "VAR_POP": case "VAR_SAMP": case "VERBOSE": case "WHEN": case "WHENEVER": case "WHERE": case "WIDTH_BUCKET": case "WINDOW": case "WITHIN": return true; default: return false; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Schema/0000755000175000017500000000000011266446160025550 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Schema/NpgsqlEncoding.cs0000644000175000017500000000460411266446160031016 0ustar directhexdirecthex// // NpgsqlEncoding.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Sql.Npgsql { public class NpgsqlEncoding:AbstractSchema { string language; string description; bool server; string bytes_char; string aliases; public bool Server { get { return server; } set { server = value; } } public string Language { get { return language; } set { language = value; } } public string BytesChar { get { return bytes_char; } set { bytes_char = value; } } public string Aliases { get { return aliases; } set { aliases = value; } } public string Description { get { return description; } set { description = value; } } public NpgsqlEncoding (ISchemaProvider provider ):base (provider) { } public NpgsqlEncoding (NpgsqlEncoding encoding):base(encoding) { this.Name = encoding.Name; this.Aliases = encoding.Aliases; this.BytesChar = encoding.BytesChar; this.Description = encoding.Description; this.Language = encoding.Language; this.Server = encoding.Server; } public override object Clone () { return new NpgsqlEncoding (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Schema/dummy.cs0000644000175000017500000000000011266446160027220 0ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Schema/NpgsqlDatabaseSchema.cs0000644000175000017500000000373011266446160032114 0ustar directhexdirecthex// // NpgsqlDatabaseSchema.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Sql.Npgsql { public class NpgsqlDatabaseSchema:DatabaseSchema { NpgsqlEncoding encoding; DatabaseSchema template; UserSchema owner; NpgsqlTablespace tablespace; public DatabaseSchema Template { get { return template; } set { template = value; } } public NpgsqlTablespace Tablespace { get { return tablespace; } set { tablespace = value; } } public UserSchema Owner { get { return owner; } set { owner = value; } } public NpgsqlEncoding Encoding { get { return encoding; } set { encoding = value; } } public NpgsqlDatabaseSchema (ISchemaProvider provider):base (provider) { } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Schema/NpgsqlTablespace.cs0000644000175000017500000000332111266446160031326 0ustar directhexdirecthex// // NpgsqlTablespace.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Sql.Npgsql { public class NpgsqlTablespace:AbstractSchema { int oid; public int Oid { get { return oid; } set { oid = value; } } public NpgsqlTablespace (ISchemaProvider provider):base(provider) { } public NpgsqlTablespace(AbstractSchema schema):base(schema) { oid = ((NpgsqlTablespace)schema).Oid; name = schema.Name; } public override object Clone () { return new NpgsqlTablespace (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Dialogs/0000755000175000017500000000000011266446160025732 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Dialogs/NpgsqlCreateDatabaseDialog.cs0000644000175000017500000000677211266446160033432 0ustar directhexdirecthex// // NpgsqlCreateDatabaseDialog.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using Gtk; using System; using System.Data; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; using MonoDevelop.Database.Designer; using MonoDevelop.Ide; namespace MonoDevelop.Database.Sql.Npgsql { public class NpgsqlCreateDatabaseDialog:CreateDatabaseDialog { ConnectionSettingsWidget connectionWidget; NpgsqlCreateDatabaseWidget createDBWidget; public NpgsqlCreateDatabaseDialog (IDbFactory factory):base(factory) { createDBWidget = new NpgsqlCreateDatabaseWidget (); Notebook.AppendPage (createDBWidget, new Label (AddinCatalog.GetString ("Database Properties"))); Notebook.ShowTabs = true; Gtk.Notebook nb = Notebook; nb.SwitchPage += delegate(object o, SwitchPageArgs args) { if (nb.CurrentPage == 1) if (!connectionWidget.ValidateFields ()) { nb.CurrentPage = 0; MessageService.ShowError (this, AddinCatalog.GetString ("Set the connection properties before the database properties.")); } else { Initialize (factory); if (DatabaseConnection.ConnectionPool.HasErrors) { MessageService.ShowError (DatabaseConnection.ConnectionPool.Error); nb.CurrentPage = 0; return; } createDBWidget.Initialize ((NpgsqlSchemaProvider)DatabaseConnection.SchemaProvider); } }; Notebook.ShowAll (); } private void Initialize (IDbFactory factory) { if (DatabaseConnection != null) DatabaseConnection.ConnectionPool.Close (); DatabaseConnectionSettings settings = new DatabaseConnectionSettings(connectionWidget.ConnectionSettings); settings.Database = "postgres"; // Create Context, Pool, Connection DatabaseConnectionContext ctx = new DatabaseConnectionContext (settings, true); ctx.ConnectionPool.Initialize (); DatabaseConnection = ctx; } protected override ConnectionSettingsWidget CreateConnectionSettingsWidget (IDbFactory factory) { connectionWidget = new ConnectionSettingsWidget (factory); connectionWidget.ShowSettings (factory.GetDefaultConnectionSettings ()); connectionWidget.EnableTestButton = false; return connectionWidget; } protected override void OnBeforeDatabaseCreation (DatabaseSchema schema) { createDBWidget.SetDatabaseOptions ((NpgsqlDatabaseSchema)schema); base.OnBeforeDatabaseCreation (schema); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/Dialogs/NpgsqlTableEditorDialog.cs0000644000175000017500000000000011266446160032752 0ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.Npgsql/AssemblyInfo.cs0000644000175000017500000000051111266446160027267 0ustar directhexdirecthex// Autogenerated from MonoDevelop.Database.Sql.Npgsql.addin.xml using System.Reflection; [assembly: AssemblyProduct ("MonoDevelop")] [assembly: AssemblyTitle ("Npgsql provider for Mono Data Sql")] [assembly: AssemblyDescription ("Database Module")] [assembly: AssemblyVersion ("2.6")] [assembly: AssemblyCopyright ("MIT X11")] monodevelop-database-4.0.12/NEWS0000644000175000017500000000000011266446160017102 0ustar directhexdirecthexmonodevelop-database-4.0.12/configure0000755000175000017500000046316111266446160020337 0ustar directhexdirecthex#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for monodevelop-database 4.0.12. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and $0: monodevelop-list@lists.ximian.com about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='monodevelop-database' PACKAGE_TARNAME='monodevelop-database' PACKAGE_VERSION='4.0.12' PACKAGE_STRING='monodevelop-database 4.0.12' PACKAGE_BUGREPORT='monodevelop-list@lists.ximian.com' PACKAGE_URL='' ac_subst_vars='LTLIBOBJS LIBOBJS MD_DIR MD_ADDIN_DIR MD_ASSEMBLY_DIR CSC_FLAGS ASSEMBLY_VERSION LIB_PREFIX LIB_SUFFIX ENABLE_SQLSERVER_FALSE ENABLE_SQLSERVER_TRUE ENABLE_SQLITE_FALSE ENABLE_SQLITE_TRUE ENABLE_MYSQL_FALSE ENABLE_MYSQL_TRUE ENABLE_POSTGRES_FALSE ENABLE_POSTGRES_TRUE gtksharp_prefix MONODEVELOP_CORE_ADDINS_LIBS MONODEVELOP_CORE_ADDINS_CFLAGS MONODEVELOP_LIBS MONODEVELOP_CFLAGS GTK_SHARP_LIBS GTK_SHARP_CFLAGS GLIB_SHARP_LIBS GLIB_SHARP_CFLAGS MONO_ADDINS_GUI_LIBS MONO_ADDINS_GUI_CFLAGS MONO_ADDINS_SETUP_LIBS MONO_ADDINS_SETUP_CFLAGS MONO_ADDINS_LIBS MONO_ADDINS_CFLAGS MSGMERGE MSGFMT CSC RUNTIME UNMANAGED_DEPENDENCIES_MONO_LIBS UNMANAGED_DEPENDENCIES_MONO_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG LD_LIBRARY_PATH PATH MCS MONO MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_maintainer_mode ' ac_precious_vars='build_alias host_alias target_alias PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR UNMANAGED_DEPENDENCIES_MONO_CFLAGS UNMANAGED_DEPENDENCIES_MONO_LIBS MONO_ADDINS_CFLAGS MONO_ADDINS_LIBS MONO_ADDINS_SETUP_CFLAGS MONO_ADDINS_SETUP_LIBS MONO_ADDINS_GUI_CFLAGS MONO_ADDINS_GUI_LIBS GLIB_SHARP_CFLAGS GLIB_SHARP_LIBS GTK_SHARP_CFLAGS GTK_SHARP_LIBS MONODEVELOP_CFLAGS MONODEVELOP_LIBS MONODEVELOP_CORE_ADDINS_CFLAGS MONODEVELOP_CORE_ADDINS_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures monodevelop-database 4.0.12 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/monodevelop-database] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of monodevelop-database 4.0.12:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer Some influential environment variables: PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path UNMANAGED_DEPENDENCIES_MONO_CFLAGS C compiler flags for UNMANAGED_DEPENDENCIES_MONO, overriding pkg-config UNMANAGED_DEPENDENCIES_MONO_LIBS linker flags for UNMANAGED_DEPENDENCIES_MONO, overriding pkg-config MONO_ADDINS_CFLAGS C compiler flags for MONO_ADDINS, overriding pkg-config MONO_ADDINS_LIBS linker flags for MONO_ADDINS, overriding pkg-config MONO_ADDINS_SETUP_CFLAGS C compiler flags for MONO_ADDINS_SETUP, overriding pkg-config MONO_ADDINS_SETUP_LIBS linker flags for MONO_ADDINS_SETUP, overriding pkg-config MONO_ADDINS_GUI_CFLAGS C compiler flags for MONO_ADDINS_GUI, overriding pkg-config MONO_ADDINS_GUI_LIBS linker flags for MONO_ADDINS_GUI, overriding pkg-config GLIB_SHARP_CFLAGS C compiler flags for GLIB_SHARP, overriding pkg-config GLIB_SHARP_LIBS linker flags for GLIB_SHARP, overriding pkg-config GTK_SHARP_CFLAGS C compiler flags for GTK_SHARP, overriding pkg-config GTK_SHARP_LIBS linker flags for GTK_SHARP, overriding pkg-config MONODEVELOP_CFLAGS C compiler flags for MONODEVELOP, overriding pkg-config MONODEVELOP_LIBS linker flags for MONODEVELOP, overriding pkg-config MONODEVELOP_CORE_ADDINS_CFLAGS C compiler flags for MONODEVELOP_CORE_ADDINS, overriding pkg-config MONODEVELOP_CORE_ADDINS_LIBS linker flags for MONODEVELOP_CORE_ADDINS, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF monodevelop-database configure 4.0.12 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by monodevelop-database $as_me 4.0.12, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.12' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='monodevelop-database' VERSION='4.0.12' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} mkdir_p="$MKDIR_P" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 $as_echo_n "checking how to create a ustar tar archive... " >&6; } # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar plaintar pax cpio none' _am_tools=${am_cv_prog_tar_ustar-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of '-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do { echo "$as_me:$LINENO: $_am_tar --version" >&5 ($_am_tar --version) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && break done am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x ustar -w "$$tardir"' am__tar_='pax -L -x ustar -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H ustar -L' am__tar_='find "$tardir" -print | cpio -o -H ustar -L' am__untar='cpio -i -H ustar -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_ustar}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } rm -rf conftest.dir if test -s conftest.tar; then { echo "$as_me:$LINENO: $am__untar &5 ($am__untar &5 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } grep GrepMe conftest.dir/file >/dev/null 2>&1 && break fi done rm -rf conftest.dir if ${am_cv_prog_tar_ustar+:} false; then : $as_echo_n "(cached) " >&6 else am_cv_prog_tar_ustar=$_am_tool fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 $as_echo "$am_cv_prog_tar_ustar" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then : enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 $as_echo "$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE ASSEMBLY_VERSION=4.0.12.0 # Extract the first word of "mono", so it can be a program name with args. set dummy mono; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MONO+:} false; then : $as_echo_n "(cached) " >&6 else case $MONO in [\\/]* | ?:[\\/]*) ac_cv_path_MONO="$MONO" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MONO="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MONO=$ac_cv_path_MONO if test -n "$MONO"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONO" >&5 $as_echo "$MONO" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "dmcs", so it can be a program name with args. set dummy dmcs; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MCS+:} false; then : $as_echo_n "(cached) " >&6 else case $MCS in [\\/]* | ?:[\\/]*) ac_cv_path_MCS="$MCS" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi MCS=$ac_cv_path_MCS if test -n "$MCS"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 $as_echo "$MCS" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$MONO" = "x" ; then as_fn_error $? "Can't find \"mono\" in your PATH" "$LINENO" 5 fi if test "x$MCS" = "x" ; then as_fn_error $? "Can't find \"dmcs\" in your PATH" "$LINENO" 5 fi MONO_REQUIRED_VERSION=2.6.1 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNMANAGED_DEPENDENCIES_MONO" >&5 $as_echo_n "checking for UNMANAGED_DEPENDENCIES_MONO... " >&6; } if test -n "$UNMANAGED_DEPENDENCIES_MONO_CFLAGS"; then pkg_cv_UNMANAGED_DEPENDENCIES_MONO_CFLAGS="$UNMANAGED_DEPENDENCIES_MONO_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono >= \$MONO_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "mono >= $MONO_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_UNMANAGED_DEPENDENCIES_MONO_CFLAGS=`$PKG_CONFIG --cflags "mono >= $MONO_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$UNMANAGED_DEPENDENCIES_MONO_LIBS"; then pkg_cv_UNMANAGED_DEPENDENCIES_MONO_LIBS="$UNMANAGED_DEPENDENCIES_MONO_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono >= \$MONO_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "mono >= $MONO_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_UNMANAGED_DEPENDENCIES_MONO_LIBS=`$PKG_CONFIG --libs "mono >= $MONO_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then UNMANAGED_DEPENDENCIES_MONO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mono >= $MONO_REQUIRED_VERSION" 2>&1` else UNMANAGED_DEPENDENCIES_MONO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mono >= $MONO_REQUIRED_VERSION" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$UNMANAGED_DEPENDENCIES_MONO_PKG_ERRORS" >&5 has_mono=false elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } has_mono=false else UNMANAGED_DEPENDENCIES_MONO_CFLAGS=$pkg_cv_UNMANAGED_DEPENDENCIES_MONO_CFLAGS UNMANAGED_DEPENDENCIES_MONO_LIBS=$pkg_cv_UNMANAGED_DEPENDENCIES_MONO_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } has_mono=true fi if test "x$has_mono" = "xfalse"; then as_fn_error $? "Please install mono version $MONO_REQUIRED_VERSION or later to install MonoDevelop. Please see http://www.mono-project.org/ to download latest mono sources or packages" "$LINENO" 5 fi if test "x$has_mono" = "xtrue"; then if test `uname -s` = "Darwin"; then # Extract the first word of "mono", so it can be a program name with args. set dummy mono; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_RUNTIME+:} false; then : $as_echo_n "(cached) " >&6 else case $RUNTIME in [\\/]* | ?:[\\/]*) ac_cv_path_RUNTIME="$RUNTIME" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_RUNTIME="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_RUNTIME" && ac_cv_path_RUNTIME="no" ;; esac fi RUNTIME=$ac_cv_path_RUNTIME if test -n "$RUNTIME"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTIME" >&5 $as_echo "$RUNTIME" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "dmcs", so it can be a program name with args. set dummy dmcs; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_CSC+:} false; then : $as_echo_n "(cached) " >&6 else case $CSC in [\\/]* | ?:[\\/]*) ac_cv_path_CSC="$CSC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_CSC="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_CSC" && ac_cv_path_CSC="no" ;; esac fi CSC=$ac_cv_path_CSC if test -n "$CSC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSC" >&5 $as_echo "$CSC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi LIB_PREFIX= LIB_SUFFIX=.dylib else # Extract the first word of "mono", so it can be a program name with args. set dummy mono; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_RUNTIME+:} false; then : $as_echo_n "(cached) " >&6 else case $RUNTIME in [\\/]* | ?:[\\/]*) ac_cv_path_RUNTIME="$RUNTIME" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_RUNTIME="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_RUNTIME" && ac_cv_path_RUNTIME="no" ;; esac fi RUNTIME=$ac_cv_path_RUNTIME if test -n "$RUNTIME"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTIME" >&5 $as_echo "$RUNTIME" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "dmcs", so it can be a program name with args. set dummy dmcs; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_CSC+:} false; then : $as_echo_n "(cached) " >&6 else case $CSC in [\\/]* | ?:[\\/]*) ac_cv_path_CSC="$CSC" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_CSC="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_CSC" && ac_cv_path_CSC="no" ;; esac fi CSC=$ac_cv_path_CSC if test -n "$CSC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSC" >&5 $as_echo "$CSC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi LIB_PREFIX=.so LIB_SUFFIX= fi fi # Find msgfmt and msgmerge for translations # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case $MSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" ;; esac fi MSGFMT=$ac_cv_path_MSGFMT if test -n "$MSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 $as_echo "$MSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$MSGFMT" = "xno"; then as_fn_error $? "You need to install msgfmt from intltool" "$LINENO" 5 fi # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGMERGE+:} false; then : $as_echo_n "(cached) " >&6 else case $MSGMERGE in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="no" ;; esac fi MSGMERGE=$ac_cv_path_MSGMERGE if test -n "$MSGMERGE"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 $as_echo "$MSGMERGE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$MSGMERGE" = "xno"; then as_fn_error $? "You need to install msgmerge from intltool" "$LINENO" 5 fi MONOADDINS_REQUIRED_VERSION=0.4 MONODEVELOP_REQUIRED_VERSION=4.0.12 GTKSHARP_REQUIRED_VERSION=2.12.8 pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MONO_ADDINS" >&5 $as_echo_n "checking for MONO_ADDINS... " >&6; } if test -n "$MONO_ADDINS_CFLAGS"; then pkg_cv_MONO_ADDINS_CFLAGS="$MONO_ADDINS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono-addins >= \$MONOADDINS_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "mono-addins >= $MONOADDINS_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_MONO_ADDINS_CFLAGS=`$PKG_CONFIG --cflags "mono-addins >= $MONOADDINS_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$MONO_ADDINS_LIBS"; then pkg_cv_MONO_ADDINS_LIBS="$MONO_ADDINS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono-addins >= \$MONOADDINS_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "mono-addins >= $MONOADDINS_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_MONO_ADDINS_LIBS=`$PKG_CONFIG --libs "mono-addins >= $MONOADDINS_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then MONO_ADDINS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mono-addins >= $MONOADDINS_REQUIRED_VERSION" 2>&1` else MONO_ADDINS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mono-addins >= $MONOADDINS_REQUIRED_VERSION" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$MONO_ADDINS_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (mono-addins >= $MONOADDINS_REQUIRED_VERSION) were not met: $MONO_ADDINS_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables MONO_ADDINS_CFLAGS and MONO_ADDINS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables MONO_ADDINS_CFLAGS and MONO_ADDINS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else MONO_ADDINS_CFLAGS=$pkg_cv_MONO_ADDINS_CFLAGS MONO_ADDINS_LIBS=$pkg_cv_MONO_ADDINS_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MONO_ADDINS_SETUP" >&5 $as_echo_n "checking for MONO_ADDINS_SETUP... " >&6; } if test -n "$MONO_ADDINS_SETUP_CFLAGS"; then pkg_cv_MONO_ADDINS_SETUP_CFLAGS="$MONO_ADDINS_SETUP_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono-addins-setup >= \$MONOADDINS_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "mono-addins-setup >= $MONOADDINS_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_MONO_ADDINS_SETUP_CFLAGS=`$PKG_CONFIG --cflags "mono-addins-setup >= $MONOADDINS_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$MONO_ADDINS_SETUP_LIBS"; then pkg_cv_MONO_ADDINS_SETUP_LIBS="$MONO_ADDINS_SETUP_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono-addins-setup >= \$MONOADDINS_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "mono-addins-setup >= $MONOADDINS_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_MONO_ADDINS_SETUP_LIBS=`$PKG_CONFIG --libs "mono-addins-setup >= $MONOADDINS_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then MONO_ADDINS_SETUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mono-addins-setup >= $MONOADDINS_REQUIRED_VERSION" 2>&1` else MONO_ADDINS_SETUP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mono-addins-setup >= $MONOADDINS_REQUIRED_VERSION" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$MONO_ADDINS_SETUP_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (mono-addins-setup >= $MONOADDINS_REQUIRED_VERSION) were not met: $MONO_ADDINS_SETUP_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables MONO_ADDINS_SETUP_CFLAGS and MONO_ADDINS_SETUP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables MONO_ADDINS_SETUP_CFLAGS and MONO_ADDINS_SETUP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else MONO_ADDINS_SETUP_CFLAGS=$pkg_cv_MONO_ADDINS_SETUP_CFLAGS MONO_ADDINS_SETUP_LIBS=$pkg_cv_MONO_ADDINS_SETUP_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MONO_ADDINS_GUI" >&5 $as_echo_n "checking for MONO_ADDINS_GUI... " >&6; } if test -n "$MONO_ADDINS_GUI_CFLAGS"; then pkg_cv_MONO_ADDINS_GUI_CFLAGS="$MONO_ADDINS_GUI_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono-addins-gui >= \$MONOADDINS_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "mono-addins-gui >= $MONOADDINS_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_MONO_ADDINS_GUI_CFLAGS=`$PKG_CONFIG --cflags "mono-addins-gui >= $MONOADDINS_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$MONO_ADDINS_GUI_LIBS"; then pkg_cv_MONO_ADDINS_GUI_LIBS="$MONO_ADDINS_GUI_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono-addins-gui >= \$MONOADDINS_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "mono-addins-gui >= $MONOADDINS_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_MONO_ADDINS_GUI_LIBS=`$PKG_CONFIG --libs "mono-addins-gui >= $MONOADDINS_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then MONO_ADDINS_GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mono-addins-gui >= $MONOADDINS_REQUIRED_VERSION" 2>&1` else MONO_ADDINS_GUI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mono-addins-gui >= $MONOADDINS_REQUIRED_VERSION" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$MONO_ADDINS_GUI_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (mono-addins-gui >= $MONOADDINS_REQUIRED_VERSION) were not met: $MONO_ADDINS_GUI_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables MONO_ADDINS_GUI_CFLAGS and MONO_ADDINS_GUI_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables MONO_ADDINS_GUI_CFLAGS and MONO_ADDINS_GUI_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else MONO_ADDINS_GUI_CFLAGS=$pkg_cv_MONO_ADDINS_GUI_CFLAGS MONO_ADDINS_GUI_LIBS=$pkg_cv_MONO_ADDINS_GUI_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB_SHARP" >&5 $as_echo_n "checking for GLIB_SHARP... " >&6; } if test -n "$GLIB_SHARP_CFLAGS"; then pkg_cv_GLIB_SHARP_CFLAGS="$GLIB_SHARP_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-sharp-2.0 >= \$GTKSHARP_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_SHARP_CFLAGS=`$PKG_CONFIG --cflags "glib-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GLIB_SHARP_LIBS"; then pkg_cv_GLIB_SHARP_LIBS="$GLIB_SHARP_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-sharp-2.0 >= \$GTKSHARP_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_SHARP_LIBS=`$PKG_CONFIG --libs "glib-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GLIB_SHARP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>&1` else GLIB_SHARP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GLIB_SHARP_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (glib-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION) were not met: $GLIB_SHARP_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GLIB_SHARP_CFLAGS and GLIB_SHARP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GLIB_SHARP_CFLAGS and GLIB_SHARP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else GLIB_SHARP_CFLAGS=$pkg_cv_GLIB_SHARP_CFLAGS GLIB_SHARP_LIBS=$pkg_cv_GLIB_SHARP_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK_SHARP" >&5 $as_echo_n "checking for GTK_SHARP... " >&6; } if test -n "$GTK_SHARP_CFLAGS"; then pkg_cv_GTK_SHARP_CFLAGS="$GTK_SHARP_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-sharp-2.0 >= \$GTKSHARP_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "gtk-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTK_SHARP_CFLAGS=`$PKG_CONFIG --cflags "gtk-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GTK_SHARP_LIBS"; then pkg_cv_GTK_SHARP_LIBS="$GTK_SHARP_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-sharp-2.0 >= \$GTKSHARP_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "gtk-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTK_SHARP_LIBS=`$PKG_CONFIG --libs "gtk-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GTK_SHARP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>&1` else GTK_SHARP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GTK_SHARP_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (gtk-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION) were not met: $GTK_SHARP_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GTK_SHARP_CFLAGS and GTK_SHARP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GTK_SHARP_CFLAGS and GTK_SHARP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else GTK_SHARP_CFLAGS=$pkg_cv_GTK_SHARP_CFLAGS GTK_SHARP_LIBS=$pkg_cv_GTK_SHARP_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MONODEVELOP" >&5 $as_echo_n "checking for MONODEVELOP... " >&6; } if test -n "$MONODEVELOP_CFLAGS"; then pkg_cv_MONODEVELOP_CFLAGS="$MONODEVELOP_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"monodevelop >= \$MONODEVELOP_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "monodevelop >= $MONODEVELOP_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_MONODEVELOP_CFLAGS=`$PKG_CONFIG --cflags "monodevelop >= $MONODEVELOP_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$MONODEVELOP_LIBS"; then pkg_cv_MONODEVELOP_LIBS="$MONODEVELOP_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"monodevelop >= \$MONODEVELOP_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "monodevelop >= $MONODEVELOP_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_MONODEVELOP_LIBS=`$PKG_CONFIG --libs "monodevelop >= $MONODEVELOP_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then MONODEVELOP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "monodevelop >= $MONODEVELOP_REQUIRED_VERSION" 2>&1` else MONODEVELOP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "monodevelop >= $MONODEVELOP_REQUIRED_VERSION" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$MONODEVELOP_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (monodevelop >= $MONODEVELOP_REQUIRED_VERSION) were not met: $MONODEVELOP_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables MONODEVELOP_CFLAGS and MONODEVELOP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables MONODEVELOP_CFLAGS and MONODEVELOP_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else MONODEVELOP_CFLAGS=$pkg_cv_MONODEVELOP_CFLAGS MONODEVELOP_LIBS=$pkg_cv_MONODEVELOP_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MONODEVELOP_CORE_ADDINS" >&5 $as_echo_n "checking for MONODEVELOP_CORE_ADDINS... " >&6; } if test -n "$MONODEVELOP_CORE_ADDINS_CFLAGS"; then pkg_cv_MONODEVELOP_CORE_ADDINS_CFLAGS="$MONODEVELOP_CORE_ADDINS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"monodevelop-core-addins >= \$MONODEVELOP_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "monodevelop-core-addins >= $MONODEVELOP_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_MONODEVELOP_CORE_ADDINS_CFLAGS=`$PKG_CONFIG --cflags "monodevelop-core-addins >= $MONODEVELOP_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$MONODEVELOP_CORE_ADDINS_LIBS"; then pkg_cv_MONODEVELOP_CORE_ADDINS_LIBS="$MONODEVELOP_CORE_ADDINS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"monodevelop-core-addins >= \$MONODEVELOP_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "monodevelop-core-addins >= $MONODEVELOP_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_MONODEVELOP_CORE_ADDINS_LIBS=`$PKG_CONFIG --libs "monodevelop-core-addins >= $MONODEVELOP_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then MONODEVELOP_CORE_ADDINS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "monodevelop-core-addins >= $MONODEVELOP_REQUIRED_VERSION" 2>&1` else MONODEVELOP_CORE_ADDINS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "monodevelop-core-addins >= $MONODEVELOP_REQUIRED_VERSION" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$MONODEVELOP_CORE_ADDINS_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (monodevelop-core-addins >= $MONODEVELOP_REQUIRED_VERSION) were not met: $MONODEVELOP_CORE_ADDINS_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables MONODEVELOP_CORE_ADDINS_CFLAGS and MONODEVELOP_CORE_ADDINS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables MONODEVELOP_CORE_ADDINS_CFLAGS and MONODEVELOP_CORE_ADDINS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else MONODEVELOP_CORE_ADDINS_CFLAGS=$pkg_cv_MONODEVELOP_CORE_ADDINS_CFLAGS MONODEVELOP_CORE_ADDINS_LIBS=$pkg_cv_MONODEVELOP_CORE_ADDINS_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi gtksharp_prefix="`$PKG_CONFIG --variable=prefix gtk-sharp-2.0`" test_sqlite=$(gacutil -l | grep "Mono.Data.Sqlite, Version=2") test_sqlserver=$(gacutil -l | grep "System.Data, Version=2") test_postgres=$(gacutil -l | grep "Npgsql, Version=2") test_mysql=$(gacutil -l | grep "MySql.Data") if test "x$test_sqlite" != "x"; then ## mono 1.2.4 contains some bugs that prevents the sqlite addin from working properly MONO_REQUIRED_VERSION=1.2.5 pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNMANAGED_DEPENDENCIES_MONO" >&5 $as_echo_n "checking for UNMANAGED_DEPENDENCIES_MONO... " >&6; } if test -n "$UNMANAGED_DEPENDENCIES_MONO_CFLAGS"; then pkg_cv_UNMANAGED_DEPENDENCIES_MONO_CFLAGS="$UNMANAGED_DEPENDENCIES_MONO_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono >= \$MONO_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "mono >= $MONO_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_UNMANAGED_DEPENDENCIES_MONO_CFLAGS=`$PKG_CONFIG --cflags "mono >= $MONO_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$UNMANAGED_DEPENDENCIES_MONO_LIBS"; then pkg_cv_UNMANAGED_DEPENDENCIES_MONO_LIBS="$UNMANAGED_DEPENDENCIES_MONO_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono >= \$MONO_REQUIRED_VERSION\""; } >&5 ($PKG_CONFIG --exists --print-errors "mono >= $MONO_REQUIRED_VERSION") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_UNMANAGED_DEPENDENCIES_MONO_LIBS=`$PKG_CONFIG --libs "mono >= $MONO_REQUIRED_VERSION" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then UNMANAGED_DEPENDENCIES_MONO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mono >= $MONO_REQUIRED_VERSION" 2>&1` else UNMANAGED_DEPENDENCIES_MONO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mono >= $MONO_REQUIRED_VERSION" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$UNMANAGED_DEPENDENCIES_MONO_PKG_ERRORS" >&5 has_correct_mono=false elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } has_correct_mono=false else UNMANAGED_DEPENDENCIES_MONO_CFLAGS=$pkg_cv_UNMANAGED_DEPENDENCIES_MONO_CFLAGS UNMANAGED_DEPENDENCIES_MONO_LIBS=$pkg_cv_UNMANAGED_DEPENDENCIES_MONO_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } has_correct_mono=true fi if test "x$has_correct_mono" = "xfalse"; then enable_sqlite="no (requires mono >= 1.2.5)" else enable_sqlite="yes" fi else enable_sqlite="no (missing Mono.Data.Sqlite, Version 2)" fi if test "x$test_sqlserver" != "x"; then enable_sqlserver="yes" else enable_sqlserver="no (missing System.Data, Version 2)" fi if test "x$test_postgres" != "x"; then enable_postgres="yes" else enable_postgres="no (missing Npgsql, Version 2)" fi if test "x$test_mysql" != "x"; then enable_mysql="yes" else enable_mysql="no (missing MySql.Data)" fi if test "x$enable_postgres" = "xyes"; then ENABLE_POSTGRES_TRUE= ENABLE_POSTGRES_FALSE='#' else ENABLE_POSTGRES_TRUE='#' ENABLE_POSTGRES_FALSE= fi if test "x$enable_mysql" = "xyes"; then ENABLE_MYSQL_TRUE= ENABLE_MYSQL_FALSE='#' else ENABLE_MYSQL_TRUE='#' ENABLE_MYSQL_FALSE= fi if test "x$enable_sqlite" = "xyes"; then ENABLE_SQLITE_TRUE= ENABLE_SQLITE_FALSE='#' else ENABLE_SQLITE_TRUE='#' ENABLE_SQLITE_FALSE= fi if test "x$enable_sqlserver" = "xyes"; then ENABLE_SQLSERVER_TRUE= ENABLE_SQLSERVER_FALSE='#' else ENABLE_SQLSERVER_TRUE='#' ENABLE_SQLSERVER_FALSE= fi CSC_FLAGS="-debug -codepage:utf8" MD_DIR='$(prefix)/lib/monodevelop' MD_ASSEMBLY_DIR="$MD_DIR/bin" MD_ADDIN_DIR="$MD_DIR/AddIns" ac_config_files="$ac_config_files Makefile monodevelop-database.pc monodevelop-database.spec MonoDevelop.Database.Sql/Makefile MonoDevelop.Database.Sql.MySql/Makefile MonoDevelop.Database.Sql.Npgsql/Makefile MonoDevelop.Database.Sql.Sqlite/Makefile MonoDevelop.Database.Sql.SqlServer/Makefile MonoDevelop.Database.Components/Makefile MonoDevelop.Database.Query/Makefile MonoDevelop.Database.CodeGenerator/Makefile MonoDevelop.Database.Designer/Makefile MonoDevelop.Database.ConnectionManager/Makefile po/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Transform confdefs.h into DEFS. # Protect against shell expansion while executing Makefile rules. # Protect against Makefile macro expansion. # # If the first sed substitution is executed (which looks for macros that # take arguments), then branch to the quote section. Otherwise, # look for a macro that doesn't take arguments. ac_script=' :mline /\\$/{ N s,\\\n,, b mline } t clear :clear s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g t quote s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g t quote b any :quote s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g s/\[/\\&/g s/\]/\\&/g s/\$/$$/g H :any ${ g s/^\n// s/\n/ /g p } ' DEFS=`sed -n "$ac_script" confdefs.h` ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_POSTGRES_TRUE}" && test -z "${ENABLE_POSTGRES_FALSE}"; then as_fn_error $? "conditional \"ENABLE_POSTGRES\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_MYSQL_TRUE}" && test -z "${ENABLE_MYSQL_FALSE}"; then as_fn_error $? "conditional \"ENABLE_MYSQL\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_SQLITE_TRUE}" && test -z "${ENABLE_SQLITE_FALSE}"; then as_fn_error $? "conditional \"ENABLE_SQLITE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${ENABLE_SQLSERVER_TRUE}" && test -z "${ENABLE_SQLSERVER_FALSE}"; then as_fn_error $? "conditional \"ENABLE_SQLSERVER\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by monodevelop-database $as_me 4.0.12, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE Configuration files: $config_files Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ monodevelop-database config.status 4.0.12 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --he | --h | --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "monodevelop-database.pc") CONFIG_FILES="$CONFIG_FILES monodevelop-database.pc" ;; "monodevelop-database.spec") CONFIG_FILES="$CONFIG_FILES monodevelop-database.spec" ;; "MonoDevelop.Database.Sql/Makefile") CONFIG_FILES="$CONFIG_FILES MonoDevelop.Database.Sql/Makefile" ;; "MonoDevelop.Database.Sql.MySql/Makefile") CONFIG_FILES="$CONFIG_FILES MonoDevelop.Database.Sql.MySql/Makefile" ;; "MonoDevelop.Database.Sql.Npgsql/Makefile") CONFIG_FILES="$CONFIG_FILES MonoDevelop.Database.Sql.Npgsql/Makefile" ;; "MonoDevelop.Database.Sql.Sqlite/Makefile") CONFIG_FILES="$CONFIG_FILES MonoDevelop.Database.Sql.Sqlite/Makefile" ;; "MonoDevelop.Database.Sql.SqlServer/Makefile") CONFIG_FILES="$CONFIG_FILES MonoDevelop.Database.Sql.SqlServer/Makefile" ;; "MonoDevelop.Database.Components/Makefile") CONFIG_FILES="$CONFIG_FILES MonoDevelop.Database.Components/Makefile" ;; "MonoDevelop.Database.Query/Makefile") CONFIG_FILES="$CONFIG_FILES MonoDevelop.Database.Query/Makefile" ;; "MonoDevelop.Database.CodeGenerator/Makefile") CONFIG_FILES="$CONFIG_FILES MonoDevelop.Database.CodeGenerator/Makefile" ;; "MonoDevelop.Database.Designer/Makefile") CONFIG_FILES="$CONFIG_FILES MonoDevelop.Database.Designer/Makefile" ;; "MonoDevelop.Database.ConnectionManager/Makefile") CONFIG_FILES="$CONFIG_FILES MonoDevelop.Database.ConnectionManager/Makefile" ;; "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" eval set X " :F $CONFIG_FILES " shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi echo "" echo "Configuration summary" echo "" echo " * Installation prefix = $prefix" echo " * C# compiler = $CSC" echo " * Providers:" echo " * PostgreSQL: $enable_postgres" echo " * MySQL: $enable_mysql" echo " * SQLite: $enable_sqlite" echo " * SQL Server: $enable_sqlserver" echo "" monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/0000755000175000017500000000000011266446160025032 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/SysObjects.xml0000644000175000017500000000620211266446160027644 0ustar directhexdirecthex dt_addtosourcecontrol dt_addtosourcecontrol_u dt_adduserobject dt_adduserobject_vcs dt_checkinobject dt_checkinobject_u dt_checkoutobject dt_checkoutobject_u dt_displayoaerror dt_displayoaerror_u dt_droppropertiesbyid dt_dropuserobjectbyid dt_generateansiname dt_getobjwithprop dt_getobjwithprop_u dt_getpropertiesbyid dt_getpropertiesbyid_u dt_getpropertiesbyid_vcs dt_getpropertiesbyid_vcs_u dt_isundersourcecontrol dt_isundersourcecontrol_u dt_removefromsourcecontrol dt_setpropertybyid dt_setpropertybyid_u dt_validateloginparams dt_validateloginparams_u dt_vcsenabled dt_verstamp006 dt_whocheckedout dt_whocheckedout_u sysaltfiles syscacheobjects syscharsets sysconfigures syscurconfigs sysdatabases sysdevices syslanguages syslockinfo syslocks syslogins sysmessages sysoledbusers sysopentapes sysperfinfo sysprocesses sysremotelogins sysservers fn_virtualfilestats syscolumns syscomments sysconstraints sysdepends sysfilegroups sysfiles sysforeignkeys sysindexes sysindexkeys sysmembers sysobjects syspermissions sysprotects sysreferences systypes sysusers sysfulltextcatalogs sysfiles1 sysfulltextnotify sysproperties monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Makefile.in0000644000175000017500000003464711266446160027115 0ustar directhexdirecthex# Makefile.in generated by automake 1.12.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2012 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/Makefile.include ChangeLog subdir = MonoDevelop.Database.Sql.SqlServer ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } am__installdirs = "$(DESTDIR)$(assemblydir)" DATA = $(assembly_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ASSEMBLY_VERSION = @ASSEMBLY_VERSION@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CSC = @CSC@ CSC_FLAGS = @CSC_FLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ GLIB_SHARP_CFLAGS = @GLIB_SHARP_CFLAGS@ GLIB_SHARP_LIBS = @GLIB_SHARP_LIBS@ GTK_SHARP_CFLAGS = @GTK_SHARP_CFLAGS@ GTK_SHARP_LIBS = @GTK_SHARP_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD_LIBRARY_PATH = @LD_LIBRARY_PATH@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIB_PREFIX = @LIB_PREFIX@ LIB_SUFFIX = @LIB_SUFFIX@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ MCS = @MCS@ MD_ADDIN_DIR = @MD_ADDIN_DIR@ MD_ASSEMBLY_DIR = @MD_ASSEMBLY_DIR@ MD_DIR = @MD_DIR@ MKDIR_P = @MKDIR_P@ MONO = @MONO@ MONODEVELOP_CFLAGS = @MONODEVELOP_CFLAGS@ MONODEVELOP_CORE_ADDINS_CFLAGS = @MONODEVELOP_CORE_ADDINS_CFLAGS@ MONODEVELOP_CORE_ADDINS_LIBS = @MONODEVELOP_CORE_ADDINS_LIBS@ MONODEVELOP_LIBS = @MONODEVELOP_LIBS@ MONO_ADDINS_CFLAGS = @MONO_ADDINS_CFLAGS@ MONO_ADDINS_GUI_CFLAGS = @MONO_ADDINS_GUI_CFLAGS@ MONO_ADDINS_GUI_LIBS = @MONO_ADDINS_GUI_LIBS@ MONO_ADDINS_LIBS = @MONO_ADDINS_LIBS@ MONO_ADDINS_SETUP_CFLAGS = @MONO_ADDINS_SETUP_CFLAGS@ MONO_ADDINS_SETUP_LIBS = @MONO_ADDINS_SETUP_LIBS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH = @PATH@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ RUNTIME = @RUNTIME@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ UNMANAGED_DEPENDENCIES_MONO_CFLAGS = @UNMANAGED_DEPENDENCIES_MONO_CFLAGS@ UNMANAGED_DEPENDENCIES_MONO_LIBS = @UNMANAGED_DEPENDENCIES_MONO_LIBS@ VERSION = @VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ am__leading_dot = @am__leading_dot@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ gtksharp_prefix = @gtksharp_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.Sql.SqlServer.dll REFS = \ $(GTK_SHARP_LIBS) \ $(MONODEVELOP_CORE_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Components.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Designer.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:Mono.Posix \ -r:System \ -r:System.Core \ -r:System.Data \ -r:System.Xml \ -r:System.Xml.Linq FILES = \ AssemblyInfo.cs \ Collections/SqlServerCollationSchemaCollection.cs \ Dialogs/SqlServerCreateDatabaseDialog.cs \ Dialogs/SqlServerTableEditorDialog.cs \ gtk-gui/generated.cs \ gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerColumnEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs \ Schema/dummy.cs \ Schema/SqlServerCollationSchema.cs \ Schema/SqlServerDatabaseSchema.cs \ SqlServerConnectionProvider.cs \ SqlServerDbFactory.cs \ SqlServerDialect.cs \ SqlServerGuiProvider.cs \ SqlServerPooledDbConnection.cs \ SqlServerSchemaProvider.cs \ Widgets/SqlServerColumnEditorWidget.cs \ Widgets/SqlServerCreateDatabaseWidget.cs RES = \ gtk-gui/gui.stetic \ gtk-gui/objects.xml \ MonoDevelop.Database.Sql.SqlServer.addin.xml \ SqlServerSyntaxMode.xml \ SysObjects.xml assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb EXTRA_DIST = $(FILES) $(RES) build_sources = $(addprefix $(srcdir)/, $(FILES)) $(GENERATED_FILES) build_resources = $(addprefix $(srcdir)/, $(RES)) build_test_sources = $(addprefix $(srcdir)/, $(TESTFILES)) $(GENERATED_FILES) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.include $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu MonoDevelop.Database.Sql.SqlServer/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu MonoDevelop.Database.Sql.SqlServer/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_srcdir)/Makefile.include: $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-assemblyDATA: $(assembly_DATA) @$(NORMAL_INSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(assemblydir)'"; \ $(MKDIR_P) "$(DESTDIR)$(assemblydir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(assemblydir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(assemblydir)" || exit $$?; \ done uninstall-assemblyDATA: @$(NORMAL_UNINSTALL) @list='$(assembly_DATA)'; test -n "$(assemblydir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(assemblydir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: ctags: CTAGS CTAGS: cscope cscopelist: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(DATA) installdirs: for dir in "$(DESTDIR)$(assemblydir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-assemblyDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-assemblyDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-assemblyDATA install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am uninstall uninstall-am uninstall-assemblyDATA @ENABLE_SQLSERVER_TRUE@all: $(ASSEMBLY) @ENABLE_SQLSERVER_FALSE@all: $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/SqlServerDialect.cs0000644000175000017500000001233111266446160030575 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; namespace MonoDevelop.Database.Sql.SqlServer { public class SqlServerDialect : AbstractSqlDialect { //http://msdn2.microsoft.com/En-US/library/aa224033(SQL.80).aspx public override string QuoteIdentifier (string identifier) { if (identifier == null) throw new ArgumentNullException ("identifier"); if (IsReservedWord (identifier)) return String.Concat ('[', identifier, ']'); foreach (char c in identifier.ToCharArray ()) { switch (c) { case ' ': case '~': case '-': case '!': case '{': case '%': case '}': case '^': case '\'': case '&': case '.': case '(': case '\\': case ')': case '`': return String.Concat ('[', identifier, ']'); default: break; } } return identifier; } public override string MarkAsParameter (string identifier) { if (identifier == null) throw new ArgumentNullException ("identifier"); return "@" + identifier; } //http://msdn2.microsoft.com/en-US/library/aa238507(SQL.80).aspx protected virtual bool IsReservedWord (string word) { word = word.ToUpper (); switch (word) { case "EXCEPT": case "PERCENT": case "ALL": case "EXEC": case "PLAN": case "ALTER": case "EXECUTE": case "PRECISION": case "AND": case "EXISTS": case "PRIMARY": case "ANY": case "EXIT": case "PRINT": case "AS": case "FETCH": case "PROC": case "ASC": case "FILE": case "PROCEDURE": case "AUTHORIZATION": case "FILLFACTOR": case "PUBLIC": case "BACKUP": case "FOR": case "RAISERROR": case "BEGIN": case "FOREIGN": case "READ": case "BETWEEN": case "FREETEXT": case "READTEXT": case "BREAK": case "FREETEXTTABLE": case "RECONFIGURE": case "BROWSE": case "FROM": case "REFERENCES": case "BULK": case "FULL": case "REPLICATION": case "BY": case "FUNCTION": case "RESTORE": case "CASCADE": case "GOTO": case "RESTRICT": case "CASE": case "GRANT": case "RETURN": case "CHECK": case "GROUP": case "REVOKE": case "CHECKPOINT": case "HAVING": case "RIGHT": case "CLOSE": case "HOLDLOCK": case "ROLLBACK": case "CLUSTERED": case "IDENTITY": case "ROWCOUNT": case "COALESCE": case "IDENTITY_INSERT": case "ROWGUIDCOL": case "COLLATE": case "IDENTITYCOL": case "RULE": case "COLUMN": case "IF": case "SAVE": case "COMMIT": case "IN": case "SCHEMA": case "COMPUTE": case "INDEX": case "SELECT": case "CONSTRAINT": case "INNER": case "SESSION_USER": case "CONTAINS": case "INSERT": case "SET": case "CONTAINSTABLE": case "INTERSECT": case "SETUSER": case "CONTINUE": case "INTO": case "SHUTDOWN": case "CONVERT": case "IS": case "SOME": case "CREATE": case "JOIN": case "STATISTICS": case "CROSS": case "KEY": case "SYSTEM_USER": case "CURRENT": case "KILL": case "TABLE": case "CURRENT_DATE": case "LEFT": case "TEXTSIZE": case "CURRENT_TIME": case "LIKE": case "THEN": case "CURRENT_TIMESTAMP": case "LINENO": case "TO": case "CURRENT_USER": case "LOAD": case "TOP": case "CURSOR": case "NATIONAL ": case "TRAN": case "DATABASE": case "NOCHECK": case "TRANSACTION": case "DBCC": case "NONCLUSTERED": case "TRIGGER": case "DEALLOCATE": case "NOT": case "TRUNCATE": case "DECLARE": case "NULL": case "TSEQUAL": case "DEFAULT": case "NULLIF": case "UNION": case "DELETE": case "OF": case "UNIQUE": case "DENY": case "OFF": case "UPDATE": case "DESC": case "OFFSETS": case "UPDATETEXT": case "DISK": case "ON": case "USE": case "DISTINCT": case "OPEN": case "USER": case "DISTRIBUTED": case "OPENDATASOURCE": case "VALUES": case "DOUBLE": case "OPENQUERY": case "VARYING": case "DROP": case "OPENROWSET": case "VIEW": case "DUMMY": case "OPENXML": case "WAITFOR": case "DUMP": case "OPTION": case "WHEN": case "ELSE": case "OR": case "WHERE": case "END": case "ORDER": case "WHILE": case "ERRLVL": case "OUTER": case "WITH": case "ESCAPE": case "OVER": case "WRITETEXT": return true; default: return false; } } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/SqlServerDbFactory.cs0000644000175000017500000001136611266446160031114 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Collections.Generic; using MonoDevelop.Core; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Sql.SqlServer { public class SqlServerDbFactory : IDbFactory, IDbLinq { private ISqlDialect dialect; private IConnectionProvider connectionProvider; private IGuiProvider guiProvider; public string Identifier { get { return "System.Data.SqlClient"; } } public string Name { get { return AddinCatalog.GetString ("SQL Server database"); } } public ISqlDialect Dialect { get { if (dialect == null) dialect = new SqlServerDialect (); return dialect; } } public IConnectionProvider ConnectionProvider { get { if (connectionProvider == null) connectionProvider = new SqlServerConnectionProvider (); return connectionProvider; } } public IGuiProvider GuiProvider { get { if (guiProvider == null) guiProvider = new SqlServerGuiProvider (); return guiProvider; } } public IConnectionPool CreateConnectionPool (DatabaseConnectionContext context) { return new DefaultConnectionPool (this, ConnectionProvider, context); } public ISchemaProvider CreateSchemaProvider (IConnectionPool connectionPool) { return new SqlServerSchemaProvider (connectionPool); } public DatabaseConnectionSettings GetDefaultConnectionSettings () { DatabaseConnectionSettings settings = new DatabaseConnectionSettings (); settings.ProviderIdentifier = Identifier; settings.Server = "localhost"; settings.Port = 1433; settings.Username = "sa"; settings.MaxPoolSize = 5; settings.CanUseIntegratedSecurity = true; int p = (int) Environment.OSVersion.Platform; if ((p == 4) || (p == 6) || (p == 128)) settings.UseIntegratedSecurity = false; else settings.UseIntegratedSecurity = true; return settings; } #region IDbLinq implementation public bool Generate (DatabaseConnectionSettings connection, string outputType, string outputFile, string language, string style, string defaultNamespace, string entityBase, string entityAttr, string membersAttr, string generateTypes, string culture, bool generateSchema, bool generateTimestamp, bool overrideEqualAndHash, bool extractProcedures, bool pluralize) { return SqlMetalServices.Generate (Provider, connection, outputType, outputFile, language, style, defaultNamespace, entityBase, entityAttr, membersAttr, generateTypes, culture, generateSchema, generateTimestamp, overrideEqualAndHash, extractProcedures, pluralize); } public bool Generate (DatabaseConnectionSettings connection, string outputType, string outputFile, string defaultNamespace, string entityBase, string entityAttr, string membersAttr, string generateTypes, string culture, bool generateSchema, bool generateTimestamp, bool overrideEqualAndHash, bool extractProcedures, bool pluralize) { return SqlMetalServices.Generate (Provider, connection, outputType, outputFile, defaultNamespace, entityBase, entityAttr, membersAttr, generateTypes, culture, generateSchema, generateTimestamp, overrideEqualAndHash, extractProcedures, pluralize); } public string Provider { get { return "Sqlserver"; } } public bool HasProcedures { get { return true; } } #endregion } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/SqlServerGuiProvider.cs0000644000175000017500000001017111266446160031467 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; using System.Data; using System.Collections.Generic; using MonoDevelop.Database.Designer; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Sql.SqlServer { public class SqlServerGuiProvider : IGuiProvider { public bool ShowCreateDatabaseDialog (IDbFactory factory) { SqlServerCreateDatabaseDialog dialog = new SqlServerCreateDatabaseDialog (factory); int resp; do { resp = dialog.Run (); } while (resp != (int)ResponseType.Cancel && resp != (int)ResponseType.Ok && resp != (int)ResponseType.DeleteEvent); dialog.Destroy (); if (resp == (int)ResponseType.Ok) return true; else return false; } public bool ShowAddConnectionDialog (IDbFactory factory) { DatabaseConnectionSettingsDialog dlg = new DatabaseConnectionSettingsDialog (factory); return RunDialog (dlg); } public bool ShowEditConnectionDialog (IDbFactory factory, DatabaseConnectionSettings settings, out DatabaseConnectionSettings newSettings) { DatabaseConnectionSettingsDialog dlg = new DatabaseConnectionSettingsDialog (factory, settings); bool result = RunDialog (dlg); if (result) newSettings = dlg.ConnectionSettings; else newSettings = null; return result; } public bool ShowTableEditorDialog (IEditSchemaProvider schemaProvider, TableSchema table, bool create) { TableEditorSettings settings = new TableEditorSettings (); TableEditorDialog dlg = new TableEditorDialog (schemaProvider, create, settings); dlg.Initialize (table); return RunDialog (dlg); } public bool ShowViewEditorDialog (IEditSchemaProvider schemaProvider, ViewSchema view, bool create) { ViewEditorSettings settings = new ViewEditorSettings (); ViewEditorDialog dlg = new ViewEditorDialog (schemaProvider, create, settings); dlg.Initialize (view); return RunDialog (dlg); } public bool ShowProcedureEditorDialog (IEditSchemaProvider schemaProvider, ProcedureSchema procedure, bool create) { ProcedureEditorSettings settings = new ProcedureEditorSettings (); ProcedureEditorDialog dlg = new ProcedureEditorDialog (schemaProvider, create, settings); dlg.Initialize (procedure); return RunDialog (dlg); } public bool ShowUserEditorDialog (IEditSchemaProvider schemaProvider, UserSchema user, bool create) { return false; //TODO: implement ShowUserEditorDialog } private bool RunDialog (Dialog dlg) { bool result = false; // If the Preview Dialog is canceled, don't execute and don't close the Editor Dialog. try { int resp; do { resp = dlg.Run (); } while (resp != (int)ResponseType.Cancel && resp != (int)ResponseType.Ok && resp != (int)ResponseType.DeleteEvent); if (resp == (int)ResponseType.Ok) result = true; else result = false; } finally { dlg.Destroy (); } return result; } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/gtk-gui/0000755000175000017500000000000011266446160026401 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/gtk-gui/generated.cs0000644000175000017500000000354111266446160030671 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace Stetic { internal class Gui { private static bool initialized; static internal void Initialize (Gtk.Widget iconRenderer) { if ((Stetic.Gui.initialized == false)) { Stetic.Gui.initialized = true; } } } internal class BinContainer { private Gtk.Widget child; private Gtk.UIManager uimanager; public static BinContainer Attach (Gtk.Bin bin) { BinContainer bc = new BinContainer (); bin.SizeRequested += new Gtk.SizeRequestedHandler (bc.OnSizeRequested); bin.SizeAllocated += new Gtk.SizeAllocatedHandler (bc.OnSizeAllocated); bin.Added += new Gtk.AddedHandler (bc.OnAdded); return bc; } private void OnSizeRequested (object sender, Gtk.SizeRequestedArgs args) { if ((this.child != null)) { args.Requisition = this.child.SizeRequest (); } } private void OnSizeAllocated (object sender, Gtk.SizeAllocatedArgs args) { if ((this.child != null)) { this.child.Allocation = args.Allocation; } } private void OnAdded (object sender, Gtk.AddedArgs args) { this.child = args.Widget; } public void SetUiManager (Gtk.UIManager uim) { this.uimanager = uim; this.child.Realized += new System.EventHandler (this.OnRealized); } private void OnRealized (object sender, System.EventArgs args) { if ((this.uimanager != null)) { Gtk.Widget w; w = this.child.Toplevel; if (((w != null) && typeof(Gtk.Window).IsInstanceOfType (w))) { ((Gtk.Window)(w)).AddAccelGroup (this.uimanager.AccelGroup); this.uimanager = null; } } } } internal class ActionGroups { public static Gtk.ActionGroup GetActionGroup (System.Type type) { return Stetic.ActionGroups.GetActionGroup (type.FullName); } public static Gtk.ActionGroup GetActionGroup (string name) { return null; } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/gtk-gui/objects.xml0000644000175000017500000000074711266446160030564 0ustar directhexdirecthex monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/gtk-gui/gui.stetic0000644000175000017500000004363211266446160030412 0ustar directhexdirecthex .. 2.12 6 2 6 6 6 True 1 2 1 2 True Fill Fill False True False False True False True True 2 3 1 2 True Fill Fill False True False False True False True True 1 2 False Fill True True False False True False 6 True 2147483647 10 1 1 True 0 False True KB MB GB TB 1 1 True False False 3 4 1 2 True Fill Fill False True False False True False 6 True 2147483647 10 1 1 True 0 False True KB MB GB TB UNLIMITED 1 1 True False False 4 5 1 2 True Fill Fill False True False False True False 6 True 2147483647 10 1 1 True 0 False True KB MB GB TB % 1 1 True False False 5 6 1 2 True Fill Fill False True False False True False 0 Name True Fill Fill False True False False True False 0 Collation 1 2 True Fill Fill False True False False True False 0 File Name 2 3 True Fill Fill False True False False True False 0 Size 3 4 True Fill Fill False True False False True False 0 Max Size 4 5 True Fill Fill False True False False True False 0 File Growth 5 6 True Fill Fill False True False False True False ././@LongLink0000000000000000000000000000021100000000000011557 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerColumnEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlS0000644000175000017500000000103411266446160033673 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Sql.SqlServer { public partial class SqlServerColumnEditorWidget { protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Sql.SqlServer.SqlServerColumnEditorWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Sql.SqlServer.SqlServerColumnEditorWidget"; if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); } } } ././@LongLink0000000000000000000000000000021300000000000011561 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/gtk-gui/MonoDevelop.Database.Sql.SqlS0000644000175000017500000002757011266446160033710 0ustar directhexdirecthex // This file has been generated by the GUI designer. Do not modify. namespace MonoDevelop.Database.Sql.SqlServer { public partial class SqlServerCreateDatabaseWidget { private global::Gtk.Table table; private global::Gtk.ComboBoxEntry comboCollations; private global::Gtk.Entry entryFilename; private global::Gtk.Entry entryName; private global::Gtk.HBox hbox1; private global::Gtk.SpinButton spinSize; private global::Gtk.ComboBox comboSize; private global::Gtk.HBox hbox2; private global::Gtk.SpinButton spinMaxSize; private global::Gtk.ComboBox comboMaxSize; private global::Gtk.HBox hbox3; private global::Gtk.SpinButton spinFilegrowth; private global::Gtk.ComboBox comboFilegrowth; private global::Gtk.Label label1; private global::Gtk.Label label3; private global::Gtk.Label label4; private global::Gtk.Label label5; private global::Gtk.Label label6; private global::Gtk.Label label7; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget global::Stetic.BinContainer.Attach (this); this.Name = "MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget"; // Container child MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.Gtk.Container+ContainerChild this.table = new global::Gtk.Table (((uint)(6)), ((uint)(2)), false); this.table.Name = "table"; this.table.RowSpacing = ((uint)(6)); this.table.ColumnSpacing = ((uint)(6)); this.table.BorderWidth = ((uint)(6)); // Container child table.Gtk.Table+TableChild this.comboCollations = global::Gtk.ComboBoxEntry.NewText (); this.comboCollations.Name = "comboCollations"; this.table.Add (this.comboCollations); global::Gtk.Table.TableChild w1 = ((global::Gtk.Table.TableChild)(this.table[this.comboCollations])); w1.TopAttach = ((uint)(1)); w1.BottomAttach = ((uint)(2)); w1.LeftAttach = ((uint)(1)); w1.RightAttach = ((uint)(2)); w1.XOptions = ((global::Gtk.AttachOptions)(4)); w1.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.entryFilename = new global::Gtk.Entry (); this.entryFilename.CanFocus = true; this.entryFilename.Name = "entryFilename"; this.entryFilename.IsEditable = true; this.entryFilename.InvisibleChar = '●'; this.table.Add (this.entryFilename); global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table[this.entryFilename])); w2.TopAttach = ((uint)(2)); w2.BottomAttach = ((uint)(3)); w2.LeftAttach = ((uint)(1)); w2.RightAttach = ((uint)(2)); w2.XOptions = ((global::Gtk.AttachOptions)(4)); w2.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.entryName = new global::Gtk.Entry (); this.entryName.CanFocus = true; this.entryName.Name = "entryName"; this.entryName.IsEditable = true; this.entryName.InvisibleChar = '●'; this.table.Add (this.entryName); global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table[this.entryName])); w3.LeftAttach = ((uint)(1)); w3.RightAttach = ((uint)(2)); w3.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.hbox1 = new global::Gtk.HBox (); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.spinSize = new global::Gtk.SpinButton (0, 2147483647, 1); this.spinSize.CanFocus = true; this.spinSize.Name = "spinSize"; this.spinSize.Adjustment.PageIncrement = 10; this.spinSize.ClimbRate = 1; this.spinSize.Numeric = true; this.hbox1.Add (this.spinSize); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.spinSize])); w4.Position = 0; // Container child hbox1.Gtk.Box+BoxChild this.comboSize = global::Gtk.ComboBox.NewText (); this.comboSize.AppendText (global::MonoDevelop.Database.AddinCatalog.GetString ("KB")); this.comboSize.AppendText (global::MonoDevelop.Database.AddinCatalog.GetString ("MB")); this.comboSize.AppendText (global::MonoDevelop.Database.AddinCatalog.GetString ("GB")); this.comboSize.AppendText (global::MonoDevelop.Database.AddinCatalog.GetString ("TB")); this.comboSize.Name = "comboSize"; this.comboSize.Active = 1; this.hbox1.Add (this.comboSize); global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.hbox1[this.comboSize])); w5.Position = 1; w5.Expand = false; w5.Fill = false; this.table.Add (this.hbox1); global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table[this.hbox1])); w6.TopAttach = ((uint)(3)); w6.BottomAttach = ((uint)(4)); w6.LeftAttach = ((uint)(1)); w6.RightAttach = ((uint)(2)); w6.XOptions = ((global::Gtk.AttachOptions)(4)); w6.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.hbox2 = new global::Gtk.HBox (); this.hbox2.Name = "hbox2"; this.hbox2.Spacing = 6; // Container child hbox2.Gtk.Box+BoxChild this.spinMaxSize = new global::Gtk.SpinButton (0, 2147483647, 1); this.spinMaxSize.CanFocus = true; this.spinMaxSize.Name = "spinMaxSize"; this.spinMaxSize.Adjustment.PageIncrement = 10; this.spinMaxSize.ClimbRate = 1; this.spinMaxSize.Numeric = true; this.hbox2.Add (this.spinMaxSize); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.spinMaxSize])); w7.Position = 0; // Container child hbox2.Gtk.Box+BoxChild this.comboMaxSize = global::Gtk.ComboBox.NewText (); this.comboMaxSize.AppendText (global::MonoDevelop.Database.AddinCatalog.GetString ("KB")); this.comboMaxSize.AppendText (global::MonoDevelop.Database.AddinCatalog.GetString ("MB")); this.comboMaxSize.AppendText (global::MonoDevelop.Database.AddinCatalog.GetString ("GB")); this.comboMaxSize.AppendText (global::MonoDevelop.Database.AddinCatalog.GetString ("TB")); this.comboMaxSize.AppendText (global::MonoDevelop.Database.AddinCatalog.GetString ("UNLIMITED")); this.comboMaxSize.Name = "comboMaxSize"; this.comboMaxSize.Active = 1; this.hbox2.Add (this.comboMaxSize); global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.hbox2[this.comboMaxSize])); w8.Position = 1; w8.Expand = false; w8.Fill = false; this.table.Add (this.hbox2); global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table[this.hbox2])); w9.TopAttach = ((uint)(4)); w9.BottomAttach = ((uint)(5)); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.XOptions = ((global::Gtk.AttachOptions)(4)); w9.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.hbox3 = new global::Gtk.HBox (); this.hbox3.Name = "hbox3"; this.hbox3.Spacing = 6; // Container child hbox3.Gtk.Box+BoxChild this.spinFilegrowth = new global::Gtk.SpinButton (0, 2147483647, 1); this.spinFilegrowth.CanFocus = true; this.spinFilegrowth.Name = "spinFilegrowth"; this.spinFilegrowth.Adjustment.PageIncrement = 10; this.spinFilegrowth.ClimbRate = 1; this.spinFilegrowth.Numeric = true; this.hbox3.Add (this.spinFilegrowth); global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.spinFilegrowth])); w10.Position = 0; // Container child hbox3.Gtk.Box+BoxChild this.comboFilegrowth = global::Gtk.ComboBox.NewText (); this.comboFilegrowth.AppendText (global::MonoDevelop.Database.AddinCatalog.GetString ("KB")); this.comboFilegrowth.AppendText (global::MonoDevelop.Database.AddinCatalog.GetString ("MB")); this.comboFilegrowth.AppendText (global::MonoDevelop.Database.AddinCatalog.GetString ("GB")); this.comboFilegrowth.AppendText (global::MonoDevelop.Database.AddinCatalog.GetString ("TB")); this.comboFilegrowth.AppendText (global::MonoDevelop.Database.AddinCatalog.GetString ("%")); this.comboFilegrowth.Name = "comboFilegrowth"; this.comboFilegrowth.Active = 1; this.hbox3.Add (this.comboFilegrowth); global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox3[this.comboFilegrowth])); w11.Position = 1; w11.Expand = false; w11.Fill = false; this.table.Add (this.hbox3); global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.table[this.hbox3])); w12.TopAttach = ((uint)(5)); w12.BottomAttach = ((uint)(6)); w12.LeftAttach = ((uint)(1)); w12.RightAttach = ((uint)(2)); w12.XOptions = ((global::Gtk.AttachOptions)(4)); w12.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.label1 = new global::Gtk.Label (); this.label1.Name = "label1"; this.label1.Xalign = 0f; this.label1.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Name"); this.table.Add (this.label1); global::Gtk.Table.TableChild w13 = ((global::Gtk.Table.TableChild)(this.table[this.label1])); w13.XOptions = ((global::Gtk.AttachOptions)(4)); w13.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.label3 = new global::Gtk.Label (); this.label3.Name = "label3"; this.label3.Xalign = 0f; this.label3.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Collation"); this.table.Add (this.label3); global::Gtk.Table.TableChild w14 = ((global::Gtk.Table.TableChild)(this.table[this.label3])); w14.TopAttach = ((uint)(1)); w14.BottomAttach = ((uint)(2)); w14.XOptions = ((global::Gtk.AttachOptions)(4)); w14.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.label4 = new global::Gtk.Label (); this.label4.Name = "label4"; this.label4.Xalign = 0f; this.label4.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("File Name"); this.table.Add (this.label4); global::Gtk.Table.TableChild w15 = ((global::Gtk.Table.TableChild)(this.table[this.label4])); w15.TopAttach = ((uint)(2)); w15.BottomAttach = ((uint)(3)); w15.XOptions = ((global::Gtk.AttachOptions)(4)); w15.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.label5 = new global::Gtk.Label (); this.label5.Name = "label5"; this.label5.Xalign = 0f; this.label5.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Size"); this.table.Add (this.label5); global::Gtk.Table.TableChild w16 = ((global::Gtk.Table.TableChild)(this.table[this.label5])); w16.TopAttach = ((uint)(3)); w16.BottomAttach = ((uint)(4)); w16.XOptions = ((global::Gtk.AttachOptions)(4)); w16.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.label6 = new global::Gtk.Label (); this.label6.Name = "label6"; this.label6.Xalign = 0f; this.label6.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("Max Size"); this.table.Add (this.label6); global::Gtk.Table.TableChild w17 = ((global::Gtk.Table.TableChild)(this.table[this.label6])); w17.TopAttach = ((uint)(4)); w17.BottomAttach = ((uint)(5)); w17.XOptions = ((global::Gtk.AttachOptions)(4)); w17.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child table.Gtk.Table+TableChild this.label7 = new global::Gtk.Label (); this.label7.Name = "label7"; this.label7.Xalign = 0f; this.label7.LabelProp = global::MonoDevelop.Database.AddinCatalog.GetString ("File Growth"); this.table.Add (this.label7); global::Gtk.Table.TableChild w18 = ((global::Gtk.Table.TableChild)(this.table[this.label7])); w18.TopAttach = ((uint)(5)); w18.BottomAttach = ((uint)(6)); w18.XOptions = ((global::Gtk.AttachOptions)(4)); w18.YOptions = ((global::Gtk.AttachOptions)(4)); this.Add (this.table); if ((this.Child != null)) { this.Child.ShowAll (); } this.Show (); this.comboFilegrowth.Changed += new global::System.EventHandler (this.OnComboFilegrowthChanged); this.comboMaxSize.Changed += new global::System.EventHandler (this.OnComboMaxSizeChanged); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Makefile.am0000644000175000017500000000334211266446160027070 0ustar directhexdirecthexADDIN_BUILD = $(top_builddir)/build ASSEMBLY = $(ADDIN_BUILD)/MonoDevelop.Database.Sql.SqlServer.dll REFS = \ $(GTK_SHARP_LIBS) \ $(MONODEVELOP_CORE_ADDINS_LIBS) \ $(MONODEVELOP_LIBS) \ -r:$(top_builddir)/build/MonoDevelop.Database.Components.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Designer.dll \ -r:$(top_builddir)/build/MonoDevelop.Database.Sql.dll \ -r:Mono.Posix \ -r:System \ -r:System.Core \ -r:System.Data \ -r:System.Xml \ -r:System.Xml.Linq FILES = \ AssemblyInfo.cs \ Collections/SqlServerCollationSchemaCollection.cs \ Dialogs/SqlServerCreateDatabaseDialog.cs \ Dialogs/SqlServerTableEditorDialog.cs \ gtk-gui/generated.cs \ gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerColumnEditorWidget.cs \ gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs \ Schema/dummy.cs \ Schema/SqlServerCollationSchema.cs \ Schema/SqlServerDatabaseSchema.cs \ SqlServerConnectionProvider.cs \ SqlServerDbFactory.cs \ SqlServerDialect.cs \ SqlServerGuiProvider.cs \ SqlServerPooledDbConnection.cs \ SqlServerSchemaProvider.cs \ Widgets/SqlServerColumnEditorWidget.cs \ Widgets/SqlServerCreateDatabaseWidget.cs RES = \ gtk-gui/gui.stetic \ gtk-gui/objects.xml \ MonoDevelop.Database.Sql.SqlServer.addin.xml \ SqlServerSyntaxMode.xml \ SysObjects.xml if ENABLE_SQLSERVER all: $(ASSEMBLY) else all: endif $(ASSEMBLY): $(build_sources) $(build_resources) mkdir -p $(ADDIN_BUILD) $(CSC) $(CSC_FLAGS) $(REFS) $(build_resources:%=/resource:%) $(build_sources) -out:$@ -target:library assemblydir = $(MD_ADDIN_DIR)/MonoDevelop.Database assembly_DATA = $(ASSEMBLY) $(ASSEMBLY).mdb CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb EXTRA_DIST = $(FILES) $(RES) include $(top_srcdir)/Makefile.include monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/ChangeLog0000644000175000017500000003237111266446160026612 0ustar directhexdirecthex2010-03-22 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.SqlServer.addin.xml: Bumped MD version. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.csproj: Flush. 2010-03-17 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.csproj: Remove mono.addins.targets import. 2010-03-17 Lluis Sanchez Gual * SqlServerDbFactory.cs: * Dialogs/SqlServerCreateDatabaseDialog.cs: * MonoDevelop.Database.Sql.SqlServer.csproj: * MonoDevelop.Database.Sql.SqlServer.addin.xml: Merged MD.Projects into MD.Core, and MD.Projects.Gui, MD.Core.Gui and MD.Components into MD.Ide. 2010-02-18 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.csproj: Update. 2010-02-15 Luciano N. Callero * SqlServerDbFactory.cs: * MonoDevelop.Database.Sql.SqlServer.csproj: Implement IDbLinq interface for SqlMetal services. Flush changes. 2010-02-12 Lluis Sanchez Gual * gtk-gui/gui.stetic: * gtk-gui/generated.cs: * gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerColumnEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs: Flush. * MonoDevelop.Database.Sql.SqlServer.csproj: Fix gettext class. 2010-02-03 Luciano N. Callero * Collections: * Dialogs/SqlServerCreateDatabaseDialog.cs: * Collections/SqlServerCollationSchemaCollection.cs: Sql Server Provider Collections. * SqlServerConnectionProvider.cs: Remove SCWL. * SqlServerSchemaProvider.cs: Implement Drop Database. * SysObjects.xml: XML Sys Objects. * Schema/SqlServerCollationSchema.cs: Collation Schema. * Schema/SqlServerDatabaseSchema.cs: Database Schema. * Widgets/SqlServerCreateDatabaseWidget.cs: Create Database changes. * gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs: Create Database Widget implementation. * Makefile.am: * gtk-gui/gui.stetic: * gtk-gui/objects.xml: * MonoDevelop.Database.Sql.SqlServer.csproj: Flush Changes. * SqlServerGuiProvider.cs: Change create database dialog call. 2009-11-12 Lluis Sanchez Gual * Makefile.am: * MonoDevelop.Database.Sql.SqlServer.csproj: Remove unused file. * gtk-gui/gui.stetic: Flush. 2009-11-11 Luciano N. Callero * Makefile.am: * SqlServerSyntaxMode.xml: * SqlServerSchemaProvider.cs: * MonoDevelop.Database.Sql.SqlServer.addin.xml: Implement Syntax mode by provider. * MonoDevelop.Database.Sql.SqlServer.csproj: Target runtime from 2.0 to 3.5. 2009-10-30 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.SqlServer.addin.xml: Bump MD version. 2009-10-22 Luciano N. Callero * SqlServerConnectionProvider.cs: Implement Use Default port (to use the default port without specifing it). Implement Integrated Security Connection. * SqlServerDbFactory.cs: Use Integrated security by default when running non Linux machine. * SqlServerGuiProvider.cs: Common Database API update. 2009-10-18 Michael Hutchinson * MonoDevelop.Database.Sql.SqlServer.csproj: Fix the build & flush format changes. 2009-10-07 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.SqlServer.addin.xml: Bump MD version. 2009-08-26 Lluis Sanchez Gual * gtk-gui/gui.stetic: * MonoDevelop.Database.Sql.SqlServer.csproj: We now depend on gtk# 2.12.8, Mono 2.4, and Mono.Addins 0.4. 2009-07-31 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.csproj: Disabled 'require specific version' flags. 2009-05-27 Luciano N. Callero * MonoDevelop.Database.Sql.SqlServer.csproj: Include ChangeLog into the project. * SqlServerSchemaProvider: Replace string + string with string.concat/string.format for performance. Format sql tu use mult-line string and to make sql readable. Use of using statement where is supported. Code clean. Fix alter procedure bugs. Detect system and user tables differences. Implemente Create Procedure. 2009-04-23 Luciano N. Callero * SqlServerSchemaProvider.cs: Implement a custom GetTableTriggers fix a create table bug. 2009-04-21 Luciano N. Callero * SqlServerPooledDbConnection.cs: Added a way to create a trigger after a table. * SqlServerSchemaProvider.cs: Fix creation table to create a correct sql. Fix Constraint SQL. * SqlServerGuiProvider.cs: Fix Preview Dialog. When cancel the dialog, don't create the table and don't close the table. 2009-04-17 Michael Hutchinson * Makefile.am: Fix builddir paths. 2009-04-15 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.SqlServer.addin.xml: Bump MD version. 2009-02-20 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.csproj: Updated references. 2009/02/06 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.mdp: * MonoDevelop.Database.Sql.SqlServer.csproj: Migrated to MSBuild file format. 2009/02/03 Lluis Sanchez Gual * AssemblyInfo.cs: * MonoDevelop.Database.Sql.SqlServer.addin.xml: Bump MD version. 2009/02/03 Lluis Sanchez Gual * gtk-gui/generated.cs: * gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerColumnEditorWidget.cs: * gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs: Flush. 2009-01-26 Michael Hutchinson * MonoDevelop.Database.Sql.SqlServer.mdp: Flush project format changes. 2008-12-02 Michael Hutchinson * Makefile.am: * AssemblyInfo.cs: * MonoDevelop.Database.Sql.SqlServer.mdp: Add AssemblyInfo.cs files that are autogenerated from the addin manifests. 2008-11-06 Michael Hutchinson * Makefile.am: Fix build dependencies. 2008-11-05 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.addin.xml: Bump MD version. 2008-09-17 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.mdp: Updated projects. 2008-09-17 Lluis Sanchez Gual * gtk-gui/objects.xml: Update. 2008-08-18 Lluis Sanchez Gual * Widgets/SqlServerColumnEditorWidget.cs, Widgets/SqlServerCreateDatabaseWidget.cs, gtk-gui/objects.xml: Use new model for describing custom stetic widgets. 2008-08-18 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.mdp: Fix reference to Mono.TextEditor. The incorrect add-in version number causes problems in the makefile synchronization. 2008-06-04 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.addin.xml: Bump MD version. 2008-05-21 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.mdp, Makefile.am: Fix projects. 2008-05-21 Lluis Sanchez Gual 2008-01-30 Ben Motmans * SqlServerGuiProvider.cs: added parameter to the ShowCreateDatabaseDialog method 2008-01-29 Ben Motmans * SqlServerSchemaProvider.cs: Add missing capability 2008-01-29 Ben Motmans * MonoDevelop.Database.Sql.SqlServer.mdp: depend on Gtk# 2.8 instead of 2.12 * gtk-gui, gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerColumnEditorWidget.cs, gtk-gui/generated.cs, gtk-gui/MonoDevelop.Database.Sql.SqlServer.SqlServerCreateDatabaseWidget.cs, gtk-gui/objects.xml, gtk-gui/gui.stetic: auto generated code 2008-01-28 Ben Motmans * SqlServerDialect.cs, SqlServerConnectionProvider.cs, SqlServerSchemaProvider.cs, SqlServerDbFactory.cs, SqlServerGuiProvider.cs: small API related changes * SqlServerPooledDbConnection.cs: database version support * Widgets/SqlServerColumnEditorWidget.cs, Widgets/SqlServerCreateDatabaseWidget.cs: placeholders for future implementations 2008-01-28 Ben Motmans * MonoDevelop.Database.Sql.SqlServer.addin.xml: removed obsolete stuff from the old capabilities system 2008-01-25 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.addin.xml: Update MD version. 2008-01-22 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.addin.xml: Updated add-in category and description. 2007-12-14 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.mdp: Updated project file. The order of extended properties won't change anymore. 2007-12-12 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.addin.xml: Bump add-in versions. 2007-12-04 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.mdp: Updated project files. 2007-12-04 Lluis Sanchez Gual * Makefile.am, MonoDevelop.Database.Sql.SqlServer.addin.xml, MonoDevelop.Database.Sql.SqlServer.mdp: Directory reorganization. 2007-11-09 Michael Hutchinson * SqlServerSchemaProvider.cs: Track LoggingService API. Replace some "LogError" calls with "LogDebug" calls. 2007-10-29 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.addin.xml: Bump MD version. 2007-10-23 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.mdp: Project file names updated by change in MD path functions. 2007-10-16 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.mdp: Fix required GTK# version. 2007-09-26 Michael Hutchinson * Makefile.am: Don't deploy .addin.xml file. * MonoDevelop.Database.Sql.SqlServer.mdp: Don't unnecessarily local-copy project references. Don't sync EXTRA_DIST with deploy files. Add Makefile.am to file list. 2007-09-21 Lluis Sanchez Gual * MonoDevelop.Database.Sql.SqlServer.addin.xml: Bump MD version. 2007-09-19 Ben Motmans * SqlServerConnectionProvider.cs: commented the NetworkLibrary property in the connection string * SqlServerSchemaProvider.cs: catch errors and several bugfixes * MonoDevelop.Database.Sql.SqlServer.addin.xml: SqlServer doesn't support procedure parameters yet 2007-09-16 Ben Motmans * Makefile.am: link to the correct Mono.Addins dll 2007-09-07 Ben Motmans * SqlServerSchemaProvider.cs, SqlServerDbFactory.cs, MonoDevelop.Database.Sql.SqlServer.addin.xml: improved capabilities system 2007-08-28 Ben Motmans * Makefile.am, MonoDevelop.Database.Sql.SqlServer.mdp: use project references instead of assembly references 2007-08-28 Ben Motmans * Makefile.am: updated makefile 2007-08-03 Ben Motmans * SqlServerConnectionProvider.cs: added support for an error message * SqlServerSchemaProvider.cs: added MetaData information 2007-08-01 Ben Motmans * SqlServerSchemaProvider.cs: Catch exceptions and notify the user 2007-07-31 Ben Motmans * SqlServerDbFactory.cs, SqlServerGuiProvider.cs: Added a GuiProvider * SqlServerSchemaProvider.cs: small api changes 2007-07-25 Ben Motmans * SqlServerPooledDbConnection.cs: expose the GetSchema method of the internal connection * SqlServerDbFactory.cs, SqlServerSchemaProvider.cs: improved metadata support 2007-07-18 Ben Motmans * SqlServerSchemaProvider.cs: SupportsSchemaOperation implementation, use of strongly typed collections, Drop* and Rename* implementations 2007-07-17 Ben Motmans * Makefile.am: initial makefile * SqlServerDbFactory.cs: implemented methods required for the connection settings dialog 2007-07-15 Ben Motmans * SqlServerDialect.cs: dialect implementation with keyword detection * SqlServerDbFactory.cs: use SqlServerDialect instead of the obsolete Sql99Dialect 2007-07-14 Ben Motmans * SqlServerConnectionProvider.cs, SqlServerDbFactory.cs, SqlServerSchemaProvider.cs: small changes to reflect API changes * SqlServerPooledDbConnection.cs: implementation of ConnectionPool aware connection 2007-07-10 Ben Motmans * SqlServerConnectionProvider.cs: set IsConnectionError property 2007-07-05 Ben Motmans * SqlServerConnectionProvider.cs: ExecuteQueryAsDataSet and ExecuteQueryAsDataTable implementation * SqlServerDbFactory.cs: specified the ISqlDialect and added default connection settings * Renamed MsSql* to SqlServer* 2007-07-02 Ben Motmans * MsSqlConnectionProvider.cs: * MsSqlSchemaProvider.cs: Fixed several compilation issues Added Close () statements when the IDataReader is no longer needed 2007-07-01 Ben Motmans * MsSqlSchemaProvider.cs: * MsSqlDbFactory.cs: * MsSqlConnectionProvider.cs: Imported original code and splitted in 3 classes use IsDbNull instead of try-catch fixed sql bug in GetTableColumns method implemented GetDataType, GetDatabases, GetConstraints method updated sql statements to allow lazy loading ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/MonoDevelop.Database.Sql.SqlServer.addin.xmlmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/MonoDevelop.Database.Sql.SqlServer.ad0000644000175000017500000000210211266446160033750 0ustar directhexdirecthex monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Collections/0000755000175000017500000000000011266446160027310 5ustar directhexdirecthex././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Collections/SqlServerCollationSchemaCollection.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Collections/SqlServerCollationSchemaC0000644000175000017500000000316511266446160034257 0ustar directhexdirecthex// // SqlServerCollationSchemaCollection.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; using System.Collections; using System.Collections.Generic; namespace MonoDevelop.Database.Sql.SqlServer { public sealed class SqlServerCollationSchemaCollection : SortedCollectionBase { public SqlServerCollationSchemaCollection () : base (true) { } public SqlServerCollationSchemaCollection (SqlServerCollationSchemaCollection collection) : base (collection, true) { } } }monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Widgets/0000755000175000017500000000000011266446160026440 5ustar directhexdirecthex././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Widgets/SqlServerCreateDatabaseWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Widgets/SqlServerCreateDatabaseWidget0000644000175000017500000000666711266446160034245 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using Gtk; using System; namespace MonoDevelop.Database.Sql.SqlServer { [System.ComponentModel.Category("MonoDevelop.Database.Sql.SqlServer")] [System.ComponentModel.ToolboxItem(true)] public partial class SqlServerCreateDatabaseWidget : Gtk.Bin { ListStore storeCollations = new ListStore (typeof(string), typeof(SqlServerCollationSchema)); public SqlServerCreateDatabaseWidget() { this.Build(); comboCollations.Model = storeCollations; } public void Initialize (SqlServerSchemaProvider provider) { SqlServerCollationSchemaCollection collations = provider.GetCollations (); Console.WriteLine (collations.Count); foreach (SqlServerCollationSchema coll in collations) storeCollations.AppendValues (string.Format ("{0} - {1}", coll.Name, coll.Description), coll); } protected virtual void OnComboMaxSizeChanged (object sender, System.EventArgs e) { if (((Gtk.ComboBox)sender).ActiveText == AddinCatalog.GetString ("UNLIMITED")) { spinMaxSize.Sensitive = false; spinMaxSize.Value = 0; } else spinMaxSize.Sensitive = true; } public void SetDatabaseOptions (SqlServerDatabaseSchema schema) { TreeIter iter; if (comboCollations.GetActiveIter (out iter)) schema.Collation = (SqlServerCollationSchema)storeCollations.GetValue (iter, 1); SizeType size; size = (SizeType)Enum.Parse (typeof(SizeType), comboSize.ActiveText); schema.Size = new FileSize (Convert.ToInt32(spinSize.Value), size); size = (SizeType)Enum.Parse (typeof(SizeType), comboMaxSize.ActiveText); schema.MaxSize = new FileSize (Convert.ToInt32(spinMaxSize.Value), size); if (comboFilegrowth.ActiveText == "%") size = SizeType.PERCENTAGE; else size = (SizeType)Enum.Parse (typeof(SizeType), comboFilegrowth.ActiveText); schema.FileGrowth = new FileSize (Convert.ToInt32(spinFilegrowth.Value), size); schema.LogicalName = entryName.Text; schema.FileName = entryFilename.Text; } protected virtual void OnComboFilegrowthChanged (object sender, System.EventArgs e) { if (((Gtk.ComboBox)sender).ActiveText == "%") { spinFilegrowth.Adjustment = new Adjustment (0, 0, 100, 1, 1, 1); spinFilegrowth.GrabFocus (); } else spinFilegrowth.Adjustment = new Adjustment (0, 0, 2147483647, 1, 1, 1); } } } ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Widgets/SqlServerColumnEditorWidget.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Widgets/SqlServerColumnEditorWidget.c0000644000175000017500000000047511266446160034231 0ustar directhexdirecthex using System; namespace MonoDevelop.Database.Sql.SqlServer { [System.ComponentModel.Category("MonoDevelop.Database.Sql.SqlServer")] [System.ComponentModel.ToolboxItem(true)] public partial class SqlServerColumnEditorWidget : Gtk.Bin { public SqlServerColumnEditorWidget() { this.Build(); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/SqlServerPooledDbConnection.cs0000644000175000017500000000730711266446160032747 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Data.SqlClient; using System.Collections.Generic; namespace MonoDevelop.Database.Sql.SqlServer { public class SqlServerPooledDbConnection : AbstractPooledDbConnection { public SqlServerPooledDbConnection (IConnectionPool connectionPool, IDbConnection connection) : base (connectionPool, connection) { } public override Version DatabaseVersion { get { SqlConnection connection = DbConnection as SqlConnection; try { //http://msdn2.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.serverversion.aspx //##.##.#### major.minor.build return new Version (connection.ServerVersion); } catch { return new Version (7, 0); } } } public override DataSet ExecuteSet (IDbCommand command) { if (command == null) throw new ArgumentException ("command"); DataSet set = new DataSet (); using (command) { using (SqlDataAdapter adapter = new SqlDataAdapter (command as SqlCommand)) { try { adapter.Fill (set); } catch (Exception e) { QueryService.RaiseException (e); } } } return set; } public override DataTable ExecuteTable (IDbCommand command) { if (command == null) throw new ArgumentException ("command"); DataTable table = new DataTable (); using (command) { using (SqlDataAdapter adapter = new SqlDataAdapter (command as SqlCommand)) { try { adapter.Fill (table); } catch (Exception e) { QueryService.RaiseException (e); } } } return table; } public override DataTable GetSchema (string collectionName, params string[] restrictionValues) { return (connection as SqlConnection).GetSchema (collectionName, restrictionValues); } public override int ExecuteNonQuery (string sql) { int ret = 0; if(sql.IndexOf (String.Concat(Environment.NewLine, "go", Environment.NewLine), StringComparison.OrdinalIgnoreCase) < 0) return base.ExecuteNonQuery (sql); else { // Divide the Sql In more than 1 command to avoid: ['CREATE TRIGGER' must be the first statement] // FIXME: This isn't in a transaction scope because Create table/trigger isn't // affected by START/COMMIT/ROLLBACK transaction. string[] sep = new string[] {string.Concat (Environment.NewLine, "GO", Environment.NewLine)}; string[] sqls = sql.Split (sep, StringSplitOptions.RemoveEmptyEntries); foreach (string s in sqls) ret = base.ExecuteNonQuery (s); } return ret; } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/SqlServerSchemaProvider.cs0000755000175000017500000011007311266446160032150 0ustar directhexdirecthex// // Authors: // Christian Hergert // Daniel Morgan // Sureshkumar T // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEC // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.IO; using System.Text; using System.Data; using System.Xml; using System.Linq; using System.Xml.Linq; using System.Reflection; using System.Data.SqlClient; using System.Collections.Generic; using MonoDevelop.Core; namespace MonoDevelop.Database.Sql.SqlServer { // see: // http://www.alberton.info/sql_server_meta_info.html + msdn public class SqlServerSchemaProvider : AbstractEditSchemaProvider { string[] system_procs; string[] system_tables; public SqlServerSchemaProvider (IConnectionPool connectionPool) : base (connectionPool) { AddSupportedSchemaActions (SchemaType.Database, SchemaActions.All); AddSupportedSchemaActions (SchemaType.Table, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.View, SchemaActions.All); AddSupportedSchemaActions (SchemaType.Procedure, SchemaActions.All); AddSupportedSchemaActions (SchemaType.TableColumn, SchemaActions.All); AddSupportedSchemaActions (SchemaType.ProcedureParameter, SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.Trigger, SchemaActions.All); AddSupportedSchemaActions (SchemaType.PrimaryKeyConstraint, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.ForeignKeyConstraint, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.CheckConstraint, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.UniqueConstraint, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); AddSupportedSchemaActions (SchemaType.Constraint, SchemaActions.Create | SchemaActions.Drop | SchemaActions.Rename | SchemaActions.Schema); // TODO: XDocument.Load(XmlTextReader) isn't working on Mono 2.4. Should be fixed in 2.6 /* using (System.IO.Stream stream = Assembly.GetExecutingAssembly ().GetManifestResourceStream ("SysObjects.xml")) { XmlTextReader reader = new XmlTextReader (stream); XDocument doc = XDocument.Load (reader); var sysSP = from item in doc.Elements("SysObjects").Descendants () where item.Attribute ("type") != null && item.Attribute("type").Value == "SP" select item; reader.Close (); } */ using (System.IO.Stream stream = Assembly.GetExecutingAssembly ().GetManifestResourceStream ("SysObjects.xml")) { XmlDocument doc = new XmlDocument (); doc.Load (stream); List sps = new List (); List tables = new List (); foreach (XmlNode node in doc.FirstChild.ChildNodes) if (node.Attributes["type"].Value == "SP") sps.Add (node.InnerText); else if (node.Attributes["type"].Value == "Table") tables.Add (node.InnerText); system_procs = sps.ToArray (); system_tables = tables.ToArray (); } } public override DatabaseSchemaCollection GetDatabases () { DatabaseSchemaCollection databases = new DatabaseSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { //we don't have to change it back afterwards, since the connectionpool will do this for us conn.DbConnection.ChangeDatabase ("master"); using (IDbCommand command = conn.CreateCommand ("select name from sysdatabases")) { try { using (command) using (IDataReader r = command.ExecuteReader()) { while (r.Read()) { DatabaseSchema db = new DatabaseSchema (this); db.Name = r.GetString (0); databases.Add (db); } r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return databases; } public virtual SqlServerCollationSchemaCollection GetCollations () { SqlServerCollationSchemaCollection collations = new SqlServerCollationSchemaCollection(); using (IPooledDbConnection conn = connectionPool.Request ()) { conn.DbConnection.ChangeDatabase ("master"); using (IDbCommand command = conn.CreateCommand ("SELECT * FROM ::fn_helpcollations()")) { try { using (IDataReader reader = command.ExecuteReader ()) { while (reader.Read ()) { SqlServerCollationSchema coll = new SqlServerCollationSchema (this); coll.Name = reader.GetString (0); coll.Description = reader.GetString (1); collations.Add (coll); } reader.Close (); } } catch (IOException) { //FIXME: Avoid an IOException AND ObjectDisposedException (https://bugzilla.novell.com/show_bug.cgi?id=556406) } catch (ObjectDisposedException) { } catch (Exception e) { QueryService.RaiseException (e); } finally { connectionPool.Release(conn); } } } return collations; } public override TableSchemaCollection GetTables () { TableSchemaCollection tables = new TableSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (@"SELECT su.name AS owner, so.name as table_name, so.id as table_id, so.crdate as created_date, so.xtype as table_type FROM dbo.sysobjects so, dbo.sysusers su WHERE xtype IN ('S','U') AND su.uid = so.uid ORDER BY 1, 2")) { try { using (command) { using (IDataReader r = command.ExecuteReader()) { while (r.Read()) { TableSchema table = new TableSchema (this); table.Name = r.GetString(1); if (r.GetString(4) == "S") table.IsSystemTable = true; else if (Array.Exists (system_tables, delegate (string s) {return s == table.Name; })) table.IsSystemTable = true; else table.IsSystemTable = false; table.OwnerName = r.GetString(0); tables.Add (table); } r.Close (); } } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } return tables; } public override ColumnSchemaCollection GetTableColumns (TableSchema table) { ColumnSchemaCollection columns = new ColumnSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (string.Format(@"SELECT su.name as owner, so.name as table_name, sc.name as column_name, st.name as date_type, sc.length as column_length, sc.xprec as data_precision, sc.xscale as data_scale, sc.isnullable, sc.colid as column_id FROM dbo.syscolumns sc, dbo.sysobjects so, dbo.systypes st, dbo.sysusers su WHERE sc.id = so.id AND so.xtype in ('U','S') AND so.name = '{0}' AND su.name = '{1}' AND sc.xusertype = st.xusertype AND su.uid = so.uid ORDER BY sc.colid", table.Name, table.OwnerName))) try { using (IDataReader r = command.ExecuteReader()) { while (r.Read()) { ColumnSchema column = new ColumnSchema (this, table); column.Name = r.GetString (2); column.DataTypeName = r.GetString (3); column.DefaultValue = String.Empty; column.Comment = String.Empty; column.OwnerName = table.OwnerName; column.SchemaName = table.SchemaName; column.IsNullable = r.GetValue (7).ToString () == "0" ? true : false; column.DataType.LengthRange.Default = r.GetInt16 (4); column.DataType.PrecisionRange.Default = r.IsDBNull (5) ? 0 : (int)r.GetByte (5); column.DataType.ScaleRange.Default = r.IsDBNull (6) ? 0 : (int)r.GetByte (6); column.Definition = String.Concat (column.Name, " ", column.DataTypeName, " ", column.DataType.LengthRange.Default > 0 ? "(" + column.DataType.LengthRange.Default + ")" : "", column.IsNullable ? " NULL" : " NOT NULL"); //TODO: append " DEFAULT ..." if column.Default.Length > 0 columns.Add (column); } r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } return columns; } public override TriggerSchemaCollection GetTableTriggers (TableSchema table) { if (table == null) throw new ArgumentNullException ("table"); TriggerSchemaCollection triggers = new TriggerSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { string sql = string.Format(@"SELECT Tables.Name TableName, Triggers.name TriggerName, Triggers.crdate TriggerCreatedDate, Comments.Text TriggerText FROM sysobjects Triggers INNER JOIN sysobjects Tables On Triggers.parent_obj = Tables.id INNER JOIN syscomments Comments On Triggers.id = Comments.id WHERE Triggers.xtype = 'TR' AND Tables.xtype = 'U' AND Tables.Name = '{0}' ORDER BY Tables.Name, Triggers.name", table.Name); using (IDbCommand command = conn.CreateCommand (sql)) { using (IDataReader r = command.ExecuteReader ()) { while (r.Read ()) { System.Text.RegularExpressions.Regex parseRegEx = new System.Text.RegularExpressions.Regex (string.Concat ( @"((CREATE\s*(Temp|Temporary)?\s*TRIGGER){1}\s?(\w+)\s?(IF NOT", @" EXISTS)?\s?(BEFORE|AFTER|INSTEAD OF){1}\s?(\w+)\s*ON(\s+\w*", @")\s*(FOR EACH ROW){1}\s*(BEGIN){1})\s+(\w|\W)*(END)")); TriggerSchema trigger = new TriggerSchema (this); trigger.TableName = table.Name; trigger.Name = r.GetString (r.GetOrdinal ("TriggerName")); sql = r.GetString (r.GetOrdinal ("TriggerText")); System.Text.RegularExpressions.MatchCollection matchs = parseRegEx.Matches (sql); if (matchs.Count > 0) { trigger.TriggerFireType = TriggerFireType.ForEachRow; switch (matchs[0].Groups[7].Value.ToLower ()) { case "insert": trigger.TriggerEvent = TriggerEvent.Insert; break; case "update": trigger.TriggerEvent = TriggerEvent.Update; break; case "delete": trigger.TriggerEvent = TriggerEvent.Delete; break; default: throw new NotImplementedException (); } switch (matchs[0].Groups[7].Value.ToLower ()) { case "before": trigger.TriggerType = TriggerType.Before; break; case "after": trigger.TriggerType = TriggerType.After; break; default: throw new NotImplementedException (); } StringBuilder sbSource = new StringBuilder (); foreach (System.Text.RegularExpressions.Capture c in matchs[0].Groups[11].Captures) sbSource.Append (c.Value); trigger.Source = sbSource.ToString (); } triggers.Add (trigger); } } } conn.Release (); } return triggers; } public override ViewSchemaCollection GetViews () { ViewSchemaCollection views = new ViewSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (@"SELECT su.name AS owner, so.name as table_name, so.id as table_id, so.crdate as created_date, so.xtype as table_type FROM dbo.sysobjects so, dbo.sysusers su WHERE xtype = 'V' AND su.uid = so.uid ORDER BY 1, 2")) try { using (command) { using (IDataReader r = command.ExecuteReader()) { while (r.Read()) { ViewSchema view = new ViewSchema (this); view.Name = r.GetString (1); view.SchemaName = r.GetString (0); view.OwnerName = r.GetString (0); StringBuilder sb = new StringBuilder(); sb.AppendFormat ("-- View: {0}\n", view.Name); sb.AppendFormat ("-- DROP VIEW {0};\n\n", view.Name); sb.AppendFormat (" {0}\n);", GetSource ("[" + view.OwnerName + "].[" + view.Name + "]")); view.Definition = sb.ToString (); views.Add (view); } r.Close (); } } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } return views; } public override ColumnSchemaCollection GetViewColumns (ViewSchema view) { ColumnSchemaCollection columns = new ColumnSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (string.Format("SELECT * FROM \"{0}\" WHERE 1 = 0", view.Name))) try { using (IDataReader r = command.ExecuteReader()) { for (int i = 0; i < r.FieldCount; i++) { ColumnSchema column = new ColumnSchema (this, view); column.Name = r.GetName(i); column.DataTypeName = r.GetDataTypeName(i); column.DefaultValue = ""; column.Definition = ""; column.OwnerName = view.OwnerName; column.SchemaName = view.OwnerName; columns.Add (column); } r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } return columns; } public override ProcedureSchemaCollection GetProcedures () { ProcedureSchemaCollection procedures = new ProcedureSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (@"SELECT su.name AS owner, so.name as proc_name, so.id as proc_id, so.crdate as created_date, so.xtype as proc_type FROM dbo.sysobjects so, dbo.sysusers su WHERE xtype = 'P' AND su.uid = so.uid ORDER BY 1, 2")) try { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { ProcedureSchema procedure = new ProcedureSchema (this); procedure.Name = r.GetString (1); procedure.OwnerName = r.GetString (0); procedure.LanguageName = "TSQL"; procedure.Definition = GetSource ("[" + procedure.OwnerName + "].[" + procedure.Name + "]"); if (Array.Exists (system_procs, delegate (string s) {return s == procedure.Name; })) procedure.IsSystemProcedure = true; else procedure.IsSystemProcedure = false; procedures.Add (procedure); } r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } return procedures; } public override ConstraintSchemaCollection GetTableConstraints (TableSchema table) { ConstraintSchemaCollection constraints = new ConstraintSchemaCollection (); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (string.Format (@"select sysobjects.name, sysobjects.xtype from sysobjects inner join sysobjects sysobjectsParents ON sysobjectsParents.id = sysobjects.parent_obj where sysobjectsParents.name = '{0}' and sysobjects.xtype in ('C', 'UQ', 'F','PK','CK')", table.Name))) try { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) { ConstraintSchema constraint = null; switch (r.GetString (1)) { case "F": //foreign key constraint = new ForeignKeyConstraintSchema (this); break; case "PK": //primary key constraint = new PrimaryKeyConstraintSchema (this); break; case "C": case "CK": //check constraint constraint = new CheckConstraintSchema (this); break; case "UQ": constraint = new UniqueConstraintSchema (this); break; default: break; } if (constraint != null) { constraint.Name = r.GetString (0); constraints.Add (constraint); } } r.Close (); } } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } return constraints; } // see: // http://www.firebirdsql.org/manual/migration-mssql-data-types.html // http://webcoder.info/reference/MSSQLDataTypes.html // http://www.tar.hu/sqlbible/sqlbible0022.html // http://msdn2.microsoft.com/en-us/library/aa258876(SQL.80).aspx public override DataTypeSchema GetDataType (string name) { if (name == null) throw new ArgumentNullException ("name"); name = name.ToLower (); DataTypeSchema dts = new DataTypeSchema (this); dts.Name = name; switch (name) { case "bigint": dts.LengthRange = new Range (8); dts.PrecisionRange = new Range (1, 19); dts.DataTypeCategory = DataTypeCategory.Integer; break; case "binary": dts.LengthRange = new Range (1, 8004); dts.PrecisionRange = new Range (1, 8000); dts.DataTypeCategory = DataTypeCategory.Binary; break; case "bit": dts.LengthRange = new Range (1); dts.DataTypeCategory = DataTypeCategory.Bit; break; case "char": dts.LengthRange = new Range (1, 8000); dts.PrecisionRange = new Range (1, 8000); dts.DataTypeCategory = DataTypeCategory.Char; break; case "datetime": dts.LengthRange = new Range (8); dts.DataTypeCategory = DataTypeCategory.DateTime; break; case "decimal": dts.LengthRange = new Range (5, 17); dts.PrecisionRange = new Range (1, 38); dts.ScaleRange = new Range (0, 37); dts.DataTypeCategory = DataTypeCategory.Float; break; case "float": dts.LengthRange = new Range (8); dts.ScaleRange = new Range (1, 15); dts.DataTypeCategory = DataTypeCategory.Float; break; case "image": dts.LengthRange = new Range (0, int.MaxValue); dts.PrecisionRange = new Range (0, int.MaxValue); dts.DataTypeCategory = DataTypeCategory.VarBinary; break; case "int": dts.LengthRange = new Range (4); dts.PrecisionRange = new Range (1, 10); dts.DataTypeCategory = DataTypeCategory.Integer; break; case "money": dts.LengthRange = new Range (8); dts.PrecisionRange = new Range (1, 19); dts.ScaleRange = new Range (4); dts.DataTypeCategory = DataTypeCategory.Integer; break; case "nchar": dts.LengthRange = new Range (2, 8000); dts.PrecisionRange = new Range (1, 4000); dts.DataTypeCategory = DataTypeCategory.NChar; break; case "ntext": dts.LengthRange = new Range (0, int.MaxValue); dts.PrecisionRange = new Range (0, 1073741823); dts.DataTypeCategory = DataTypeCategory.NVarChar; break; case "numeric": dts.LengthRange = new Range (5, 17); dts.PrecisionRange = new Range (1, 38); dts.ScaleRange = new Range (0, 37); dts.DataTypeCategory = DataTypeCategory.Float; break; case "nvarchar": dts.LengthRange = new Range (0, 8000); dts.PrecisionRange = new Range (0, 4000); dts.DataTypeCategory = DataTypeCategory.NVarChar; break; case "real": dts.LengthRange = new Range (4); dts.ScaleRange = new Range (7); dts.DataTypeCategory = DataTypeCategory.Float; break; case "smalldatetime": dts.LengthRange = new Range (4); dts.DataTypeCategory = DataTypeCategory.DateTime; break; case "smallint": dts.LengthRange = new Range (2); dts.PrecisionRange = new Range (5); dts.DataTypeCategory = DataTypeCategory.Integer; break; case "smallmoney": dts.LengthRange = new Range (4); dts.PrecisionRange = new Range (10); dts.ScaleRange = new Range (4); dts.DataTypeCategory = DataTypeCategory.Integer; break; case "text": dts.LengthRange = new Range (0, int.MaxValue); dts.PrecisionRange = new Range (0, int.MaxValue); dts.DataTypeCategory = DataTypeCategory.VarChar; break; case "timestamp": dts.LengthRange = new Range (1, 8); dts.DataTypeCategory = DataTypeCategory.TimeStamp; break; case "tinyint": dts.LengthRange = new Range (1); dts.PrecisionRange = new Range (1, 3); dts.DataTypeCategory = DataTypeCategory.Integer; break; case "varbinary": dts.LengthRange = new Range (1, 8004); dts.PrecisionRange = new Range (0, 8000); dts.DataTypeCategory = DataTypeCategory.VarBinary; break; case "varchar": dts.LengthRange = new Range (1, 8000); dts.PrecisionRange = new Range (0, 8000); dts.DataTypeCategory = DataTypeCategory.VarChar; break; case "uniqueidentifier": dts.LengthRange = new Range (16); dts.DataTypeCategory = DataTypeCategory.Uid; break; case "xml": dts.LengthRange = new Range (0, int.MaxValue); dts.PrecisionRange = new Range (0, int.MaxValue); dts.DataTypeCategory = DataTypeCategory.VarChar; break; case "cursor": case "table": case "sql_variant": dts.DataTypeCategory = DataTypeCategory.Other; break; default: break; } return dts; } public override DatabaseSchema CreateDatabaseSchema (string name) { SqlServerDatabaseSchema schema = new SqlServerDatabaseSchema (this); schema.Name = name; return schema; } //http://msdn2.microsoft.com/en-us/library/aa258257(SQL.80).aspx public override void CreateDatabase (DatabaseSchema database) { SqlServerDatabaseSchema schema = (SqlServerDatabaseSchema)database; StringBuilder db = new StringBuilder ("CREATE DATABASE "); string newLine = Environment.NewLine; db.Append (schema.Name); if (schema.FileName != string.Empty && schema.Name != string.Empty) { db.AppendLine (); db.Append ("ON "); db.AppendFormat ("{0}(NAME = {1},", newLine, schema.LogicalName); db.AppendFormat ("{0}FILENAME = '{1}'", newLine, schema.FileName); if (schema.Size.Size > 0) db.AppendFormat(",{0}SIZE = {1}{2}", newLine, schema.Size.Size.ToString (), schema.Size.Type); if (schema.MaxSize.Size > 0) db.AppendFormat(",{0}MAXSIZE = {1}{2}", newLine, schema.MaxSize.Size.ToString (), schema.MaxSize.Type); if (schema.FileGrowth.Size > 0) db.AppendFormat(",{0}FILEGROWTH = {1}{2}", newLine, schema.FileGrowth.Size.ToString (), schema.FileGrowth.Type == SizeType.PERCENTAGE ? "%" : schema.FileGrowth.Type.ToString ()); db.Append (")"); } if (schema.Collation != null) db.AppendFormat ("{0}COLLATE {1}{0}", newLine, schema.Collation.Name); using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (db.ToString ())) try { command.ExecuteNonQuery (); } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } //http://msdn2.microsoft.com/en-us/library/aa258255(SQL.80).aspx public override string GetTableCreateStatement (TableSchema table) { StringBuilder sb = new StringBuilder (); sb.Append ("CREATE TABLE "); sb.Append (table.Name); sb.Append (" ("); bool first = true; foreach (ColumnSchema column in table.Columns) { if (first) first = false; else sb.Append ("," + Environment.NewLine); sb.Append (column.Name); sb.Append (' '); sb.Append (column.DataType.GetCreateString (column)); if (column.HasDefaultValue) { sb.Append (" DEFAULT "); if (column.DefaultValue == null) sb.Append ("NULL"); else sb.Append (column.DefaultValue); } if (!column.IsNullable) sb.Append (" NOT NULL"); //TODO: AUTO_INCREMENT foreach (ConstraintSchema constraint in column.Constraints) { switch (constraint.ConstraintType) { case ConstraintType.Unique: sb.Append (" UNIQUE"); break; case ConstraintType.PrimaryKey: sb.Append (" PRIMARY KEY"); break; default: throw new NotImplementedException (); } } //TODO: col comment } //TODO: table comment foreach (ConstraintSchema constraint in table.Constraints) { sb.Append ("," + Environment.NewLine); sb.Append (GetConstraintString (constraint)); } sb.Append (");"); foreach (TriggerSchema trigger in table.Triggers) { sb.Append (Environment.NewLine); sb.Append (GetTriggerCreateStatement (trigger)); } return sb.ToString (); } protected virtual string GetConstraintString (ConstraintSchema constraint) { StringBuilder sb = new StringBuilder (); sb.Append ("CONSTRAINT "); sb.Append (constraint.Name); sb.Append (' '); switch (constraint.ConstraintType) { case ConstraintType.PrimaryKey: sb.Append ("PRIMARY KEY "); sb.Append (GetColumnsString (constraint.Columns, true)); break; case ConstraintType.Unique: sb.Append ("UNIQUE "); sb.Append (GetColumnsString (constraint.Columns, true)); break; case ConstraintType.Check: sb.Append ("CHECK ("); sb.Append ((constraint as CheckConstraintSchema).Source); sb.Append (")"); break; case ConstraintType.ForeignKey: sb.Append ("FOREIGN KEY "); sb.Append (GetColumnsString (constraint.Columns, true)); sb.Append (" REFERENCES "); ForeignKeyConstraintSchema fk = constraint as ForeignKeyConstraintSchema; sb.Append (fk.ReferenceTableName); sb.Append (' '); if (fk.ReferenceColumns != null) sb.Append (GetColumnsString (fk.ReferenceColumns, true)); break; default: throw new NotImplementedException (); } return sb.ToString (); } //http://msdn2.microsoft.com/en-us/library/aa258254(SQL.80).aspx public override void CreateView (ViewSchema view) { throw new NotImplementedException (); } //http://msdn2.microsoft.com/en-us/library/aa258259(SQL.80).aspx public override void CreateProcedure (ProcedureSchema procedure) { ExecuteNonQuery (procedure.Definition); } //http://msdn2.microsoft.com/en-us/library/aa258259(SQL.80).aspx public override void CreateIndex (IndexSchema index) { throw new NotImplementedException (); } //http://msdn2.microsoft.com/en-us/library/aa258254(SQL.80).aspx public override void CreateTrigger (TriggerSchema trigger) { string sql = GetTriggerCreateStatement (trigger); ExecuteNonQuery (sql); } protected virtual string GetTriggerCreateStatement (TriggerSchema trigger) { StringBuilder sb = new StringBuilder (); sb.Append ("GO"); sb.Append (Environment.NewLine); sb.Append ("CREATE TRIGGER "); sb.Append (trigger.Name); sb.Append (" ON "); sb.Append (trigger.TableName); if (trigger.TriggerType == TriggerType.Before) sb.Append (" FOR "); else sb.Append (" AFTER "); switch (trigger.TriggerEvent) { case TriggerEvent.Delete: sb.Append ("DELETE"); break; case TriggerEvent.Insert: sb.Append ("INSERT"); break; case TriggerEvent.Update: sb.Append ("UPDATE"); break; default: throw new NotImplementedException (); } sb.Append (" AS "); sb.Append (Environment.NewLine); sb.Append (trigger.Source); sb.Append (";"); return sb.ToString (); } //http://msdn2.microsoft.com/en-us/library/aa275464(SQL.80).aspx public override void AlterDatabase (DatabaseAlterSchema database) { throw new NotImplementedException (); } //http://msdn2.microsoft.com/en-us/library/aa225939(SQL.80).aspx public override void AlterTable (TableAlterSchema table) { throw new NotImplementedException (); } //http://msdn2.microsoft.com/en-us/library/aa225939(SQL.80).aspx public override void AlterView (ViewAlterSchema view) { //ExecuteNonQuery (view.Definition); //FIXME: } //http://msdn2.microsoft.com/en-us/library/aa225939(SQL.80).aspx public override void AlterProcedure (ProcedureAlterSchema procedure) { ExecuteNonQuery (procedure.NewSchema.Definition); } public override void AlterIndex (IndexAlterSchema index) { throw new NotImplementedException (); } //http://msdn2.microsoft.com/en-us/library/aa225939(SQL.80).aspx public override void AlterTrigger (TriggerAlterSchema trigger) { throw new NotImplementedException (); } public override void AlterUser (UserAlterSchema user) { throw new NotImplementedException (); } //http://msdn2.microsoft.com/en-us/library/aa258843(SQL.80).aspx public override void DropDatabase (DatabaseSchema database) { using (IPooledDbConnection conn = connectionPool.Request ()) { using (IDbCommand command = conn.CreateCommand (string.Concat("DROP DATABASE ", database.Name))) try { command.ExecuteNonQuery (); } catch (Exception e) { QueryService.RaiseException (e); } finally { conn.Release (); } } } //http://msdn2.microsoft.com/en-us/library/aa258841(SQL.80).aspx public override void DropTable (TableSchema table) { ExecuteNonQuery (string.Concat("DROP TABLE ", table.Name)); } //http://msdn2.microsoft.com/en-us/library/aa258835(SQL.80).aspx public override void DropView (ViewSchema view) { ExecuteNonQuery (string.Concat("DROP VIEW ", view.Name)); } //http://msdn2.microsoft.com/en-us/library/aa258830(SQL.80).aspx public override void DropProcedure (ProcedureSchema procedure) { ExecuteNonQuery (string.Concat("DROP PROCEDURE ", procedure.Name)); } //http://msdn2.microsoft.com/en-us/library/aa225939(SQL.80).aspx public override void DropIndex (IndexSchema index) { ExecuteNonQuery (string.Concat("DROP INDEX '", index.TableName, ".", index.Name, "'")); } //http://msdn2.microsoft.com/en-us/library/aa258846(SQL.80).aspx public override void DropTrigger (TriggerSchema trigger) { ExecuteNonQuery (string.Concat("DROP TRIGGER ", trigger.Name)); } //http://msdn2.microsoft.com/en-US/library/aa238878(SQL.80).aspx public override void RenameDatabase (DatabaseSchema database, string name) { Rename (database.Name, name, "DATABASE"); database.Name = name; connectionPool.ConnectionContext.ConnectionSettings.Database = name; } //http://msdn2.microsoft.com/en-US/library/aa238878(SQL.80).aspx public override void RenameTable (TableSchema table, string name) { Rename (table.Name, name, "OBJECT"); table.Name = name; } //http://msdn2.microsoft.com/en-US/library/aa238878(SQL.80).aspx public override void RenameView (ViewSchema view, string name) { Rename (view.Name, name, "OBJECT"); view.Name = name; } //http://msdn2.microsoft.com/en-US/library/aa238878(SQL.80).aspx public override void RenameProcedure (ProcedureSchema procedure, string name) { Rename (procedure.Name, name, "OBJECT"); procedure.Name = name; } //http://msdn2.microsoft.com/en-US/library/aa238878(SQL.80).aspx public override void RenameIndex (IndexSchema index, string name) { Rename (index.Name, name, "INDEX"); index.Name = name; } //http://msdn2.microsoft.com/en-US/library/aa238878(SQL.80).aspx public override void RenameTrigger (TriggerSchema trigger, string name) { Rename (trigger.Name, name, "OBJECT"); trigger.Name = name; } public override string GetViewAlterStatement (ViewSchema view) { return String.Concat ("DROP VIEW ", view.Name, "; ", Environment.NewLine, view.Definition); } public override string GetProcedureAlterStatement (ProcedureSchema procedure) { string sp; if (procedure.Definition.Substring (0, 6).ToLower () == "create") sp = string.Concat("ALTER", procedure.Definition.Substring (6)); else sp = procedure.Definition; return sp; } protected string GetTableDefinition (TableSchema table) { StringBuilder sb = new StringBuilder(); sb.AppendFormat ("-- Table: {0}\n", table.Name); sb.AppendFormat ("-- DROP TABLE {0};\n\n", table.Name); sb.AppendFormat ("CREATE TABLE {0} (\n", table.Name); ColumnSchemaCollection columns = table.Columns; string[] parts = new string[columns.Count]; int i = 0; foreach (ColumnSchema col in columns) parts[i++] = col.Definition; sb.Append (String.Join (",\n", parts)); ConstraintSchemaCollection constraints = table.Constraints; parts = new string[constraints.Count]; if (constraints.Count > 0) sb.Append (",\n"); i = 0; foreach (ConstraintSchema constr in constraints) parts[i++] = "\t" + constr.Definition; sb.Append (String.Join (",\n", parts)); sb.Append ("\n);\n"); //sb.AppendFormat ("COMMENT ON TABLE {0} IS '{1}';", table.Name, table.Comment); return sb.ToString (); } private string GetSource (string objectName) { LoggingService.LogDebug ("GetSource: " + objectName); IPooledDbConnection conn = connectionPool.Request (); IDbCommand command = conn.CreateCommand ( String.Format ("EXEC sp_helptext '{0}'", objectName) ); StringBuilder sb = new StringBuilder (); try { using (command) { using (IDataReader r = command.ExecuteReader()) { while (r.Read ()) sb.Append (r.GetString (0)); r.Close (); } } } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); return sb.ToString (); } //http://msdn2.microsoft.com/en-US/library/aa238878(SQL.80).aspx private void Rename (string oldName, string newName, string type) { IPooledDbConnection conn = connectionPool.Request (); IDbCommand command = conn.CreateStoredProcedure ( String.Format ("EXEC sp_rename '{0}', '{1}', '{2}'", oldName, newName, type) ); try { using (command) command.ExecuteNonQuery (); } catch (Exception e) { QueryService.RaiseException (e); } conn.Release (); } public override string GetMimeType () { return "text/x-sqlserver"; } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Schema/0000755000175000017500000000000011266446160026232 5ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Schema/SqlServerDatabaseSchema.cs0000644000175000017500000000532711266446160033264 0ustar directhexdirecthex// // SqlServerDatabaseSchema.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; using MonoDevelop.Database.Sql; namespace MonoDevelop.Database.Sql.SqlServer { public enum SizeType { KB, MB, GB, TB, UNLIMITED, PERCENTAGE } public class FileSize { int size; SizeType type; public SizeType Type { get { return type; } set { type = value; } } public int Size { get { return size; } set { size = value; } } public FileSize (int size, SizeType type) { this.size = size; this.Type = type; } } public class SqlServerDatabaseSchema:DatabaseSchema { SqlServerCollationSchema collation; FileSize size; FileSize fileGrowth; FileSize maxSize; string fileName; string logicalName; public SqlServerCollationSchema Collation { get { return collation; } set { collation = value; } } public FileSize Size { get { return size; } set { size = value; } } public FileSize MaxSize { get { return maxSize; } set { maxSize = value; } } public FileSize FileGrowth { get { return fileGrowth; } set { fileGrowth = value; } } public string LogicalName { get { return logicalName; } set { logicalName = value; } } public string FileName { get { return fileName; } set { fileName = value; } } public SqlServerDatabaseSchema (ISchemaProvider provider):base(provider) { } public SqlServerDatabaseSchema (DatabaseSchema schema):base(schema) { } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Schema/SqlServerCollationSchema.cs0000644000175000017500000000331511266446160033477 0ustar directhexdirecthex// // SqlServerCollationSchema.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; namespace MonoDevelop.Database.Sql.SqlServer { public class SqlServerCollationSchema:AbstractSchema { string description; public string Description { get { return description; } set { description = value; } } public SqlServerCollationSchema (ISchemaProvider provider):base(provider) { } public SqlServerCollationSchema (AbstractSchema schema):base(schema) { } public override object Clone () { return new SqlServerCollationSchema (this); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Schema/dummy.cs0000644000175000017500000000000011266446160027702 0ustar directhexdirecthexmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/SqlServerSyntaxMode.xml0000644000175000017500000013032311266446160031520 0ustar directhexdirecthex - /* */ ' ' @@DATEFIRST @@OPTIONS @@DBTS @@REMSERVER @@LANGID @@SERVERNAME @@LANGUAGE @@SERVICENAME @@LOCK_TIMEOUT @@SPID @@MAX_CONNECTIONS @@TEXTSIZE @@MAX_PRECISION @@VERSION @@NESTLEVEL @@CURSOR_ROWS @@FETCH_STATUS DATEADD DATEDIFF DATENAME DATEPART DAY GETDATE GETUTCDATE MONTH YEAR ABS DEGREES RAND ACOS EXP ROUND ASIN FLOOR SIGN ATAN LOG SIN ATN2 LOG10 SQUARE CEILING PI SQRT COS POWER TAN COT RADIANS COL_LENGTH fn_listextendedproperty COL_NAME FULLTEXTCATALOGPROPERTY COLUMNPROPERTY FULLTEXTSERVICEPROPERTY DATABASEPROPERTY INDEX_COL DATABASEPROPERTYEX INDEXKEY_PROPERTY DB_ID INDEXPROPERTY DB_NAME OBJECT_ID FILE_ID OBJECT_NAME FILE_NAME OBJECTPROPERTY FILEGROUP_ID @@PROCID FILEGROUP_NAME SQL_VARIANT_PROPERTY FILEGROUPPROPERTY TYPEPROPERTY FILEPROPERTY fn_trace_geteventinfo IS_SRVROLEMEMBER fn_trace_getfilterinfo SUSER_SID fn_trace_getinfo SUSER_SNAME fn_trace_gettable USER_ID HAS_DBACCESS USER IS_MEMBER ASCII NCHAR SOUNDEX CHAR PATINDEX SPACE CHARINDEX REPLACE STR DIFFERENCE QUOTENAME STUFF LEFT REPLICATE SUBSTRING LEN REVERSE UNICODE LOWER RIGHT UPPER LTRIM RTRIM APP_NAME CASE CAST CONVERT COALESCE COLLATIONPROPERTY CURRENT_TIMESTAMP CURRENT_USER DATALENGTH @@ERROR fn_helpcollations fn_servershareddrives fn_virtualfilestats FORMATMESSAGE GETANSINULL HOST_ID HOST_NAME IDENT_CURRENT IDENT_INCR IDENT_SEED @@IDENTITY IDENTITY ISDATE ISNULL ISNUMERIC NEWID NULLIF PARSENAME PERMISSIONS @@ROWCOUNT ROWCOUNT_BIG SCOPE_IDENTITY SERVERPROPERTY SESSIONPROPERTY SESSION_USER STATS_DATE SYSTEM_USER @@TRANCOUNT USER_NAME @@CONNECTIONS @@PACK_RECEIVED @@CPU_BUSY @@PACK_SENT fn_virtualfilestats @@TIMETICKS @@IDLE @@TOTAL_ERRORS @@IO_BUSY @@TOTAL_READ @@PACKET_ERRORS @@TOTAL_WRITE PATINDEX TEXTPTR TEXTVALID sp_ActiveDirectory_Obj sp_column_privileges sp_special_columns sp_columns sp_sproc_columns sp_databases sp_statistics sp_fkeys sp_stored_procedures sp_pkeys sp_table_privileges sp_server_info sp_tables sys.sp_cdc_add_job sys.sp_cdc_generate_wrapper_function sys.sp_cdc_change_job sys.sp_cdc_get_captured_columns sys.sp_cdc_cleanup_change_table sys.sp_cdc_get_ddl_history sys.sp_cdc_disable_db sys.sp_cdc_help_change_data_capture sys.sp_cdc_disable_table sys.sp_cdc_help_jobs sys.sp_cdc_drop_job sys.sp_cdc_scan sys.sp_cdc_enable_db sys.sp_cdc_start_job sys.sp_cdc_enable_table sys.sp_cdc_stop_job sp_cursor_list sp_describe_cursor_columns sp_describe_cursor sp_describe_cursor_tables sp_add_data_file_recover_suspect_db sp_dropmessage sp_add_log_file_recover_suspect_db sp_droptype sp_addextendedproc sp_executesql sp_addextendedproperty sp_getapplock sp_addmessage sp_getbindtoken sp_addtype sp_help sp_addumpdevice sp_helpconstraint sp_altermessage sp_helpdb sp_attach_db sp_helpdevice sp_attach_single_file_db sp_helpextendedproc sp_autostats sp_helpfile sp_bindefault sp_helpfilegroup sp_bindrule sp_helpindex sp_bindsession sp_helplanguage sp_certify_removable sp_helpserver sp_clean_db_file_free_space sp_helpsort sp_clean_db_free_space sp_helpstats sp_configure sp_helptext sp_control_plan_guide sp_helptrigger sp_create_plan_guide sp_indexoption sp_create_plan_guide_from_handle sp_invalidate_textptr sp_create_removable sp_lock sp_createstats sp_monitor sp_cycle_errorlog sp_procoption sp_datatype_info sp_recompile sp_dbcmptlevel sp_refreshview sp_dbmmonitoraddmonitoring sp_releaseapplock sp_dbmmonitorchangealert sp_rename sp_dbmmonitorchangemonitoring sp_renamedb sp_dbmmonitordropalert sp_resetstatus sp_dbmmonitordropmonitoring sp_serveroption sp_dbmmonitorhelpalert sp_setnetname sp_dbmmonitorhelpmonitoring sp_settriggerorder sp_dbmmonitorresults sp_spaceused sp_dboption sp_tableoption sp_dbremove sp_unbindefault sp_delete_backuphistory sp_unbindrule sp_depends sp_updateextendedproperty sp_detach_db sp_updatestats sp_dropdevice sp_validname sp_dropextendedproc sp_who sp_dropextendedproperty sp_send_dbmail sysmail_help_configure_sp sysmail_add_account_sp sysmail_help_principalprofile_sp sysmail_add_principalprofile_sp sysmail_help_profile_sp sysmail_add_profile_sp sysmail_help_profileaccount_sp sysmail_add_profileaccount_sp sysmail_help_queue_sp sysmail_configure_sp sysmail_help_status_sp sysmail_delete_account_sp sysmail_start_sp sysmail_delete_log_sp sysmail_stop_sp sysmail_delete_mailitems_sp sysmail_update_account_sp sysmail_delete_principalprofile_sp sysmail_update_principalprofile_sp sysmail_delete_profile_sp sysmail_update_profile_sp sysmail_delete_profileaccount_sp sysmail_update_profileaccount_sp sysmail_help_account_sp sp_add_maintenance_plan sp_delete_maintenance_plan_db sp_add_maintenance_plan_db sp_delete_maintenance_plan_job sp_add_maintenance_plan_job sp_help_maintenance_plan sp_delete_maintenance_plan sp_addlinkedserver sp_indexes sp_addlinkedsrvlogin sp_linkedservers sp_catalogs sp_primarykeys sp_column_privileges_ex sp_serveroption sp_columns_ex sp_table_privileges_ex sp_droplinkedsrvlogin sp_tables_ex sp_dropserver sp_testlinkedserver sp_foreignkeys sp_fulltext_catalog sp_fulltext_column sp_fulltext_database sp_fulltext_keymappings sp_fulltext_load_thesaurus_file sp_fulltext_pendingchanges sp_fulltext_service sp_fulltext_table sp_help_fulltext_catalog_components sp_help_fulltext_catalogs sp_help_fulltext_catalogs_cursor sp_help_fulltext_columns sp_help_fulltext_columns_cursor sp_help_fulltext_system_components sp_help_fulltext_tables sp_help_fulltext_tables_cursor sp_add_log_shipping_alert_job sp_delete_log_shipping_secondary_database sp_add_log_shipping_primary_database sp_delete_log_shipping_secondary_primary sp_add_log_shipping_primary_secondary sp_help_log_shipping_alert_job sp_add_log_shipping_secondary_database sp_help_log_shipping_monitor sp_add_log_shipping_secondary_primary sp_help_log_shipping_monitor_primary sp_change_log_shipping_primary_database sp_help_log_shipping_monitor_secondary sp_change_log_shipping_secondary_database sp_help_log_shipping_primary_database sp_change_log_shipping_secondary_primary sp_help_log_shipping_primary_secondary sp_cleanup_log_shipping_history sp_help_log_shipping_secondary_database sp_delete_log_shipping_alert_job sp_help_log_shipping_secondary_primary sp_delete_log_shipping_primary_database sp_refresh_log_shipping_monitor sp_delete_log_shipping_primary_secondary sp_syspolicy_add_policy_category sp_syspolicy_rename_policy_category sp_syspolicy_add_policy_category_subscription sp_syspolicy_repair_policy_automation sp_syspolicy_configure sp_syspolicy_set_config_enabled sp_syspolicy_delete_policy_category sp_syspolicy_set_config_history_retention sp_syspolicy_delete_policy_category_subscription sp_syspolicy_set_log_on_success sp_syspolicy_delete_policy_execution_history sp_syspolicy_subscribe_to_policy_category sp_syspolicy_purge_health_state sp_syspolicy_unsubscribe_from_policy_category sp_syspolicy_purge_history sp_syspolicy_update_policy_category sp_syspolicy_rename_condition sp_syspolicy_update_policy_category_subscription sp_syspolicy_rename_policy sp_add_agent_parameter sp_helparticle sp_add_agent_profile sp_helparticlecolumns sp_addarticle sp_helparticledts sp_adddistpublisher sp_helpdatatypemap sp_adddistributiondb sp_helpdistpublisher sp_adddistributor sp_helpdistributiondb sp_adddynamicsnapshot_job sp_helpdistributor sp_addlogreader_agent sp_helpdistributor_properties sp_addmergealternatepublisher sp_helpdynamicsnapshot_job sp_addmergearticle sp_helplogreader_agent sp_addmergefilter sp_helpmergealternatepublisher sp_addmergepartition sp_helpmergearticle sp_addmergepublication sp_helpmergearticlecolumn sp_addmergepullsubscription sp_helpmergearticleconflicts sp_addmergepullsubscription_agent sp_helpmergeconflictrows sp_addmergepushsubscription_agent sp_helpmergedeleteconflictrows sp_addmergesubscription sp_helpmergefilter sp_addpublication sp_helpmergepartition sp_addpublication_snapshot sp_helpmergepublication sp_addpullsubscription sp_helpmergepullsubscription sp_addpullsubscription_agent sp_helpmergesubscription sp_addpushsubscription_agent sp_help_peerconflictdetection sp_addqreader_agent sp_helppeerrequests sp_addqueued_artinfo sp_helppeerresponses sp_addscriptexec sp_helppublication sp_addsubscriber sp_helppublication_snapshot sp_addsubscriber_schedule sp_helppullsubscription sp_addsubscription sp_helpqreader_agent sp_addsynctriggers sp_helpreplfailovermode sp_addtabletocontents sp_helpreplicationdboption sp_adjustpublisheridentityrange sp_helpreplicationoption sp_article_validation sp_helpsubscriberinfo sp_articlecolumn sp_helpsubscription sp_articlefilter sp_helpsubscription_properties sp_articleview sp_helpsubscriptionerrors sp_attachsubscription sp_helptracertokenhistory sp_browsemergesnapshotfolder sp_helptracertokens sp_browsereplcmds sp_helpxactsetjob sp_browsesnapshotfolder sp_ivindexhasnullcols sp_change_agent_parameter sp_link_publication sp_change_agent_profile sp_lookupcustomresolver sp_change_subscription_properties sp_markpendingschemachange sp_changearticle sp_marksubscriptionvalidation sp_changearticlecolumndatatype sp_mergearticlecolumn sp_changedistpublisher sp_mergecleanupmetadata sp_changedistributiondb sp_mergedummyupdate sp_changedistributor_password sp_mergemetadataretentioncleanup sp_changedistributor_property sp_mergesubscription_cleanup sp_changedynamicsnapshot_job sp_MSchange_distribution_agent_properties sp_changelogreader_agent sp_MSchange_logreader_agent_properties sp_changemergearticle sp_MSchange_merge_agent_properties sp_changemergefilter sp_MSchange_snapshot_agent_properties sp_changemergepublication sp_posttracertoken sp_changemergepullsubscription sp_publication_validation sp_changemergesubscription sp_publisherproperty sp_changepublication sp_refreshsubscriptions sp_changepublication_snapshot sp_register_custom_scripting sp_changeqreader_agent sp_registercustomresolver sp_changereplicationserverpasswords sp_reinitmergepullsubscription sp_changesubscriber sp_reinitmergesubscription sp_changesubscriber_schedule sp_reinitpullsubscription sp_changesubscription sp_reinitsubscription sp_changesubscriptiondtsinfo sp_removedbreplication sp_changesubstatus sp_removedistpublisherdbreplication sp_check_dynamic_filters sp_repladdcolumn sp_check_for_sync_trigger sp_replcmds sp_check_join_filter sp_replcounters sp_check_subset_filter sp_repldone sp_configure_peerconflictdetection sp_repldropcolumn sp_copymergesnapshot sp_replflush sp_copysnapshot sp_replication_agent_checkup sp_copysubscription sp_replicationdboption sp_deletemergeconflictrow sp_replmonitorchangepublicationthreshold sp_deletepeerrequesthistory sp_replmonitorhelpmergesession sp_deletetracertokenhistory sp_replmonitorhelpmergesessiondetail sp_drop_agent_parameter sp_replmonitorhelppublication sp_drop_agent_profile sp_replmonitorhelppublicationthresholds sp_dropanonymousagent sp_replmonitorhelppublisher sp_droparticle sp_replmonitorhelpsubscription sp_dropdistpublisher sp_replmonitorsubscriptionpendingcmds sp_dropdistributiondb sp_replqueuemonitor sp_dropdistributor sp_replrestart sp_dropdynamicsnapshot_job sp_replsetoriginator sp_dropmergealternatepublisher sp_replshowcmds sp_dropmergearticle sp_repltrans sp_dropmergefilter sp_requestpeerresponse sp_dropmergepartition sp_requestpeertopologyinfo sp_dropmergepublication sp_resetsnapshotdeliveryprogress sp_dropmergepullsubscription sp_restoredbreplication sp_dropmergesubscription sp_restoremergeidentityrange sp_droppublication sp_resyncmergesubscription sp_droppullsubscription sp_revoke_publication_access sp_dropsubscriber sp_schemafilter sp_dropsubscription sp_script_synctran_commands sp_dsninfo sp_scriptdynamicupdproc sp_enumcustomresolvers sp_scriptpublicationcustomprocs sp_enumdsn sp_scriptsubconflicttable sp_enumeratependingschemachanges sp_setdefaultdatatypemapping sp_expired_subscription_cleanup sp_setreplfailovermode sp_generatefilters sp_setsubscriptionxactseqno sp_get_distributor sp_showpendingchanges sp_getagentparameterlist sp_showrowreplicainfo sp_getdefaultdatatypemapping sp_startpublication_snapshot sp_getmergedeletetype sp_subscription_cleanup sp_getqueuedrows sp_table_validation sp_getsubscriptiondtspackagename sp_unregister_custom_scripting sp_gettopologyinfo sp_unregistercustomresolver sp_grant_publication_access sp_update_agent_profile sp_help_agent_default sp_validatemergepublication sp_help_agent_parameter sp_validatemergesubscription sp_help_agent_profile sp_vupgrade_mergeobjects sp_help_publication_access sp_vupgrade_replication sp_addapprole sp_dropsrvrolemember sp_addlinkedsrvlogin sp_dropuser sp_addlogin sp_grantdbaccess sp_addremotelogin sp_grantlogin sp_addrole sp_helpdbfixedrole sp_addrolemember sp_helplinkedsrvlogin sp_addserver sp_helplogins sp_addsrvrolemember sp_helpntgroup sp_adduser sp_helpremotelogin sp_approlepassword sp_helprole sp_changedbowner sp_helprolemember sp_changeobjectowner sp_helprotect sp_change_users_login sp_helpsrvrole sp_dbfixedrolepermission sp_helpsrvrolemember sp_defaultdb sp_helpuser sp_defaultlanguage sp_MShasdbaccess sp_denylogin sp_password sp_dropalias sp_remoteoption sp_dropapprole sp_revokedbaccess sp_droplinkedsrvlogin sp_revokelogin sp_droplogin sp_setapprole sp_dropremotelogin sp_srvrolepermission sp_droprolemember sp_validatelogins sp_dropserver sp_trace_create sp_trace_setfilter sp_trace_generateevent sp_trace_setstatus sp_trace_setevent sp_add_alert sp_help_jobactivity sp_add_category sp_help_jobcount sp_add_job sp_help_jobhistory sp_add_jobschedule sp_help_jobs_in_schedule sp_add_jobserver sp_help_jobschedule sp_add_jobstep sp_help_jobserver sp_add_notification sp_help_jobstep sp_add_operator sp_help_jobsteplog sp_add_schedule sp_help_notification sp_add_targetservergroup sp_help_operator sp_add_targetsvrgrp_member sp_help_proxy sp_apply_job_to_targets sp_help_schedule sp_attach_schedule sp_help_targetserver sp_cycle_agent_errorlog sp_help_targetservergroup sp_cycle_errorlog sp_manage_jobs_by_login sp_delete_alert sp_msx_defect sp_delete_category sp_msx_enlist sp_delete_job sp_msx_get_account sp_delete_jobschedule sp_msx_set_account sp_delete_jobserver sp_notify_operator sp_delete_jobstep sp_post_msx_operation sp_delete_jobsteplog sp_purge_jobhistory sp_delete_notification sp_remove_job_from_targetss sp_delete_operator sp_resync_targetserver sp_delete_proxy sp_revoke_login_from_proxy sp_delete_schedule sp_revoke_proxy_from_subsystem sp_delete_targetserver sp_start_job sp_delete_targetservergroup sp_stop_job sp_delete_targetsvrgrp_member sp_update_alert sp_detach_schedule sp_update_category sp_enum_login_for_proxy sp_update_job sp_enum_proxy_for_subsystem sp_update_jobschedule sp_enum_sqlagent_subsystems sp_update_jobstep sp_grant_proxy_to_subsystem sp_update_notification sp_grant_login_to_proxy sp_update_operator sp_help_alert sp_update_proxy sp_help_category sp_update_schedule sp_help_downloadlist sp_update_targetservergroup sp_help_job sp_xml_preparedocument sp_xml_removedocument xp_cmdshell xp_logininfo xp_enumgroups xp_msver xp_findnextmsg xp_revokelogin xp_grantlogin xp_sprintf xp_logevent xp_sqlmaint xp_loginconfig xp_sscanf sp_add_agent_parameter sp_helparticle sp_add_agent_profile sp_helparticlecolumns sp_addarticle sp_helparticledts sp_adddistpublisher sp_helpdatatypemap sp_adddistributiondb sp_helpdistpublisher sp_adddistributor sp_helpdistributiondb sp_adddynamicsnapshot_job sp_helpdistributor sp_addlogreader_agent sp_helpdistributor_properties sp_addmergealternatepublisher sp_helpdynamicsnapshot_job sp_addmergearticle sp_helplogreader_agent sp_addmergefilter sp_helpmergealternatepublisher sp_addmergepartition sp_helpmergearticle sp_addmergepublication sp_helpmergearticlecolumn sp_addmergepullsubscription sp_helpmergearticleconflicts sp_addmergepullsubscription_agent sp_helpmergeconflictrows sp_addmergepushsubscription_agent sp_helpmergedeleteconflictrows sp_addmergesubscription sp_helpmergefilter sp_addpublication sp_helpmergepartition sp_addpublication_snapshot sp_helpmergepublication sp_addpullsubscription sp_helpmergepullsubscription sp_addpullsubscription_agent sp_helpmergesubscription sp_addpushsubscription_agent sp_help_peerconflictdetection sp_addqreader_agent sp_helppeerrequests sp_addqueued_artinfo sp_helppeerresponses sp_addscriptexec sp_helppublication sp_addsubscriber sp_helppublication_snapshot sp_addsubscriber_schedule sp_helppullsubscription sp_addsubscription sp_helpqreader_agent sp_addsynctriggers sp_helpreplfailovermode sp_addtabletocontents sp_helpreplicationdboption sp_adjustpublisheridentityrange sp_helpreplicationoption sp_article_validation sp_helpsubscriberinfo sp_articlecolumn sp_helpsubscription sp_articlefilter sp_helpsubscription_properties sp_articleview sp_helpsubscriptionerrors sp_attachsubscription sp_helptracertokenhistory sp_browsemergesnapshotfolder sp_helptracertokens sp_browsereplcmds sp_helpxactsetjob sp_browsesnapshotfolder sp_ivindexhasnullcols sp_change_agent_parameter sp_link_publication sp_change_agent_profile sp_lookupcustomresolver sp_change_subscription_properties sp_markpendingschemachange sp_changearticle sp_marksubscriptionvalidation sp_changearticlecolumndatatype sp_mergearticlecolumn sp_changedistpublisher sp_mergecleanupmetadata sp_changedistributiondb sp_mergedummyupdate sp_changedistributor_password sp_mergemetadataretentioncleanup sp_changedistributor_property sp_mergesubscription_cleanup sp_changedynamicsnapshot_job sp_MSchange_distribution_agent_properties sp_changelogreader_agent sp_MSchange_logreader_agent_properties sp_changemergearticle sp_MSchange_merge_agent_properties sp_changemergefilter sp_MSchange_snapshot_agent_properties sp_changemergepublication sp_posttracertoken sp_changemergepullsubscription sp_publication_validation sp_changemergesubscription sp_publisherproperty sp_changepublication sp_refreshsubscriptions sp_changepublication_snapshot sp_register_custom_scripting sp_changeqreader_agent sp_registercustomresolver sp_changereplicationserverpasswords sp_reinitmergepullsubscription sp_changesubscriber sp_reinitmergesubscription sp_changesubscriber_schedule sp_reinitpullsubscription sp_changesubscription sp_reinitsubscription sp_changesubscriptiondtsinfo sp_removedbreplication sp_changesubstatus sp_removedistpublisherdbreplication sp_check_dynamic_filters sp_repladdcolumn sp_check_for_sync_trigger sp_replcmds sp_check_join_filter sp_replcounters sp_check_subset_filter sp_repldone sp_configure_peerconflictdetection sp_repldropcolumn sp_copymergesnapshot sp_replflush sp_copysnapshot sp_replication_agent_checkup sp_copysubscription sp_replicationdboption sp_deletemergeconflictrow sp_replmonitorchangepublicationthreshold sp_deletepeerrequesthistory sp_replmonitorhelpmergesession sp_deletetracertokenhistory sp_replmonitorhelpmergesessiondetail sp_drop_agent_parameter sp_replmonitorhelppublication sp_drop_agent_profile sp_replmonitorhelppublicationthresholds sp_dropanonymousagent sp_replmonitorhelppublisher sp_droparticle sp_replmonitorhelpsubscription sp_dropdistpublisher sp_replmonitorsubscriptionpendingcmds sp_dropdistributiondb sp_replqueuemonitor sp_dropdistributor sp_replrestart sp_dropdynamicsnapshot_job sp_replsetoriginator sp_dropmergealternatepublisher sp_replshowcmds sp_dropmergearticle sp_repltrans sp_dropmergefilter sp_requestpeerresponse sp_dropmergepartition sp_requestpeertopologyinfo sp_dropmergepublication sp_resetsnapshotdeliveryprogress sp_dropmergepullsubscription sp_restoredbreplication sp_dropmergesubscription sp_restoremergeidentityrange sp_droppublication sp_resyncmergesubscription sp_droppullsubscription sp_revoke_publication_access sp_dropsubscriber sp_schemafilter sp_dropsubscription sp_script_synctran_commands sp_dsninfo sp_scriptdynamicupdproc sp_enumcustomresolvers sp_scriptpublicationcustomprocs sp_enumdsn sp_scriptsubconflicttable sp_enumeratependingschemachanges sp_setdefaultdatatypemapping sp_expired_subscription_cleanup sp_setreplfailovermode sp_generatefilters sp_setsubscriptionxactseqno sp_get_distributor sp_showpendingchanges sp_getagentparameterlist sp_showrowreplicainfo sp_getdefaultdatatypemapping sp_startpublication_snapshot sp_getmergedeletetype sp_subscription_cleanup sp_getqueuedrows sp_table_validation sp_getsubscriptiondtspackagename sp_unregister_custom_scripting sp_gettopologyinfo sp_unregistercustomresolver sp_grant_publication_access sp_update_agent_profile sp_help_agent_default sp_validatemergepublication sp_help_agent_parameter sp_validatemergesubscription sp_help_agent_profile sp_vupgrade_mergeobjects sp_help_publication_access sp_vupgrade_replication sp_cursor sp_cursorclose sp_cursorexecute sp_cursorfetch sp_cursoropen sp_cursoroption sp_cursorprepare sp_cursorunprepare sp_execute sp_prepare sp_unprepare sp_catalogs sp_column_privileges sp_column_privileges_ex sp_columns sp_columns_ex sp_databases sp_datatype_info sp_fkeys sp_foreignkeys sp_indexes sp_pkeys sp_primarykeys sp_server_info sp_special_columns sp_sproc_columns sp_statistics sp_table_privileges sp_table_privileges_ex sp_tables sp_tables_ex sp_assemblies_rowset sp_assemblies_rowset_rmt sp_assemblies_rowset2 sp_assembly_dependencies_rowset sp_assembly_dependencies_rowset_rmt sp_assembly_dependencies_rowset2 sp_bcp_dbcmptlevel sp_catalogs_rowset sp_catalogs_rowset sp_catalogs_rowset sp_catalogs_rowset_rmt sp_catalogs_rowset2 sp_check_constbytable_rowset sp_check_constbytable_rowset;2 sp_check_constbytable_rowset2 sp_check_constraints_rowset sp_check_constraints_rowset;2 sp_check_constraints_rowset2 sp_column_privileges_rowset sp_column_privileges_rowset;2 sp_column_privileges_rowset;5 sp_column_privileges_rowset_rmt sp_column_privileges_rowset2 sp_columns_90 sp_columns_90_rowset sp_columns_90_rowset_rmt sp_columns_90_rowset2 sp_columns_ex_90 sp_columns_rowset sp_columns_rowset sp_columns_rowset sp_columns_rowset_rmt sp_columns_rowset2 sp_constr_col_usage_rowset sp_datatype_info_90 sp_ddopen sp_foreign_keys_rowset sp_foreign_keys_rowset_rmt sp_foreign_keys_rowset2 sp_foreign_keys_rowset3 sp_indexes_90_rowset sp_indexes_90_rowset_rmt sp_indexes_90_rowset2 sp_indexes_rowset sp_indexes_rowset_rmt sp_indexes_rowset2 sp_linkedservers_rowset sp_linkedservers_rowset2 sp_oledb_database sp_oledb_defdb sp_oledb_deflang sp_oledb_language sp_oledb_ro_usrname sp_primary_keys_rowset sp_primary_keys_rowset_rmt sp_primary_keys_rowset2 sp_procedure_params_90_rowset sp_procedure_params_90_rowset2 sp_procedure_params_rowset sp_procedure_params_rowset2 sp_procedures_rowset sp_procedures_rowset2 sp_provider_types_90_rowset sp_provider_types_rowset sp_schemata_rowset sp_special_columns_90 sp_sproc_columns_90 sp_statistics_rowset sp_statistics_rowset2 sp_stored_procedures sp_table_constraints_rowset sp_table_constraints_rowset2 sp_table_privileges_rowset sp_table_privileges_rowset_rmt sp_table_privileges_rowset2 sp_table_statistics_rowset sp_table_statistics2_rowset sp_tablecollations sp_tablecollations_90 sp_tables_info_90_rowset sp_tables_info_90_rowset_64 sp_tables_info_90_rowset2 sp_tables_info_90_rowset2_64 sp_tables_info_rowset sp_tables_info_rowset_64 sp_tables_info_rowset2 sp_tables_info_rowset2_64 sp_tables_rowset_rmt sp_tables_rowset2 sp_usertypes_rowset sp_usertypes_rowset_rmt sp_usertypes_rowset2 sp_views_rowset sp_views_rowset2 sp_xml_schema_rowset sp_xml_schema_rowset2 + - * / % & | ^ = > < >= <= <> != !< !> ALL AND ANY BETWEEN EXISTS IN LIKE NOT OR SOME ~ @ CREATE DATABASE COLLATE DROP TABLE AGGREGATE FUNCTION INDEX LOGIN PROCEDURE ALTER TRIGGER USER VIEW UNIQUE INDEX CLUSTERED NONCLUSTERED PROC FOR AFTER INSTEAD OF ADD COLUMN PRIMARY KEY UNIQUE WITH KEY REFERENCES DELETE CASCADE NO ACTION SELECT FROM WHERE INNER LEFT RIGHT CROSS JOIN UNION ALL TOP USE MAX COUNT MIN SUM ASC DESC DELETE UPDATE EXISTS INSERT INTO BEGIN END COMPUTE INTO ORDER GROUP BY HAVING BREAK RETURN RETURNS OUT OUTPUT READONLY TRUE FALSE NULL RETURNS AS bigint numeric bit smallint decimal smallmoney int tinyint money float real date datetimeoffset datetime2 smalldatetime datetime time char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table TODO FIXME HACK UNDONE monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Dialogs/0000755000175000017500000000000011266446160026414 5ustar directhexdirecthex././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Dialogs/SqlServerCreateDatabaseDialog.csmonodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Dialogs/SqlServerCreateDatabaseDialog0000644000175000017500000000702111266446160034156 0ustar directhexdirecthex// // SqlServerCreateDatabaseDialog.cs // // Author: // Luciano N. Callero // // Copyright (c) 2009 // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using Gtk; using System; using MonoDevelop.Ide; using MonoDevelop.Database.Sql; using MonoDevelop.Database.Designer; using MonoDevelop.Database.Components; namespace MonoDevelop.Database.Sql.SqlServer { public class SqlServerCreateDatabaseDialog:CreateDatabaseDialog { ConnectionSettingsWidget connectionWidget; SqlServerCreateDatabaseWidget createDBWidget; public SqlServerCreateDatabaseDialog (IDbFactory factory):base(factory) { createDBWidget = new SqlServerCreateDatabaseWidget (); Notebook.AppendPage (createDBWidget, new Label (AddinCatalog.GetString ("Database Properties"))); Notebook.ShowTabs = true; Gtk.Notebook nb = Notebook; nb.SwitchPage += delegate(object o, SwitchPageArgs args) { if (nb.CurrentPage == 1) if (!connectionWidget.ValidateFields ()) { nb.CurrentPage = 0; MessageService.ShowError (this, AddinCatalog.GetString ("Set the connection properties before the database properties.")); } else { Initialize (factory); if (DatabaseConnection.ConnectionPool.HasErrors) { MessageService.ShowError (DatabaseConnection.ConnectionPool.Error); nb.CurrentPage = 0; return; } createDBWidget.Initialize ((SqlServerSchemaProvider)DatabaseConnection.SchemaProvider); } }; Notebook.ShowAll (); } private void Initialize (IDbFactory factory) { if (DatabaseConnection != null) DatabaseConnection.ConnectionPool.Close (); DatabaseConnectionSettings settings = new DatabaseConnectionSettings(connectionWidget.ConnectionSettings); settings.Database = "master"; // Create Context, Pool, Connection DatabaseConnectionContext ctx = new DatabaseConnectionContext (settings, true); ctx.ConnectionPool.Initialize (); this.DatabaseConnection = ctx; } protected override ConnectionSettingsWidget CreateConnectionSettingsWidget (IDbFactory factory) { connectionWidget = new ConnectionSettingsWidget (factory); connectionWidget.ShowSettings (factory.GetDefaultConnectionSettings ()); connectionWidget.EnableTestButton = false; return connectionWidget; } protected override void OnBeforeDatabaseCreation (DatabaseSchema schema) { createDBWidget.SetDatabaseOptions ((SqlServerDatabaseSchema)schema); base.OnBeforeDatabaseCreation (schema); } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/Dialogs/SqlServerTableEditorDialog.cs0000644000175000017500000000225511266446160034134 0ustar directhexdirecthex// // Authors: // Ben Motmans // // Copyright (c) 2008 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/SqlServerConnectionProvider.cs0000755000175000017500000000521311266446160033046 0ustar directhexdirecthex// // Authors: // Christian Hergert // Ben Motmans // // Copyright (C) 2005 Mosaix Communications, Inc. // Copyright (c) 2007 Ben Motmans // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // using System; using System.Data; using System.Data.SqlClient; using System.Collections.Generic; namespace MonoDevelop.Database.Sql.SqlServer { public class SqlServerConnectionProvider : AbstractConnectionProvider { public override IPooledDbConnection CreateConnection (IConnectionPool pool, DatabaseConnectionSettings settings, out string error) { SqlConnectionStringBuilder builder = null; try { if (settings.UseConnectionString) { builder = new SqlConnectionStringBuilder (settings.ConnectionString); } else { builder = new SqlConnectionStringBuilder (); builder.InitialCatalog = settings.Database; if (settings.UseIntegratedSecurity) { builder.IntegratedSecurity = true; } else { builder.UserID = settings.Username; builder.Password = settings.Password; } if (settings.Port == 0) // Don't assign default port builder.DataSource = settings.Server; else builder.DataSource = String.Concat (settings.Server, ",", settings.Port); //builder.NetworkLibrary = "DBMSSOCN"; } builder.Pooling = false; SqlConnection connection = new SqlConnection (builder.ToString ()); connection.Open (); error = null; return new SqlServerPooledDbConnection (pool, connection); } catch (Exception e) { error = e.Message; return null; } } } } monodevelop-database-4.0.12/MonoDevelop.Database.Sql.SqlServer/AssemblyInfo.cs0000644000175000017500000000051711266446160027757 0ustar directhexdirecthex// Autogenerated from MonoDevelop.Database.Sql.SqlServer.addin.xml using System.Reflection; [assembly: AssemblyProduct ("MonoDevelop")] [assembly: AssemblyTitle ("SqlServer provider for Mono Data Sql")] [assembly: AssemblyDescription ("Database Module")] [assembly: AssemblyVersion ("2.6")] [assembly: AssemblyCopyright ("MIT X11")]