not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kcontrol / xinerama / kcmxinerama.h
blob911d2b7168ed82f05b45c0b719e67d41b63c0b09
1 /**
2 * kcmxinerama.h
4 * Copyright (c) 2002-2004 George Staikos <staikos@kde.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
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.
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.
21 #ifndef _KCM_XINERAMA_H
22 #define _KCM_XINERAMA_H
24 #include <kcmodule.h>
25 #include <QTimer>
27 #include "xineramawidget.h"
29 class KConfig;
30 class QWidget;
31 class QStringList;
33 class KCMXinerama : public KCModule {
34 Q_OBJECT
35 public:
36 KCMXinerama(QWidget *parent, const QVariantList &args);
37 virtual ~KCMXinerama();
39 void load();
40 void save();
41 void defaults();
43 public Q_SLOTS:
44 void windowIndicator(int dpy);
45 void clearIndicator();
47 void indicateWindows();
49 private:
50 QWidget* indicator(int dpy);
51 KConfig *config, *ksplashrc;
52 XineramaWidget *xw;
53 QTimer _timer;
54 QList<QWidget *> _indicators;
56 int _displays;
60 #endif