not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kcontrol / randr / krandrmodule.h
blob7fa54a162e57f0edd705567c07fa985c09e7d63a
1 /*
2 * Copyright (c) 2007 Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>
3 * Copyright (c) 2002 Hamish Rodda <rodda@kde.org>
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 KRANDRMODULE_H
21 #define KRANDRMODULE_H
23 #include <QLabel>
24 #include <QLayout>
25 #include <KDialog>
26 #include <KCModule>
28 class RandRDisplay;
29 class LegacyRandRConfig;
30 class RandRConfig;
32 class KRandRModule : public KCModule
34 Q_OBJECT
36 public:
37 KRandRModule(QWidget *parent, const QVariantList& _args);
38 ~KRandRModule(void);
40 virtual void load();
41 virtual void save();
42 virtual void defaults();
44 protected:
45 void apply();
46 void update();
48 private:
49 LegacyRandRConfig *m_legacyConfig;
50 RandRConfig *m_config;
51 RandRDisplay *m_display;
54 #endif