~ubuntu-branches/ubuntu/natty/knemo/natty

« back to all changes in this revision

Viewing changes to src/knemod/interfaceplotterdialog.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-02-22 16:36:22 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20110222163622-d8i62gy1stn7tydv
Tags: 0.7.0-0ubuntu1
* New upstream release.
* Switch to source format 3.0 (quilt).
* Make knemo depend on libqt4-sql-sqlite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* This file is part of KNemo
2
2
   Copyright (C) 2004, 2006 Percy Leonhardt <percy@eris23.de>
3
 
   Copyright (C) 2009 John Stamp <jstamp@users.sourceforge.net>
 
3
   Copyright (C) 2009, 2010 John Stamp <jstamp@users.sourceforge.net>
4
4
 
5
5
   Portions adapted from FancyPlotter.cc in KSysGuard
6
6
   Copyright (c) 1999 - 2002 Chris Schlaeger <cs@kde.org>
63
63
        if ( kapp->layoutDirection() == Qt::RightToLeft )
64
64
                    label->setText(QString("<qt>: ") + name + " <font color=\"" + color.name() + "\">" + indicatorSymbol + "</font>");
65
65
        else
66
 
            label->setText(QString("<qt><font color=\"") + color.name() + "\">" + indicatorSymbol + "</font> " + name + " :");
 
66
            label->setText(QString("<qt><font color=\"") + color.name() + "\">" + indicatorSymbol + "</font> " + name + ":");
67
67
    }
68
68
    QLabel *label;
69
69
    QLabel *value;
79
79
      mUseBitrate( generalSettings->useBitrate ),
80
80
      mName( name )
81
81
{
82
 
    setCaption( i18n( "%1 Traffic", mName ) );
 
82
    setCaption( i18nc( "interface name", "%1 Traffic", mName ) );
83
83
    setButtons( Close );
84
84
    setContextMenuPolicy( Qt::DefaultContextMenu );
85
85
 
334
334
    if ( mSettings.showIncoming )
335
335
        visibleBeams |= KSignalPlotter::INCOMING_TRAFFIC;
336
336
 
337
 
    mSentLabel->setLabel( i18n( "%1 Sent Data", mName ), mSettings.colorOutgoing, mIndicatorSymbol);
338
 
    mReceivedLabel->setLabel( i18n( "%1 Received Data", mName ), mSettings.colorIncoming, mIndicatorSymbol);
 
337
    mSentLabel->setLabel( i18nc( "interface name", "%1 Sent Data", mName ), mSettings.colorOutgoing, mIndicatorSymbol);
 
338
    mReceivedLabel->setLabel( i18nc( "interface name", "%1 Received Data", mName ), mSettings.colorIncoming, mIndicatorSymbol);
339
339
 
340
340
    mPlotter->setBeamColor( KSignalPlotter::INCOMING_BEAM, mSettings.colorIncoming );
341
341
    mPlotter->setBeamColor( KSignalPlotter::OUTGOING_BEAM, mSettings.colorOutgoing );