GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
QTerminalColors.cpp
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2011-2018 Michael Goffioul
4 
5 This file is part of QConsole.
6 
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11 
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with this program. If not,
19 see <https://www.gnu.org/licenses/>.
20 
21 */
22 
23 #define WIN32_LEAN_AND_MEAN
24 #include <windows.h>
25 
26 #include "QTerminalColors.h"
27 
28 //////////////////////////////////////////////////////////////////////////////
29 
31  : QMap<int, QColor> ()
32 {
33  (*this)[0] = Qt::black;
34  (*this)[1] = Qt::darkBlue;
35  (*this)[2] = Qt::darkGreen;
36  (*this)[3] = Qt::darkCyan;
37  (*this)[4] = Qt::darkRed;
38  (*this)[5] = Qt::darkMagenta;
39  (*this)[6] = Qt::darkYellow;
40  (*this)[7] = Qt::lightGray;
41  (*this)[8] = Qt::darkGray;
42  (*this)[9] = Qt::blue;
43  (*this)[10] = Qt::green;
44  (*this)[11] = Qt::cyan;
45  (*this)[12] = Qt::red;
46  (*this)[13] = Qt::magenta;
47  (*this)[14] = Qt::yellow;
48  (*this)[15] = Qt::white;
49 }