~ubuntu-branches/ubuntu/wily/kscreen/wily

« back to all changes in this revision

Viewing changes to kcm/src/resolutionslider.h

  • Committer: Package Import Robot
  • Author(s): Scarlett Clark, Scarlett Clark, Jonathan Riddell, Harald Sitter
  • Date: 2014-08-20 08:35:15 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20140820083515-i9lk9nyt0adwd2q5
Tags: 2.0.0~git20141114-0ubuntu1
[ Scarlett Clark ]
* Update packaging for frameworks branch
* Git snapshot of the frameworks branch

[ Jonathan Riddell ]
* Remove kscreen-console.1 manpage which is out of date

[ Harald Sitter ]
* switch to new pkg-kde-tools

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2013  Daniel Vrátil <dvratil@redhat.com>
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public License as
 
6
 * published by the Free Software Foundation; either version 2 of
 
7
 * the License or (at your option) version 3 or any later version
 
8
 * accepted by the membership of KDE e.V. (or its successor approved
 
9
 * by the membership of KDE e.V.), which shall act as a proxy
 
10
 * defined in Section 14 of version 3 of the license.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef RESOLUTIONSLIDER_H
 
23
#define RESOLUTIONSLIDER_H
 
24
 
 
25
#include <QWidget>
 
26
#include <QtCore/QSet>
 
27
 
 
28
class QSlider;
 
29
class QLabel;
 
30
 
 
31
namespace KScreen {
 
32
    class Output;
 
33
}
 
34
 
 
35
class ResolutionSlider : public QWidget
 
36
{
 
37
    Q_OBJECT
 
38
 
 
39
  public:
 
40
    explicit ResolutionSlider(KScreen::Output *output, QWidget *parent = 0);
 
41
    virtual ~ResolutionSlider();
 
42
 
 
43
    QSize currentResolution() const;
 
44
 
 
45
  Q_SIGNALS:
 
46
    void resolutionChanged(const QSize &size);
 
47
 
 
48
  private Q_SLOTS:
 
49
    void slotSlideValueChanged(int);
 
50
    void slotOutputModeChanged();
 
51
 
 
52
  private:
 
53
    KScreen::Output *mOutput;
 
54
 
 
55
    QList<QSize> mModes;
 
56
 
 
57
    QLabel *mSmallestLabel;
 
58
    QLabel *mBiggestLabel;
 
59
    QLabel *mCurrentLabel;
 
60
    QSlider *mSlider;
 
61
};
 
62
 
 
63
#endif // RESOLUTIONSLIDER_H