krita
main.cc
00001 /* 00002 * main.cc - part of KImageShop 00003 * 00004 * Copyright (c) 1999 Matthias Elter <me@kde.org> 00005 * Copyright (c) 2002 Patrick Julien <freak@codepimps.org> 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This program is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 */ 00020 #include <dcopclient.h> 00021 #include <kcmdlineargs.h> 00022 #include <KoApplication.h> 00023 00024 #include "ui/kis_aboutdata.h" 00025 00026 static const KCmdLineOptions options[] = { 00027 { "+[file(s)]", I18N_NOOP("File(s) or URL(s) to open"), 0 }, 00028 KCmdLineLastOption 00029 }; 00030 00031 extern "C" KRITA_EXPORT int kdemain(int argc, char **argv) 00032 { 00033 KCmdLineArgs::init(argc, argv, newKritaAboutData()); 00034 KCmdLineArgs::addCmdLineOptions(options); 00035 00036 KoApplication app; 00037 00038 if (!app.start()) 00039 return 1; 00040 00041 return app.exec(); 00042 } 00043