2
Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
3
Copyright (c) 2008 by Petri Damsten <damu@iki.fi>
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.
11
#ifndef DESKTOPTHEMEDETAILS_H
12
#define DESKTOPTHEMEDETAILS_H
14
#include "ui_DesktopThemeDetails.h"
16
#include <QtGui/QWidget>
20
class DesktopThemeDetails : public QWidget, public Ui::DesktopThemeItems
24
DesktopThemeDetails(QWidget* parent);
25
~DesktopThemeDetails();
30
void replacementItemChanged();
31
void resetThemeDetails();
32
void toggleAdvancedVisible();
36
void newThemeInfoChanged();
42
void updateReplaceItemList(const int& item);
43
void loadThemeItems();
44
QString displayedItemText(int item);
45
bool isCustomized(const QString& theme);
46
void clearCustomized(const QString& themeRoot);
47
void setDesktopTheme(QString themeRoot);
51
void themeSelectionChanged(const QItemSelection newSelection, const QItemSelection oldSelection);
54
ThemeModel* m_themeModel;
56
QHash<QString, int> m_items; // theme items
57
QHash<int, QString> m_itemPaths; // theme item paths
58
QHash<int, QString> m_itemIcons; //theme item icons
59
QHash<QString, int> m_themes; // installed themes
60
QHash<int, QString> m_themeRoots; // installed themes root paths
61
QHash<int, int> m_itemThemeReplacements; // source theme for item replacements
62
QHash<int, QString>m_itemFileReplacements; //non-theme source files for item replacements
64
bool m_themeCustomized;
68
#endif // DESKTOPTHEMEDETAILS_H