37 #define KVI_THEMEINFO_FILE_NAME "themeinfo" KVI_FILEEXTENSION_CONFIG
38 #define KVI_THEMEDATA_FILE_NAME "themedata" KVI_FILEEXTENSION_CONFIG
39 #define KVI_THEMEINFO_CONFIG_GROUP "ThemeInfo"
40 #define KVI_THEMEDATA_CONFIG_GROUP "ThemeData"
46 #define KVI_CURRENT_THEME_ENGINE_VERSION "1.1.0"
112 bool load(
const QString & szDirectory,
Location eLocation);
117 bool save(
const QString & szThemeFileName);
120 void setLastError(
const QString & szLastError) { m_szLastError = szLastError; }
121 const QString &
name() {
return m_szName; }
122 void setName(
const QString & szName) { m_szName = szName; }
123 const QString &
version() {
return m_szVersion; }
124 void setVersion(
const QString & szVersion) { m_szVersion = szVersion; }
128 return m_szDirectory;
133 return m_szSubdirectory;
141 void setDirectoryAndLocation(
const QString & szDirectory, Location eLocation);
148 const QString &
author() {
return m_szAuthor; }
149 void setAuthor(
const QString & szAuthor) { m_szAuthor = szAuthor; }
151 void setDescription(
const QString & szDescription) { m_szDescription = szDescription; }
152 const QString &
date() {
return m_szDate; }
153 void setDate(
const QString & szDate) { m_szDate = szDate; }
155 void setApplication(
const QString & szApplication) { m_szApplication = szApplication; }
164 const QPixmap & smallScreenshot();
170 const QPixmap & mediumScreenshot();
176 const QPixmap & largeScreenshot();
182 QString smallScreenshotPath();
223 #endif //_KVI_THEME_H_
const QString & subdirectory() const
Definition: KviTheme.h:131
Definition: KviHeapObject.h:124
QString m_szDate
Definition: KviTheme.h:95
#define KVIRC_API
Definition: kvi_settings.h:128
void setThemeEngineVersion(const QString &szThemeEngineVersion)
Definition: KviTheme.h:157
QString m_szName
Definition: KviTheme.h:86
QPixmap m_pixScreenshotLarge
Definition: KviTheme.h:101
void setLastError(const QString &szLastError)
Definition: KviTheme.h:120
A set of information about a KVIrc theme.
Definition: KviTheme.h:58
void setAuthor(const QString &szAuthor)
Definition: KviTheme.h:149
void installedThemeDirectories(QStringList &slThemes, KviThemeInfo::Location eLocation)
Definition: KviTheme.cpp:318
bool isBuiltin()
Definition: KviTheme.h:143
const QString & themeEngineVersion()
Definition: KviTheme.h:156
Location location() const
Definition: KviTheme.h:136
File utilities functions.
Location
Definition: KviTheme.h:65
QString m_szApplication
Definition: KviTheme.h:96
const QString & application()
Definition: KviTheme.h:154
bool save(KviThemeInfo &options, bool bSaveIcons)
Definition: KviOptions.cpp:986
bool saveScreenshots(KviThemeInfo &options, const QString &szOriginalScreenshotPath)
Definition: KviTheme.cpp:268
void setName(const QString &szName)
Definition: KviTheme.h:122
QString m_szSubdirectory
Definition: KviTheme.h:90
bool apply(const QString &szThemeDir, KviThemeInfo::Location eLocation, KviThemeInfo &buffer)
Definition: KviOptions.cpp:1121
const QString & directory() const
Definition: KviTheme.h:126
QPixmap m_pixScreenshotMedium
Definition: KviTheme.h:102
const QString & name()
Definition: KviTheme.h:121
const QString & description()
Definition: KviTheme.h:150
Definition: KviTheme.h:70
QString m_szAuthor
Definition: KviTheme.h:93
QString m_szVersion
Definition: KviTheme.h:87
void setApplication(const QString &szApplication)
Definition: KviTheme.h:155
QString m_szThemeEngineVersion
Definition: KviTheme.h:97
This file contains the file extensions and filters used by KVIrc.
QString m_szLastError
Definition: KviTheme.h:99
QString m_szDirectory
Definition: KviTheme.h:89
const QString & date()
Definition: KviTheme.h:152
QPixmap m_pixScreenshotSmall
Definition: KviTheme.h:103
This file contains compile time settings.
void setDate(const QString &szDate)
Definition: KviTheme.h:153
QString m_szDescription
Definition: KviTheme.h:94
void setVersion(const QString &szVersion)
Definition: KviTheme.h:124
const QString & version()
Definition: KviTheme.h:123
Helper functions for the QString class.
void setDescription(const QString &szDescription)
Definition: KviTheme.h:151
Location m_eLocation
Definition: KviTheme.h:91
const QString & lastError()
Definition: KviTheme.h:119
const QString & author()
Definition: KviTheme.h:148