Unbroke normal BaulkTerm usage
[baulk.git] / src / Widgets / BaulkTerm / wrapper / terminalcolour.h
blob937de71b9200a36d990914aaa6681ca3d5fd60d3
1 // BaulkTerm - Terminal Colour Container
2 //
3 // Baulk - Copyright (C) 2008 - Jacob Alexander
4 //
5 // Baulk is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // any later version, including version 3 of the License.
9 //
10 // Baulk is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 /**
19 * @author Jacob Alexander (HaaTa)
21 * A container for Terminal Colours
23 * Contains, QColor, transparency bool, and bold bool
26 #ifndef __TERMINALCOLOUR_H
27 #define __TERMINALCOLOUR_H
29 #include <QColor>
30 #include <QString>
31 #include <QStringList>
32 #include <QVariant>
34 class TerminalColour {
35 public:
36 // Constructors
37 TerminalColour();
38 TerminalColour( QColor useColour, bool useTransparency, bool useBold );
40 // Colour
41 QColor colour() const;
42 void setColour( QColor useColour );
44 // Bold
45 bool bold() const;
46 void setBold( bool useBold );
48 // Transparency
49 bool transparency() const;
50 void setTransparency( bool useTransparency );
52 // Encompassing
53 QString toString() const;
54 QVariant toVariant() const;
55 void setOptions( QColor useColour, bool useTransparency, bool useBold );
56 void setFromString( QString config );
57 void setFromVariant( QVariant config );
59 private:
60 QColor colourStore;
62 bool boldStore;
63 bool transparencyStore;
66 #endif