summaryrefslogtreecommitdiffstats
path: root/kexi/core/kexicmdlineargs.h
blob: 62cbbe7fbb8d7a9807a0f61990100576ea08a9d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
/* This file is part of the KDE project
   Copyright (C) 2002, 2003 Lucijan Busch <[email protected]>
   Copyright (C) 2002, 2003 Joseph Wenninger <[email protected]>
   Copyright (C) 2003-2007 Jaroslaw Staniek <[email protected]>

   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 <tdecmdlineargs.h>
#include <tdelocale.h>

static TDECmdLineOptions 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 <name>", 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 <name>", 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 <shortcut_filename>", 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 [<object_type>:]<object_name>", I18N_NOOP(
	"\nOpen object of type <object_type>\n"
	"and name <object_name> from specified project\n"
	"on application start.\n"
	"<object_type>: 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 [<object_type>:]<object_name>", I18N_NOOP(
	"\nLike --open, but the object will\n"
	"be opened in Design Mode, if one is available."), 0 },
  { "edittext [<object_type>:]<object_name>", I18N_NOOP(
	"\nLike --open, but the object will\n"
	"be opened in Text Mode, if one is available."), 0 },
  { "exec", 0, 0 },
  { "execute [<object_type>:]<object_name>", I18N_NOOP(
	"\nStart execution of object of type <object_type>\n"
	"and name <object_name> on application start.\n"
	"<object_type>: 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 <object_type>", I18N_NOOP(
	"Start new object design of type <object_type>."), 0 },
  { "print [<object_type>:]<object_name>", I18N_NOOP(
	"\nOpen the Print dialog window for an object of type\n"
	"<object_type> and name <object_name> in the specified\n"
	"project when the application starts, for quick printing\n"
	"of the object's data.\n"
	"<object_type>: is optional; if omitted, table\n"
	"type is assumed. Object type can also be query."), 0 },
  { "print-preview [<object_type>:]<object_name>", I18N_NOOP(
	"\nOpen Print Preview window for object\n"
	"of type <object_type> and name <object_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 <name>", 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 <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 <name>", 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 <number>", 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 <filename>", 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
  TDECmdLineLastOption
};

#endif