summaryrefslogtreecommitdiffstats
path: root/adept/installer/main.cpp
blob: 49c245d4096121b2ae4a49e76d932a84b67863c3 (plain)
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
// KDE includes

#include <kcmdlineargs.h>
#include <kaboutdata.h>
#include <kuniqueapplication.h>

#include "app.h"

static KCmdLineOptions options[] =
{
    KCmdLineLastOption
};

int main(int argc, char *argv[])
{

    KLocale::setMainCatalogue("adept_installer");

    putenv( "TQT_IM_MODULE=xim" );
    TQString description = i18n("Adept Installer");

    TDEAboutData aboutData( "adept_installer",
                          I18N_NOOP("Adept Installer"),
                          "2.1 Cruiser",
                          description.latin1(),
                          TDEAboutData::License_BSD,
                          I18N_NOOP("(c) 2005, 2006 Peter Rockai"),
                          0,
                          "http://web.mornfall.net/adept.html");

    aboutData.addAuthor ( "Peter Rockai",
                          I18N_NOOP("developer"),
                          "me at mornfall dot net",
                          "http://web.mornfall.net");

    TDECmdLineArgs::init( argc, argv, &aboutData );
    TDECmdLineArgs::addCmdLineOptions( options );

    TDEApplication app;

    TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();

    KGlobal::locale()->insertCatalogue(TQString::fromUtf8("libept"));

    App *ta = new App();

    app.setMainWidget(ta);
    ta->show();

    return app.exec();
}