X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmain.cpp;h=54dfd83dedccd26bc6cba555257dbe830f29ab27;hb=8f16f0db43e5397bda08038d71c4f6cd9da76c9a;hp=20a73bc6ac9f3bbf3e3ea2325d601d2c198090f9;hpb=7caecc149e65907e4a57c8115c7cac12042e9308;p=kdenlive diff --git a/src/main.cpp b/src/main.cpp index 20a73bc6..54dfd83d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,34 +18,49 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * ***************************************************************************/ +#include "config-kdenlive.h" +#include "mainwindow.h" + #include #include #include #include #include //new -#include "mainwindow.h" -int main(int argc, char *argv[]) { +int main(int argc, char *argv[]) +{ KAboutData aboutData(QByteArray("kdenlive"), QByteArray("kdenlive"), - ki18n("Kdenlive"), QByteArray("0.7.1"), + ki18n("Kdenlive"), VERSION, ki18n("An open source video editor."), KAboutData::License_GPL, - ki18n("Copyright (c) 2008 Development team")); - aboutData.addAuthor(ki18n("Jean-Baptiste Mardelle"), ki18n("Mlt porting, KDE4 porting, Main developer"), "jb@kdenlive.org"); - aboutData.addAuthor(ki18n("Marco Gittler"), ki18n("Mlt Connection, Transition, Effect, Timeline Developer"), "g.marco@freenet.de"); + ki18n("Copyright © 2007–2014 Kdenlive authors")); + aboutData.addAuthor(ki18n("Jean-Baptiste Mardelle"), ki18n("MLT and KDE SC 4 porting, main developer and maintainer"), "jb@kdenlive.org"); + aboutData.addAuthor(ki18n("Vincent Pinon"), ki18n("Interim maintainer, bugs fixing, minor functions, profiles updates, etc."), "vpinon@april.org"); + aboutData.addAuthor(ki18n("Laurent Montel"), ki18n("Bugs fixing, clean up code, optimization etc."), "montel@kde.org"); + aboutData.addAuthor(ki18n("Marco Gittler"), ki18n("MLT transitions and effects, timeline, audio thumbs"), "g.marco@freenet.de"); + aboutData.addAuthor(ki18n("Dan Dennedy"), ki18n("Bug fixing, etc."), "dan@dennedy.org"); + aboutData.addAuthor(ki18n("Simon A. Eugster"), ki18n("Color scopes, bug fixing, etc."), "simon.eu@gmail.com"); + aboutData.addAuthor(ki18n("Till Theato"), ki18n("Bug fixing, etc."), "root@ttill.de"); + aboutData.addAuthor(ki18n("Alberto Villa"), ki18n("Bug fixing, logo, etc."), "avilla@FreeBSD.org"); + aboutData.addAuthor(ki18n("Jean-Michel Poure"), ki18n("Rendering profiles customization"), "jm@poure.com"); + aboutData.addAuthor(ki18n("Ray Lehtiniemi"), ki18n("Bug fixing, etc."), "rayl@mail.com"); + aboutData.addAuthor(ki18n("Jason Wood"), ki18n("Original KDE 3 version author (not active anymore)"), "jasonwood@blueyonder.co.uk"); aboutData.setHomepage("http://kdenlive.org"); aboutData.setCustomAuthorText(ki18n("Please report bugs to http://kdenlive.org/mantis"), ki18n("Please report bugs to http://kdenlive.org/mantis")); aboutData.setTranslator(ki18n("NAME OF TRANSLATORS"), ki18n("EMAIL OF TRANSLATORS")); + aboutData.setBugAddress("http://kdenlive.org/mantis"); KCmdLineArgs::init(argc, argv, &aboutData); KCmdLineOptions options; - options.add("mlt-path ", ki18n("Set the path for MLT environnement")); + options.add("mlt-path ", ki18n("Set the path for MLT environment")); options.add("+[file]", ki18n("Document to open")); //new + options.add("i ", ki18n("Comma separated list of clips to add")); //new KCmdLineArgs::addCmdLineOptions(options); //new KApplication app; + MainWindow* window = 0; // see if we are starting with session management if (app.isSessionRestored()) { @@ -53,8 +68,8 @@ int main(int argc, char *argv[]) { while (KMainWindow::canBeRestored(n)) { const QString className = KXmlGuiWindow::classNameOfToplevel(n); if (className == QLatin1String("MainWindow")) { - MainWindow* win = new MainWindow(); - win->restore(n); + window = new MainWindow(); + window->restore(n); } else { kWarning() << "Unknown class " << className << " in session saved data!"; } @@ -62,17 +77,17 @@ int main(int argc, char *argv[]) { } } else { KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); //new - + QString clipsToLoad = args->getOption("i"); QString mltPath = args->getOption("mlt-path"); KUrl url; if (args->count()) { url = args->url(0); } - MainWindow* window = new MainWindow(mltPath, url); + window = new MainWindow(mltPath, url, clipsToLoad); window->show(); args->clear(); } - - return app.exec(); + int result = app.exec(); + return result; }