File indexing completed on 2025-03-23 06:53:54
0001 /******************************************************************* 0002 * 0003 * This file is part of the KDE project "Bovo" 0004 * 0005 * Bovo is free software; you can redistribute it and/or modify 0006 * it under the terms of the GNU General Public License as published by 0007 * the Free Software Foundation; either version 2, or (at your option) 0008 * any later version. 0009 * 0010 * Bovo is distributed in the hope that it will be useful, 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0013 * GNU General Public License for more details. 0014 * 0015 * You should have received a copy of the GNU General Public License 0016 * along with Bovo; see the file COPYING. If not, write to 0017 * the Free Software Foundation, 51 Franklin Street, Fifth Floor, 0018 * Boston, MA 02110-1301, USA. 0019 * 0020 ********************************************************************/ 0021 0022 #ifndef BOVO_THEME_H 0023 #define BOVO_THEME_H 0024 0025 // Qt includes 0026 #include <QColor> 0027 #include <QString> 0028 0029 namespace gui 0030 { 0031 0032 enum GridType { SvgGrid, GomokuGrid, SquaresGrid }; 0033 0034 class Theme 0035 { 0036 public: 0037 Theme(); 0038 Theme(const QString &path, const int id); 0039 0040 QColor backgroundColor() const; 0041 QString comment() const; 0042 qreal fill() const; 0043 QColor gridColor() const; 0044 GridType gridType() const; 0045 int id() const; 0046 QString name() const; 0047 QString path() const; 0048 QString svg() const; 0049 0050 private: 0051 QColor m_backgroundColor; 0052 QString m_comment; 0053 qreal m_fill; 0054 QColor m_gridColor; 0055 GridType m_gridType; 0056 int m_id; 0057 QString m_name; 0058 QString m_path; 0059 QString m_svg; 0060 }; 0061 0062 } /* namespace gui */ 0063 0064 #endif // BOVO_THEME_H