1 /* Copyright (C) 2003-2006 Jesper K. Pedersen <blackie@kde.org>
3 This program is free software; you can redistribute it and/or
4 modify it under the terms of the GNU General Public
5 License as published by the Free Software Foundation; either
6 version 2 of the License, or (at your option) any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
13 You should have received a copy of the GNU General Public License
14 along with this program; see the file COPYING. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
18 #ifndef HTMLGENERATOR_SETUP_H
19 #define HTMLGENERATOR_SETUP_H
24 #include "DB/Result.h"
26 namespace HTMLGenerator
28 class ImageSizeCheckBox
;
35 void setTitle( const QString
& title
);
36 QString
title() const;
38 void setBaseDir( const QString
& baseDir
);
39 QString
baseDir() const;
41 void setBaseURL( const QString
& baseURL
);
42 QString
baseURL() const;
44 void setDestURL( const QString
& destURL
);
45 QString
destURL() const;
47 void setOutputDir( const QString
& outputDir
);
48 QString
outputDir() const;
50 void setThumbSize( int thumbSize
);
51 int thumbSize() const;
53 void setCopyright( const QString
& copyright
);
54 QString
copyright() const;
56 void setDate( bool date
);
59 void setDescription( const QString
& description
);
60 QString
description() const;
62 void setNumOfCols( int numOfCols
);
63 int numOfCols() const;
65 void setGenerateKimFile( bool generateKimFile
);
66 bool generateKimFile() const;
68 void setThemePath( const QString
& theme
);
69 QString
themePath() const;
71 void setIncludeCategory( const QString
& category
, bool include
);
72 bool includeCategory( const QString
& category
) const;
74 void setResolutions( const QList
<ImageSizeCheckBox
*>& sizes
);
75 const QList
<HTMLGenerator::ImageSizeCheckBox
*>& activeResolutions() const;
77 void setImageList(const DB::Result
& files
);
78 DB::Result
imageList() const;
80 void setInlineMovies( bool inlineMovie
);
81 bool inlineMovies() const;
95 bool _generateKimFile
;
97 QMap
<QString
,bool> _includeCategory
;
98 QList
<ImageSizeCheckBox
*> _resolutions
;
105 #endif /* HTMLGENERATOR_SETUP_H */