kgamethemeselector.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2006 Mauricio Piacentini  <mauricio@tabuleiro.com>
00003 
00004     This library is free software; you can redistribute it and/or modify
00005     it under the terms of the GNU General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or
00007     (at your option) any later version.
00008 
00009     This program is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012     GNU General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with this program; if not, write to the Free Software
00016     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00017 */
00018 
00019 #ifndef KGAMETHEMESELECTOR_H
00020 #define KGAMETHEMESELECTOR_H
00021 
00022 #include <QtGui/QWidget>
00023 
00024 #include <libkdegames_export.h>
00025 
00026 class KGameTheme;
00027 class KConfigSkeleton; 
00028 class KGameThemeSelectorPrivate;
00029 
00045 class KDEGAMES_EXPORT KGameThemeSelector : public QWidget
00046 {
00047     Q_OBJECT
00048     public:
00049       enum NewStuffState {
00050           NewStuffDisableDownload,
00051           NewStuffEnableDownload
00052         };
00059         KGameThemeSelector(QWidget* parent, KConfigSkeleton* config, KGameThemeSelector::NewStuffState knsflags = KGameThemeSelector::NewStuffEnableDownload, const QString &groupName = QLatin1String("KGameTheme"), const QString &directory = QLatin1String("themes"));
00060         virtual ~KGameThemeSelector();
00061     
00062     private:
00063         class KGameThemeSelectorPrivate;
00064         KGameThemeSelectorPrivate* const d;
00065 
00066         Q_DISABLE_COPY(KGameThemeSelector)
00067 
00068         Q_PRIVATE_SLOT(d, void _k_updatePreview())
00069         Q_PRIVATE_SLOT(d, void _k_openKNewStuffDialog())
00070 };
00071 
00072 #endif

Generated on Sun Mar 16 08:02:53 2008 for Libkdegames by  doxygen 1.5.3