dolphin/kfind/main.cpp
Markus Meik Slopianka 5e5fddbc6f Slightly modified 'About' window to:
a.) Carry the "Copyright" term (legally required)
b.) Use Unicode (© and en-dash)

To the module owner: Please consider bumping the copyright year to 2011 (SC 4.6 will be released then)

svn path=/trunk/KDE/kdebase/apps/; revision=1154953
2010-07-26 15:54:44 +00:00

75 lines
3 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*******************************************************************
* main.cpp
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************/
#include <QtCore/QDir>
#include <QtCore/QFile>
#include <kapplication.h>
#include <klocale.h>
#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include "kfinddlg.h"
#include "version.h"
static const char description[] = I18N_NOOP("KDE file find utility");
int main( int argc, char ** argv )
{
KAboutData aboutData( "kfind", "kfindpart", ki18n("KFind"),
KFIND_VERSION, ki18n(description), KAboutData::License_GPL,
ki18n("Copyright © 19982003 KFind authors"));
aboutData.addAuthor(ki18n("Eric Coquelle"), ki18n("Current Maintainer"), "coquelle@caramail.com");
aboutData.addAuthor(ki18n("Mark W. Webb"), ki18n("Developer"), "markwebb@adelphia.net");
aboutData.addAuthor(ki18n("Beppe Grimaldi"), ki18n("UI Design & more search options"), "grimalkin@ciaoweb.it");
aboutData.addAuthor(ki18n("Martin Hartig"));
aboutData.addAuthor(ki18n("Stephan Kulow"), KLocalizedString(), "coolo@kde.org");
aboutData.addAuthor(ki18n("Mario Weilguni"),KLocalizedString(), "mweilguni@sime.com");
aboutData.addAuthor(ki18n("Alex Zepeda"),KLocalizedString(), "zipzippy@sonic.net");
aboutData.addAuthor(ki18n("Miroslav Flídr"),KLocalizedString(), "flidr@kky.zcu.cz");
aboutData.addAuthor(ki18n("Harri Porten"),KLocalizedString(), "porten@kde.org");
aboutData.addAuthor(ki18n("Dima Rogozin"),KLocalizedString(), "dima@mercury.co.il");
aboutData.addAuthor(ki18n("Carsten Pfeiffer"),KLocalizedString(), "pfeiffer@kde.org");
aboutData.addAuthor(ki18n("Hans Petter Bieker"), KLocalizedString(), "bieker@kde.org");
aboutData.addAuthor(ki18n("Waldo Bastian"), ki18n("UI Design"), "bastian@kde.org");
aboutData.addAuthor(ki18n("Alexander Neundorf"), KLocalizedString(), "neundorf@kde.org");
aboutData.addAuthor(ki18n("Clarence Dang"), KLocalizedString(), "dang@kde.org");
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineOptions options;
options.add("+[searchpath]", ki18n("Path(s) to search"));
KCmdLineArgs::addCmdLineOptions( options );
KApplication app;
KCmdLineArgs *args= KCmdLineArgs::parsedArgs();
KUrl url;
if (args->count() > 0)
url = args->url(0);
if (url.isEmpty())
url = QDir::currentPath();
if (url.isEmpty())
url = QDir::homePath();
args->clear();
KfindDlg kfinddlg(url);
return kfinddlg.exec();
}