~ubuntu-branches/ubuntu/lucid/mplayerthumbs/lucid

« back to all changes in this revision

Viewing changes to src/main.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-06-21 16:41:15 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090621164115-9w006t552m6juiun
Tags: 1.2-kde4.3.0-0ubuntu1
* New upstream release
* Transition to kde.mk from pkg-kde-tools:
  - Bump debhelper build-dep to 7
  - Bump compat version to 7
  - Include kde.mk and debhelper.mk in debian/rules
* Add shlib-depends to depends
* Bump Standards-Version to 3.8.2
* Remove unnecessary build-depend on cmake, bump kdelibs5-dev build-depend
  to 4.2.85 as its the first version to build-dep on cmake
* Drop conflict on libarts1-xine, package hasn't existed for a while
* Move homepage from the package description to its own field.
* Remove debian/patches. The only patch was a GCC fix that hasn't been
  applied in the last release, and mplayerthumbs seems to work with the 
  latest GCC
* Add debian/patches/kubuntu_01_out_of_source_build.diff so that we can
  build outside of kdemultimedia

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
   Copyright (C) 2006-2008
3
 
   by Marco Gulino <marco@kmobiletools.org>
4
 
 
5
 
   This program is free software; you can redistribute it and/or modify
6
 
   it under the terms of the GNU General Public License as published by
7
 
   the Free Software Foundation; either version 2 of the License, or
8
 
   (at your option) any later version.
9
 
 
10
 
   This program is distributed in the hope that it will be useful,
11
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
   GNU General Public License for more details.
14
 
 
15
 
   You should have received a copy of the GNU General Public License
16
 
   along with this program; if not, write to the
17
 
   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
 
    Boston, MA 02110-1301, USA.
19
 
 ***************************************************************************/
20
 
 
21
 
#include <kapplication.h>
22
 
#include <kaboutdata.h>
23
 
#include <kcmdlineargs.h>
24
 
#include <klocale.h>
25
 
 
26
 
#include "mplayerthumbscfg.h"
27
 
#include "mplayerthumbs.h"
28
 
 
29
 
static const char description[] =
30
 
    I18N_NOOP("MPlayerThumbs Configuration Utility");
31
 
 
32
 
static const char version[] = "0.1";
33
 
 
34
 
int main(int argc, char **argv)
35
 
{
36
 
    KAboutData about("MPlayerThumbsConfig", 0, ki18n(I18N_NOOP("MPlayerThumbsConfig")), version, ki18n(description),
37
 
                     KAboutData::License_GPL, ki18n("(C) 2006 Marco Gulino"));
38
 
    about.addAuthor( ki18n("Marco Gulino"), KLocalizedString(), "marco@kmobiletools.org" );
39
 
    KCmdLineArgs::init(argc, argv, &about);
40
 
//     KCmdLineArgs::addCmdLineOptions( options );
41
 
    KApplication app;
42
 
    MPlayerThumbsConfig *mainWin = 0;
43
 
 
44
 
//     if (app.isSessionRestored())
45
 
//     {
46
 
//         RESTORE(MPlayerThumbsConfig);
47
 
//     }
48
 
//     else
49
 
//     {
50
 
        // no session.. just start up normally
51
 
//     KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
52
 
 
53
 
    /// @todo do something with the command line args here
54
 
 
55
 
    mainWin = new MPlayerThumbsConfig(0, "configDialog", MPlayerThumbsCfg::self() );
56
 
    app.setTopWidget( mainWin );
57
 
    mainWin->show();
58
 
 
59
 
//     args->clear();
60
 
//     }
61
 
 
62
 
    // mainWin has WDestructiveClose flag by default, so it will delete itself.
63
 
    return app.exec();
64
 
}