/usr/include/libkdegamesprivate/kgamethemeselector.h is in libkdegames-dev 4:14.12.3-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | /*
Copyright (C) 2006 Mauricio Piacentini <mauricio@tabuleiro.com>
Copyright (C) 2007 Matt Williams <matt@milliams.com>
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef KGAMETHEMESELECTOR_H
#define KGAMETHEMESELECTOR_H
#include <QtGui/QWidget>
#include "libkdegamesprivate_export.h"
class KGameTheme;
class KConfigSkeleton;
class KGameThemeSelectorPrivate;
/**
* \class KGameThemeSelector kgamethemeselector.h <KGameThemeSelector>
*
* @short A widget used to select the game's theme
*
* The most common way to use the theme selector is to add it as page to a KConfigDialog
* \code
* KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self());
* dialog->addPage(new KGameThemeSelector(dialog, Settings::self()), i18n("Theme"), "game_theme");
* dialog->show();
* \endcode
* This will create a page in your KConfigDialog with the title "Theme" and using the
* "game_theme" icon. By default, the widget will search in the share/apps/appname/themes
* directory for .desktop files with a group called "KGameTheme".
*
* @author Mauricio Piacentini
* @deprecated Use KgThemeSelector instead.
**/
class KDEGAMESPRIVATE_EXPORT KGameThemeSelector : public QWidget
{
Q_OBJECT
public:
enum NewStuffState {
NewStuffDisableDownload,
NewStuffEnableDownload
};
/**
* Load a specific theme file.
* @param groupName the title of the config group in the theme .desktop file
* @param directory subdirectory (of share/apps/appname) to search in
* @return true if the theme files and properties could be loaded
*/
KGameThemeSelector(QWidget* parent, KConfigSkeleton* config, KGameThemeSelector::NewStuffState knsflags = KGameThemeSelector::NewStuffEnableDownload, const QString &groupName = QLatin1String("KGameTheme"), const QString &directory = QLatin1String("themes"));
virtual ~KGameThemeSelector();
private:
class KGameThemeSelectorPrivate;
KGameThemeSelectorPrivate* const d;
Q_DISABLE_COPY(KGameThemeSelector)
Q_PRIVATE_SLOT(d, void _k_updatePreview())
Q_PRIVATE_SLOT(d, void _k_updateThemeList(const QString&))
Q_PRIVATE_SLOT(d, void _k_openKNewStuffDialog())
};
#endif
|