~ubuntu-branches/ubuntu/gutsy/kid3/gutsy

« back to all changes in this revision

Viewing changes to kid3/main.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2007-07-01 00:31:03 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070701003103-2qownnv49a7jdqm3
Tags: 0.9-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include "kid3.h"
20
20
 
21
21
/** Description for application */
22
 
static const char *description = I18N_NOOP("Kid3 ID3 Tagger");
 
22
static const char* description = I18N_NOOP("Kid3 ID3 Tagger");
23
23
 
24
24
/** Command line options */
25
25
static KCmdLineOptions options[] =
37
37
 * @return exit code of application.
38
38
 */
39
39
 
40
 
int main(int argc, char *argv[])
 
40
int main(int argc, char* argv[])
41
41
{
42
42
        KAboutData aboutData(
43
43
            "kid3", I18N_NOOP("Kid3"),
44
44
            VERSION, description, KAboutData::License_GPL,
45
 
            "(c) 2003-2006 Urs Fleisch", 0, "http://kid3.sourceforge.net",
 
45
            "(c) 2003-2007 Urs Fleisch", 0, "http://kid3.sourceforge.net",
46
46
            "ufleisch@users.sourceforge.net");
47
47
        aboutData.addAuthor("Urs Fleisch",0, "ufleisch@users.sourceforge.net");
48
48
        KCmdLineArgs::init(argc, argv, &aboutData);
53
53
                RESTORE(Kid3App);
54
54
        }
55
55
        else {
56
 
                Kid3App *kid3 = new Kid3App();
 
56
                Kid3App* kid3 = new Kid3App();
57
57
                if (kid3) {
58
58
                        kid3->show();
59
59
 
60
 
                        KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
 
60
                        KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
61
61
 
62
62
                        if (args->count()) {
63
63
                                kid3->openDirectory(QFile::decodeName(args->arg(0)));
86
86
 * @return exit code of application.
87
87
 */
88
88
 
89
 
int main(int argc, char *argv[])
 
89
int main(int argc, char* argv[])
90
90
{
91
91
        QApplication app(argc, argv);
92
92
 
93
93
        // translation file for Qt
94
94
        QTranslator qt_tr(0);
 
95
#ifdef CFG_TRANSLATIONSDIR
 
96
        if (!qt_tr.load(QString("qt_") + QTextCodec::locale(), CFG_TRANSLATIONSDIR))
 
97
#endif
95
98
        qt_tr.load( QString("qt_") + QTextCodec::locale(), "." );
96
99
        app.installTranslator(&qt_tr);
97
100
 
98
101
        // translation file for application strings
99
102
        QTranslator kid3_tr(0);
 
103
#ifdef CFG_TRANSLATIONSDIR
 
104
        if (!kid3_tr.load(QString("kid3_") + QTextCodec::locale(), CFG_TRANSLATIONSDIR))
 
105
#endif
100
106
        kid3_tr.load( QString("kid3_") + QTextCodec::locale(), "." );
101
107
        app.installTranslator(&kid3_tr);
102
108
 
103
 
        Kid3App *kid3 = new Kid3App();
 
109
        Kid3App* kid3 = new Kid3App();
104
110
        if (kid3) {
105
111
                kid3->show();
106
112
                app.setMainWidget(kid3);