00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef KEXICMDLINEARGS_H
00023 #define KEXICMDLINEARGS_H
00024
00025 #include <kcmdlineargs.h>
00026 #include <klocale.h>
00027
00028 static KCmdLineOptions options[] =
00029 {
00030 { ":", I18N_NOOP("Options related to entire projects:"), 0 },
00031 { "createdb", I18N_NOOP(
00032 "Create a new, blank project using specified\n"
00033 "database driver and database name\n"
00034 "and exit immediately.\n"
00035 "You will be asked for confirmation\n"
00036 "if overwriting is needed."), 0 },
00037 { "create-opendb", I18N_NOOP(
00038 "Like --createdb, but also open newly\n"
00039 "created database.\n"), 0 },
00040 { "dropdb", I18N_NOOP(
00041 "Drop (remove) a project using specified\n"
00042 "database driver and database name.\n"
00043 "You will be asked for confirmation."), 0 },
00044 { "drv", 0, 0 },
00045 { "dbdriver <name>", I18N_NOOP(
00046 "Database driver to be used\n"
00047 "for connecting to a database project\n"
00048 "(SQLite by default).\n"
00049 "Ignored if a shortcut filename\n"
00050 "is provided."), 0 },
00051 { "t", 0, 0 },
00052 { "type <name>", I18N_NOOP(
00053 "Specify the type of file provided as an argument.\n"
00054 "This option is only useful if the filename does\n"
00055 "not have a valid extension set and its type\n"
00056 "cannot be determined unambiguously by examining\n"
00057 "its contents.\n"
00058 "This option is ignored if no file is specified as\n"
00059 "an argument.\n"
00060 "Available file types are:\n"
00061 "- \"project\" for a project file (the default)\n"
00062 "- \"shortcut\" for a shortcut file pointing to a\n"
00063 " project.\n"
00064 "- \"connection\" for database connection data.\n"
00065 ), 0 },
00066 { "conn", 0, 0 },
00067 { "connection <shortcut_filename>", I18N_NOOP(
00068 "\nSpecify a database connection shortcut .kexic\n"
00069 "file containing connection data.\n"
00070 "Can be used with --createdb or --create-opendb\n"
00071 "for convenience instead of using options like \n"
00072 "--user, --host or --port.\n"
00073 "Note: Options like --user, --host have\n"
00074 "precedence over settings defined in the shortcut\n"
00075 "file." ), 0 },
00076 { "readonly", I18N_NOOP(
00077 "Specify that any database connections will\n"
00078 "be performed without write support. This option\n"
00079 "is ignored when \"createdb\" option is present,\n"
00080 "otherwise the database could not be created."), 0 },
00081 { "user-mode", I18N_NOOP(
00082 "Start project in User Mode, regardless \n"
00083 "of the project settings."), 0 },
00084 { "design-mode", I18N_NOOP(
00085 "Start project in Design Mode, regardless \n"
00086 "of the project settings."), 0 },
00087 { "show-navigator", I18N_NOOP(
00088 "Show the Project Navigator side pane even\n"
00089 "if Kexi runs in User Mode."), 0 },
00090 { "skip-startup-dialog", I18N_NOOP(
00091 "Skip displaying startup dialog window.\n"
00092 "If there is no project name specified to open,\n"
00093 "empty application window will appear."), 0 },
00094
00095 { ":", I18N_NOOP("Options related to opening objects within a project:"), 0 },
00096 { "open [<object_type>:]<object_name>", I18N_NOOP(
00097 "\nOpen object of type <object_type>\n"
00098 "and name <object_name> from specified project\n"
00099 "on application start.\n"
00100 "<object_type>: is optional, if omitted - table\n"
00101 "type is assumed.\n"
00102 "Other object types can be query, report, form,\n"
00103 "script (may be more or less, depending on your\n"
00104 "plugins installed).\n"
00105 "Use \"\" chars to specify names containing spaces.\n"
00106 "Examples: --open MyTable,\n"
00107 " --open query:\"My very big query\""), 0 },
00108 { "design [<object_type>:]<object_name>", I18N_NOOP(
00109 "\nLike --open, but the object will\n"
00110 "be opened in Design Mode, if one is available."), 0 },
00111 { "edittext [<object_type>:]<object_name>", I18N_NOOP(
00112 "\nLike --open, but the object will\n"
00113 "be opened in Text Mode, if one is available."), 0 },
00114 { "exec", 0, 0 },
00115 { "execute [<object_type>:]<object_name>", I18N_NOOP(
00116 "\nStart execution of object of type <object_type>\n"
00117 "and name <object_name> on application start.\n"
00118 "<object_type>: is optional, if omitted - macro\n"
00119 "type is assumed.\n"
00120 "Other object types can be script (may be more\n"
00121 "or less, depending on your plugins installed).\n"
00122 "Use \"\" chars to specify names containing spaces."), 0 },
00123 { "new <object_type>", I18N_NOOP(
00124 "Start new object design of type <object_type>."), 0 },
00125 { "print [<object_type>:]<object_name>", I18N_NOOP(
00126 "\nOpen the Print dialog window for an object of type\n"
00127 "<object_type> and name <object_name> in the specified\n"
00128 "project when the application starts, for quick printing\n"
00129 "of the object's data.\n"
00130 "<object_type>: is optional; if omitted, table\n"
00131 "type is assumed. Object type can also be query."), 0 },
00132 { "print-preview [<object_type>:]<object_name>", I18N_NOOP(
00133 "\nOpen Print Preview window for object\n"
00134 "of type <object_type> and name <object_name>\n"
00135 "from specified project on application start.\n"
00136 "See --print for more details."), 0 },
00137
00138 { ":", I18N_NOOP("Options related to database servers:"), 0 },
00139 { "u", 0, 0 },
00140 { "user <name>", I18N_NOOP(
00141 "User name to be used\n"
00142 "for connecting to a database project.\n"
00143 "Ignored if a shortcut filename\n"
00144 "is provided."), 0 },
00145
00146
00147
00148
00149
00150 { "h", 0, 0 },
00151 { "host <name>", I18N_NOOP(
00152 "Server (host) name to be used\n"
00153 "for connecting to a database project.\n"
00154 "Ignored if a shortcut filename\n"
00155 "is provided."), 0 },
00156 { "port <number>", I18N_NOOP(
00157 "Server's port number to be used\n"
00158 "for connecting to a database project.\n"
00159 "Ignored if a shortcut filename\n"
00160 "is provided."), 0 },
00161 { "local-socket <filename>", I18N_NOOP(
00162 "Server's local socket filename\n"
00163 "to be used for connecting to a database\n"
00164 "project. Ignored if a shortcut filename\n"
00165 "is provided."), 0 },
00166 { "skip-conn-dialog", I18N_NOOP(
00167 "Skip displaying connection dialog window\n"
00168 "and connect directly. Available when\n"
00169 "opening .kexic or .kexis shortcut files."), 0 },
00170
00171 { "+[project-name]", I18N_NOOP(
00172 "Kexi database project filename,\n"
00173 "Kexi shortcut filename,\n"
00174 "or name of a Kexi database\n"
00175 "project on a server to open."), 0 },
00176
00177 KCmdLineLastOption
00178 };
00179
00180 #endif
00181