~ubuntu-branches/ubuntu/lucid/mythtv/lucid

« back to all changes in this revision

Viewing changes to libs/libmythui/mythuitext.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Dave Walker (Daviey), Jamie Bennett, Mario Limonciello, Dave Walker (Daviey)
  • Date: 2010-03-23 19:32:33 UTC
  • mfrom: (1.1.49 upstream)
  • Revision ID: james.westby@ubuntu.com-20100323193233-5sv9djoxtlmwt3ca
Tags: 0.23.0+fixes23789-0ubuntu1
[ Jamie Bennett ]
* Fix FTBFS on armel (LP: #537714)

[ Mario Limonciello ]
* mythtv-{common,backend}.{config,templates,postinst}: (LP: #483748)
  - Simplify debconf questions by avoiding showing the generated pw
  - Don't warn about mythtv group.
  - Don't notify about running mythtv-setup.  This is optional (but
    of course encouraged!)
* Set version to include a "+" delimitter.
* Restore libfaad-dev dependency. (LP: #546552)

[ Dave Walker (Daviey) ]
* New snapshot (r23789), based from 0.23-fixes.
* debian/control:
  - mythtv-frontend set to Conflict with mythflix, as it's dropped
    upstream. (LP: #544521)
  - Remove unnecessary and potentially problematic use of Pre-Depends.
  - Set the debug package to Priority extra.
  - Change *-perl Section's from libs to perl
  - add ${shlibs:Depends} for mythtv-common Depends field
  - Minor spelling fix.
  - Fixes the long description for one of the packages, ensuring the
    description doesn't exceed 80 characters.
  - Vcs-* set to -fixes, rather than -trunk.
* debian/rules:
  - Use debconf-updatepo to update translations when required
  - Ensure license files are not included in the binary packages, except 
    for debian/copyright.
  - Fixes the permissions of certain files in the packaging.
* debian/copyright:
  - updated to reflect that mythtv is GPL-2 only.
  - inserted better licence statement and Copyright reference.
* debian/mythtv-*.templates
  - Simplified strings; removed verbosity and improved readability.
* Prevent the maintainer scripts from failing in case any questions 
  can't be displayed.
* Added holding debian/mythtv-frontend.config, mainly to appease lintian.
* debian/mythtv-frontend.menu: Changed section to Applications/Graphics.
* debian/mythtv-backend.postinst: Load debconf libraries.
* debian/source.lintian-overrides: Removes the unecessary override of the 
  binNMU warnings.
* Fix perl binding installation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
    m_Message = newtext;
95
95
    m_CutMessage.clear();
96
96
    FillCutMessage();
97
 
    
 
97
 
98
98
    if (m_scrolling)
99
99
    {
100
100
        QFontMetrics fm(GetFontProperties()->face());
339
339
void MythUIText::FillCutMessage()
340
340
{
341
341
    m_CutMessage.clear();
342
 
    
 
342
 
343
343
    if (m_Message != m_DefaultMessage)
344
344
    {
345
345
        bool isNumber;
357
357
            m_CutMessage = tmp.arg(m_Message);
358
358
        }
359
359
    }
360
 
    
 
360
 
361
361
    if (m_CutMessage.isEmpty())
362
362
        m_CutMessage = m_Message;
363
363
    if (m_CutMessage.isEmpty())
364
 
        return;
 
364
        return;
365
365
 
366
366
    QStringList templist;
367
367
    QStringList::iterator it;
368
368
    switch (m_textCase)
369
369
    {
370
370
      case CaseUpper :
371
 
        m_CutMessage = m_CutMessage.toUpper();
372
 
        break;
 
371
        m_CutMessage = m_CutMessage.toUpper();
 
372
        break;
373
373
      case CaseLower :
374
 
        m_CutMessage = m_CutMessage.toLower();
375
 
        break;
 
374
        m_CutMessage = m_CutMessage.toLower();
 
375
        break;
376
376
      case CaseCapitaliseFirst :
377
 
        //m_CutMessage = m_CutMessage.toLower();
378
 
        templist = m_CutMessage.split(". ");
379
 
        for (it = templist.begin(); it != templist.end(); ++it)
380
 
            (*it).replace(0,1,(*it).left(1).toUpper());
381
 
        m_CutMessage = templist.join(". ");
382
 
        break;
 
377
        //m_CutMessage = m_CutMessage.toLower();
 
378
        templist = m_CutMessage.split(". ");
 
379
        for (it = templist.begin(); it != templist.end(); ++it)
 
380
            (*it).replace(0,1,(*it).left(1).toUpper());
 
381
        m_CutMessage = templist.join(". ");
 
382
        break;
383
383
      case CaseCapitaliseAll :
384
 
        //m_CutMessage = m_CutMessage.toLower();
385
 
        templist = m_CutMessage.split(" ");
386
 
        for (it = templist.begin(); it != templist.end(); ++it)
387
 
            (*it).replace(0,1,(*it).left(1).toUpper());
388
 
        m_CutMessage = templist.join(" ");
389
 
        break;
 
384
        //m_CutMessage = m_CutMessage.toLower();
 
385
        templist = m_CutMessage.split(" ");
 
386
        for (it = templist.begin(); it != templist.end(); ++it)
 
387
            (*it).replace(0,1,(*it).left(1).toUpper());
 
388
        m_CutMessage = templist.join(" ");
 
389
        break;
390
390
    }
391
 
    
 
391
 
392
392
    if (m_MinSize.x() > 0)
393
393
    {
394
394
        QRect rect;