dolphin/kfind/main.cpp
Martin Tobias Holmedahl Sandsmark 43fdf52a51 Re-revert hodge-podge commits by markuss with bogus or without commit messages.
(White space changes, breaking of copyright headers,
fudging of dates in copyright notices, re-assignments
of copyrights to fictitious entities, and more.)

Commits reverted:
markuss * r1154942 runtime/trunk/KDE/kdebase/runtime/kdesu/FAQ:
markuss * r1154943 workspace/trunk/KDE/kdebase/workspace/plasma/README:
markuss * r1154952 apps/trunk/KDE/kdebase/apps/dolphin/src/main.cpp:
markuss * r1154953 apps/trunk/KDE/kdebase/apps/kfind/main.cpp:
markuss * r1154955 apps/trunk/KDE/kdebase/apps/konsole/src/main.cpp:
markuss * r1154956 apps/trunk/KDE/kdebase/apps/kwrite/kwritemain.cpp:
markuss * r1154957 runtime/trunk/KDE/kdebase/runtime/kcmshell/main.cpp:
markuss * r1154958 runtime/trunk/KDE/kdebase/runtime/kde-menu/kde-menu.cpp:
markuss * r1154960 runtime/trunk/KDE/kdebase/runtime/kdesu/kdesu/kdesu.cpp:
markuss * r1154961 runtime/trunk/KDE/kdebase/runtime/kquitapp/kquitapp.cpp:
markuss * r1154962 workspace/trunk/KDE/kdebase/workspace/kinfocenter/main.cpp:
markuss * r1154963 workspace/trunk/KDE/kdebase/workspace/klipper/klipper.cpp:
markuss * r1154965 workspace/trunk/KDE/kdebase/workspace/powerdevil/ (3 files in 2 dirs):
markuss * r1154969 workspace/trunk/KDE/kdebase/workspace/systemsettings/app/main.cpp:



svn path=/trunk/KDE/kdebase/apps/; revision=1154990
2010-07-26 16:42:15 +00:00

75 lines
3 KiB
C++

/*******************************************************************
* 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("(c) 1998-2003, The KDE Developers"));
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();
}