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

« back to all changes in this revision

Viewing changes to kcm/src/controlpanel.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-15 01:30:43 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20150115013043-l2q6wmndvl19yduk
Tags: 4:5.1.95-0ubuntu1
* New upstream snapshot
* New upstream beta release

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
#include <QScrollArea>
26
26
 
 
27
#include <kscreen/output.h>
 
28
 
27
29
class QVBoxLayout;
28
30
class OutputConfig;
29
31
class UnifiedOutputConfig;
33
35
class QSlider;
34
36
class QComboBox;
35
37
 
36
 
namespace KScreen {
37
 
class Config;
38
 
class Output;
39
 
}
40
 
 
41
38
class ControlPanel : public QScrollArea
42
39
{
43
40
    Q_OBJECT
46
43
    explicit ControlPanel(QWidget *parent = 0);
47
44
    virtual ~ControlPanel();
48
45
 
49
 
    void setConfig(KScreen::Config *config);
 
46
    void setConfig(const KScreen::ConfigPtr &config);
50
47
 
51
 
    void setUnifiedOutput(KScreen::Output *output);
 
48
    void setUnifiedOutput(const KScreen::OutputPtr &output);
52
49
 
53
50
  public Q_SLOTS:
54
 
    void activateOutput(KScreen::Output *output);
 
51
    void activateOutput(const KScreen::OutputPtr &output);
55
52
 
56
53
  Q_SIGNALS:
57
54
    void changed();
58
55
 
59
56
  private:
60
 
    KScreen::Config *mConfig;
 
57
    KScreen::ConfigPtr mConfig;
61
58
    QList<OutputConfig*> mOutputConfigs;
62
59
 
63
60
    QVBoxLayout *mLayout;