kcmkwin/kwinoptions/main.h
00001 /* 00002 * main.h 00003 * 00004 * Copyright (c) 2001 Waldo Bastian <bastian@kde.org> 00005 * 00006 * Requires the Qt widget libraries, available at no cost at 00007 * http://www.troll.no/ 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00022 */ 00023 00024 00025 #ifndef __MAIN_H__ 00026 #define __MAIN_H__ 00027 00028 #include <qtabwidget.h> 00029 #include <kcmodule.h> 00030 00031 class KConfig; 00032 class KFocusConfig; 00033 class KActionsConfig; 00034 class KAdvancedConfig; 00035 class KTranslucencyConfig; 00036 00037 class KWinOptions : public KCModule 00038 { 00039 Q_OBJECT 00040 00041 public: 00042 00043 KWinOptions(QWidget *parent, const char *name); 00044 virtual ~KWinOptions(); 00045 00046 void load(); 00047 void save(); 00048 void defaults(); 00049 QString quickHelp() const; 00050 00051 00052 protected slots: 00053 00054 void moduleChanged(bool state); 00055 00056 00057 private: 00058 00059 QTabWidget *tab; 00060 00061 KFocusConfig *mFocus; 00062 KActionsConfig *mActions; 00063 KMovingConfig *mMoving; 00064 KAdvancedConfig *mAdvanced; 00065 KTranslucencyConfig *mTranslucency; 00066 00067 KConfig *mConfig; 00068 }; 00069 00070 #endif