1
/***************************************************************************
2
Copyright (C) 2006-2008
3
by Marco Gulino <marco@kmobiletools.org>
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.
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.
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
***************************************************************************/
21
#include <kapplication.h>
22
#include <kaboutdata.h>
23
#include <kcmdlineargs.h>
26
#include "mplayerthumbscfg.h"
27
#include "mplayerthumbs.h"
29
static const char description[] =
30
I18N_NOOP("MPlayerThumbs Configuration Utility");
32
static const char version[] = "0.1";
34
int main(int argc, char **argv)
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 );
42
MPlayerThumbsConfig *mainWin = 0;
44
// if (app.isSessionRestored())
46
// RESTORE(MPlayerThumbsConfig);
50
// no session.. just start up normally
51
// KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
53
/// @todo do something with the command line args here
55
mainWin = new MPlayerThumbsConfig(0, "configDialog", MPlayerThumbsCfg::self() );
56
app.setTopWidget( mainWin );
62
// mainWin has WDestructiveClose flag by default, so it will delete itself.