~ubuntu-branches/ubuntu/wily/smplayer/wily

« back to all changes in this revision

Viewing changes to src/clhelp.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Maia Kozheva
  • Date: 2009-03-31 23:05:43 UTC
  • mfrom: (1.2.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20090331230543-0h2hfwpwlu9opbv2
* New upstream release. (Closes: #523791)
  - Reworked subtitle font preferences. (Closes: #503295)
  - No longer installs qt_fr.qm. (Closes: #486314)
* debian/control:
  - Bumped Standards-Version to 3.8.1.
  - Changed maintainer name (still the same person and GPG key).
  - Changed section to video.
  - Build-depend on zlib1g-dev for findsubtitles.
  - Require Qt >= 4.3 per readme.
  - Added ${misc:Depends}.
  - Make smplayer-translations depend on smplayer and smplayer recommend
    smplayer-translations, not the other way round. (Closes: #489375)
* debian/copyright:
  - Significantly expanded per-file with new upstream authors.
* debian/rules:
  - Make make use correct uic in install.
  - Clean svn_revision.
  - Removed get-orig-source - not needed with uscan --repack.
* debian/patches/01_gl_translation.patch:
  - Added patch to fix lrelease error on smplayer_gl.ts.
* Added debian/README.source for simple-patchsys.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  smplayer, GUI front-end for mplayer.
2
 
    Copyright (C) 2006-2008 Ricardo Villalba <rvm@escomposlinux.org>
 
2
    Copyright (C) 2006-2009 Ricardo Villalba <rvm@escomposlinux.org>
3
3
 
4
4
    This program is free software; you can redistribute it and/or modify
5
5
    it under the terms of the GNU General Public License as published by
37
37
                }
38
38
 
39
39
                while ((pos < col) && (pos != -1)) {
40
 
                last = pos;
41
 
                pos = s.indexOf(" ", pos+1);
 
40
                        last = pos;
 
41
                        pos = s.indexOf(" ", pos+1);
42
42
                }
43
43
 
44
44
                res = res + s.left(last) + "\n";
83
83
QString CLHelp::help(bool html) {
84
84
        QString app_name = QFileInfo(qApp->applicationFilePath()).baseName();
85
85
 
86
 
        QString options = QString("%1 [-minigui] [-defaultgui] [-ini-path %2] "
 
86
        QString options = QString("%1 [-minigui] [-defaultgui] [-mpcgui] [-config-path %2] "
87
87
                        "[-send-action %3] [-actions %4] "
88
88
                        "[-close-at-end] [-no-close-at-end] [-fullscreen] [-no-fullscreen] "
 
89
                        "[-sub %5] "
89
90
                        "[-add-to-playlist] [-help|--help|-h|-?] "
90
 
                        "[[-playlist] %5] [[-playlist] %5]...")
 
91
                        "[[-playlist] %6] [[-playlist] %6]...")
91
92
                        .arg(app_name)
92
93
                        .arg(QObject::tr("directory"))
93
94
                        .arg(QObject::tr("action_name"))
94
95
                        .arg(QObject::tr("action_list"))
 
96
                        .arg(QObject::tr("subtitle_file"))
95
97
                        .arg(QObject::tr("media"));
96
98
 
97
99
        QString s;
111
113
        s += formatHelp( "-minigui", QObject::tr(
112
114
                "opens the mini gui instead of the default one."), html );
113
115
 
 
116
        s += formatHelp( "-mpcgui", QObject::tr(
 
117
                "opens the mpc gui."), html );
 
118
 
114
119
        s += formatHelp( "-defaultgui", QObject::tr(
115
120
                "opens the default gui."), html );
116
121
 
117
 
        s += formatHelp( "-ini-path", QObject::tr(
118
 
                "specifies the directory for the configuration file "
119
 
        "(smplayer.ini)."), html );
 
122
        s += formatHelp( "-config-path", QObject::tr(
 
123
                "specifies the directory where smplayer will store its configuration "
 
124
        "files (smplayer.ini, smplayer_files.ini...)"), html );
120
125
 
121
126
        s += formatHelp( "-send-action", QObject::tr(
122
127
                "tries to make a connection to another running instance "
145
150
        s += formatHelp( "-no-fullscreen", QObject::tr(
146
151
                "the video will be played in window mode."), html );
147
152
 
 
153
        s += formatHelp( "-sub", QObject::tr(
 
154
                "specifies the subtitle file to be loaded for the first video."), html );
 
155
 
148
156
        s += formatHelp( "-help", QObject::tr(
149
157
                "will show this message and then will exit."), html );
150
158