~ubuntu-branches/ubuntu/maverick/datakiosk/maverick

« back to all changes in this revision

Viewing changes to src/src/statuslabel.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-06-27 22:48:06 UTC
  • Revision ID: james.westby@ubuntu.com-20050627224806-8farkci1dc2onhbs
Tags: upstream-0.7
ImportĀ upstreamĀ versionĀ 0.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2005 by Adam Treat                                      *
 
3
 *   treat@kde.org                                                         *
 
4
 *                                                                         *
 
5
 *   Copyright (C) 2004 by Scott Wheeler                                   *
 
6
 *   wheeler@kde.org                                                       *
 
7
 *                                                                         *
 
8
 *   This program is free software; you can redistribute it and/or modify  *
 
9
 *   it under the terms of the GNU General Public License as published by  *
 
10
 *   the Free Software Foundation; either version 2 of the License, or     *
 
11
 *   (at your option) any later version.                                   *
 
12
 *                                                                         *
 
13
 ***************************************************************************/
 
14
 
 
15
#ifndef STATUSLABEL_H
 
16
#define STATUSLABEL_H
 
17
 
 
18
#include "datatableinterface.h"
 
19
#include <qlabel.h>
 
20
#include <ksqueezedtextlabel.h>
 
21
#include <qhbox.h>
 
22
 
 
23
class QLabel;
 
24
class KSqueezedTextLabel;
 
25
 
 
26
class StatusLabel : public QHBox, public DataTableObserver
 
27
{
 
28
    Q_OBJECT
 
29
 
 
30
public:
 
31
    StatusLabel( DataTableInterface *dataTable, QWidget *parent = 0, const char *name = 0 );
 
32
    virtual ~StatusLabel();
 
33
 
 
34
public slots:
 
35
    void setLeft( const QString &text )
 
36
    {
 
37
        m_left->setText( text );
 
38
    };
 
39
    void setRight( const QString &text )
 
40
    {
 
41
        m_right->setText( text );
 
42
    };
 
43
    void setFarRight( const QString &text )
 
44
    {
 
45
        m_farRight->setText( text );
 
46
    };
 
47
 
 
48
private:
 
49
    KSqueezedTextLabel *m_left;
 
50
    KSqueezedTextLabel *m_right;
 
51
    QLabel *m_farRight;
 
52
};
 
53
 
 
54
#endif