File indexing completed on 2024-04-21 04:21:20

0001 /* SPDX-FileCopyrightText: 2003-2010 Jesper K. Pedersen <blackie@kde.org>
0002 
0003    SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 #include "Setup.h"
0006 
0007 #include <QList>
0008 
0009 HTMLGenerator::Setup::Setup()
0010     : m_images()
0011 {
0012     /* nop */
0013 }
0014 
0015 void HTMLGenerator::Setup::setTitle(const QString &title)
0016 {
0017     m_title = title;
0018 }
0019 
0020 QString HTMLGenerator::Setup::title() const
0021 {
0022     return m_title;
0023 }
0024 
0025 void HTMLGenerator::Setup::setBaseDir(const QString &baseDir)
0026 {
0027     m_baseDir = baseDir;
0028 }
0029 
0030 QString HTMLGenerator::Setup::baseDir() const
0031 {
0032     return m_baseDir;
0033 }
0034 
0035 void HTMLGenerator::Setup::setBaseURL(const QString &baseURL)
0036 {
0037     m_baseURL = baseURL;
0038 }
0039 
0040 QString HTMLGenerator::Setup::baseURL() const
0041 {
0042     return m_baseURL;
0043 }
0044 
0045 void HTMLGenerator::Setup::setDestURL(const QString &destURL)
0046 {
0047     m_destURL = destURL;
0048 }
0049 
0050 QString HTMLGenerator::Setup::destURL() const
0051 {
0052     return m_destURL;
0053 }
0054 
0055 void HTMLGenerator::Setup::setOutputDir(const QString &outputDir)
0056 {
0057     m_outputDir = outputDir;
0058 }
0059 
0060 QString HTMLGenerator::Setup::outputDir() const
0061 {
0062     return m_outputDir;
0063 }
0064 
0065 void HTMLGenerator::Setup::setThumbSize(int thumbSize)
0066 {
0067     m_thumbSize = thumbSize;
0068 }
0069 
0070 int HTMLGenerator::Setup::thumbSize() const
0071 {
0072     return m_thumbSize;
0073 }
0074 
0075 void HTMLGenerator::Setup::setCopyright(const QString &copyright)
0076 {
0077     m_copyright = copyright;
0078 }
0079 
0080 QString HTMLGenerator::Setup::copyright() const
0081 {
0082     return m_copyright;
0083 }
0084 
0085 void HTMLGenerator::Setup::setDate(const bool date)
0086 {
0087     m_date = date;
0088 }
0089 
0090 bool HTMLGenerator::Setup::date() const
0091 {
0092     return m_date;
0093 }
0094 
0095 void HTMLGenerator::Setup::setDescription(const QString &description)
0096 {
0097     m_description = description;
0098 }
0099 
0100 QString HTMLGenerator::Setup::description() const
0101 {
0102     return m_description;
0103 }
0104 
0105 void HTMLGenerator::Setup::setNumOfCols(const int numOfCols)
0106 {
0107     m_numOfCols = numOfCols;
0108 }
0109 
0110 int HTMLGenerator::Setup::numOfCols() const
0111 {
0112     return m_numOfCols;
0113 }
0114 
0115 void HTMLGenerator::Setup::setGenerateKimFile(const bool generateKimFile)
0116 {
0117     m_generateKimFile = generateKimFile;
0118 }
0119 
0120 bool HTMLGenerator::Setup::generateKimFile() const
0121 {
0122     return m_generateKimFile;
0123 }
0124 
0125 void HTMLGenerator::Setup::setThemePath(const QString &theme)
0126 {
0127     m_theme = theme;
0128 }
0129 
0130 QString HTMLGenerator::Setup::themePath() const
0131 {
0132     return m_theme;
0133 }
0134 
0135 void HTMLGenerator::Setup::setIncludeCategory(const QString &category, bool include)
0136 {
0137     m_includeCategory[category] = include;
0138 }
0139 
0140 bool HTMLGenerator::Setup::includeCategory(const QString &category) const
0141 {
0142     return m_includeCategory[category];
0143 }
0144 
0145 void HTMLGenerator::Setup::setResolutions(const QList<ImageSizeCheckBox *> &sizes)
0146 {
0147     m_resolutions = sizes;
0148 }
0149 
0150 const QList<HTMLGenerator::ImageSizeCheckBox *> &HTMLGenerator::Setup::activeResolutions() const
0151 {
0152     return m_resolutions;
0153 }
0154 
0155 void HTMLGenerator::Setup::setImageList(const DB::FileNameList &files)
0156 {
0157     m_images = files;
0158 }
0159 
0160 DB::FileNameList HTMLGenerator::Setup::imageList() const
0161 {
0162     return m_images;
0163 }
0164 
0165 void HTMLGenerator::Setup::setInlineMovies(bool doInline)
0166 {
0167     m_inlineMovies = doInline;
0168 }
0169 
0170 bool HTMLGenerator::Setup::inlineMovies() const
0171 {
0172     return m_inlineMovies;
0173 }
0174 
0175 void HTMLGenerator::Setup::setHtml5Video(bool doHtml5Video)
0176 {
0177     m_html5Video = doHtml5Video;
0178 }
0179 
0180 bool HTMLGenerator::Setup::html5Video() const
0181 {
0182     return m_html5Video;
0183 }
0184 
0185 void HTMLGenerator::Setup::setHtml5VideoGenerate(bool doHtml5VideoGenerate)
0186 {
0187     m_html5VideoGenerate = doHtml5VideoGenerate;
0188 }
0189 
0190 bool HTMLGenerator::Setup::html5VideoGenerate() const
0191 {
0192     return m_html5VideoGenerate;
0193 }
0194 // vi:expandtab:tabstop=4 shiftwidth=4: