From f49521ca3d0cbf2197b353a7c35f924e7b5b89ff Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 4 Feb 2013 14:12:48 -0600 Subject: Rename KIcon to enhance compatibility with KDE4 --- extra/kde303/kicontheme.h | 54 +++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'extra/kde303/kicontheme.h') diff --git a/extra/kde303/kicontheme.h b/extra/kde303/kicontheme.h index bf813b0..cf0dea5 100644 --- a/extra/kde303/kicontheme.h +++ b/extra/kde303/kicontheme.h @@ -12,28 +12,28 @@ * */ -#ifndef __KIconTheme_h_Included__ -#define __KIconTheme_h_Included__ +#ifndef __TDEIconTheme_h_Included__ +#define __TDEIconTheme_h_Included__ #include #include #include class TDEConfig; -//class KIconThemeDir; +//class TDEIconThemeDir; -class KIconThemePrivate; +class TDEIconThemePrivate; -class KIconPrivate; +class TDEIconPrivate; /** - * One icon as found by KIconTheme. Also serves as a namespace containing + * One icon as found by TDEIconTheme. Also serves as a namespace containing * icon related constants. */ -class KIcon +class TDEIcon { public: - KIcon() { size = 0; } + TDEIcon() { size = 0; } /** * Return true if this icon is valid, false otherwise. @@ -44,7 +44,7 @@ public: enum Type { Fixed, Scalable, Threshold }; enum MatchType { MatchExact, MatchBest }; // if you add a group here, make sure to change the config reading in - // KIconLoader too + // TDEIconLoader too enum Group { NoGroup=-1, Desktop=0, FirstGroup=Desktop, Toolbar, MainToolbar, Small, Panel, LastGroup, User }; enum StdSizes { SizeSmall=16, SizeMedium=32, SizeLarge=48 }; @@ -78,24 +78,24 @@ public: TQString path; private: - KIconPrivate *d; + TDEIconPrivate *d; }; -inline KIcon::Group& operator++(KIcon::Group& group) { group = static_cast(group+1); return group; } -inline KIcon::Group operator++(KIcon::Group& group,int) { KIcon::Group ret = group; ++group; return ret; } +inline TDEIcon::Group& operator++(TDEIcon::Group& group) { group = static_cast(group+1); return group; } +inline TDEIcon::Group operator++(TDEIcon::Group& group,int) { TDEIcon::Group ret = group; ++group; return ret; } /** * Class to use/access icon themes in KDE. This class is used by the * iconloader but can be used by others too. */ -class KIconTheme +class TDEIconTheme { public: /** * Load an icon theme by name. */ - KIconTheme(const TQString& name, const TQString& appName=TQString::null); - ~KIconTheme(); + TDEIconTheme(const TQString& name, const TQString& appName=TQString::null); + ~TDEIconTheme(); /** * The stylized name of the icon theme. @@ -155,38 +155,38 @@ public: /** * The default size of this theme for a certain icon group. - * @param group The icon group. See @ref #KIcon::Group. + * @param group The icon group. See @ref #TDEIcon::Group. * @return The default size in pixels for the given icon group. */ - int defaultSize(KIcon::Group group) const; + int defaultSize(TDEIcon::Group group) const; /** * Query available sizes for a group. */ - TQValueList querySizes(KIcon::Group group) const; + TQValueList querySizes(TDEIcon::Group group) const; /** * Query available icons for a size and context. */ - TQStringList queryIcons(int size, KIcon::Context context = KIcon::Any) const; + TQStringList queryIcons(int size, TDEIcon::Context context = TDEIcon::Any) const; /** * Query available icons for a context and preferred size. */ - TQStringList queryIconsByContext(int size, KIcon::Context context = KIcon::Any) const; + TQStringList queryIconsByContext(int size, TDEIcon::Context context = TDEIcon::Any) const; /** * Lookup an icon in the theme. * @param name The name of the icon, without extension. * @param size The desired size of the icon. - * @param match The matching mode. KIcon::MatchExact returns an icon - * only if matches exactly. KIcon::MatchBest returns the best matching + * @param match The matching mode. TDEIcon::MatchExact returns an icon + * only if matches exactly. TDEIcon::MatchBest returns the best matching * icon. - * @return A KIcon class that describes the icon. If an icon is found, - * @ref #KIcon::isValid will return true, and false otherwise. + * @return A TDEIcon class that describes the icon. If an icon is found, + * @ref #TDEIcon::isValid will return true, and false otherwise. */ - KIcon iconPath(const TQString& name, int size, KIcon::MatchType match) const; + TDEIcon iconPath(const TQString& name, int size, TDEIcon::MatchType match) const; /** * List all icon themes installed on the system, global and local. @@ -207,8 +207,8 @@ private: int mDepth; TQString mDir, mName, mDesc; TQStringList mInherits; -// TQPtrList mDirs; - KIconThemePrivate *d; +// TQPtrList mDirs; + TDEIconThemePrivate *d; static TQString *_theme; static TQStringList *_theme_list; -- cgit v1.2.1