]>
cloud.milkyroute.net Git - dolphin.git/blob - src/main.cpp
1 /***************************************************************************
2 * Copyright (C) 2006 by Peter Penz <peter.penz@gmx.at> *
3 * Copyright (C) 2006 by Stefan Monov <logixoul@gmail.com> *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
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. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
19 ***************************************************************************/
21 #include "dolphinapplication.h"
23 #include "dolphinmainwindow.h"
25 #include <kaboutdata.h>
26 #include <kcmdlineargs.h>
29 #include <kmainwindow.h>
32 int main(int argc
, char **argv
)
34 KAboutData
about("dolphin", 0,
35 ki18nc("@title", "Dolphin"),
37 ki18nc("@title", "File Manager"),
38 KAboutData::License_GPL
,
39 ki18nc("@info:credit", "(C) 2006, 2007 Peter Penz"));
40 about
.setHomepage("http://enzosworld.gmxhome.de");
41 about
.setBugAddress("http://bugs.kde.org");
42 about
.addAuthor(ki18nc("@info:credit", "Peter Penz"),
43 ki18nc("@info:credit", "Maintainer and developer"),
45 about
.addAuthor(ki18nc("@info:credit", "David Faure"),
46 ki18nc("@info:credit", "Developer"),
48 about
.addAuthor(ki18nc("@info:credit", "Aaron J. Seigo"),
49 ki18nc("@info:credit", "Developer"),
51 about
.addAuthor(ki18nc("@info:credit", "Rafael Fernández López"),
52 ki18nc("@info:credit", "Developer"),
54 about
.addAuthor(ki18nc("@info:credit", "Kevin Ottens"),
55 ki18nc("@info:credit", "Developer"),
57 about
.addAuthor(ki18nc("@info:credit", "Holger Freyther"),
58 ki18nc("@info:credit", "Developer"),
60 about
.addAuthor(ki18nc("@info:credit", "Max Blazejak"),
61 ki18nc("@info:credit", "Developer"),
62 "m43ksrocks@gmail.com");
63 about
.addAuthor(ki18nc("@info:credit", "Michael Austin"),
64 ki18nc("@info:credit", "Documentation"),
65 "tuxedup@users.sourceforge.net");
67 KCmdLineArgs::init(argc
, argv
, &about
);
69 KCmdLineOptions options
;
70 options
.add("+[Url]", ki18nc("@info:shell", "Document to open"));
71 KCmdLineArgs::addCmdLineOptions(options
);
73 if (!DolphinApplication::start()) {
77 DolphinApplication app
;
78 // the .desktop file is not taken into account when launching manually, so
79 // set the icon precautionally:
80 QApplication::setWindowIcon(KIcon("system-file-manager"));
81 KGlobal::locale()->insertCatalog("libkonq"); // needed for applications using libkonq
83 if (false /*app.isSessionRestored()*/) {
85 while (KMainWindow::canBeRestored(n
)) {
86 const QString className
= KXmlGuiWindow::classNameOfToplevel(n
);
87 if (className
== QLatin1String("DolphinMainWindow")) {
88 DolphinMainWindow
* win
= app
.createMainWindow();
91 kWarning() << "Unknown class " << className
<< " in session saved data!";