~ubuntu-branches/ubuntu/maverick/datakiosk/maverick

« back to all changes in this revision

Viewing changes to src/src/main.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-06-27 22:48:06 UTC
  • Revision ID: james.westby@ubuntu.com-20050627224806-8farkci1dc2onhbs
Tags: upstream-0.7
ImportĀ upstreamĀ versionĀ 0.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2005 by Adam Treat                                      *
 
3
 *   treat@kde.org                                                         *
 
4
 *                                                                         *
 
5
 *   Copyright (C) 2004 by Scott Wheeler                                   *
 
6
 *   wheeler@kde.org                                                       *
 
7
 *                                                                         *
 
8
 *   This program is free software; you can redistribute it and/or modify  *
 
9
 *   it under the terms of the GNU General Public License as published by  *
 
10
 *   the Free Software Foundation; either version 2 of the License, or     *
 
11
 *   (at your option) any later version.                                   *
 
12
 *                                                                         *
 
13
 ***************************************************************************/
 
14
 
 
15
#include <kapplication.h>
 
16
#include <kcmdlineargs.h>
 
17
#include <kaboutdata.h>
 
18
#include <kconfigbase.h>
 
19
#include <kconfig.h>
 
20
 
 
21
#include "datakiosk.h"
 
22
 
 
23
static const char description[] = I18N_NOOP( "DataKiosk: A database interface tool." );
 
24
static const char adam[] = I18N_NOOP( "Author of DataKiosk." );
 
25
static const char scott[] = I18N_NOOP( "Author of Juk.  DataKiosk is partially based upon JuK." );
 
26
static const char tt[] = I18N_NOOP( "Authors of Qt designer.  DataKiosk is partially based upon designer." );
 
27
 
 
28
static KCmdLineOptions options[] =
 
29
    {
 
30
        { "project <file>", I18N_NOOP( "Project file to open" ), 0 },
 
31
        KCmdLineLastOption
 
32
    };
 
33
 
 
34
int main( int argc, char *argv[] )
 
35
{
 
36
    KAboutData aboutData( "datakiosk", I18N_NOOP( "DataKiosk" ),
 
37
                          "0.7", description, KAboutData::License_GPL,
 
38
                          "(c) 2005, Adam Treat", 0,
 
39
                          "" );
 
40
 
 
41
    aboutData.addAuthor( "Adam Treat", adam, "treat@kde.org" );
 
42
    aboutData.addCredit( "Scott Wheeler", scott, "wheeler@kde.org" );
 
43
    aboutData.addCredit( "Trolltech AS", tt, "info@trolltech.com" );
 
44
 
 
45
    KCmdLineArgs::init( argc, argv, &aboutData );
 
46
    KCmdLineArgs::addCmdLineOptions( options );
 
47
 
 
48
    KApplication::addCmdLineOptions();
 
49
 
 
50
    KApplication a;
 
51
    DataKiosk *datakiosk = new DataKiosk();
 
52
    a.setMainWidget( datakiosk );
 
53
    datakiosk->show();
 
54
 
 
55
    return a.exec();
 
56
}