X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmain.cpp;h=9d55ac16549dc9ee7af05374a20feff322216b74;hb=ab56c248baef1511a75d7e04971d9f36bb14ca8d;hp=25e1d43e27a741ccc63655366c7d5faf380fcd7c;hpb=5fdf3dfaacd0d5144b1fc2c3949e2cb774e50d25;p=kdenlive diff --git a/src/main.cpp b/src/main.cpp index 25e1d43e..9d55ac16 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,30 +18,39 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * ***************************************************************************/ +#include "kdenlive-config.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"), + 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–2010 Kdenlive authors")); + aboutData.addAuthor(ki18n("Jean-Baptiste Mardelle"), ki18n("MLT porting, KDE SC 4 porting, Main developer"), "jb@kdenlive.org"); + aboutData.addAuthor(ki18n("Marco Gittler"), ki18n("MLT Connection, Transition, Effect, Timeline Developer"), "g.marco@freenet.de"); + 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("Dan Dennedy"), ki18n("Bug fixing, etc."), "dan@dennedy.org"); + aboutData.addAuthor(ki18n("Simon A. Eugster"), ki18n("Bug fixing, etc."), "simon.eu@gmail.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 KCmdLineArgs::addCmdLineOptions(options); //new @@ -64,11 +73,12 @@ int main(int argc, char *argv[]) { KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); //new QString mltPath = args->getOption("mlt-path"); - MainWindow* window = new MainWindow(mltPath); - window->show(); - if (args->count()) { //new - window->openFile(args->url(0)); //new + KUrl url; + if (args->count()) { + url = args->url(0); } + MainWindow* window = new MainWindow(mltPath, url); + window->show(); args->clear(); }