1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
#include <tqdir.h>
#include <tqfile.h>
#include <kapplication.h>
#include <klocale.h>
#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <kopenwith.h>
#include "kfinddlg.h"
#include "version.h"
static const char description[] =
I18N_NOOP("TDE file find utility");
static KCmdLineOptions options[] =
{
{ "+[searchpath]", I18N_NOOP("Path(s) to search"), 0 },
KCmdLineLastOption
};
int main( int argc, char ** argv )
{
KLocale::setMainCatalogue("kfindpart");
TDEAboutData aboutData( "kfind", I18N_NOOP("KFind"),
KFIND_VERSION, description, TDEAboutData::License_GPL,
I18N_NOOP("(c) 1998-2003, The KDE Developers"));
aboutData.addAuthor("Eric Coquelle", I18N_NOOP("Current Maintainer"), "[email protected]");
aboutData.addAuthor("Mark W. Webb", I18N_NOOP("Developer"), "[email protected]");
aboutData.addAuthor("Beppe Grimaldi", I18N_NOOP("UI Design & more search options"), "[email protected]");
aboutData.addAuthor("Martin Hartig");
aboutData.addAuthor("Stephan Kulow", 0, "[email protected]");
aboutData.addAuthor("Mario Weilguni",0, "[email protected]");
aboutData.addAuthor("Alex Zepeda",0, "[email protected]");
aboutData.addAuthor("Miroslav Fl�r",0, "[email protected]");
aboutData.addAuthor("Harri Porten",0, "[email protected]");
aboutData.addAuthor("Dima Rogozin",0, "[email protected]");
aboutData.addAuthor("Carsten Pfeiffer",0, "[email protected]");
aboutData.addAuthor("Hans Petter Bieker", 0, "[email protected]");
aboutData.addAuthor("Waldo Bastian", I18N_NOOP("UI Design"), "[email protected]");
aboutData.addAuthor("Alexander Neundorf", 0, "[email protected]");
aboutData.addAuthor("Clarence Dang", 0, "[email protected]");
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options );
TDEApplication app;
TDECmdLineArgs *args= TDECmdLineArgs::parsedArgs();
KURL url;
if (args->count() > 0)
url = args->url(0);
if (url.isEmpty())
url = TQDir::currentDirPath();
if (url.isEmpty())
url = TQDir::homeDirPath();
args->clear();
KfindDlg kfinddlg(url, 0, "dialog");
return kfinddlg.exec();
}
|