From 8362bf63dea22bbf6736609b0f49c152f975eb63 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 20 Jan 2010 01:29:50 +0000 Subject: Added old abandoned KDE3 version of koffice git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kexi/core/kexicmdlineargs.h | 181 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 181 insertions(+) create mode 100644 kexi/core/kexicmdlineargs.h (limited to 'kexi/core/kexicmdlineargs.h') diff --git a/kexi/core/kexicmdlineargs.h b/kexi/core/kexicmdlineargs.h new file mode 100644 index 00000000..d67c5e61 --- /dev/null +++ b/kexi/core/kexicmdlineargs.h @@ -0,0 +1,181 @@ +/* This file is part of the KDE project + Copyright (C) 2002, 2003 Lucijan Busch + Copyright (C) 2002, 2003 Joseph Wenninger + Copyright (C) 2003-2007 Jaroslaw Staniek + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. +*/ + +#ifndef KEXICMDLINEARGS_H +#define KEXICMDLINEARGS_H + +#include +#include + +static KCmdLineOptions options[] = +{ + { ":", I18N_NOOP("Options related to entire projects:"), 0 }, + { "createdb", I18N_NOOP( + "Create a new, blank project using specified\n" + "database driver and database name\n" + "and exit immediately.\n" + "You will be asked for confirmation\n" + "if overwriting is needed."), 0 }, + { "create-opendb", I18N_NOOP( + "Like --createdb, but also open newly\n" + "created database.\n"), 0 }, + { "dropdb", I18N_NOOP( + "Drop (remove) a project using specified\n" + "database driver and database name.\n" + "You will be asked for confirmation."), 0 }, + { "drv", 0, 0 }, + { "dbdriver ", I18N_NOOP( + "Database driver to be used\n" + "for connecting to a database project\n" + "(SQLite by default).\n" + "Ignored if a shortcut filename\n" + "is provided."), 0 }, + { "t", 0, 0 }, + { "type ", I18N_NOOP( + "Specify the type of file provided as an argument.\n" + "This option is only useful if the filename does\n" + "not have a valid extension set and its type\n" + "cannot be determined unambiguously by examining\n" + "its contents.\n" + "This option is ignored if no file is specified as\n" + "an argument.\n" + "Available file types are:\n" + "- \"project\" for a project file (the default)\n" + "- \"shortcut\" for a shortcut file pointing to a\n" + " project.\n" + "- \"connection\" for database connection data.\n" + ), 0 }, + { "conn", 0, 0 }, + { "connection ", I18N_NOOP( + "\nSpecify a database connection shortcut .kexic\n" + "file containing connection data.\n" + "Can be used with --createdb or --create-opendb\n" + "for convenience instead of using options like \n" + "--user, --host or --port.\n" + "Note: Options like --user, --host have\n" + "precedence over settings defined in the shortcut\n" + "file." ), 0 }, + { "readonly", I18N_NOOP( + "Specify that any database connections will\n" + "be performed without write support. This option\n" + "is ignored when \"createdb\" option is present,\n" + "otherwise the database could not be created."), 0 }, + { "user-mode", I18N_NOOP( + "Start project in User Mode, regardless \n" + "of the project settings."), 0 }, + { "design-mode", I18N_NOOP( + "Start project in Design Mode, regardless \n" + "of the project settings."), 0 }, + { "show-navigator", I18N_NOOP( + "Show the Project Navigator side pane even\n" + "if Kexi runs in User Mode."), 0 }, + { "skip-startup-dialog", I18N_NOOP( + "Skip displaying startup dialog window.\n" + "If there is no project name specified to open,\n" + "empty application window will appear."), 0 }, + + { ":", I18N_NOOP("Options related to opening objects within a project:"), 0 }, + { "open [:]", I18N_NOOP( + "\nOpen object of type \n" + "and name from specified project\n" + "on application start.\n" + ": is optional, if omitted - table\n" + "type is assumed.\n" + "Other object types can be query, report, form,\n" + "script (may be more or less, depending on your\n" + "plugins installed).\n" + "Use \"\" chars to specify names containing spaces.\n" + "Examples: --open MyTable,\n" + " --open query:\"My very big query\""), 0 }, + { "design [:]", I18N_NOOP( + "\nLike --open, but the object will\n" + "be opened in Design Mode, if one is available."), 0 }, + { "edittext [:]", I18N_NOOP( + "\nLike --open, but the object will\n" + "be opened in Text Mode, if one is available."), 0 }, + { "exec", 0, 0 }, + { "execute [:]", I18N_NOOP( + "\nStart execution of object of type \n" + "and name on application start.\n" + ": is optional, if omitted - macro\n" + "type is assumed.\n" + "Other object types can be script (may be more\n" + "or less, depending on your plugins installed).\n" + "Use \"\" chars to specify names containing spaces."), 0 }, + { "new ", I18N_NOOP( + "Start new object design of type ."), 0 }, + { "print [:]", I18N_NOOP( + "\nOpen the Print dialog window for an object of type\n" + " and name in the specified\n" + "project when the application starts, for quick printing\n" + "of the object's data.\n" + ": is optional; if omitted, table\n" + "type is assumed. Object type can also be query."), 0 }, + { "print-preview [:]", I18N_NOOP( + "\nOpen Print Preview window for object\n" + "of type and name \n" + "from specified project on application start.\n" + "See --print for more details."), 0 }, + + { ":", I18N_NOOP("Options related to database servers:"), 0 }, + { "u", 0, 0 }, + { "user ", I18N_NOOP( + "User name to be used\n" + "for connecting to a database project.\n" + "Ignored if a shortcut filename\n" + "is provided."), 0 }, +/* { "password ", I18N_NOOP( + "User password to be used\n" + "for connecting to a database project.\n" + "Ignored if a shortcut filename\n" + "is provided."), 0 },*/ + { "h", 0, 0 }, + { "host ", I18N_NOOP( + "Server (host) name to be used\n" + "for connecting to a database project.\n" + "Ignored if a shortcut filename\n" + "is provided."), 0 }, + { "port ", I18N_NOOP( + "Server's port number to be used\n" + "for connecting to a database project.\n" + "Ignored if a shortcut filename\n" + "is provided."), 0 }, + { "local-socket ", I18N_NOOP( + "Server's local socket filename\n" + "to be used for connecting to a database\n" + "project. Ignored if a shortcut filename\n" + "is provided."), 0 }, + { "skip-conn-dialog", I18N_NOOP( + "Skip displaying connection dialog window\n" + "and connect directly. Available when\n" + "opening .kexic or .kexis shortcut files."), 0 }, + + { "+[project-name]", I18N_NOOP( + "Kexi database project filename,\n" + "Kexi shortcut filename,\n" + "or name of a Kexi database\n" + "project on a server to open."), 0 }, + // INSERT YOUR COMMANDLINE OPTIONS HERE + KCmdLineLastOption +}; + +#endif + -- cgit v1.2.1