summaryrefslogtreecommitdiffstats
path: root/src/kvirc/kernel/kvi_theme.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvirc/kernel/kvi_theme.h')
-rw-r--r--src/kvirc/kernel/kvi_theme.h86
1 files changed, 43 insertions, 43 deletions
diff --git a/src/kvirc/kernel/kvi_theme.h b/src/kvirc/kernel/kvi_theme.h
index 2545e51e..38c8bf2a 100644
--- a/src/kvirc/kernel/kvi_theme.h
+++ b/src/kvirc/kernel/kvi_theme.h
@@ -31,7 +31,7 @@
#include "kvi_fileextensions.h"
-#include <qpixmap.h>
+#include <tqpixmap.h>
#define KVI_THEMEINFO_FILE_NAME "themeinfo." KVI_FILEEXTENSION_CONFIG
#define KVI_THEMEDATA_FILE_NAME "themedata." KVI_FILEEXTENSION_CONFIG
@@ -60,83 +60,83 @@ public:
KviThemeInfo();
~KviThemeInfo();
protected:
- QString m_szName; //< name of the theme
- QString m_szVersion; //< version of the theme
- QString m_szSubdirectory; //< subdirectory of $LOCALKVIRCDIR/themes where the theme is saved to (not always used)
- QString m_szAbsoluteDirectory; //< absolute directory where the theme should be saved to (or is loaded from)
- QString m_szAuthor; //< author of the theme
- QString m_szDescription; //< description of the theme
- QString m_szDate; //< theme creation date
- QString m_szApplication; //< theme creation (KVIrc) version
- QString m_szThemeEngineVersion; //< the theme engine version that saved this theme
+ TQString m_szName; //< name of the theme
+ TQString m_szVersion; //< version of the theme
+ TQString m_szSubdirectory; //< subdirectory of $LOCALKVIRCDIR/themes where the theme is saved to (not always used)
+ TQString m_szAbsoluteDirectory; //< absolute directory where the theme should be saved to (or is loaded from)
+ TQString m_szAuthor; //< author of the theme
+ TQString m_szDescription; //< description of the theme
+ TQString m_szDate; //< theme creation date
+ TQString m_szApplication; //< theme creation (KVIrc) version
+ TQString m_szThemeEngineVersion; //< the theme engine version that saved this theme
- QString m_szLastError; //< reported when some function fails
+ TQString m_szLastError; //< reported when some function fails
- QPixmap m_pixScreenshotLarge; //< the large screenshot pixmap
- QPixmap m_pixScreenshotMedium; //< the medium screenshot pixmap
- QPixmap m_pixScreenshotSmall; //< the small screenshot pixmap
+ TQPixmap m_pixScreenshotLarge; //< the large screenshot pixmap
+ TQPixmap m_pixScreenshotMedium; //< the medium screenshot pixmap
+ TQPixmap m_pixScreenshotSmall; //< the small screenshot pixmap
public:
///
/// load data from a specified theme config file
///
- bool load(const QString &szThemeFileName);
+ bool load(const TQString &szThemeFileName);
///
/// save the currently defined theme configuration in the specified file
///
- bool save(const QString &szThemeFileName);
+ bool save(const TQString &szThemeFileName);
- const QString & lastError(){ return m_szLastError; };
- void setLastError(const QString &szLastError){ m_szLastError = szLastError; };
- const QString & name(){ return m_szName; };
- void setName(const QString &szName){ m_szName = szName; };
- const QString & version(){ return m_szVersion; };
- void setVersion(const QString &szVersion){ m_szVersion = szVersion; };
- const QString & subdirectory(){ return m_szSubdirectory; };
- void setSubdirectory(const QString &szSubdirectory){ m_szSubdirectory = szSubdirectory; };
- const QString & absoluteDirectory(){ return m_szAbsoluteDirectory; };
- void setAbsoluteDirectory(const QString &szAbsoluteDirectory){ m_szAbsoluteDirectory = szAbsoluteDirectory; }
- const QString & author(){ return m_szAuthor; };
- void setAuthor(const QString &szAuthor){ m_szAuthor = szAuthor; };
- const QString & description(){ return m_szDescription; };
- void setDescription(const QString &szDescription){ m_szDescription = szDescription; };
- const QString & date(){ return m_szDate; };
- void setDate(const QString &szDate){ m_szDate = szDate; };
- const QString & application(){ return m_szApplication; };
- void setApplication(const QString &szApplication){ m_szApplication = szApplication; };
- const QString & themeEngineVersion(){ return m_szThemeEngineVersion; };
- void setThemeEngineVersion(const QString &szThemeEngineVersion){ m_szThemeEngineVersion = szThemeEngineVersion; };
+ const TQString & lastError(){ return m_szLastError; };
+ void setLastError(const TQString &szLastError){ m_szLastError = szLastError; };
+ const TQString & name(){ return m_szName; };
+ void setName(const TQString &szName){ m_szName = szName; };
+ const TQString & version(){ return m_szVersion; };
+ void setVersion(const TQString &szVersion){ m_szVersion = szVersion; };
+ const TQString & subdirectory(){ return m_szSubdirectory; };
+ void setSubdirectory(const TQString &szSubdirectory){ m_szSubdirectory = szSubdirectory; };
+ const TQString & absoluteDirectory(){ return m_szAbsoluteDirectory; };
+ void setAbsoluteDirectory(const TQString &szAbsoluteDirectory){ m_szAbsoluteDirectory = szAbsoluteDirectory; }
+ const TQString & author(){ return m_szAuthor; };
+ void setAuthor(const TQString &szAuthor){ m_szAuthor = szAuthor; };
+ const TQString & description(){ return m_szDescription; };
+ void setDescription(const TQString &szDescription){ m_szDescription = szDescription; };
+ const TQString & date(){ return m_szDate; };
+ void setDate(const TQString &szDate){ m_szDate = szDate; };
+ const TQString & application(){ return m_szApplication; };
+ void setApplication(const TQString &szApplication){ m_szApplication = szApplication; };
+ const TQString & themeEngineVersion(){ return m_szThemeEngineVersion; };
+ void setThemeEngineVersion(const TQString &szThemeEngineVersion){ m_szThemeEngineVersion = szThemeEngineVersion; };
///
/// Attempt to load a themeinfo.kvc file present in the specified directory.
/// This function will fail if the directory contains a valid themeinfo.kvc
/// file but no themedata.kvc file unless bIgnoreThemeData is set to true
///
- bool loadFromDirectory(const QString &szThemeDirectory,bool bIgnoreThemeData = false);
+ bool loadFromDirectory(const TQString &szThemeDirectory,bool bIgnoreThemeData = false);
///
/// Attempt to load the theme screenshot from THEMEDIR/screenshot_*.png
/// This function will work only if the absoluteDirectory() of the theme
/// has been set, otherwise the returned pixmap will be null.
///
- const QPixmap & smallScreenshot();
+ const TQPixmap & smallScreenshot();
///
/// Attempt to load the theme screenshot from THEMEDIR/screenshot_*.png
/// This function will work only if the absoluteDirectory() of the theme
/// has been set, otherwise the returned pixmap will be null.
///
- const QPixmap & mediumScreenshot();
+ const TQPixmap & mediumScreenshot();
///
/// Attempt to load the theme screenshot from THEMEDIR/screenshot_*.png
/// This function will work only if the absoluteDirectory() of the theme
/// has been set, otherwise the returned pixmap will be null.
///
- const QPixmap & largeScreenshot();
+ const TQPixmap & largeScreenshot();
///
/// Attempt to load the theme screenshot from THEMEDIR/screenshot_*.png
/// This function will work only if the absoluteDirectory() of the theme
/// has been set, otherwise the returned pixmap will be null.
///
- QString smallScreenshotPath();
+ TQString smallScreenshotPath();
};
namespace KviTheme
@@ -148,7 +148,7 @@ namespace KviTheme
/// On failure this function will also set buffer.lastError() to a meaningful value
/// Note that for convenience this function is implemented in kvi_options.cpp
///
- bool KVIRC_API load(const QString &szThemeDir,KviThemeInfo &buffer);
+ bool KVIRC_API load(const TQString &szThemeDir,KviThemeInfo &buffer);
///
/// Save a theme given the specified options.
/// Will return true on success and false on failure.
@@ -164,7 +164,7 @@ namespace KviTheme
/// Save the theme screenshots in the given EXISTING directory and given
/// an existing screenshot on disk (usually in the tmp directory).
///
- bool KVIRC_API saveScreenshots(KviThemeInfo &options,const QString &szOriginalScreenshotPath);
+ bool KVIRC_API saveScreenshots(KviThemeInfo &options,const TQString &szOriginalScreenshotPath);
};