KVIrc  4.9.2
DeveloperAPIs
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 
36 namespace ThemeFunctions
37 {
38  bool installThemePackage(const QString & szThemePackageFileName, QString & szError, QWidget * pDialogParent = 0);
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 = 0);
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,
63  KviPointerList<KviThemeInfo> & lThemeInfo,
64  QString & szError);
65 }
66 
67 #endif
Definition: KviHtmlDialog.h:37
bool installThemePackage(const QString &szThemePackageFileName, QString &szError, QWidget *pDialogParent)
Definition: ThemeFunctions.cpp:57
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:303
C++ Template based double linked pointer list class.
bool makeKVIrcScreenshot(const QString &szSavePngFilePath, bool bMaximizeFrame)
Definition: ThemeFunctions.cpp:363
char szBuffer[4096]
Definition: winamp.cpp:77
This file contains compile time settings.
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:390
Helper functions for the QString class.