X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmain.cpp;h=4f8823771d3f536efb5c41f382a09639700a6b78;hb=cd421a62b814c3374918a95ab12474cab8d173b1;hp=362ad4a3bf5f396526d1f2fa434d76eb52b9907e;hpb=1c18bd7c4c8ff3fdc56f98f62f36457321b74703;p=kdenlive diff --git a/src/main.cpp b/src/main.cpp index 362ad4a3..4f882377 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,7 +18,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * ***************************************************************************/ - #include #include #include @@ -28,17 +27,19 @@ #include "mainwindow.h" int main(int argc, char *argv[]) { - KAboutData aboutData("kdenlive", "kdenlive", - ki18n("Kdenlive"), "0.7", + KAboutData aboutData(QByteArray("kdenlive"), QByteArray("kdenlive"), + ki18n("Kdenlive"), QByteArray("0.7"), 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("MltConnection, Transition, Effect, Timeline Developer"), "g.marco@freenet.de"); aboutData.setHomepage("http://kdenlive.org"); + //aboutData.setBugAddress("http://kdenlive.org/mantis"); KCmdLineArgs::init(argc, argv, &aboutData); - KCmdLineOptions options; //new + KCmdLineOptions options; + options.add("mlt-path ", ki18n("Set the path for MLT environnement")); options.add("+[file]", ki18n("Document to open")); //new KCmdLineArgs::addCmdLineOptions(options); //new @@ -58,10 +59,11 @@ int main(int argc, char *argv[]) { ++n; } } else { - MainWindow* window = new MainWindow(); - window->show(); - 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 }