remove old stuff
[colorflood] / colorflood / src / colorscheme.hpp
1 /*
2   Copyright 2010 Serge Ziryukin <ftrvxmtrx@gmail.com>
3
4   This program is free software; you can redistribute it and/or modify
5   it under the terms of the GNU General Public License as published by
6   the Free Software Foundation; version 2 of the License.
7
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
11   GNU General Public License for more details.
12 */
13
14 #ifndef _COLORSCHEME_HPP
15 #define _COLORSCHEME_HPP
16
17 #include <QVector>
18 #include <QPair>
19 #include <QBrush>
20 #include <QString>
21
22 class ColorScheme
23 {
24 public:
25     static ColorScheme & instance ()
26         {
27             static ColorScheme instance;
28             return instance;
29         }
30
31     static int getNumSchemes ();
32     static QString getSchemeName (int scheme);
33     const QVector<QBrush> &getScheme (int scheme);
34     static QString getSchemeName ();
35     const QVector<QBrush> &getScheme ();
36     static void setScheme (int scheme);
37
38 private:
39     ColorScheme ();
40     ~ColorScheme ();
41     ColorScheme (const ColorScheme &);
42     ColorScheme & operator= (const ColorScheme &);
43 };
44
45 #endif /* !_COLORSCHEME_HPP */