~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to ksysguard/gui/TimerSettings.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    KSysGuard, the KDE System Guard
 
3
   
 
4
    Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
 
5
    
 
6
    This program is free software; you can redistribute it and/or
 
7
    modify it under the terms of the GNU General Public
 
8
    License as published by the Free Software Foundation; either
 
9
    version 2 of the License, or (at your option) any later version.
 
10
 
 
11
    This program is distributed in the hope that it will be useful,
 
12
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
    GNU General Public License for more details.
 
15
 
 
16
    You should have received a copy of the GNU General Public License
 
17
    along with this program; if not, write to the Free Software
 
18
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
19
 
 
20
*/
 
21
 
 
22
#ifndef KSG_TIMERSETTINGS_H
 
23
#define KSG_TIMERSETTINGS_H
 
24
 
 
25
#include <QLabel>
 
26
 
 
27
#include <kdialog.h>
 
28
 
 
29
class QCheckBox;
 
30
class QDoubleSpinBox;
 
31
 
 
32
class KDE_EXPORT TimerSettings : public KDialog
 
33
{
 
34
  Q_OBJECT
 
35
 
 
36
  public:
 
37
    explicit TimerSettings( QWidget *parent, const char *name = 0 );
 
38
    ~TimerSettings();
 
39
 
 
40
    void setUseGlobalUpdate( bool value );
 
41
    bool useGlobalUpdate() const;
 
42
 
 
43
    void setInterval( double interval );
 
44
    double interval() const;
 
45
 
 
46
  private Q_SLOTS:
 
47
    void globalUpdateChanged( bool );
 
48
 
 
49
  private:
 
50
    QCheckBox* mUseGlobalUpdate;
 
51
    QLabel* mLabel;
 
52
    QDoubleSpinBox* mInterval;
 
53
};
 
54
 
 
55
#endif