not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kcontrol / randr / randrconfig.h
blob2305ae0b04fe05bac757241403c43f2643dbf9cb
1 /*
2 * Copyright (c) 2007 Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>
3 * Copyright (c) 2007 Harry Bock <hbock@providence.edu>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef __RANDRCONFIG_H__
21 #define __RANDRCONFIG_H__
23 #include "ui_randrconfigbase.h"
24 #include "randr.h"
26 #include <QWidget>
27 #include <QTimer>
29 class QGraphicsScene;
30 class SettingsContainer;
31 class CollapsibleWidget;
32 class RandRDisplay;
33 class RandROutput;
34 class OutputConfig;
35 class OutputGraphicsItem;
36 class LayoutManager;
38 class RandRConfig : public QWidget, public Ui::RandRConfigBase
40 Q_OBJECT
41 public:
42 RandRConfig(QWidget *parent, RandRDisplay *display);
43 virtual ~RandRConfig();
45 void load(void);
46 void save(void);
47 void defaults(void);
49 void apply();
50 void update();
52 public slots:
53 void slotUpdateView();
55 protected slots:
56 void slotChanged(void);
57 void slotAdjustOutput(OutputGraphicsItem *o);
58 void identifyOutputs();
59 void clearIndicators();
61 signals:
62 void changed(bool change);
64 protected:
65 virtual bool eventFilter(QObject *obj, QEvent *event);
67 private:
68 RandRDisplay *m_display;
69 bool m_changed;
70 bool m_firstLoad;
72 SettingsContainer *m_container;
73 QList<CollapsibleWidget*> m_outputList;
74 QGraphicsScene *m_scene;
75 LayoutManager *m_layoutManager;
76 QList<QWidget*> m_indicators;
77 QTimer identifyTimer;
81 #endif