kivio

main.cpp
1/*
2 * Kivio - Visual Modelling and Flowcharting
3 * Copyright (C) 2000-2001 theKompany.com & Dave Marotti
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19#include <koffice_export.h>
20#include <KoApplication.h>
21#include <tdecmdlineargs.h>
22#include <tdelocale.h>
23
24#include <dcopclient.h>
25
26#include "kivio_aboutdata.h"
27
28static const TDECmdLineOptions options[]=
29{
30 {"+[file]", I18N_NOOP("File to open"),0},
31 TDECmdLineLastOption
32};
33
34extern "C" KIVIO_EXPORT int kdemain( int argc, char **argv )
35{
36 TDECmdLineArgs::init( argc, argv, newKivioAboutData() );
37 TDECmdLineArgs::addCmdLineOptions( options );
38
39 KoApplication app;
40
41 if (!app.start()) {
42 return 1;
43 }
44
45 return app.exec();
46}