diff options
author | Michele Calgaro <[email protected]> | 2015-01-27 18:42:31 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2015-01-27 18:42:31 +0900 |
commit | e9638a300c509773908226ef2299f2f2b83a1f55 (patch) | |
tree | 9813d82d8ae78e005c73838a06f8a90ac6e27825 /tdefilereplace/main.cpp | |
parent | 92bb53cb48fb172f922e60ffccfcce3e3db26967 (diff) | |
download | tdewebdev-e9638a300c509773908226ef2299f2f2b83a1f55.tar.gz tdewebdev-e9638a300c509773908226ef2299f2f2b83a1f55.zip |
Moved TDEFileReplace to tdeutils. This resolves bug 767.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'tdefilereplace/main.cpp')
-rw-r--r-- | tdefilereplace/main.cpp | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/tdefilereplace/main.cpp b/tdefilereplace/main.cpp deleted file mode 100644 index 1ca0ce24..00000000 --- a/tdefilereplace/main.cpp +++ /dev/null @@ -1,77 +0,0 @@ -/*************************************************************************** - main.cpp - Main file for the TDEFileReplace shell - ------------------- - begin : Thu Sep 16 14:14:09 2004 - copyright : (C) 2004 by Andras Mantia <[email protected]> - ***************************************************************************/ - -/*************************************************************************** - * * - * 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. * - * * - ***************************************************************************/ - -#include "tdefilereplace.h" - -#include <tdeapplication.h> -#include <tdeaboutdata.h> -#include <tdecmdlineargs.h> -#include <tdelocale.h> - -static const char description[] = - I18N_NOOP("Batch search and replace tool"); - -static const char version[] = "0.1"; - -static TDECmdLineOptions options[] = - { - { "+[PATH]", I18N_NOOP( "Starting folder" ), 0 }, - TDECmdLineLastOption - }; - -int main(int argc, char *argv[]) -{ - TDEAboutData about("tdefilereplace", I18N_NOOP("TDEFileReplace"), version, description, - TDEAboutData::License_GPL_V2, "(C) 2004-2005 Andras Mantia\n(C) 2004-2005 Emiliano Gulmini\n(C) 1999-2002 Francois Dupoux", I18N_NOOP("Part of the KDEWebDev module."), - "http://www.kdewebdev.org"); - - about.addAuthor("Andras Mantia", I18N_NOOP("Shell author, KPart creator, co-maintainer"), "[email protected]"); - about.addAuthor("Emiliano Gulmini", I18N_NOOP("Current maintainer, code cleaner and rewriter"),"[email protected]"); - about.addAuthor("Francois Dupou", - I18N_NOOP("Original author of the TDEFileReplace tool"), - "[email protected]"); - - TDECmdLineArgs::init(argc, argv, &about); - TDECmdLineArgs::addCmdLineOptions( options ); - - TDEApplication app; - - // see if we are starting with session management - if (app.isRestored()) - { - RESTORE(TDEFileReplace); - } - else - { - // no session.. just start up normally - TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); - - TDEFileReplace *kfr = new TDEFileReplace; - kfr->show(); - - if (args->count() == 0) - { - kfr->openURL(KURL()); - } - else - { - kfr->openURL(args->url(0)); - } - args->clear(); - } - - return app.exec(); -} |