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
|
//Author: Max Howell <[email protected]>, (C) 2003-4
//Copyright: See COPYING file that comes with this distribution
#include "define.h"
#include <kaboutdata.h>
#include <kapplication.h>
#include <kcmdlineargs.h>
#include <klocale.h>
#include <kurl.h>
#include "mainWindow.h"
static const KCmdLineOptions options[] =
{
{ "+[path]", I18N_NOOP( "Scan 'path'" ), 0 },
{ 0, 0, 0 }
};
static TDEAboutData about(
APP_NAME, I18N_NOOP( APP_PRETTYNAME ), APP_VERSION,
I18N_NOOP("Graphical disk-usage information"), TDEAboutData::License_GPL_V2,
I18N_NOOP("(C )2006 Max Howell"), 0,
"http://www.methylblue.com/filelight/", "[email protected]" );
int main( int argc, char *argv[] )
{
using Filelight::MainWindow;
about.addAuthor( "Max Howell", I18N_NOOP("Author, maintainer"), "[email protected]", "http://www.methylblue.com/" );
about.addAuthor( "Mike Diehl", I18N_NOOP("Documentation"), 0, 0 );
about.addCredit( "Steffen Gerlach", I18N_NOOP("Inspiration"), 0, "http://www.steffengerlach.de/" );
about.addCredit( "André Somers", I18N_NOOP("Internationalization") );
about.addCredit( "Stephanie James", I18N_NOOP("Testing") );
about.addCredit( "Marcus Camen", I18N_NOOP("Bravery in the face of unreadable code") );
TDECmdLineArgs::init( argc, argv, &about );
TDECmdLineArgs::addCmdLineOptions( options );
TDEApplication app;
if (!app.isRestored()) {
MainWindow *mw = new MainWindow();
app.setMainWidget( mw );
TDECmdLineArgs* const args = TDECmdLineArgs::parsedArgs();
if (args->count() > 0 ) mw->scan( args->url( 0 ));
args->clear();
mw->show();
}
else RESTORE( MainWindow );
return app.exec();
}
|