~ubuntu-branches/ubuntu/intrepid/gwenview/intrepid

« back to all changes in this revision

Viewing changes to gwenviewapp/main.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christopher Martin
  • Date: 2004-06-13 18:55:04 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040613185504-net8ekxoswwvyxs9
Tags: 1.1.3-1
New upstream release. Translations now included.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// vim: set tabstop=4 shiftwidth=4 noexpandtab
 
2
/*
 
3
Gwenview - A simple image viewer for KDE
 
4
Copyright 2000-2004 Aur�ien G�eau
 
5
 
 
6
This program is free software; you can redistribute it and/or
 
7
modify it under the terms of the GNU General Public License
 
8
as published by the Free Software Foundation; either version 2
 
9
of the License, or (at your option) any later version.
 
10
 
 
11
This program is distributed in the hope that it will be useful,
 
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
GNU General Public License for more details.
 
15
 
 
16
You should have received a copy of the GNU General Public License
 
17
along with this program; if not, write to the Free Software
 
18
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
19
 
 
20
*/
 
21
#include <kaboutdata.h>
 
22
#include <kapplication.h>
 
23
#include <kcmdlineargs.h>
 
24
#include <klocale.h>
 
25
 
 
26
#include <src/gvmainwindow.h>
 
27
 
 
28
#include "config.h"
 
29
 
 
30
static KCmdLineOptions options[] = {
 
31
        { "f", I18N_NOOP("Start in fullscreen mode"), 0 },
 
32
        { "+[file or folder]", I18N_NOOP("A starting file or folder"), 0 },
 
33
        KCmdLineLastOption
 
34
};
 
35
 
 
36
static const char* version="1.1.3";
 
37
 
 
38
 
 
39
int main (int argc, char *argv[]) {
 
40
#ifdef GV_HACK_SUFFIX
 
41
        KAboutData aboutData("gwenview_hack", I18N_NOOP("Gwenview hack" ),
 
42
#else
 
43
        KAboutData aboutData("gwenview", I18N_NOOP("Gwenview" ),
 
44
#endif                  
 
45
                version, I18N_NOOP("An image viewer for KDE"), KAboutData::License_GPL,
 
46
                "Copyright 2000-2004 Aurélien Gâteau",0,"http://gwenview.sourceforge.net");
 
47
        aboutData.addCredit("Frank Becker", I18N_NOOP("Fast JPEG thumbnail generation (v0.13.0)"), "ff@telus.net");
 
48
        aboutData.addCredit("Tudor Calin", I18N_NOOP("Address bar (v0.16.0)\nHistory support (v1.0.0)"), "tudor_calin@mymail.ro");
 
49
        aboutData.addCredit("Avinash Chopde", I18N_NOOP("File operation patch (v0.9.2)"), "avinash@acm.org");
 
50
        aboutData.addCredit("Marco Gazzetta", I18N_NOOP("Fixed crash when trying to generate a thumbnail for a broken JPEG file (v0.16.0)"), "mililani@pobox.com");
 
51
        aboutData.addCredit("GeniusR13", I18N_NOOP("Fixed compilation on KDE 3.0 (v0.16.1)"), "geniusr13@gmx.net");
 
52
        aboutData.addCredit("Ian Koenig", I18N_NOOP("First RPM spec file"), "iguy@ionsphere.org");
 
53
        aboutData.addCredit("Meni Livne", I18N_NOOP("Toolbar layout patch for RTL languages (v0.16.0)"), "livne@kde.org");
 
54
        aboutData.addCredit("Luboš Luňák", I18N_NOOP("Patch to generate thumbnails for the visible images first (v1.1.0)"), "l.lunak@suse.cz");
 
55
        aboutData.addCredit("Angelo Naselli", I18N_NOOP("Printing support (v1.0.0)"), "random_lx@yahoo.com");
 
56
        aboutData.addCredit("Jos van den Oever", I18N_NOOP("File info view (v1.0.0)\nPatch to toggle auto-zoom on click (v1.0.0)"), "jos@vandenoever.info");
 
57
        aboutData.addCredit("Jeroen Peters", I18N_NOOP("Configurable mouse wheel behavior (v1.1.1)"), "jpeters@coldmail.nl");
 
58
        aboutData.addCredit("Andreas Pfaller", I18N_NOOP("Option to prevent Gwenview from automatically loading the first image of a folder (v0.15.0)"), "apfaller@yahoo.com.au");
 
59
        aboutData.addCredit("Renchi Raju", I18N_NOOP("Fixed thumbnail generation to share the thumbnail folder of Konqueror v3 (v0.15.0)"), "renchi@green.tam.uiuc.edu");
 
60
        aboutData.addCredit("Michael Spanier", I18N_NOOP("Patch for mouse navigation (v0.7.0)"), "mail@michael-spanier.de");
 
61
        aboutData.addCredit("Christian A Strømmen", I18N_NOOP("Integration in Konqueror folder context menu"), "number1@realityx.net");
 
62
 
 
63
        KCmdLineArgs::init( argc, argv, &aboutData );
 
64
        KCmdLineArgs::addCmdLineOptions( options );
 
65
 
 
66
        KApplication kapplication;
 
67
 
 
68
        if (kapplication.isRestored()) {
 
69
                RESTORE(GVMainWindow)
 
70
        } else {
 
71
                GVMainWindow *mainWindow = new GVMainWindow;
 
72
                mainWindow->show();
 
73
        }
 
74
 
 
75
        return kapplication.exec();
 
76
}