KVIrc 5.2.6
Developer APIs
ThemeFunctions.h
Go to the documentation of this file.
1#ifndef _THEMEFUNCTIONS_H_
2#define _THEMEFUNCTIONS_H_
3//=============================================================================
4//
5// File : ThemeFunctions.h
6// Creation date : Wed 03 Jan 2007 03:14:07 by Szymon Stefanek
7//
8// This file is part of the KVIrc IRC Client distribution
9// Copyright (C) 2007-2010 Szymon Stefanek <pragma at kvirc dot net>
10//
11// This program is FREE software. You can redistribute it and/or
12// modify it under the terms of the GNU General Public License
13// as published by the Free Software Foundation; either version 2
14// of the License, or (at your option) any later version.
15//
16// This program is distributed in the HOPE that it will be USEFUL,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19// See the GNU General Public License for more details.
20//
21// You should have received a copy of the GNU General Public License
22// along with this program. If not, write to the Free Software Foundation,
23// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24//
25//=============================================================================
26
27#include "kvi_settings.h"
28#include "KviQString.h"
29#include "KviHtmlDialog.h"
30#include "KviPointerList.h"
31#include "KviTheme.h"
32
33#include <QWidget>
34#include <QPixmap>
35
36namespace ThemeFunctions
37{
38 bool installThemePackage(const QString & szThemePackageFileName, QString & szError, QWidget * pDialogParent = nullptr);
39
41 QString & szBuffer,
42 const QString & szThemeName,
43 const QString & szThemeVersion,
44 const QString & szThemeDescription,
45 const QString & szThemeSubdirectory,
46 const QString & szThemeApplication,
47 const QString & szThemeAuthor,
48 const QString & szThemeDate,
49 const QString & szThemeThemeEngineVersion,
50 const QPixmap & pixScreenshot,
51 int iUniqueIndexInDocument = 0,
52 KviHtmlDialogData * hd = nullptr);
53
54 bool makeKVIrcScreenshot(const QString & szSavePngFilePath, bool bMaximizeFrame = false);
55
56 bool packageThemes(
57 const QString & szPackagePath,
58 const QString & szPackageName,
59 const QString & szPackageVersion,
60 const QString & szPackageDescription,
61 const QString & szPackageAuthor,
62 const QString & szPackageImagePath,
64 QString & szError);
65}
66
67#endif
C++ Template based double linked pointer list class.
Helper functions for the QString class.
Definition KviHtmlDialog.h:38
A template double linked list of pointers.
Definition KviPointerList.h:371
This file contains compile time settings.
Definition ThemeFunctions.cpp:50
bool makeKVIrcScreenshot(const QString &szSavePngFilePath, bool bMaximizeFrame)
Definition ThemeFunctions.cpp:364
bool installThemePackage(const QString &szThemePackageFileName, QString &szError, QWidget *pDialogParent)
Definition ThemeFunctions.cpp:58
bool packageThemes(const QString &szPackagePath, const QString &szPackageName, const QString &szPackageVersion, const QString &szPackageDescription, const QString &szPackageAuthor, const QString &szPackageImagePath, KviPointerList< KviThemeInfo > &lThemeInfoList, QString &szError)
Definition ThemeFunctions.cpp:391
void getThemeHtmlDescription(QString &szBuffer, const QString &szThemeName, const QString &szThemeVersion, const QString &szThemeDescription, const QString &szThemeSubdirectory, const QString &szThemeApplication, const QString &szThemeAuthor, const QString &szThemeDate, const QString &szThemeThemeEngineVersion, const QPixmap &pixScreenshot, int iUniqueIndexInDocument, KviHtmlDialogData *hd)
Definition ThemeFunctions.cpp:304
char szBuffer[4096]
Definition winamp.cpp:77