~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy

« back to all changes in this revision

Viewing changes to libs/plasma/widgets/signalplotter.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-10-11 14:04:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071011140448-v0eb7lxbb24zagca
Tags: 3.94.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 *   Copyright 1999 - 2001 Chris Schlaeger <cs@kde.org>
5
5
 *
6
6
 *   This program is free software; you can redistribute it and/or modify
7
 
 *   it under the terms of the GNU Library General Public License version 2 as
8
 
 *   published by the Free Software Foundation
 
7
 *   it under the terms of the GNU Library General Public License as
 
8
 *   published by the Free Software Foundation; either version 2, or
 
9
 *   (at your option) any later version.
 
10
 
9
11
 *
10
12
 *   This program is distributed in the hope that it will be useful,
11
13
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
21
23
#define SIGNALPLOTTER_H
22
24
 
23
25
#include <plasma/widgets/widget.h>
 
26
#include <QtGui/QFont>
24
27
 
25
28
namespace Plasma
26
29
{
33
36
 
34
37
class PLASMA_EXPORT SignalPlotter : public Widget
35
38
{
 
39
    Q_OBJECT
 
40
    Q_PROPERTY( QString title READ title WRITE setTitle )
 
41
    Q_PROPERTY( QString unit READ unit WRITE setUnit )
 
42
    Q_PROPERTY( qreal scale READ scaledBy WRITE scale ) // Note: The naming of the functions here is poor
 
43
    Q_PROPERTY( bool useAutoRange READ useAutoRange WRITE setUseAutoRange )
 
44
    Q_PROPERTY( uint horizontalScale READ horizontalScale WRITE setHorizontalScale )
 
45
    Q_PROPERTY( bool showVerticalLines READ showVerticalLines WRITE setShowVerticalLines )
 
46
    Q_PROPERTY( QColor verticalLinesColor READ verticalLinesColor WRITE setVerticalLinesColor )
 
47
    Q_PROPERTY( uint verticalLinesDistance READ verticalLinesDistance WRITE setVerticalLinesDistance )
 
48
    Q_PROPERTY( bool verticalLinesScroll READ verticalLinesScroll WRITE setVerticalLinesScroll )
 
49
    Q_PROPERTY( bool showHorizontalLines READ showHorizontalLines WRITE setShowHorizontalLines )
 
50
    Q_PROPERTY( QColor horizontalLinesColor READ horizontalLinesColor WRITE setHorizontalLinesColor )
 
51
    Q_PROPERTY( QColor fontColor READ fontColor WRITE setFontColor )
 
52
    Q_PROPERTY( QFont font READ font WRITE setFont )
 
53
    Q_PROPERTY( uint horizontalLinesCount READ horizontalLinesCount WRITE setHorizontalLinesCount )
 
54
    Q_PROPERTY( bool showLabels READ showLabels WRITE setShowLabels )
 
55
    Q_PROPERTY( bool showTopBar READ showTopBar WRITE setShowTopBar )
 
56
    Q_PROPERTY( QColor backgroundColor READ backgroundColor WRITE setBackgroundColor )
 
57
    Q_PROPERTY( QString svgBackground READ svgBackground WRITE setSvgBackground )
 
58
    Q_PROPERTY( bool thinFrame WRITE setThinFrame )
 
59
    Q_PROPERTY( bool stackPlots READ stackPlots WRITE setStackPlots )
36
60
 
37
61
public:
38
62
    SignalPlotter(Widget *parent = 0);